:root {
    --green-950: #071912;
    --green-900: #0e2a22;
    --green-800: #14382c;
    --green-700: #1b4332;
    --cream-50: #fbf7f0;
    --cream-100: #f3eadf;
    --cream-200: #e7d9c4;
    --red-700: #7a1f24;
    --red-800: #64181c;
    --gold-700: #6f5624;
    --gold-300: #d4bc7d;
    --ice-100: #e7f1f6;
    --ice-300: #c5d9e6;
    --ink: #17211c;
    --muted: #3e5148;
    --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --shadow: 0 24px 60px rgba(7, 25, 18, 0.18);
    --radius: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(212, 188, 125, 0.28), transparent 55%),
        radial-gradient(900px 420px at 100% 0%, rgba(197, 217, 230, 0.65), transparent 50%),
        var(--cream-50);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--green-800); }
a:hover { color: var(--red-700); }
h1, h2, h3, .brand-lockup {
    font-family: var(--serif);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.35rem; margin: 0 0 0.4rem; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.2rem; color: var(--muted); }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 2rem)); }
.eyebrow {
    margin: 0 0 0.6rem;
    color: var(--gold-700);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: #fff;
    color: #000;
    padding: 0.6rem 1rem;
    z-index: 20;
}
.skip-link:focus { top: 1rem; }
:focus-visible {
    outline: 3px solid var(--gold-300);
    outline-offset: 3px;
}

.snow {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.85) 50%, transparent 51%),
        radial-gradient(2px 2px at 140px 90px, rgba(255,255,255,0.7) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 80px 160px, rgba(255,255,255,0.8) 50%, transparent 51%),
        radial-gradient(2px 2px at 220px 40px, rgba(255,255,255,0.55) 50%, transparent 51%);
    background-size: 260px 220px;
    animation: drift 22s linear infinite;
    opacity: 0.55;
}
@keyframes drift {
    from { background-position: 0 0, 40px 10px, 10px 20px, 80px 0; }
    to { background-position: 0 220px, 40px 230px, 10px 240px, 80px 220px; }
}
.site-header, main, .site-footer { position: relative; z-index: 1; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 5;
    background: rgba(251, 247, 240, 0.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(20, 56, 44, 0.08);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 5.5rem;
    gap: 1rem;
    position: relative;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--green-900); text-decoration: none; font-family: var(--serif); font-size: 1.15rem; }
.brand img { height: 4.75rem; width: auto; display: block; }
.nav-details { position: static; }
.nav-details > summary {
    list-style: none;
    cursor: pointer;
    width: 2.6rem;
    height: 2.6rem;
    border: 0;
    border-radius: 0.55rem;
    padding: 0;
    color: transparent;
    font-weight: 650;
    background:
        linear-gradient(var(--green-900), var(--green-900)) center 0.7rem / 1.15rem 2px no-repeat,
        linear-gradient(var(--green-900), var(--green-900)) center / 1.15rem 2px no-repeat,
        linear-gradient(var(--green-900), var(--green-900)) center 1.7rem / 1.15rem 2px no-repeat;
}
.nav-details > summary::-webkit-details-marker { display: none; }
.nav-panel { display: grid; gap: 0.35rem; padding: 0.8rem 0 1rem; }
.nav-panel a, .linkish {
    color: var(--green-900);
    text-decoration: none;
    font-weight: 600;
    background: none;
    border: 0;
    padding: 0.35rem 0;
    font: inherit;
    cursor: pointer;
    text-align: left;
}
.nav-panel a.button,
.nav-panel a.button-small {
    background: var(--red-700);
    color: #fff;
    text-align: center;
    padding: 0.65rem 1.1rem;
    margin-top: 0.35rem;
}
.nav-panel a.button:hover,
.nav-panel a.button-small:hover {
    background: var(--red-800);
    color: #fff;
}
@media (max-width: 899px) {
    .nav-details[open] > .nav-panel {
        position: absolute;
        top: calc(100% + 0.35rem);
        left: 0;
        right: 0;
        z-index: 6;
        display: grid;
        gap: 0.15rem;
        padding: 0.85rem 1rem 1rem;
        background: #fbf7f0;
        border: 1px solid rgba(20, 56, 44, 0.12);
        border-radius: 1rem;
        box-shadow: 0 14px 36px rgba(20, 53, 40, 0.12);
    }
    .nav-panel a:not(.button):not(.button-small),
    .nav-panel .linkish {
        padding: 0.7rem 0.35rem;
        border-bottom: 1px solid rgba(20, 56, 44, 0.08);
    }
    .nav-panel a:not(.button):not(.button-small):last-of-type,
    .nav-panel form:last-child .linkish {
        border-bottom: 0;
    }
}
@media (min-width: 900px) {
    .nav-details > summary { display: none; }
    /* Force the panel visible even when <details> is closed (Safari/Chrome UA hides it). */
    .nav-details > .nav-panel { display: flex !important; align-items: center; gap: 1.1rem; padding: 0; }
    .nav-panel a.button,
    .nav-panel a.button-small { margin-top: 0; }
}

.button, button.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    background: var(--red-700);
    color: #fff;
    text-decoration: none;
    border: 0;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.button:hover { background: var(--red-800); color: #fff; }
.button-secondary { background: transparent; color: var(--green-900); border: 1.5px solid var(--green-800); }
.button-secondary:hover { background: var(--green-900); color: var(--cream-50); }
.button-light { background: var(--cream-50); color: var(--green-900); }
.button-light:hover { background: #fff; color: var(--green-900); }
.button-small { min-height: 40px; padding: 0.4rem 0.9rem; }
.button-danger { background: var(--red-800); }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.4rem; }
.text-link { font-weight: 700; }

.hero { padding: 2.2rem 0 3rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
.hero-frame { max-width: 420px; margin-inline: auto; }
.window-frame {
    background: linear-gradient(160deg, var(--green-800), var(--green-950));
    padding: 0.8rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.window-frame img, .window-frame video {
    width: 100%;
    border-radius: 18px;
    border: 2px solid var(--gold-300);
    background: var(--ice-100);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.hero-frame img { aspect-ratio: 3 / 4; }

.band { padding: 4rem 0; }
.band-ice { background: linear-gradient(180deg, rgba(231, 241, 246, 0.3), rgba(231, 241, 246, 0.85)); }
.band-green { background: var(--green-900); color: var(--cream-50); }
.band-green a { color: var(--gold-300); }
.band-cream { background: rgba(243, 234, 223, 0.7); }
.section-intro { max-width: 42rem; margin-bottom: 1.6rem; }

.preview-card { display: block; color: inherit; text-decoration: none; }
.preview-card .window-frame img { aspect-ratio: 16 / 9; }
.preview-card__caption { display: flex; justify-content: center; margin-top: 1.2rem; }

.steps, .place-list, .check-list { padding: 0; margin: 0 0 1.2rem; }
.steps { display: grid; gap: 1rem; list-style: none; counter-reset: step; }
.steps li, .card, .panel {
    background: rgba(255, 252, 247, 0.78);
    border: 1px solid rgba(212, 188, 125, 0.7);
    border-radius: 22px;
    padding: 1.2rem 1.2rem 0.4rem;
    box-shadow: 0 10px 30px rgba(7, 25, 18, 0.05);
}
.steps li { padding-bottom: 0.8rem; }
.steps li::before {
    counter-increment: step;
    content: counter(step);
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.6rem;
    border-radius: 50%;
    background: var(--green-800);
    color: var(--cream-50);
    font-weight: 700;
}
.place-list { display: grid; gap: 0.6rem; list-style: none; }
.place-list li {
    padding: 0.8rem 1rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 188, 125, 0.35);
}
.check-list { list-style: none; }
.check-list li { padding: 0.35rem 0 0.35rem 1.6rem; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 0.7rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--gold-300); box-shadow: inset 0 0 0 3px var(--green-800); }
.coming { font-family: var(--serif); font-size: 1.7rem; color: var(--red-700); margin: 0.4rem 0 0.8rem; }

.split { display: grid; gap: 1.5rem; }
.panel { padding: 1.3rem; }
.card-grid, .window-list { display: grid; gap: 1rem; list-style: none; padding: 0; }
.card h2, .card h3 { font-size: 1.35rem; }
.card a { text-decoration: none; }
.card a:hover { text-decoration: underline; }

.faq-list details {
    border-bottom: 1px solid rgba(20, 56, 44, 0.15);
    padding: 0.4rem 0;
}
.faq-list summary { cursor: pointer; font-weight: 700; padding: 0.7rem 0; }
.faq-answer p:last-child { margin-bottom: 0.8rem; }

.site-footer { background: var(--green-950); color: var(--cream-100); padding: 2.5rem 0; }
.site-footer a { color: var(--gold-300); }
.footer-grid { display: grid; gap: 1.4rem; }
.footer-grid nav { display: grid; gap: 0.35rem; }
.brand-lockup { font-size: 1.4rem; margin: 0 0 0.4rem; }

.page-header { margin: 1.5rem 0 1.5rem; }
.prose-page { padding-bottom: 4rem; }
.prose-page h2 { margin-top: 2rem; }
.feature-frame { margin: 0 0 1.5rem; }
.feature-frame--portrait { max-width: 26rem; margin-inline: auto; }
.feature-frame--portrait img { aspect-ratio: 941 / 1672; }
.feature-frame figcaption, .meta-line, .form-note { color: var(--muted); font-size: 0.95rem; }
.article-body h2 { margin-top: 2rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.banner { border-radius: 16px; padding: 0.9rem 1rem; margin: 1rem 0; }
.banner-success { background: #e5f2ea; color: var(--green-900); }
.banner-error { background: #f8e6e4; color: var(--red-800); }
.form-row { display: grid; gap: 0.35rem; margin-bottom: 0.9rem; }
label { font-weight: 700; }
.optional { font-weight: 500; color: var(--muted); }
input, select, textarea {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid #c9b89a;
    background: #fff;
    color: var(--ink);
    font: inherit;
    padding: 0.7rem 0.8rem;
}
textarea { min-height: 8rem; resize: vertical; }
.field-error { color: var(--red-800); font-weight: 700; margin: 0; }
.checkbox-row { grid-template-columns: auto 1fr; align-items: start; gap: 0.7rem; }
.checkbox-row input { width: 1.2rem; min-height: 1.2rem; margin-top: 0.25rem; }
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.narrow-form { max-width: 640px; }
.debug { white-space: pre-wrap; background: #fff; padding: 1rem; }

.breadcrumbs { padding-top: 1rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 0.92rem; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 0.4rem; }

@media (min-width: 800px) {
    .hero-grid, .split, .card-grid, .steps, .footer-grid { grid-template-columns: 1.1fr 0.9fr; }
    .steps { grid-template-columns: repeat(3, 1fr); }
    .card-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 0.8fr; }
    .place-list { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .snow { opacity: 0.25; }
}

/* —— Order page —— */
.order-layout {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}
.order-form fieldset {
    border: 0;
    margin: 0 0 1.5rem;
    padding: 0;
}
.order-form legend {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
}
.form-row-grid {
    display: grid;
    gap: 0.9rem;
}
.name-plate-preview {
    margin-top: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: linear-gradient(160deg, #12352c, #0e2a22);
    color: #f7f1e6;
    text-align: center;
}
.name-plate-preview__label {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(247, 241, 230, 0.7);
}
.name-plate-preview__text {
    margin: 0;
    font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    letter-spacing: 0.04em;
    word-break: break-word;
}
.order-summary__lines {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}
.order-summary__lines li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}
.order-summary__total {
    margin-top: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(20, 56, 44, 0.15);
    font-size: 1.05rem;
}
.order-page [hidden] { display: none !important; }
.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.product-grid {
    display: grid;
    gap: 1rem;
}
.product-grid + .form-note { margin-top: 1rem; }
.product-card {
    display: grid;
    overflow: hidden;
    border-radius: 18px;
    border: 1.5px solid rgba(212, 188, 125, 0.7);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.product-card.is-selected {
    border-color: var(--green-800);
    box-shadow: 0 0 0 2px var(--green-800);
}
.product-card__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 6 / 7;
    object-fit: cover;
    background: var(--ice-100);
}
.product-card__body {
    padding: 1rem 1.1rem 0.4rem;
}
.product-card__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
}
.product-card__heading h2 {
    margin: 0;
    font-size: 1.2rem;
}
.product-card__price {
    margin: 0;
    font-weight: 800;
    color: var(--red-700);
}
.product-card__summary {
    margin: 0.5rem 0 0.9rem;
    color: var(--muted);
    font-size: 0.95rem;
}
.qty-stepper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.qty-stepper input {
    width: 4.5rem;
    text-align: center;
    -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-stepper__button {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50%;
    border: 1.5px solid var(--green-800);
    background: transparent;
    color: var(--green-900);
    font: inherit;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.qty-stepper__button:hover {
    background: var(--green-900);
    color: var(--cream-50);
}
@media (min-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 900px) {
    .order-layout {
        grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.75fr);
        align-items: start;
    }
    .form-row-grid {
        grid-template-columns: 1fr 1fr;
    }
    .order-summary {
        position: sticky;
        top: 1rem;
    }
}

/* Digital product page — portrait hero, same ratio as homepage product art */
.digital-page { margin-bottom: 3rem; }
.digital-hero {
    margin-bottom: 2.5rem;
    padding: 2rem 0 2.75rem;
    background: linear-gradient(165deg, var(--green-950), var(--green-800));
    color: var(--cream-50);
}
.digital-hero__inner {
    display: grid;
    gap: 2rem;
    align-items: center;
}
.digital-hero__copy .eyebrow {
    color: var(--gold-300);
}
.digital-hero__copy h1 {
    margin: 0.4rem 0 0.75rem;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.05;
    color: var(--cream-50);
}
.digital-hero__accent { color: var(--gold-300); }
.digital-hero__copy .lede {
    max-width: 34rem;
    color: rgba(253, 250, 243, 0.9);
}
.digital-hero__copy .button-row { margin-top: 1.4rem; }
.digital-hero__copy .button-secondary {
    border-color: rgba(240, 223, 166, 0.7);
    color: var(--cream-50);
}
.digital-hero__copy .button-secondary:hover {
    background: var(--cream-50);
    color: var(--green-900);
}
.digital-hero__figure {
    margin: 0;
    width: 100%;
    max-width: 26rem;
    justify-self: center;
}
.digital-hero__frame {
    overflow: hidden;
    border-radius: 2rem;
    border: 2px solid var(--gold-400);
    background: #f3d9b8;
    box-shadow: var(--shadow);
}
.digital-hero__frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 778 / 912;
    object-fit: cover;
}
.digital-hero__placeholder {
    display: grid;
    place-content: center;
    gap: 0.35rem;
    aspect-ratio: 778 / 912;
    padding: 1.5rem 1.25rem;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(14, 42, 34, 0.15), rgba(14, 42, 34, 0.45)),
        repeating-linear-gradient(
            -45deg,
            rgba(212, 188, 125, 0.12),
            rgba(212, 188, 125, 0.12) 12px,
            transparent 12px,
            transparent 24px
        );
}
.digital-hero__placeholder-label {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-700);
}
.digital-hero__placeholder-path,
.digital-hero__placeholder-hint {
    margin: 0;
    color: var(--green-900);
    font-size: 0.9rem;
}
.digital-hero__placeholder code {
    display: inline-block;
    margin: 0.35rem 0;
    padding: 0.4rem 0.7rem;
    border-radius: 12px;
    background: rgba(14, 42, 34, 0.08);
    color: var(--green-900);
    font-size: 0.8rem;
    word-break: break-all;
}
@media (min-width: 900px) {
    .digital-hero__inner {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 3rem;
    }
    .digital-hero__figure {
        max-width: none;
        justify-self: end;
    }
}
.digital-page__body .steps { margin-top: 1rem; }
.digital-order-band {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(212, 188, 125, 0.65);
    scroll-margin-top: 5rem;
}
.digital-order-band .order-form { max-width: 32rem; }
#order { scroll-margin-top: 5rem; }
