/*
 * Chattora City — site styles.
 * Mobile-first. Palette: warm cream, deep burgundy, restrained earthy accents.
 * No inline styles anywhere (the Content-Security-Policy forbids them).
 */

/* ---------- Fonts (self-hosted, SIL Open Font License; see /assets/fonts) ---------- */
@font-face {
    font-family: "Fraunces";
    src: url("/assets/fonts/fraunces-latin-opsz.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Manrope";
    src: url("/assets/fonts/manrope-latin-wght.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
    --cream: #fbf5ec;
    --parchment: #f3e7d3;
    --sand: #e6d2b0;
    --ink: #2a1a17;
    --muted: #5e4a42;
    --burgundy: #6b1d2a;
    --burgundy-deep: #4a121c;
    --saffron: #d69a3a;
    --saffron-text: #8a5a12;
    --terracotta: #b5573a;
    --on-dark: #fbf5ec;
    --on-dark-muted: #e8d9c4;

    --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --container: 76rem;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --section-space: clamp(4rem, 9vw, 7.5rem);
    --radius: 1.25rem;
    --header-height: 4.5rem;
    --shadow: 0 1px 2px rgba(74, 18, 28, 0.06), 0 12px 32px -12px rgba(74, 18, 28, 0.22);

    color-scheme: light;
}

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

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

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

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

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin: 0;
    text-wrap: balance;
}

p {
    margin: 0 0 1rem;
}

a {
    color: var(--burgundy);
    text-underline-offset: 0.2em;
}

a:hover {
    color: var(--burgundy-deep);
}

:focus-visible {
    outline: 3px solid var(--saffron-text);
    outline-offset: 3px;
    border-radius: 4px;
}

ul[role="list"] {
    list-style: none;
    margin: 0;
    padding: 0;
}

figure {
    margin: 0;
}

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

.container.narrow {
    max-width: 44rem;
}

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

.skip-link {
    position: absolute;
    left: var(--gutter);
    top: -10rem;
    z-index: 100;
    padding: 0.75rem 1.25rem;
    background: var(--burgundy);
    color: var(--on-dark);
    font-weight: 700;
    border-radius: 999px;
}

.skip-link:focus {
    top: 0.75rem;
    color: var(--on-dark);
}

.site-main {
    flex: 1;
}

.site-main:focus {
    outline: none;
}

section[id] {
    scroll-margin-top: calc(var(--header-height) + 1rem);
}

/* ---------- Shared components ---------- */
.eyebrow {
    margin: 0 0 0.85rem;
    color: var(--saffron-text);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2.1rem, 3.6vw + 1rem, 3.5rem);
    font-variation-settings: "opsz" 96;
}

.section-intro {
    margin-top: 1rem;
    max-width: 38rem;
    color: var(--muted);
    font-size: 1.0625rem;
}

.section-head {
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.body-large {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 36rem;
}

.muted {
    color: var(--muted);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    padding: 0.7rem 1.35rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button-large {
    min-height: 3.25rem;
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
}

.button-primary {
    background: var(--burgundy);
    color: var(--on-dark);
}

.button-primary:hover {
    background: var(--burgundy-deep);
    color: var(--on-dark);
}

.button-outline {
    border-color: var(--burgundy);
    color: var(--burgundy);
    background: transparent;
}

.button-outline:hover {
    background: var(--burgundy);
    color: var(--on-dark);
}

.button-ghost {
    color: var(--burgundy);
    background: transparent;
    border-color: rgba(107, 29, 42, 0.25);
}

.button-ghost:hover {
    border-color: var(--burgundy);
    color: var(--burgundy-deep);
}

@media (prefers-reduced-motion: no-preference) {
    .button:hover {
        transform: translateY(-1px);
    }
}

/* Placeholder / sample labelling */
.tag {
    display: inline-block;
    padding: 0.15rem 0.6rem;
    border: 1px dashed currentColor;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    vertical-align: 0.1em;
}

.tbc {
    color: var(--muted);
    font-style: italic;
}

.notice {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
    margin: 0 0 2rem;
    padding: 0.85rem 1.1rem;
    border-left: 4px solid var(--saffron);
    border-radius: 0 0.75rem 0.75rem 0;
    background: rgba(255, 255, 255, 0.55);
    color: var(--ink);
    font-size: 0.9375rem;
}

.notice .tag {
    color: var(--burgundy);
}

.notice-inline {
    margin: 1.25rem 0 1.5rem;
}

.placeholder-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 0.6rem;
    margin-top: 0.85rem;
    color: var(--muted);
    font-size: 0.8125rem;
}

.placeholder-caption .tag {
    color: var(--burgundy);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 999px 999px var(--radius) var(--radius);
    background: var(--sand);
    box-shadow: var(--shadow);
}

.arch-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.divider {
    height: 24px;
    background: url("/assets/img/placeholders/divider.svg") repeat-x center;
    opacity: 0.7;
}

/* ---------- Preview bar ---------- */
.preview-bar {
    background: var(--ink);
    color: var(--on-dark);
    font-size: 0.8125rem;
    text-align: center;
}

.preview-bar p {
    margin: 0;
    padding-block: 0.55rem;
}

/* ---------- Header and navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 245, 236, 0.94);
    border-bottom: 1px solid rgba(107, 29, 42, 0.12);
}

@supports (backdrop-filter: blur(8px)) {
    .site-header {
        background: rgba(251, 245, 236, 0.85);
        backdrop-filter: saturate(1.4) blur(10px);
    }
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-height);
}

.brand {
    display: flex;
    flex-direction: column;
    color: var(--burgundy);
    text-decoration: none;
    line-height: 1.1;
}

.brand:hover {
    color: var(--burgundy-deep);
}

.brand-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    font-variation-settings: "opsz" 48;
    letter-spacing: -0.01em;
}

.brand-tagline {
    color: var(--muted);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(107, 29, 42, 0.25);
    border-radius: 999px;
    background: transparent;
    color: var(--burgundy);
    cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 1.15rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars {
    position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bars::before {
    top: -6px;
}

.nav-toggle-bars::after {
    top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile: navigation is a drop-down panel opened by the toggle. */
.site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: var(--cream);
    border-bottom: 1px solid rgba(107, 29, 42, 0.12);
    box-shadow: 0 18px 30px -18px rgba(74, 18, 28, 0.35);
}

.site-nav[data-open] {
    display: block;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li + li {
    border-top: 1px solid rgba(107, 29, 42, 0.1);
}

.nav-link {
    display: block;
    padding: 0.95rem 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 500;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--burgundy);
}

.nav-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (min-width: 64rem) {
    .nav-toggle {
        display: none;
    }

    .site-nav {
        display: flex;
        position: static;
        align-items: center;
        gap: 2rem;
        max-height: none;
        overflow: visible;
        padding: 0;
        background: none;
        border: 0;
        box-shadow: none;
    }

    .nav-list {
        display: flex;
        gap: 1.75rem;
    }

    .nav-list li + li {
        border-top: 0;
    }

    .nav-link {
        padding: 0.5rem 0;
        font-family: var(--font-body);
        font-size: 0.9375rem;
        font-weight: 600;
        background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 2px;
        transition: background-size 0.25s ease, color 0.2s ease;
    }

    .nav-link:hover {
        background-size: 100% 2px;
    }

    .nav-actions {
        display: flex;
        margin-top: 0;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding-block: clamp(2.5rem, 6vw, 5rem) var(--section-space);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    right: -12rem;
    top: -10rem;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214, 154, 58, 0.22), rgba(214, 154, 58, 0) 70%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    gap: clamp(2.5rem, 6vw, 4rem);
    align-items: center;
}

.hero-title {
    font-size: clamp(3.25rem, 11vw + 0.5rem, 7.25rem);
    font-weight: 600;
    font-variation-settings: "opsz" 144;
    line-height: 0.95;
    letter-spacing: -0.025em;
    color: var(--burgundy);
}

.hero-lead {
    margin: 1.5rem 0 2rem;
    max-width: 30rem;
    color: var(--muted);
    font-size: clamp(1.125rem, 1vw + 0.9rem, 1.375rem);
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero-call {
    margin-top: 1.25rem;
    font-weight: 600;
}

.hero-media {
    position: relative;
    max-width: 30rem;
    width: 100%;
    justify-self: center;
}

.hero-media .arch-frame {
    /* offset arch "shadow" in parchment, following the frame's shape */
    box-shadow: 1.25rem 1.25rem 0 var(--parchment), var(--shadow);
}

@media (min-width: 48rem) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .hero-media {
        justify-self: end;
    }
}

/* ---------- Sections ---------- */
.section {
    padding-block: var(--section-space);
}

.section-menu {
    background: var(--parchment);
}

/* Homepage floor cards */
.floor-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 48rem) {
    .floor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.floor-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--cream);
    box-shadow: var(--shadow);
}

.floor-media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--sand);
}

.floor-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .floor-card:hover .floor-media img {
        transform: scale(1.04);
    }
}

.floor-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.5rem 1.5rem 1.75rem;
}

.floor-name {
    font-size: clamp(1.5rem, 1vw + 1.2rem, 1.9rem);
    font-variation-settings: "opsz" 48;
    color: var(--burgundy);
}

.floor-summary {
    flex: 1;
    margin: 0;
    color: var(--muted);
}

/* ---------- Menu page ---------- */
.page-head {
    padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem);
    background: var(--parchment);
}

.page-title {
    font-size: clamp(2.75rem, 7vw + 0.5rem, 5rem);
    font-weight: 600;
    font-variation-settings: "opsz" 144;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--burgundy);
}

.floor-switch ul,
.menu-categories ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.floor-switch {
    margin-top: 1.75rem;
}

.floor-switch-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--burgundy);
    border-radius: 999px;
    color: var(--burgundy);
    font-weight: 700;
    text-decoration: none;
}

.floor-switch-link:hover,
.floor-switch-link:focus-visible {
    background: var(--burgundy);
    color: var(--on-dark);
}

.menu-floor {
    scroll-margin-top: var(--header-height);
}

.menu-floor + .menu-floor {
    border-top: 1px solid rgba(107, 29, 42, 0.15);
}

.menu-floor-head {
    margin-bottom: 1.75rem;
}

.menu-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.menu-photos img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius);
    object-fit: cover;
}

.menu-categories {
    position: sticky;
    top: var(--header-height);
    z-index: 5;
    margin: 0 calc(var(--gutter) * -1) 2rem;
    padding: 0.75rem var(--gutter);
    background: var(--cream);
    border-bottom: 1px solid rgba(107, 29, 42, 0.12);
}

.menu-categories ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
}

.menu-categories a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: var(--parchment);
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.menu-categories a:hover,
.menu-categories a:focus-visible {
    background: var(--sand);
}

.menu-section {
    margin-bottom: 2.75rem;
    scroll-margin-top: calc(var(--header-height) + 4.5rem);
}

/* Desktop: newspaper columns so short and long sections pack without gaps. */
@media (min-width: 64rem) {
    .menu-sections {
        columns: 2;
        column-gap: 4rem;
    }

    .menu-section-title {
        break-after: avoid;
    }

    .menu-item {
        break-inside: avoid;
    }
}

.menu-section-title {
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--saffron);
    font-size: 1.5rem;
    font-variation-settings: "opsz" 36;
    color: var(--burgundy);
}

.menu-items {
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-item {
    padding-block: 0.85rem;
    border-bottom: 1px solid rgba(107, 29, 42, 0.1);
}

.menu-item-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.menu-item-name {
    font-weight: 700;
}

.menu-item-price {
    flex-shrink: 0;
    color: var(--burgundy);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.menu-item-price-tbc {
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 600;
    font-style: italic;
}

.menu-item-desc {
    margin: 0.3rem 0 0;
    max-width: 38rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.menu-notes {
    padding-block: 0 var(--section-space);
}

.menu-notes-list {
    margin: 0;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    background: var(--parchment);
    color: var(--muted);
    font-size: 0.9375rem;
    list-style: none;
}

/* About */
.about-grid {
    display: grid;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.about-media {
    max-width: 26rem;
    width: 100%;
    justify-self: center;
}

.arch-frame-soft {
    aspect-ratio: 4 / 5;
}

@media (min-width: 48rem) {
    .about-grid {
        grid-template-columns: 0.85fr 1.15fr;
    }

    .about-copy .section-title {
        max-width: 18ch;
    }
}

/* Gallery (dark band for contrast and rhythm) */
.section-gallery {
    background: var(--burgundy-deep);
    color: var(--on-dark);
}

.section-gallery .eyebrow {
    color: var(--saffron);
}

.section-gallery .section-intro {
    color: var(--on-dark-muted);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: clamp(9rem, 38vw, 13rem);
    grid-auto-flow: dense;
    gap: 0.75rem;
}

.gallery-item-1,
.gallery-item-5 {
    grid-column: span 2;
}

.gallery-item-2 {
    grid-row: span 2;
}

@media (min-width: 48rem) {
    .gallery-grid {
        grid-template-columns: repeat(12, 1fr);
        grid-auto-rows: clamp(8rem, 13vw, 12rem);
        gap: 1rem;
    }

    .gallery-item-1 {
        grid-column: 1 / 8;
        grid-row: 1 / 3;
    }

    .gallery-item-2 {
        grid-column: 8 / 13;
        grid-row: 1 / 4;
    }

    .gallery-item-3 {
        grid-column: 1 / 4;
        grid-row: 3 / 5;
    }

    .gallery-item-4 {
        grid-column: 4 / 8;
        grid-row: 3 / 5;
    }

    .gallery-item-5 {
        grid-column: 8 / 13;
        grid-row: 4 / 5;
    }
}

.gallery-item figure {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--burgundy);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Visit */
.visit-grid {
    display: grid;
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: start;
}

@media (min-width: 56rem) {
    .visit-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.contact-list {
    margin: 2rem 0;
}

.contact-row {
    display: grid;
    gap: 0.15rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(107, 29, 42, 0.14);
}

.contact-row:last-child {
    border-bottom: 1px solid rgba(107, 29, 42, 0.14);
}

@media (min-width: 30rem) {
    .contact-row {
        grid-template-columns: 9.5rem 1fr;
        gap: 1rem;
    }
}

.contact-list dt {
    color: var(--saffron-text);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-list dd {
    margin: 0;
    font-size: 1.0625rem;
}

.preserve-lines {
    white-space: pre-line;
}

.visit-subtitle {
    margin: 2rem 0 0.75rem;
    font-size: 1.2rem;
    font-variation-settings: "opsz" 36;
    color: var(--burgundy);
}

.booking-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.visit-card {
    align-self: start;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--radius);
    background: var(--parchment);
    box-shadow: var(--shadow);
}

.visit-card-title {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    font-variation-settings: "opsz" 36;
    color: var(--burgundy);
}

.visit-card p {
    margin: 0 0 0.6rem;
    color: var(--muted);
}

.visit-card p:last-child {
    margin-bottom: 0;
}

/* Error pages */
.section-error {
    padding-block: clamp(4rem, 12vw, 8rem);
}

.section-error .section-intro {
    margin-bottom: 2rem;
}

.page-minimal {
    justify-content: center;
}

.minimal-main {
    flex: 1;
}

.debug {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 1rem;
    border-radius: 0.75rem;
    background: var(--parchment);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--burgundy-deep);
    color: var(--on-dark);
    padding-top: clamp(3.5rem, 7vw, 5rem);
}

.site-footer a {
    color: var(--on-dark);
}

.site-footer a:hover {
    color: var(--saffron);
}

.site-footer :focus-visible {
    outline-color: var(--on-dark);
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 48rem) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 64rem) {
    .footer-grid {
        grid-template-columns: 1.2fr 0.9fr 1.5fr 0.9fr 1fr;
    }
}

.footer-name {
    margin-bottom: 0.25rem;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    font-variation-settings: "opsz" 72;
    line-height: 1.1;
}

.footer-descriptor {
    color: var(--on-dark-muted);
}

.footer-heading {
    margin-bottom: 1rem;
    color: var(--saffron);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-address {
    margin: 0 0 0.75rem;
    font-style: normal;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.footer-line {
    margin: 0 0 0.4rem;
    font-size: 0.9375rem;
}

.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.site-footer .tbc {
    color: var(--on-dark-muted);
    font-size: 0.875rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    margin-top: clamp(3rem, 6vw, 4rem);
    padding-block: 1.5rem;
    border-top: 1px solid rgba(251, 245, 236, 0.18);
    color: var(--on-dark-muted);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
}

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