@font-face {
    font-family: "JetBrains Mono";
    src: url("/assets/fonts/webfonts/JetBrainsMono-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #173024;
    --ink-muted: #594532;
    --paper: #efe2cf;
    --paper-light: #fbf4ea;
    --line: rgba(85, 61, 38, 0.34);
    --accent: #806033;
    --content-width: 1180px;
    --reading-width: 760px;
    --font-serif: Georgia, "Times New Roman", serif;
    --font-mono: "JetBrains Mono", monospace;
}

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

html {
    min-height: 100%;
    font-size: 16px;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--paper-light);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    font-family: var(--font-serif);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main {
    flex: 1;
}

body:not(.template-home) main {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

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

a {
    color: inherit;
    text-underline-offset: 0.22em;
    text-decoration-thickness: 1px;
}

a:hover {
    color: var(--accent);
}

.container {
    width: min(calc(100% - 5rem), var(--content-width));
    margin-inline: auto;
}

.template-home .site-header .container {
    width: min(calc(100% - 6rem), 1220px);
}

.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 2;
}

body:not(.template-home) .site-header {
    position: relative;
    background: var(--paper-light);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    text-decoration: none;
}

.brand-wordmark {
    display: block;
    color: var(--ink);
    font-size: clamp(1.05rem, 1.7vw, 1.45rem);
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav,
.footer-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.8vw, 2.4rem);
}

.site-nav a,
.footer-nav a {
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.42rem;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 140ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
    transform: scaleX(1);
}

.coming-soon-hero {
    min-height: calc(100svh - 42px);
    display: grid;
    align-items: center;
    padding: clamp(5.8rem, 8vw, 7rem) clamp(1.2rem, 4vw, 5rem) clamp(2.2rem, 4vw, 4rem);
    background:
        linear-gradient(90deg, rgba(222, 198, 160, 0.07), rgba(245, 236, 220, 0.34) 35%, rgba(239, 226, 205, 0.18)),
        url("/assets/logos/hero.png") 48% center / cover no-repeat;
}

.hero-copy {
    width: min(52rem, 50vw);
    margin-left: auto;
    margin-right: clamp(8.5rem, 14vw, 16rem);
    color: var(--ink);
    text-align: center;
    text-shadow: 0 1px 12px rgba(250, 243, 232, 0.42);
    transform: translateY(clamp(-6rem, -5.4vw, -3.7rem));
}

.hero-copy > * {
    margin-inline: auto;
}

.hero-copy p:first-child,
.hero-copy h2 {
    font-family: var(--font-mono);
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.hero-copy p:first-child {
    display: grid;
    grid-template-columns: minmax(2.5rem, 4.25rem) auto minmax(2.5rem, 4.25rem);
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    color: var(--ink-muted);
    font-size: clamp(0.68rem, 1vw, 0.82rem);
}

.hero-copy p:first-child::before,
.hero-copy p:first-child::after,
.hero-copy h2::before,
.hero-copy h2::after,
.hero-copy p:nth-of-type(5)::before {
    content: "";
    height: 1px;
    background: var(--line);
}

.hero-copy h1 {
    margin: clamp(0.7rem, 1.1vw, 0.95rem) auto 0.42rem;
    font-size: clamp(3.35rem, 4.25vw, 4.75rem);
    font-weight: 400;
    letter-spacing: 0.035em;
    line-height: 0.98;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-copy p:nth-of-type(2) {
    margin: 0 auto;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: clamp(0.7rem, 1vw, 0.9rem);
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.hero-copy p:nth-of-type(3)::before,
.hero-copy p:last-child::before {
    content: "";
    display: block;
    width: 0.55rem;
    height: 0.55rem;
    margin: clamp(0.8rem, 1.35vw, 1.1rem) auto;
    background: var(--accent);
    transform: rotate(45deg);
    box-shadow:
        -4.9rem 4.9rem 0 -3.5px transparent,
        4.9rem -4.9rem 0 -3.5px transparent;
}

.hero-copy p:nth-of-type(3) {
    margin: 0 0 0.55rem;
    color: var(--accent);
    font-size: clamp(1.32rem, 1.75vw, 1.65rem);
    font-style: italic;
    line-height: 1.18;
}

.hero-copy p:nth-of-type(4),
.hero-copy p:nth-of-type(5) {
    width: min(42rem, 100%);
    margin: 0.36rem auto 0;
    color: #2e241b;
    font-size: clamp(0.95rem, 1.05vw, 1.05rem);
    line-height: 1.34;
}

.hero-copy h2 {
    display: grid;
    grid-template-columns: minmax(3rem, 7.5rem) auto minmax(3rem, 7.5rem);
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    margin: clamp(0.85rem, 1.35vw, 1.1rem) auto 0.42rem;
    color: var(--ink);
    font-size: clamp(0.74rem, 0.9vw, 0.86rem);
    font-weight: 400;
    line-height: 1.4;
}

.hero-copy h2 + p {
    width: min(38rem, 100%);
    margin: 0 auto;
    color: #33271e;
    font-size: clamp(0.86rem, 0.93vw, 0.94rem);
    line-height: 1.36;
}

.hero-copy strong {
    font-family: var(--font-mono);
    font-size: 0.92em;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-copy p:last-child {
    margin: clamp(0.58rem, 1.05vw, 0.85rem) auto 0;
    color: var(--accent);
    font-size: clamp(0.96rem, 1.1vw, 1.04rem);
    font-style: italic;
}

.page-shell {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-block: clamp(1.45rem, 2.8vw, 2.35rem) 0;
    background: var(--paper-light);
    overflow: hidden;
}

.page-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 11rem minmax(0, var(--reading-width));
    gap: clamp(2.4rem, 8vw, 7rem);
    align-items: start;
}

.page-kicker {
    position: sticky;
    top: 2rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--line);
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.page-content {
    max-width: var(--reading-width);
}

.page-content h1 {
    margin: 0 0 1.1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--line);
    font-size: clamp(2.35rem, 5vw, 4rem);
    font-weight: 400;
    line-height: 1.05;
}

.page-content p {
    margin: 0 0 0.75rem;
    color: #3b3026;
    font-size: 1.08rem;
    line-height: 1.72;
}

.page-footer-art {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100vw;
    margin: 0;
    padding-top: 0;
    overflow: hidden;
    align-self: center;
    line-height: 0;
    text-align: center;
    transform: translateX(-50%);
}

.page-footer-art img {
    width: 100vw;
    max-width: none;
    height: auto;
}

.site-footer {
    background: var(--ink);
    color: var(--paper-light);
}

.footer-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-footer p {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-nav {
    gap: 1.4rem;
}

.footer-nav a {
    color: var(--paper-light);
    font-size: 0.64rem;
}

@media (max-width: 980px) {
    .container {
        width: min(calc(100% - 3rem), var(--content-width));
    }

    .header-inner {
        min-height: 68px;
    }

    .coming-soon-hero {
        align-items: end;
        background-position: 34% center;
    }

    .hero-copy {
        margin-inline: auto;
        padding: 1.25rem 0 0;
        transform: translateY(-2rem);
    }

    .page-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .page-kicker {
        position: static;
        width: 11rem;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 2rem), var(--content-width));
    }

    .header-inner {
        min-height: auto;
        padding-block: 1rem;
        align-items: flex-start;
        flex-direction: column;
        gap: 0.85rem;
    }

    .brand-wordmark {
        font-size: 0.92rem;
        white-space: normal;
    }

    .site-nav {
        gap: 1rem;
    }

    .site-nav a {
        font-size: 0.62rem;
    }

    .coming-soon-hero {
        min-height: calc(100svh - 42px);
        padding: 7.5rem 1rem 2.25rem;
        background:
            linear-gradient(180deg, rgba(239, 227, 207, 0.7), rgba(246, 238, 225, 0.42) 30%, rgba(239, 227, 207, 0.78)),
            url("/assets/logos/hero.png") 28% center / cover no-repeat;
    }

    .hero-copy h1 {
        font-size: clamp(2.35rem, 13vw, 3.5rem);
    }

    .hero-copy p:first-child,
    .hero-copy p:nth-of-type(2),
    .hero-copy h2 {
        letter-spacing: 0.2em;
    }

    .hero-copy p:first-child,
    .hero-copy h2 {
        grid-template-columns: minmax(1.8rem, 2.8rem) auto minmax(1.8rem, 2.8rem);
    }

    .hero-copy p:nth-of-type(3) {
        font-size: 1.32rem;
    }

    .hero-copy p:nth-of-type(4),
    .hero-copy p:nth-of-type(5),
    .hero-copy h2 + p {
        font-size: 0.96rem;
    }

    .hero-copy strong {
        white-space: normal;
    }

    .footer-inner {
        padding-block: 1rem;
        align-items: flex-start;
        flex-direction: column;
        gap: 0.8rem;
    }
}
