/*
 * Gentlove Review shared visual foundation
 * Mobile-first scrapbook skeuomorphism with tactile paper, thread, and leather.
 */

:root {
    color-scheme: light;

    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;

    --canvas-sage: #a9ad91;
    --canvas-sage-dark: #777c62;
    --sage: #858a6e;
    --sage-dark: #5d624d;
    --sage-light: #d9dcc7;
    --cream: #f8f0df;
    --cream-bright: #fffaf0;
    --paper: #f5ead7;
    --paper-deep: #e7d8bf;
    --terracotta: #b76f54;
    --terracotta-dark: #7d4432;
    --terracotta-light: #d69a7d;
    --ochre: #d9ac57;
    --tan: #c8a57e;
    --cocoa: #4a2c1d;
    --cocoa-soft: #674736;
    --ink-muted: #665b4f;
    --line: #80765f;
    --white: #fffdf7;

    --shadow-small: 0 3px 5px rgba(55, 38, 25, 0.18), 0 1px 1px rgba(255, 255, 255, 0.75) inset;
    --shadow-medium: 0 9px 18px rgba(55, 38, 25, 0.18), 0 2px 1px rgba(255, 255, 255, 0.76) inset;
    --shadow-large: 0 22px 55px rgba(52, 42, 30, 0.25), 0 2px 1px rgba(255, 255, 255, 0.8) inset;
    --inset-paper: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -2px 5px rgba(107, 81, 56, 0.12);

    --content-width: 1240px;
    --reading-width: 760px;
    --header-bottom: 74px;
    --section-space: clamp(4rem, 9vw, 8rem);
    --focus-ring: 0 0 0 3px var(--cream-bright), 0 0 0 6px var(--terracotta-dark);
}

/* ============================================
   BASE AND OVERFLOW SAFETY
   ============================================ */

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

html {
    min-width: 320px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: var(--canvas-sage);
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--cocoa);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    background-color: var(--canvas-sage);
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(90deg, rgba(63, 70, 49, 0.07) 0 1px, transparent 1px 5px),
        linear-gradient(135deg, #b8bba1 0%, #9da287 52%, #b0b498 100%);
}

body.menu-open {
    overflow: hidden;
}

img,
video,
iframe,
embed,
object,
svg {
    max-width: 100%;
    height: auto;
}

[class*="grid"] > *,
[class*="flex"] > * {
    min-width: 0;
}

pre,
code,
.code-block,
[class*="code"] {
    max-width: 100%;
    overflow-x: auto;
}

pre code,
.code-block code {
    display: block;
    min-width: 0;
}

.table-wrapper,
[class*="table-"] {
    max-width: 100%;
    overflow-x: auto;
}

p,
li,
td,
th,
dd {
    overflow-wrap: break-word;
}

details {
    height: fit-content;
}

input,
textarea,
select,
button {
    max-width: 100%;
    font: inherit;
}

section {
    position: relative;
    overflow: clip;
}

:where(p, li, blockquote, figcaption, dd, .prose, .seo-text, article)
a:not([class]) {
    color: var(--terracotta-dark);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 0.09em;
    text-underline-offset: 0.18em;
}

:where(p, li, blockquote, figcaption, dd, .prose, .seo-text, article)
a:not([class]):hover {
    color: var(--cocoa);
    text-decoration-thickness: 0.14em;
}

a,
button,
summary {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 3px solid var(--terracotta-dark);
    outline-offset: 4px;
}

::selection {
    color: var(--cream-bright);
    background: var(--terracotta-dark);
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--cocoa);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.04;
    text-wrap: balance;
}

h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(2.45rem, 9vw, 4.7rem);
    letter-spacing: -0.035em;
}

h2 {
    margin-bottom: 1.1rem;
    font-size: clamp(2.05rem, 7vw, 3.7rem);
    letter-spacing: -0.025em;
}

h3 {
    margin-bottom: 0.65rem;
    font-size: clamp(1.45rem, 5vw, 2rem);
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

ul,
ol {
    margin-top: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0, 0, 0, 0);
}

.skip-link {
    position: fixed;
    z-index: 200;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--cream-bright);
    font-weight: 700;
    text-decoration: none;
    background: var(--cocoa);
    border: 2px solid var(--cream-bright);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-medium);
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* ============================================
   SHARED PAPER ENVIRONMENT
   ============================================ */

.site-canvas {
    position: relative;
    width: calc(100% - 1rem);
    max-width: 1540px;
    min-height: calc(100vh - 1rem);
    margin: 0.5rem auto;
    overflow: hidden;
    background-color: var(--cream);
    background-image:
        radial-gradient(circle at 8% 17%, rgba(147, 153, 120, 0.12), transparent 18%),
        radial-gradient(circle at 94% 75%, rgba(183, 111, 84, 0.09), transparent 20%),
        repeating-linear-gradient(98deg, rgba(105, 83, 55, 0.022) 0 1px, transparent 1px 7px),
        linear-gradient(145deg, rgba(255, 255, 255, 0.56), transparent 32%),
        linear-gradient(var(--cream-bright), var(--cream));
    border-radius: 1.2rem 1.7rem 1.35rem 1.9rem;
    box-shadow: var(--shadow-large);
}

.site-canvas::after {
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(115deg, transparent 0 73%, rgba(124, 131, 99, 0.06) 73% 78%, transparent 78%),
        linear-gradient(35deg, transparent 0 82%, rgba(183, 111, 84, 0.045) 82% 88%, transparent 88%);
    mix-blend-mode: multiply;
}

.botanical-border {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background-image: url("/assets/c64d4b2fb264f951825295f64cb60eaf.webp");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: auto 760px;
    opacity: 0.28;
}

.paper-outline {
    position: absolute;
    z-index: 2;
    inset: 0.3rem;
    width: calc(100% - 0.6rem);
    height: calc(100% - 0.6rem);
    overflow: visible;
    pointer-events: none;
    fill: none;
    stroke: rgba(88, 91, 63, 0.75);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.paper-outline path:last-child {
    stroke: rgba(88, 91, 63, 0.45);
    stroke-width: 1;
}

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

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

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

.section-shell {
    width: min(calc(100% - 2rem), var(--content-width));
    margin-inline: auto;
    padding-block: var(--section-space);
}

.paper-panel,
.stitched-panel {
    position: relative;
    color: var(--cocoa);
    background-color: var(--paper);
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 40%),
        repeating-linear-gradient(4deg, rgba(99, 75, 51, 0.025) 0 1px, transparent 1px 6px);
    border: 1px solid rgba(105, 87, 68, 0.35);
    border-radius: 1.4rem 1.1rem 1.55rem 1.15rem;
    box-shadow: var(--shadow-medium), var(--inset-paper);
}

.stitched-panel {
    padding: 1.4rem;
}

.stitched-panel::after {
    position: absolute;
    inset: 0.55rem;
    pointer-events: none;
    content: "";
    border: 2px dashed rgba(92, 74, 58, 0.42);
    border-radius: 1rem 0.85rem 1.1rem 0.9rem;
}

.deckled {
    clip-path: polygon(
        0.5% 2%, 4% 0.8%, 9% 1.6%, 14% 0.4%, 20% 1.3%, 27% 0.5%,
        34% 1.5%, 42% 0.3%, 49% 1.1%, 57% 0.5%, 65% 1.4%, 73% 0.4%,
        81% 1.2%, 89% 0.4%, 96% 1.4%, 99.4% 3%, 98.9% 11%, 99.5% 20%,
        98.8% 30%, 99.5% 41%, 98.9% 52%, 99.4% 64%, 98.8% 75%,
        99.3% 87%, 98.4% 97.5%, 94% 99.2%, 87% 98.5%, 80% 99.4%,
        72% 98.7%, 64% 99.5%, 56% 98.6%, 48% 99.4%, 40% 98.7%,
        32% 99.4%, 24% 98.6%, 16% 99.3%, 8% 98.5%, 1.2% 97%,
        0.8% 88%, 1.4% 78%, 0.7% 66%, 1.3% 54%, 0.6% 43%,
        1.2% 32%, 0.5% 20%
    );
}

.section-heading {
    width: min(100%, 820px);
    margin: 0 auto clamp(2rem, 5vw, 3.5rem);
}

.section-heading--center {
    text-align: center;
}

.section-heading--left {
    margin-left: 0;
    text-align: left;
}

.section-heading > p:last-child {
    max-width: 68ch;
    margin-right: auto;
    margin-bottom: 0;
    margin-left: auto;
    color: var(--ink-muted);
    font-size: clamp(1rem, 2vw, 1.16rem);
}

.section-heading--left > p:last-child {
    margin-left: 0;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    margin-bottom: 0.8rem;
    padding: 0.25rem 0.75rem;
    color: var(--cocoa);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    background: var(--sage-light);
    border: 1px solid rgba(86, 91, 69, 0.3);
    border-radius: 999px;
    box-shadow: var(--shadow-small);
}

/* ============================================
   HEADER AND NAVIGATION
   ============================================ */

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    min-height: 4.5rem;
}

.site-header::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: rgba(249, 242, 226, 0.96);
    border-bottom: 1px solid rgba(91, 81, 62, 0.2);
    box-shadow: 0 5px 16px rgba(75, 60, 42, 0.09);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(calc(100% - 1.5rem), 1320px);
    min-height: 4.5rem;
    margin-inline: auto;
    gap: 0.65rem;
}

.site-brand {
    display: grid;
    grid-template-columns: 2.5rem auto;
    grid-template-rows: auto auto;
    align-items: center;
    min-width: 0;
    color: var(--cocoa);
    text-decoration: none;
}

.site-brand__mark {
    grid-row: 1 / 3;
    width: 2.35rem;
    height: 2.2rem;
    margin-right: 0.4rem;
    overflow: visible;
}

.heart-fill {
    fill: var(--terracotta);
    filter: drop-shadow(0 2px 1px rgba(65, 38, 25, 0.24));
}

.heart-thread {
    fill: none;
    stroke: rgba(91, 48, 36, 0.72);
    stroke-width: 1.35;
    stroke-linecap: round;
}

.heart-outline {
    fill: none;
    stroke: var(--cocoa-soft);
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.site-brand__text {
    align-self: end;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.035em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-brand__descriptor {
    display: none;
    align-self: start;
    margin-top: 0.15rem;
    color: var(--sage-dark);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    min-height: 2.75rem;
    padding: 0.45rem 0.6rem;
    color: var(--cocoa);
    cursor: pointer;
    background: var(--sage-light);
    border: 1px solid rgba(82, 83, 62, 0.38);
    border-radius: 0.65rem;
    box-shadow: var(--shadow-small);
}

.mobile-menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.mobile-menu-toggle__icon {
    display: grid;
    width: 1.5rem;
    gap: 0.28rem;
}

.mobile-menu-toggle__icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon span:first-child {
    transform: translateY(6px) rotate(45deg);
}

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

.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-toggle__icon span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

.primary-nav {
    position: fixed;
    z-index: 70;
    top: var(--header-bottom);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 1rem max(1rem, calc((100vw - 1320px) / 2));
    overflow-y: auto;
    overscroll-behavior: contain;
    visibility: hidden;
    background-color: var(--cream);
    background-image:
        repeating-linear-gradient(4deg, rgba(86, 69, 49, 0.025) 0 1px, transparent 1px 6px),
        linear-gradient(var(--cream-bright), var(--paper));
    border-top: 1px solid rgba(91, 81, 62, 0.24);
    opacity: 0;
    transform: translateY(-0.6rem);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms step-end;
}

.primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 180ms ease, transform 180ms ease, visibility 0ms step-start;
}

.primary-nav__link {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: 0.65rem 0.9rem;
    color: var(--cocoa);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed rgba(93, 83, 65, 0.28);
}

.primary-nav__link:hover {
    color: var(--terracotta-dark);
    background: rgba(217, 220, 199, 0.65);
}

.header-cta,
.cta-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.75rem 1.15rem;
    color: var(--cream-bright);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    text-shadow: 0 1px 1px rgba(64, 34, 24, 0.45);
    background-color: var(--terracotta);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.13), transparent 45%),
        repeating-linear-gradient(92deg, rgba(84, 46, 32, 0.045) 0 1px, transparent 1px 5px);
    border: 2px solid var(--terracotta-dark);
    border-radius: 0.8rem 0.65rem 0.85rem 0.7rem;
    box-shadow:
        inset 0 0 0 3px rgba(255, 240, 211, 0.2),
        inset 0 -3px 4px rgba(84, 43, 31, 0.2),
        0 5px 0 #744330,
        0 9px 15px rgba(65, 43, 29, 0.22);
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.header-cta::after,
.cta-button::after {
    position: absolute;
    inset: 0.38rem;
    pointer-events: none;
    content: "";
    border: 1px dashed rgba(255, 245, 222, 0.78);
    border-radius: 0.5rem;
}

.header-cta {
    justify-content: space-between;
    min-height: 3.5rem;
    margin-top: 1rem;
    gap: 0.8rem;
}

.header-cta:hover,
.cta-button:hover {
    color: var(--white);
    background-color: #c17a5e;
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 0 3px rgba(255, 240, 211, 0.22),
        inset 0 -3px 4px rgba(84, 43, 31, 0.18),
        0 7px 0 #744330,
        0 12px 18px rgba(65, 43, 29, 0.25);
}

.header-cta:active,
.cta-button:active {
    transform: translateY(3px);
    box-shadow:
        inset 0 2px 5px rgba(72, 39, 29, 0.25),
        0 2px 0 #744330,
        0 5px 9px rgba(65, 43, 29, 0.2);
}

.nav-scrim {
    position: fixed;
    z-index: 40;
    inset: var(--header-bottom) 0 0;
    visibility: hidden;
    background: rgba(55, 45, 34, 0.35);
    opacity: 0;
    transition: opacity 180ms ease, visibility 180ms step-end;
}

body.menu-open .nav-scrim {
    visibility: visible;
    opacity: 1;
    transition: opacity 180ms ease, visibility 0ms step-start;
}

/* ============================================
   REUSABLE CTA AND NOTE COMPONENTS
   ============================================ */

.cta-group {
    display: grid;
    justify-items: start;
    gap: 0.9rem;
}

.cta-button {
    min-height: 3.75rem;
    padding: 0.9rem 1.35rem;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 5vw, 1.65rem);
}

.cta-button__arrow {
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: 1.15em;
    transition: transform 160ms ease;
}

.cta-button:hover .cta-button__arrow {
    transform: translateX(3px);
}

.cta-helper {
    max-width: 68ch;
    margin: 0;
    color: var(--ink-muted);
    font-size: 0.91rem;
    line-height: 1.5;
}

.line-icon {
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.paper-note {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    padding: 1.35rem;
    background-color: var(--paper);
    background-image:
        linear-gradient(145deg, rgba(255, 255, 255, 0.65), transparent 42%),
        repeating-linear-gradient(3deg, rgba(91, 68, 47, 0.026) 0 1px, transparent 1px 6px);
    border: 1px solid rgba(103, 84, 65, 0.35);
    border-radius: 0.8rem 1.05rem 0.75rem 1.2rem;
    box-shadow: var(--shadow-medium), var(--inset-paper);
}

.paper-note::after {
    position: absolute;
    inset: 0.42rem;
    pointer-events: none;
    content: "";
    border: 1px dashed rgba(97, 76, 59, 0.34);
    border-radius: 0.55rem 0.8rem 0.5rem 0.9rem;
}

.paper-note__icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    color: var(--cocoa);
    background: var(--sage-light);
    border: 1px solid rgba(83, 84, 64, 0.35);
    border-radius: 46% 54% 48% 52%;
    box-shadow: var(--shadow-small);
}

.paper-note__icon .line-icon {
    width: 2rem;
    height: 2rem;
}

.paper-note__content {
    position: relative;
    z-index: 1;
}

.paper-note__content h3 {
    margin-bottom: 0.4rem;
}

.paper-note__body > :last-child {
    margin-bottom: 0;
}

/* ============================================
   NATIVE DISCLOSURES
   ============================================ */

.disclosure-list {
    display: grid;
    align-items: start;
    gap: 0.85rem;
}

.disclosure-item {
    align-self: start;
    overflow: hidden;
    color: var(--cocoa);
    background-color: var(--cream-bright);
    background-image:
        repeating-linear-gradient(3deg, rgba(89, 66, 48, 0.02) 0 1px, transparent 1px 6px),
        linear-gradient(120deg, rgba(255, 255, 255, 0.65), transparent 55%);
    border: 1px solid rgba(95, 78, 61, 0.42);
    border-radius: 0.65rem 0.9rem 0.6rem 0.85rem;
    box-shadow: var(--shadow-small);
}

.disclosure-item[open] {
    background-color: var(--sage-light);
    border-left: 5px solid var(--terracotta);
}

.disclosure-item summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2rem;
    align-items: center;
    min-height: 3.5rem;
    padding: 0.85rem 1rem;
    gap: 0.75rem;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 700;
    line-height: 1.2;
    list-style: none;
}

.disclosure-item summary::-webkit-details-marker {
    display: none;
}

.disclosure-item summary:hover {
    background: rgba(133, 138, 110, 0.1);
}

.disclosure-chevron {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: var(--terracotta-dark);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 180ms ease;
}

.disclosure-item[open] .disclosure-chevron {
    transform: rotate(180deg);
}

.disclosure-content {
    padding: 0 1rem 1rem;
    color: var(--cocoa-soft);
    animation: disclosure-in 180ms ease both;
}

.disclosure-content > :last-child {
    margin-bottom: 0;
}

@keyframes disclosure-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SHARED CONTENT ELEMENTS
   ============================================ */

.callout {
    padding: 1.1rem 1.2rem;
    color: var(--cocoa);
    background: #eee6c9;
    border-left: 5px solid var(--ochre);
    border-radius: 0.35rem 0.8rem 0.8rem 0.35rem;
    box-shadow: var(--shadow-small);
}

.check-list {
    display: grid;
    padding: 0;
    margin-bottom: 0;
    gap: 0.7rem;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 1.9rem;
}

.check-list li::before {
    position: absolute;
    top: 0.1rem;
    left: 0;
    display: grid;
    place-items: center;
    width: 1.35rem;
    height: 1.35rem;
    color: var(--cream-bright);
    content: "✓";
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--sage-dark);
    border-radius: 50%;
    box-shadow: var(--shadow-small);
}

.table-wrapper {
    position: relative;
    border: 1px solid rgba(77, 75, 56, 0.42);
    border-radius: 0.8rem;
    box-shadow: var(--shadow-medium);
    scrollbar-color: var(--terracotta) var(--sage-light);
}

.table-wrapper:focus-visible {
    outline: 3px solid var(--terracotta-dark);
    outline-offset: 4px;
}

table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    color: var(--cocoa);
    background: rgba(255, 250, 240, 0.88);
}

caption {
    padding: 0.9rem;
    font-weight: 700;
    text-align: left;
}

th,
td {
    padding: 0.85rem;
    text-align: left;
    vertical-align: top;
    border: 1px solid rgba(96, 83, 66, 0.34);
}

thead th {
    font-family: var(--font-display);
    font-size: 1.17rem;
    background: var(--paper-deep);
}

tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--cream-bright);
    box-shadow: 4px 0 8px rgba(70, 55, 40, 0.08);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    padding: 3.5rem 1rem 2rem;
}

.footer-label {
    width: min(100%, 760px);
    margin-inline: auto;
    padding: 1rem 1.25rem;
    text-align: center;
    background-color: var(--paper-deep);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.42), transparent),
        repeating-linear-gradient(3deg, rgba(81, 65, 48, 0.025) 0 1px, transparent 1px 6px);
    border: 2px dashed rgba(91, 72, 54, 0.45);
    border-radius: 0.7rem 0.9rem 0.65rem 1rem;
    box-shadow: var(--shadow-medium);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0.65rem;
    gap: 0.35rem 0.65rem;
}

.footer-nav a {
    min-height: 2.75rem;
    padding: 0.55rem 0.3rem;
    color: var(--cocoa);
    font-weight: 700;
    text-underline-offset: 0.2em;
}

.footer-nav a:hover {
    color: var(--terracotta-dark);
}

.footer-label p {
    max-width: 62ch;
    margin: 0 auto;
    color: var(--ink-muted);
    font-size: 0.91rem;
    line-height: 1.5;
}

/* ============================================
   OPTIONAL REVEAL HOOKS
   ============================================ */

.has-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 420ms ease, transform 420ms ease;
}

.has-reveal [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   TABLET
   ============================================ */

@media (min-width: 768px) {
    .site-canvas {
        width: calc(100% - 2rem);
        min-height: calc(100vh - 2rem);
        margin: 1rem auto;
        border-radius: 1.8rem 2.4rem 1.9rem 2.6rem;
    }

    .botanical-border {
        background-size: 1200px 900px;
        opacity: 0.38;
    }

    .header-inner {
        min-height: 5.25rem;
    }

    .site-header {
        min-height: 5.25rem;
    }

    .site-brand {
        grid-template-columns: 3rem auto;
    }

    .site-brand__mark {
        width: 2.8rem;
        height: 2.65rem;
    }

    .site-brand__text {
        font-size: 2.25rem;
    }

    .site-brand__descriptor {
        display: inline;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .primary-nav {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        width: auto;
        height: auto;
        padding: 0;
        overflow: visible;
        visibility: visible;
        background: transparent;
        border: 0;
        opacity: 1;
        transform: none;
        transition: none;
        gap: 0.6rem;
    }

    .primary-nav__link {
        min-height: 2.75rem;
        padding: 0.5rem 0.85rem;
        font-size: 0.95rem;
        background: var(--sage-light);
        border: 1px solid rgba(80, 84, 62, 0.3);
        border-radius: 0.55rem 0.7rem 0.5rem 0.65rem;
        box-shadow: var(--shadow-small);
    }

    .primary-nav__link:hover {
        transform: translateY(-1px);
    }

    .header-cta {
        min-height: 2.85rem;
        margin-top: 0;
        padding: 0.55rem 1rem;
        font-size: 0.93rem;
    }

    .nav-scrim {
        display: none;
    }

    .paper-note {
        padding: 1.6rem;
    }

    .cta-button {
        padding-inline: 1.7rem;
    }
}

/* ============================================
   DESKTOP
   ============================================ */

@media (min-width: 1024px) {
    .site-canvas {
        width: calc(100% - 3rem);
        margin: 1.5rem auto;
        border-radius: 2.5rem 3.2rem 2.7rem 3.5rem;
    }

    .botanical-border {
        background-size: min(100%, 1600px) auto;
        opacity: 0.54;
    }

    .paper-outline {
        inset: 0.65rem;
        width: calc(100% - 1.3rem);
        height: calc(100% - 1.3rem);
        stroke-width: 1.8;
    }

    .header-inner {
        min-height: 6.5rem;
        padding-inline: 1.5rem;
    }

    .site-header {
        min-height: 6.5rem;
    }

    .site-brand {
        grid-template-columns: 3.8rem auto;
    }

    .site-brand__mark {
        width: 3.5rem;
        height: 3.25rem;
    }

    .site-brand__text {
        font-size: 3rem;
    }

    .site-brand__descriptor {
        font-size: 0.72rem;
    }

    .primary-nav {
        gap: 0.85rem;
    }

    .primary-nav__link {
        min-width: 7.4rem;
        justify-content: center;
        padding-inline: 1.15rem;
    }

    .header-cta {
        min-width: 12rem;
        min-height: 3rem;
    }

    .stitched-panel {
        padding: 2rem;
    }

    .site-footer {
        padding-top: 5rem;
        padding-bottom: 2.5rem;
    }
}

@media (min-width: 1280px) {
    .header-inner {
        padding-inline: 2.25rem;
    }

    .site-brand__text {
        font-size: 3.35rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

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

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

    .has-reveal [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .header-cta:hover,
    .cta-button:hover,
    .primary-nav__link:hover {
        transform: none;
    }
}