/* ===========================================================================
   RKFocus — shared foundation.

   Tokens and primitives used by every storefront page. Page stylesheets
   (home.css, gallery.css, …) load after this and only add what is theirs.
   Nothing here should know about a particular page.
   ======================================================================== */

:root {
    --ink: #08090b;
    --ink-2: #0b0d10;
    --ink-3: #101318;
    --ivory: #f2efe8;
    --muted: rgba(242, 239, 232, 0.58);
    --faint: rgba(242, 239, 232, 0.34);
    --line: rgba(242, 239, 232, 0.13);
    --line-soft: rgba(242, 239, 232, 0.07);
    --gold: #c8a46a;

    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

    --pad-x: clamp(20px, 4.5vw, 68px);
    --measure: 1560px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--ink);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--ivory);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Film grain. A pseudo-element so the navbar's layout script can't find it. */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 900;
    pointer-events: none;
    opacity: 0.035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
p,
figure,
figcaption {
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

/* Icon defaults. Artwork SVGs (the logotype) must opt out with `stroke: none`,
   or the stroke lands in their own coordinate system as a stray hairline. */
svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.2;
    stroke-linecap: square;
}

:focus-visible {
    outline: 1px solid var(--gold);
    outline-offset: 4px;
}

.u-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.u-shell {
    max-width: var(--measure);
    margin: 0 auto;
    padding-inline: var(--pad-x);
}

/* --- micro type --------------------------------------------------------- */

.u-micro,
.section-eyebrow,
.link-cta,
.site-foot__nav a,
.site-foot__base {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-eyebrow {
    color: var(--faint);
}

/* --- link with a drawing rule ------------------------------------------- */

.link-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 6px;
    color: var(--ivory);
}

.link-cta svg {
    width: 24px;
    height: 12px;
    transition: transform 0.6s var(--ease);
}

.link-cta::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--line);
}

.link-cta::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 1;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.7s var(--ease);
}

.link-cta:hover::before,
.link-cta:focus-visible::before {
    width: 100%;
}

.link-cta:hover svg,
.link-cta:focus-visible svg {
    transform: translateX(6px);
}

.link-cta--muted {
    color: var(--muted);
}

/* --- footer ------------------------------------------------------------- */

.site-foot {
    max-width: var(--measure);
    margin: 0 auto;
    padding: 0 var(--pad-x) 34px;
}

.site-foot__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 36px;
    padding-top: clamp(44px, 6vw, 72px);
    border-top: 1px solid var(--line);
}

.site-foot__mark {
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1;
}

.site-foot__tag {
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.site-foot__nav {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 28px;
}

.site-foot__nav a {
    padding-bottom: 4px;
    color: var(--muted);
    border-bottom: 1px solid transparent;
    transition: color 0.4s ease, border-color 0.4s ease;
}

.site-foot__nav a:hover {
    color: var(--ivory);
    border-bottom-color: var(--gold);
}

.site-foot__base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: clamp(48px, 7vw, 90px);
    padding-top: 22px;
    border-top: 1px solid var(--line-soft);
    color: var(--faint);
    letter-spacing: 0.14em;
}

/* --- reveal on scroll --------------------------------------------------- */

.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.1s ease, transform 1.1s var(--ease);
}

.js .reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (max-width: 560px) {
    .site-foot__inner {
        flex-direction: column;
        gap: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal,
    .js .reveal.is-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .link-cta svg {
        transition: none;
    }
}
