/* A tot Z — site theme.
   Palette carried over from the previous site: accent #aa99b3 (dusty lilac),
   page ground #f4f4f3, muted grey #8c8888.
   Fonts are self-hosted (OFL) rather than loaded from a font CDN — no
   third-party request from a visitor's browser. */

@font-face {
    font-family: "Pontano Sans";
    src: url("../fonts/pontano-sans-400.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Playfair Display";
    src: url("../fonts/playfair-display-500.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "Playfair Display";
    src: url("../fonts/playfair-display-600.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

:root {
    --accent: #aa99b3;
    --accent-dark: #8e7b98;
    --ground: #f4f4f3;
    --surface: #ffffff;
    --ink: #1d1d1f;
    --ink-soft: #55535a;
    --muted: #8c8888;
    --rule: #e2e0e2;

    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --sans: "Pontano Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

    --wrap: 1140px;
    --gutter: clamp(1.25rem, 4vw, 3rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body.site {
    margin: 0;
    background: var(--ground);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: .75rem 1.25rem;
    z-index: 100;
}
.skip-link:focus { left: 0; }

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg, rgba(60,58,62,.82), rgba(60,58,62,0));
    padding-top: env(safe-area-inset-top, 0px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 84px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    color: inherit;
}

.brand__mark {
    display: inline-flex;
    width: 40px;
    height: 30px;
    gap: 3px;
}
.brand__tri { display: block; width: 50%; height: 100%; }
.brand__tri--a {
    background: var(--muted);
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.brand__tri--z {
    background: var(--accent);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 1.15rem; color: var(--accent); }
.brand__sub {
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: lowercase;
    color: var(--muted);
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: clamp(1rem, 2.4vw, 2.1rem);
    margin: 0;
    padding: 0;
}
.site-nav a {
    color: #f2f0f3;
    text-decoration: none;
    font-size: .82rem;
    letter-spacing: .02em;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav .active > a {
    color: #fff;
    border-bottom-color: var(--accent);
}

.nav-toggle, .nav-toggle__btn { display: none; }

/* ---------- page content ----------
   Orchard renders a Page as <article class="content-item page"> with its own
   <header><h1>. The body copy already opens with its own heading, so the shape's
   header would repeat it — the container styling lands on the article itself. */

.content-item.page {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
    padding-block: clamp(3rem, 7vw, 6rem);
}

.content-item.page > header { display: none; }

/* First heading of a page carries the hero weight. */
.content-item.page > h2:first-of-type {
    font-size: clamp(2.6rem, 6.5vw, 4.5rem);
    margin-bottom: .5em;
}

.content-item.page ul {
    padding-left: 1.15rem;
    max-width: 62ch;
}
.content-item.page li { margin-bottom: .45rem; }

/* ---------- sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tint { background: var(--surface); }

.section__inner {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Hero keeps the original's asymmetry: copy held to the left half. */
.hero { padding-block: clamp(4.5rem, 12vw, 9rem); }
.hero__copy { max-width: 32rem; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 500;
    color: var(--accent);
    line-height: 1.12;
    margin: 0 0 .6em;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }

p { margin: 0 0 1.15rem; max-width: 62ch; }
p strong { font-weight: 400; border-bottom: 1px solid var(--accent); }

.lead { font-size: 1.15rem; color: var(--ink-soft); }

hr.rule { border: 0; border-top: 1px solid var(--rule); margin-block: 0; }

/* ---------- button ---------- */

.btn {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    padding: 1.05rem 2.4rem;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    transition: background .18s ease;
}
.btn:hover, .btn:focus-visible { background: var(--accent-dark); color: #fff; }

/* ---------- layout helpers ---------- */

.grid {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.figure img { width: 100%; object-fit: cover; }

.card {
    background: var(--surface);
    padding: clamp(1.5rem, 3vw, 2.25rem);
}
.card blockquote {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--ink-soft);
}
.card cite { display: block; margin-top: 1rem; font-style: normal; font-size: .82rem; color: var(--muted); }

/* ---------- forms ---------- */

.form-field { margin-bottom: 1.35rem; }
.form-field label {
    display: block;
    font-size: .8rem;
    letter-spacing: .04em;
    margin-bottom: .4rem;
    color: var(--ink-soft);
}
.form-field input,
.form-field textarea {
    width: 100%;
    font: inherit;
    padding: .8rem .9rem;
    border: 1px solid var(--rule);
    border-radius: 2px;
    background: var(--surface);
    color: var(--ink);
}
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    border-color: transparent;
}

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

.site-footer {
    background: #2b2a2d;
    color: #cfccd2;
    padding-block: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: calc(clamp(2.5rem, 5vw, 4rem) + env(safe-area-inset-bottom, 0px));
    margin-top: auto;
}
.site-footer a { color: #e6e2ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer__name { font-family: var(--serif); color: var(--accent); font-size: 1.2rem; margin-bottom: .75rem; }
.site-footer__meta { font-size: .78rem; color: #8f8b94; margin: 0; }

/* ---------- narrow ---------- */

@media (max-width: 800px) {
    .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }

    .nav-toggle__btn {
        display: block;
        width: 30px;
        cursor: pointer;
    }
    .nav-toggle__btn span {
        display: block;
        height: 2px;
        margin: 6px 0;
        background: #f2f0f3;
    }
    .site-nav {
        display: none;
        flex-basis: 100%;
        order: 3;
    }
    .nav-toggle:checked ~ .site-nav { display: block; }
    .site-nav ul { flex-direction: column; gap: .75rem; padding-bottom: 1.25rem; }
    .site-header__inner { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
