:root {
    --ink: #1a2421;
    --ink-soft: #3d4a45;
    --spruce: #1e3a34;
    --spruce-mid: #2a5248;
    --brass: #a56b3c;
    --brass-deep: #7a4d28;
    --brass-soft: #edd7c0;
    --paper: #f4efe6;
    --paper-deep: #e7dfd2;
    --foam: rgba(251, 248, 243, 0.82);
    --line: rgba(26, 36, 33, 0.14);
    --line-strong: rgba(26, 36, 33, 0.28);
    --danger: #7a2a24;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
    --sans: "Segoe UI", "Avenir Next", "Trebuchet MS", sans-serif;
    --max: 1120px;
    --shadow: 0 24px 50px rgba(30, 58, 52, 0.08);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 7rem;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(900px 420px at 0% -10%, rgba(165, 107, 60, 0.16), transparent 55%),
        radial-gradient(700px 380px at 100% 0%, rgba(30, 58, 52, 0.1), transparent 50%),
        var(--paper);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--spruce);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--brass-deep);
}

:focus-visible {
    outline: 2px solid var(--brass-deep);
    outline-offset: 3px;
}

::selection {
    background: var(--spruce);
    color: #f6f1e8;
}

h1,
h2,
h3,
.serif {
    font-family: var(--serif);
    font-weight: 560;
    letter-spacing: -0.025em;
    line-height: 1.14;
    color: var(--ink);
}

h1 {
    margin: 0.2rem 0 0.8rem;
    font-size: clamp(1.95rem, 4.8vw, 4.2rem);
}

h2 {
    margin: 0 0 0.7rem;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
}

h3 {
    margin: 0 0 0.4rem;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

p,
li,
dd,
h1,
h2,
h3,
address {
    overflow-wrap: break-word;
}

p {
    margin: 0 0 0.9rem;
}

ul,
ol {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
}

address {
    font-style: normal;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 80;
    background: #fff;
    color: var(--ink);
    padding: 0.55rem 0.8rem;
}

.skip:focus {
    top: 1rem;
}

.spine {
    display: none;
}

.site-shell {
    width: min(var(--max), calc(100% - 1.5rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(244, 239, 230, 0.78);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.utility {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem 1rem;
    flex-wrap: wrap;
    padding: 0.55rem 0.2rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
}

.utility p,
.utility a {
    margin: 0;
    overflow-wrap: anywhere;
}

.utility p {
    color: var(--ink-soft);
}

.bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 4.5rem;
    position: relative;
    min-width: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    margin-right: auto;
}

.brand img {
    width: 44px;
    height: 44px;
    max-width: none;
}

.wordmark {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.wordmark strong {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 560;
}

.wordmark small {
    color: var(--ink-soft);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

.site-nav ul {
    display: flex;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.35rem 0.7rem;
    text-decoration: none;
    color: var(--ink);
    border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    background: rgba(30, 58, 52, 0.08);
    color: var(--spruce);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.65rem 1.05rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    line-height: 1.2;
}

.btn-primary {
    background: var(--spruce);
    color: #f6f1e8;
}

.btn-primary:hover {
    background: var(--spruce-mid);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}

.btn-ghost:hover {
    border-color: var(--spruce);
    color: var(--spruce);
}

.btn-text {
    background: transparent;
    color: var(--spruce);
    border-color: transparent;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--foam);
    padding: 0;
    cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--ink);
    position: relative;
}

.nav-toggle-lines {
    margin: 0 auto;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-lines::before {
    top: -6px;
}

.nav-toggle-lines::after {
    top: 6px;
}

.hero {
    display: grid;
    gap: 1.75rem;
    padding: 2.2rem 0 1.4rem;
}

.eyebrow {
    margin: 0 0 0.45rem;
    color: var(--spruce);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lede {
    font-size: 1.15rem;
    max-width: 42rem;
    color: var(--ink-soft);
}

.hero-actions,
.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1.2rem 0 0;
}

.plate-card {
    background: var(--foam);
    border: 1px solid rgba(26, 36, 33, 0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    border-radius: 1.4rem;
    padding: 1rem 1rem 1.15rem;
}

.plate {
    width: 100%;
    max-height: 340px;
    display: block;
}

.plate .shell-line,
.plate .room {
    fill: none;
    stroke: #1e3a34;
    stroke-width: 1.6;
}

.plate .room {
    fill: rgba(255, 252, 247, 0.7);
    animation: room-glow 8s ease-in-out infinite;
}

.plate .room-b { animation-delay: -2s; }
.plate .room-c { animation-delay: -4s; }
.plate .room-d { animation-delay: -1s; }

.plate .route {
    fill: none;
    stroke: #a56b3c;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-dasharray: 7 9;
    animation: route-drift 16s linear infinite;
}

.plate .node {
    fill: #a56b3c;
}

@keyframes room-glow {
    0%, 100% { fill: rgba(255, 252, 247, 0.55); }
    50% { fill: rgba(237, 215, 192, 0.85); }
}

@keyframes route-drift {
    to { stroke-dashoffset: -220; }
}

.legend {
    display: grid;
    gap: 0.35rem 1rem;
    margin: 0.8rem 0 0;
    padding: 0;
    list-style: none;
}

.legend li {
    margin: 0;
    color: var(--ink-soft);
}

.legend strong {
    color: var(--ink);
    font-weight: 600;
}

.rhythm {
    margin: 0.5rem 0 2.4rem;
    padding: 1rem 0 0.2rem;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.rhythm ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.4rem 0 0.8rem;
    padding: 0;
}

.rhythm li {
    margin: 0;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(30, 58, 52, 0.06);
}

.section {
    padding: 1.2rem 0 2.4rem;
}

.ledger-layout {
    display: grid;
    gap: 1.2rem;
}

.ledger {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line-strong);
}

.ledger li {
    margin: 0;
    display: grid;
    gap: 0.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.ledger a {
    font-family: var(--serif);
    font-size: 1.45rem;
    text-decoration: none;
    color: var(--ink);
}

.ledger a:hover {
    color: var(--brass-deep);
}

.ledger span {
    color: var(--ink-soft);
}

.split {
    display: grid;
    gap: 1.2rem;
    align-items: start;
}

.panel {
    background: var(--foam);
    border: 1px solid rgba(26, 36, 33, 0.08);
    border-radius: 1.25rem;
    padding: 1.15rem 1.15rem 0.4rem;
    backdrop-filter: blur(10px);
}

.panel ul {
    padding-left: 1.1rem;
}

.directory {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.directory li {
    margin: 0;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 0.2rem;
}

.directory strong {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 560;
}

.faq-list {
    display: grid;
    gap: 0.9rem;
}

.faq-list article,
.path article,
.service,
.format,
.legal section {
    padding-bottom: 0.3rem;
}

.faq-list h3 {
    font-size: 1.28rem;
}

.close-band {
    margin: 0.5rem 0 2.4rem;
    padding: 1.5rem 1.2rem;
    border-radius: 1.5rem;
    background:
        linear-gradient(160deg, rgba(165, 107, 60, 0.22), transparent 42%),
        var(--spruce);
    color: #f6f1e8;
}

.close-band h2,
.close-band p,
.close-band a {
    color: #f6f1e8;
}

.close-band a {
    text-decoration-thickness: 1px;
}

.close-band .btn-primary {
    background: #f6f1e8;
    color: #1e3a34;
}

.close-band .btn-primary:hover {
    background: #fff;
    color: #1e3a34;
}

.close-band .btn-ghost {
    color: #f6f1e8;
    border-color: rgba(246, 241, 232, 0.6);
}

.close-band .btn-ghost:hover {
    color: #fff;
    border-color: #fff;
}

.crumbs {
    padding-top: 1.1rem;
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--ink-soft);
}

.crumbs li {
    margin: 0;
    display: flex;
    gap: 0.45rem;
}

.crumbs li:not(:last-child)::after {
    content: "/";
    color: var(--line-strong);
}

.page-intro {
    padding: 1.1rem 0 0.4rem;
    max-width: 46rem;
}

.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 1.6rem;
}

.toc a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    text-decoration: none;
    background: rgba(251, 248, 243, 0.7);
}

.service {
    padding: 1.3rem 0 1.4rem;
    border-top: 1px solid var(--line-strong);
}

.service .purpose {
    font-size: 1.12rem;
    max-width: 44rem;
}

.spec {
    display: grid;
    gap: 0.8rem;
    margin: 0.4rem 0 0;
}

.spec div {
    padding: 0.85rem 0.95rem;
    background: rgba(255, 252, 247, 0.66);
    border-left: 3px solid var(--brass);
    border-radius: 0 0.8rem 0.8rem 0;
}

.spec dt {
    font-weight: 650;
    margin-bottom: 0.2rem;
}

.spec dd {
    margin: 0;
    color: var(--ink-soft);
}

.path {
    display: grid;
    gap: 0;
    margin: 1rem 0 1.4rem;
}

.path article {
    padding: 1.1rem 0 1.1rem 1rem;
    border-left: 2px solid var(--brass);
    border-bottom: 1px solid var(--line);
}

.path h2 {
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
}

.note-grid {
    display: grid;
    gap: 0.9rem;
}

.principles {
    display: grid;
    gap: 0.8rem;
}

.principles article {
    padding: 1rem 1rem 0.3rem;
    background: rgba(255, 252, 247, 0.55);
    border-radius: 1rem;
    border: 1px solid var(--line);
}

.offer-sheet {
    margin: 1rem 0 1.5rem;
    padding: 1.2rem 1.1rem 0.4rem;
    border-radius: 1.3rem;
    background:
        linear-gradient(180deg, rgba(165, 107, 60, 0.18), transparent 18%),
        rgba(251, 248, 243, 0.8);
    border: 1px solid rgba(26, 36, 33, 0.1);
    box-shadow: var(--shadow);
}

.offer-logo {
    width: min(280px, 100%);
    height: auto;
}

.format + .format {
    border-top: 1px solid var(--line);
    margin-top: 0.4rem;
    padding-top: 1rem;
}

.contact-layout {
    display: grid;
    gap: 1.2rem;
    padding-bottom: 2rem;
}

.plaque {
    padding: 1.15rem 1.1rem;
    border-radius: 1.2rem;
    background: var(--spruce);
    color: #f6f1e8;
}

.plaque h2,
.plaque a,
.plaque p {
    color: #f6f1e8;
}

form {
    display: grid;
    gap: 0.85rem;
}

label {
    display: grid;
    gap: 0.3rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    font: inherit;
    color: var(--ink);
    background: #fffdf9;
    border: 1px solid var(--line-strong);
    border-radius: 0.75rem;
    padding: 0.75rem 0.8rem;
    min-height: 48px;
}

textarea {
    min-height: 160px;
    resize: vertical;
}

.check {
    display: grid;
    font-weight: 450;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 0.65rem;
}

.check label {
    display: block;
    font-weight: 450;
}

.check input {
    width: 1.15rem;
    height: 1.15rem;
    min-height: 0;
    margin-top: 0.25rem;
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.status {
    padding: 0.85rem 0.95rem;
    border-radius: 0.8rem;
    background: rgba(30, 58, 52, 0.08);
}

.status.error,
.field-error {
    color: var(--danger);
}

.field-error {
    font-weight: 450;
    font-size: 1rem;
}

.legal {
    padding-bottom: 2rem;
    max-width: 46rem;
}

.legal h2 {
    margin-top: 1.4rem;
    font-size: 1.6rem;
}

.mono {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.95em;
}

.site-footer {
    border-top: 1px solid var(--line-strong);
    padding: 1.6rem 0 2.2rem;
}

.footer-grid {
    display: grid;
    gap: 1.3rem;
}

.footer-name {
    font-family: var(--serif);
    font-size: 1.4rem;
    margin: 0.4rem 0;
}

.footer-label {
    margin: 0 0 0.4rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--spruce);
    font-size: 0.95rem;
}

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin: 0 0 0.3rem;
}

.footer-brand img {
    width: 40px;
    height: 40px;
}

.linkish {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--spruce);
    text-decoration: underline;
    text-underline-offset: 0.18em;
    cursor: pointer;
    min-height: 44px;
}

.legal-line {
    margin-top: 1.2rem;
    color: var(--ink-soft);
}

.missing {
    padding: 1.4rem 0 2.5rem;
}

.cookie-banner,
.cookie-panel {
    position: fixed;
    z-index: 70;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    width: auto;
    margin: 0 auto;
    max-width: 720px;
    max-height: min(70vh, 560px);
    overflow: auto;
    padding: 1rem 1rem 1.05rem;
    border-radius: 1.15rem;
    background: rgba(251, 248, 243, 0.94);
    border: 1px solid rgba(26, 36, 33, 0.12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.cookie-banner[hidden],
.cookie-panel[hidden] {
    display: none;
}

.cookie-banner p,
.cookie-panel p {
    margin-bottom: 0.55rem;
}

#cookie-title,
#cookie-panel-title {
    font-family: var(--serif);
    font-size: 1.35rem;
    margin: 0 0 0.35rem;
}

.cookie-actions,
.choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.cookie-actions .btn {
    flex: 1 1 180px;
    white-space: normal;
    text-align: center;
}

.check-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.6rem;
    align-items: start;
    font-weight: 450;
    margin: 0.55rem 0;
}

.check-row input,
.choice-row input {
    width: 1.15rem;
    height: 1.15rem;
    min-height: 0;
    margin-top: 0.28rem;
}

.choice-row label {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    font-weight: 550;
}

@media (min-width: 700px) {
    .hero {
        grid-template-columns: 1.08fr 0.92fr;
        align-items: center;
        gap: 2rem;
    }

    .legend {
        grid-template-columns: 1fr 1fr;
    }

    .split,
    .contact-layout,
    .note-grid {
        grid-template-columns: 1.15fr 0.85fr;
    }

    .principles {
        grid-template-columns: 1fr 1fr;
    }

    .spec {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1.3fr 0.9fr 0.7fr 0.7fr;
    }

    .site-shell {
        width: min(var(--max), calc(100% - 2.5rem));
    }
}

@media (min-width: 980px) {
    .ledger-layout {
        grid-template-columns: 240px 1fr;
        gap: 2rem;
        align-items: start;
    }

    .sticky-label {
        position: sticky;
        top: 7rem;
    }

    .directory {
        grid-template-columns: 1fr 1fr;
    }

    .directory li {
        padding-right: 1rem;
    }
}

.nav-contact {
    display: none;
}

@media (min-width: 1280px) {
    .spine {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3.2rem;
        padding: 1rem 0;
        border-right: 1px solid var(--line);
        background: rgba(244, 239, 230, 0.9);
    }

    .spine span {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        letter-spacing: 0.12em;
        text-transform: uppercase;
        font-size: 0.9rem;
        color: var(--ink-soft);
    }

    .site-shell {
        margin-left: 4.4rem;
        width: min(var(--max), calc(100% - 6.5rem));
    }
}

@media (max-width: 899px) {
    .header-cta {
        display: none;
    }

    .nav-contact {
        display: list-item;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.4rem);
        left: 0;
        right: 0;
        padding: 0.5rem;
        border-radius: 1rem;
        background: rgba(251, 248, 243, 0.96);
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: block;
        max-height: calc(100vh - 8rem);
        overflow: auto;
    }

    .site-nav ul {
        flex-direction: column;
    }

    body.nav-open {
        overflow: hidden;
    }
}

@media (max-width: 640px) {
    .cookie-actions .btn {
        flex-basis: 100%;
    }
}

@media (max-width: 380px) {
    .wordmark small {
        display: none;
    }

    .brand img {
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .plate .room,
    .plate .route {
        animation: none;
    }
}
