/* ============================================================
   Zuno — the long horizon
   ============================================================ */

:root {
    --paper: #f4efe4;
    --paper-deep: #e8e0d2;
    --ink: #1c2430;
    --muted: #5d6773;
    --teal: #2a6f74;
    --stamp: #c24a32;
    --glacier: #a8c5c8;
    --line: rgba(28, 36, 48, 0.14);
    --font-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", serif;
    --font-body: "Karla", "Gill Sans", system-ui, sans-serif;
    --header-height: 76px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

.container {
    width: min(1120px, 90vw);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    z-index: 200;
    padding: 10px 18px;
    background: var(--teal);
    color: #fff;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    left: 12px;
}

.paper-grain {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 80;
    opacity: 0.07;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.lat-rule {
    position: fixed;
    left: 16px;
    top: 50%;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 22px;
    font-size: 10px;
    letter-spacing: 0.14em;
    color: var(--teal);
    pointer-events: none;
    transform: translateY(-50%);
    will-change: transform;
}

.site-header,
main,
.footer {
    position: relative;
    z-index: 1;
}

/* ---------- header ---------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
    background: rgba(244, 239, 228, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}

.navbar {
    width: min(1120px, 90vw);
    margin-inline: auto;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
}

.brand-tagline {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
}

.nav-link {
    position: relative;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--muted);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 1px;
    background: var(--stamp);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--ink);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 1px solid var(--line);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 12px;
}

.section-heading {
    max-width: 620px;
    margin-bottom: 72px;
}

.section-heading h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(32px, 4.4vw, 50px);
    line-height: 1.12;
    margin-bottom: 14px;
}

.section-heading p:not(.eyebrow) {
    color: var(--muted);
}

/* ---------- hero ---------- */

.hero {
    padding-top: var(--header-height);
}

.hero-fold {
    margin: 0;
    position: relative;
}

.hero-fold::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 22px;
    background:
        linear-gradient(135deg, var(--paper) 8px, transparent 0) 0 0 / 16px 22px repeat-x,
        linear-gradient(-135deg, var(--paper) 8px, transparent 0) 0 0 / 16px 22px repeat-x;
}

.hero-image {
    width: 100%;
    height: min(58vh, 620px);
    object-fit: cover;
}

.hero-sheet {
    padding: 56px 0 72px;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 79px,
            rgba(42, 111, 116, 0.06) 80px
        );
}

.hero-copy-wrap {
    max-width: 640px;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(64px, 10vw, 112px);
    line-height: 0.86;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.hero-lede {
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(22px, 2.6vw, 30px);
    color: var(--stamp);
    margin-bottom: 16px;
}

.hero-copy {
    color: var(--muted);
    max-width: 46ch;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ink-btn,
.line-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    transition: transform 0.2s ease, background 0.2s ease;
}

.ink-btn {
    background: var(--ink);
    color: var(--paper);
}

.ink-btn:hover,
.ink-btn:focus-visible {
    transform: translateY(-1px);
    background: var(--teal);
}

.line-btn {
    border: 1px solid var(--ink);
    color: var(--ink);
}

.line-btn:hover,
.line-btn:focus-visible {
    background: rgba(42, 111, 116, 0.08);
}

/* ---------- atlas ---------- */

.atlas {
    padding: 40px 0 20px;
}

.folio {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    margin-bottom: clamp(80px, 10vw, 140px);
}

.folio-flip .torn-plate {
    order: 2;
}

.folio-flip .folio-copy {
    order: 1;
}

.torn-plate {
    position: relative;
    margin: 0;
    background: #fff;
    padding: 10px 10px 36px;
    box-shadow: 8px 12px 0 rgba(28, 36, 48, 0.06), 0 18px 40px rgba(28, 36, 48, 0.08);
    transform: rotate(-0.6deg);
}

.folio-flip .torn-plate {
    transform: rotate(0.6deg);
}

.torn-plate img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    filter: saturate(0.92) contrast(1.02);
}

.torn-plate figcaption {
    position: absolute;
    left: 14px;
    bottom: 10px;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal);
}

.stamp {
    display: inline-block;
    margin-bottom: 10px;
    padding: 3px 8px;
    border: 1.5px dashed var(--stamp);
    color: var(--stamp);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.folio-copy h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.18;
    margin-bottom: 12px;
}

.folio-copy > p:not(.stamp) {
    color: var(--muted);
    max-width: 44ch;
    margin-bottom: 20px;
}

.place-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.place-list li {
    color: var(--muted);
    font-size: 15px;
    padding-left: 12px;
    border-left: 2px solid var(--glacier);
}

.place-list span {
    display: block;
    color: var(--ink);
    font-weight: 700;
}

/* ---------- about ---------- */

.about {
    padding: 20px 0 110px;
}

.note-card {
    max-width: 720px;
    margin-inline: auto;
    padding: clamp(32px, 5vw, 56px);
    background: #fffdf8;
    border: 1px solid var(--line);
    box-shadow: 0 1px 0 #fff inset, 12px 14px 0 rgba(42, 111, 116, 0.08);
}

.note-card h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(28px, 3.4vw, 40px);
    margin-bottom: 16px;
}

.note-card p:not(.eyebrow) {
    color: var(--muted);
    font-size: 18px;
}

/* ---------- contact ---------- */

.contact {
    padding: 0 0 110px;
}

.postcard {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(28, 36, 48, 0.08);
}

.postcard-stamp-img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.postcard-body {
    padding: clamp(28px, 4vw, 48px);
}

.postcard-body h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(28px, 3.2vw, 40px);
    margin-bottom: 12px;
}

.postcard-body > p:not(.eyebrow) {
    color: var(--muted);
    margin-bottom: 24px;
}

.mail-plate {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.mail-label {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal);
}

.mail-addr {
    font-family: var(--font-display);
    font-size: clamp(18px, 2.2vw, 24px);
    overflow-wrap: anywhere;
}

.mail-plate:hover .mail-addr,
.mail-plate:focus-visible .mail-addr {
    color: var(--stamp);
}

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

.footer {
    border-top: 1px solid var(--line);
    padding: 48px 0;
    background: var(--paper-deep);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
}

.footer-name {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    font-size: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a,
.footer-contact a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    width: fit-content;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-links a:focus-visible,
.footer-contact a:focus-visible {
    color: var(--teal);
}

.footer-contact {
    color: var(--muted);
    font-size: 14px;
}

.footer-contact a {
    border-bottom: 1px solid rgba(42, 111, 116, 0.4);
}

.footer-contact p + p {
    margin-top: 8px;
}

/* ---------- reveal ---------- */

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

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

/* ---------- legal ---------- */

.legal-main {
    padding: calc(var(--header-height) + 56px) 0 100px;
}

.legal-body {
    max-width: 760px;
}

.legal-body h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(32px, 4vw, 46px);
    margin-bottom: 8px;
}

.legal-updated {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 36px;
}

.legal-body h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    margin: 36px 0 10px;
}

.legal-body h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 18px;
    margin: 22px 0 8px;
    color: var(--teal);
}

.legal-body p,
.legal-body li {
    color: #3b4450;
    font-size: 16px;
}

.legal-body p + p {
    margin-top: 12px;
}

.legal-body ul,
.legal-body ol {
    padding-left: 22px;
    margin-top: 10px;
}

.legal-body li + li {
    margin-top: 8px;
}

.legal-body a {
    color: var(--teal);
    text-decoration: none;
    border-bottom: 1px solid rgba(42, 111, 116, 0.4);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
    .lat-rule {
        display: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .postcard {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 18px 6vw 26px;
        background: rgba(244, 239, 228, 0.98);
        border-bottom: 1px solid var(--line);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    }

    .nav-menu.is-open {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        display: block;
        padding: 10px 0;
        font-size: 17px;
    }

    .hero-image {
        height: 42vh;
    }

    .hero-sheet {
        padding: 36px 0 48px;
    }

    .folio,
    .folio-flip {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .folio-flip .torn-plate,
    .folio-flip .folio-copy {
        order: 0;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
