:root {
    color-scheme: light;
    --ivory: #f4efe5;
    --paper: #fbf8ef;
    --paper-deep: #e8dfcf;
    --charcoal: #22211e;
    --muted: #706b62;
    --soft: #a59c8d;
    --brown: #6b5746;
    --green: #315545;
    --line: rgba(34, 33, 30, 0.16);
    --line-strong: rgba(34, 33, 30, 0.32);
    --serif: Georgia, "Times New Roman", serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--ivory);
    color: var(--charcoal);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(34, 33, 30, 0.025) 1px, transparent 1px),
        radial-gradient(circle at 20% 12%, rgba(49, 85, 69, 0.08), transparent 24rem);
    background-size: 100% 9px, auto;
}

a {
    color: inherit;
}

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

button,
input {
    font: inherit;
}

.skip-link {
    position: fixed;
    top: -4rem;
    left: 1rem;
    z-index: 20;
    padding: 0.75rem 1rem;
    background: var(--charcoal);
    color: var(--paper);
}

.skip-link:focus {
    top: 1rem;
}

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

.site-header {
    width: min(1120px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.brand {
    text-decoration: none;
    display: grid;
    gap: 2px;
}

.brand strong,
.eyebrow,
.meta-label,
.site-nav,
.site-footer,
.button,
.artifact-id,
.fine-print {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand strong {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: 0.04em;
}

.brand span {
    color: var(--muted);
    font-size: 0.84rem;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--green);
}

.shell {
    width: min(1120px, calc(100vw - 40px));
    margin: 0 auto;
}

.narrow {
    width: min(760px, calc(100vw - 40px));
}

.landing {
    min-height: calc(100vh - 142px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
    gap: clamp(36px, 8vw, 96px);
    align-items: center;
    padding: clamp(56px, 10vh, 112px) 0 72px;
}

.page {
    padding: clamp(54px, 8vw, 96px) 0;
}

.page-header {
    max-width: 780px;
    margin-bottom: 42px;
}

.eyebrow,
.meta-label,
.artifact-id {
    margin: 0 0 16px;
    color: var(--green);
}

h1,
h2,
h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.02;
}

h1 {
    margin: 0;
    font-size: clamp(3.4rem, 9vw, 7.2rem);
    letter-spacing: 0.01em;
    max-width: 900px;
}

h2 {
    margin: 0;
    font-size: clamp(2.25rem, 5.5vw, 4.6rem);
}

h3 {
    margin: 0;
    font-size: clamp(1.35rem, 2.6vw, 2.1rem);
}

.subheadline {
    max-width: 670px;
    margin: 28px 0 0;
    color: var(--brown);
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.3vw, 1.8rem);
    line-height: 1.45;
}

.intro-copy {
    max-width: 570px;
    margin: 34px 0 0;
    color: var(--muted);
}

.intro-copy p {
    margin: 0 0 0.5rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--charcoal);
    padding: 13px 18px;
    text-decoration: none;
    background: transparent;
    color: var(--charcoal);
    cursor: pointer;
}

.button.primary {
    background: var(--charcoal);
    color: var(--paper);
}

.button.secondary:hover,
.button.primary:hover {
    border-color: var(--green);
    background: var(--green);
    color: var(--paper);
}

.photo-panel {
    margin: 0;
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 12px;
}

.photo-panel img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    filter: saturate(0.75) contrast(0.94);
}

.photo-panel figcaption,
.fine-print {
    margin-top: 12px;
    color: var(--muted);
    line-height: 1.5;
}

.quiet-rule {
    height: 1px;
    width: 100%;
    background: var(--line);
    margin: 42px 0;
}

.floor-directory,
.room-grid,
.artifact-grid,
.related-grid {
    display: grid;
    gap: 16px;
}

.floor-directory {
    margin-top: 42px;
}

.floor-card,
.room-card,
.artifact-preview,
.related-link,
.note-card {
    border: 1px solid var(--line);
    background: rgba(251, 248, 239, 0.7);
    text-decoration: none;
}

.floor-card {
    display: grid;
    grid-template-columns: 108px minmax(0, 0.7fr) minmax(0, 1.1fr);
    gap: 22px;
    align-items: start;
    padding: 24px;
}

.floor-card strong,
.floor-card span {
    display: block;
}

.floor-card strong {
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 400;
    line-height: 1.15;
}

.floor-card span,
.floor-card p {
    margin: 0;
    color: var(--muted);
}

.floor-card:hover,
.related-link:hover {
    border-color: var(--green);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
    gap: clamp(34px, 7vw, 82px);
    align-items: start;
}

.room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
}

.room-card,
.note-card {
    padding: 24px;
}

.room-card p,
.artifact-preview p,
.note-card p {
    margin: 12px 0 0;
    color: var(--muted);
}

.artifact-label {
    background: var(--paper);
    border: 1px solid var(--line-strong);
    padding: clamp(28px, 5vw, 54px);
}

.artifact-label h1,
.artifact-label h2 {
    font-size: clamp(2.4rem, 5.6vw, 4.7rem);
}

.metadata {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 34px 0;
}

.metadata section,
.protocol {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.metadata p,
.protocol p {
    margin: 0;
    color: var(--muted);
}

.protocol p {
    color: var(--charcoal);
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.5vw, 2rem);
    line-height: 1.42;
}

.artifact-preview {
    padding: 22px;
}

.artifact-preview h3 {
    margin-top: 8px;
}

.daily-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
    gap: clamp(34px, 7vw, 78px);
    align-items: start;
}

.email-placeholder {
    margin-top: 28px;
    display: grid;
    gap: 10px;
}

.email-placeholder input {
    min-height: 46px;
    border: 1px solid var(--line-strong);
    background: var(--paper);
    padding: 12px 14px;
    color: var(--charcoal);
}

.experienced-note {
    min-height: 1.5rem;
    margin-top: 12px;
    color: var(--green);
}

.related {
    margin-top: 58px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-link {
    padding: 18px;
    color: var(--muted);
}

.about-copy {
    color: var(--muted);
    font-size: 1.08rem;
}

.about-copy p {
    margin: 0 0 1.1rem;
}

.site-footer {
    width: min(1120px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 30px 0 38px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

@media (max-width: 820px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
        gap: 12px 16px;
    }

    .landing,
    .split,
    .daily-layout,
    .floor-card {
        grid-template-columns: 1fr;
    }

    .room-grid,
    .metadata,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .page {
        padding-top: 46px;
    }

    .site-footer {
        flex-direction: column;
    }
}
