:root {
    --ink: #24170f;
    --walnut: #3b2518;
    --oxblood: #6e1f22;
    --brass: #b98948;
    --moss: #234334;
    --blue-door: #163f4d;
    --parchment: #f3e8d0;
    --paper: #fff8e8;
    --shadow: rgba(26, 13, 6, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--walnut);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(185, 137, 72, 0.18), transparent 30rem),
        linear-gradient(180deg, #2d1d14 0, #5a3725 24rem, var(--parchment) 24rem);
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    background: rgba(36, 23, 15, 0.92);
    color: var(--paper);
    border-bottom: 1px solid rgba(185, 137, 72, 0.45);
    backdrop-filter: blur(12px);
}

.brand,
.site-nav {
    display: flex;
    align-items: center;
}

.brand {
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.15rem;
    letter-spacing: 0;
    white-space: nowrap;
}

.brand-mark,
.crest {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(185, 137, 72, 0.85);
    background:
        radial-gradient(circle, rgba(185, 137, 72, 0.28), transparent 63%),
        var(--blue-door);
    color: #f7dfaa;
    font-weight: 700;
}

.brand-mark {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: inset 0 0 0 3px rgba(36, 23, 15, 0.45);
}

.site-nav {
    gap: clamp(0.5rem, 2vw, 1.25rem);
    flex-wrap: wrap;
    justify-content: flex-end;
    font-size: 0.95rem;
}

.site-nav a {
    padding: 0.35rem 0;
    color: rgba(255, 248, 232, 0.82);
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

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

.hero {
    position: relative;
    display: grid;
    min-height: min(760px, calc(100vh - 4rem));
    padding: clamp(1.5rem, 4vw, 4rem);
    overflow: hidden;
    border-bottom: 6px double rgba(185, 137, 72, 0.55);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(36, 23, 15, 0.2), rgba(36, 23, 15, 0.28) 48%, rgba(36, 23, 15, 0.76)),
        linear-gradient(0deg, rgba(36, 23, 15, 0.48), transparent 42%);
}

.hero-copy {
    position: relative;
    z-index: 1;
    align-self: center;
    justify-self: end;
    width: min(34rem, 100%);
    color: var(--paper);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.eyebrow,
.section-kicker {
    margin: 0 0 0.75rem;
    color: #e8be75;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 1rem;
    font-size: clamp(3.2rem, 8vw, 7rem);
    line-height: 0.92;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.55rem, 3vw, 2.45rem);
    line-height: 1.05;
    letter-spacing: 0;
}

p {
    line-height: 1.65;
}

.lede {
    max-width: 31rem;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    min-height: 2.85rem;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.15rem;
    border: 1px solid var(--brass);
    text-decoration: none;
    font-weight: 700;
}

.button.primary {
    background: var(--brass);
    color: #21150f;
}

.button.secondary {
    color: var(--paper);
    background: rgba(36, 23, 15, 0.44);
}

.band,
.notice-board,
.ledger,
.timeline,
.guestbook-keeper,
.guestbook-archive,
.guestbook-codex,
.security-profile,
.security-stats {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.band {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(18rem, 0.9fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    padding: clamp(2rem, 5vw, 4rem) 0;
}

.crest {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 50%;
    font-size: 3.4rem;
    box-shadow: 0 1rem 2.5rem var(--shadow), inset 0 0 0 5px rgba(36, 23, 15, 0.42);
}

.ledger,
.timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
    padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 6vw, 5rem);
}

.ledger article,
.timeline article {
    position: relative;
    padding: 1.35rem;
    background: rgba(255, 248, 232, 0.88);
    border: 1px solid rgba(105, 72, 45, 0.28);
    border-radius: 8px;
    box-shadow: 0 1rem 2rem rgba(91, 58, 34, 0.12);
}

.timeline article::before {
    content: "";
    position: absolute;
    inset: 0.45rem;
    border: 1px solid rgba(185, 137, 72, 0.35);
    border-radius: 5px;
    pointer-events: none;
}

.timeline span {
    display: block;
    margin-bottom: 1rem;
    color: var(--oxblood);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.notice {
    border-top: 1px solid rgba(105, 72, 45, 0.26);
}

.intro .section-kicker,
.notice.band .section-kicker,
.security-profile .section-kicker,
.contact-copy .section-kicker,
.memorial-card .section-kicker,
.remembrance-note .section-kicker {
    color: var(--oxblood);
}

.notice-board {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.35rem);
    padding: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: clamp(3rem, 6vw, 5rem);
    background:
        linear-gradient(90deg, rgba(255, 248, 232, 0.05), transparent 16%, rgba(36, 23, 15, 0.12) 17%, transparent 18%),
        linear-gradient(180deg, #5d3823, #3d2518);
    border: 1px solid rgba(185, 137, 72, 0.32);
    border-radius: 8px;
    box-shadow: 0 1.5rem 2.5rem rgba(91, 58, 34, 0.18);
}

.notice-heading {
    grid-column: 1 / -1;
    max-width: 42rem;
    padding: 1.25rem 0 0.35rem;
    color: var(--paper);
}

.notice-heading h2 {
    text-shadow: 0 0.15rem 0.7rem rgba(36, 23, 15, 0.42);
}

.notice-sheet {
    position: relative;
    isolation: isolate;
    display: block;
    overflow: hidden;
    min-height: 14rem;
    padding: 2.35rem 1.15rem 1.2rem;
    color: var(--ink);
    background:
        radial-gradient(circle at 18% 16%, rgba(113, 72, 36, 0.18), transparent 4.2rem),
        radial-gradient(circle at 82% 76%, rgba(110, 31, 34, 0.1), transparent 5.5rem),
        radial-gradient(circle at 48% 38%, rgba(185, 137, 72, 0.16), transparent 9rem),
        linear-gradient(100deg, rgba(255, 255, 255, 0.18), transparent 28%, rgba(92, 55, 29, 0.08) 58%, transparent),
        #ead39f;
    border: 1px solid rgba(92, 55, 29, 0.48);
    border-radius: 5px 2px 7px 3px;
    box-shadow: 0 1.25rem 2rem rgba(36, 23, 15, 0.26), 0 0.15rem 0 rgba(105, 72, 45, 0.22);
    transform: rotate(-1.1deg);
}

.notice-sheet:nth-of-type(2) {
    transform: rotate(1deg);
}

.notice-sheet:nth-of-type(3) {
    transform: rotate(-0.35deg);
}

.notice-sheet::before {
    content: "";
    position: absolute;
    top: 0.72rem;
    left: 50%;
    z-index: 2;
    width: 1rem;
    height: 1rem;
    background:
        radial-gradient(circle at 35% 35%, #fff1bd 0 0.14rem, transparent 0.15rem),
        radial-gradient(circle, #c4944e, #6b401f);
    border: 1px solid rgba(75, 43, 20, 0.65);
    border-radius: 50%;
    box-shadow: 0 0.2rem 0.25rem rgba(36, 23, 15, 0.34);
    transform: translateX(-50%);
}

.notice-sheet:first-of-type::after {
    content: "";
    position: absolute;
    right: -3.8rem;
    bottom: -4.6rem;
    z-index: 0;
    width: min(17rem, 88%);
    aspect-ratio: 1;
    background: url("assets/watermarks/coffee-ring.png") center / contain no-repeat;
    opacity: 0.18;
    mix-blend-mode: multiply;
    pointer-events: none;
    transform: rotate(19deg);
}

.notice-sheet > * {
    position: relative;
    z-index: 1;
}

.notice-sheet span {
    display: block;
    margin-bottom: 0.85rem;
    color: var(--oxblood);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.notice-sheet strong {
    display: block;
    margin-bottom: 0.75rem;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.18;
}

.notice-sheet p {
    color: rgba(36, 23, 15, 0.78);
    line-height: 1.5;
    margin-bottom: 0;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 2rem 1rem;
    background: var(--ink);
    color: rgba(255, 248, 232, 0.78);
}

.site-footer p {
    margin: 0;
}

.page {
    background:
        radial-gradient(circle at 100% 8rem, rgba(35, 67, 52, 0.15), transparent 26rem),
        var(--parchment);
    min-height: 75vh;
}

.page-hero {
    --hero-photo: none;
    --hero-photo-position: center;
    --hero-tint: rgba(60, 37, 24, 0.7);
    --hero-photo-opacity: 0.34;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: clamp(22rem, 42vw, 34rem);
    padding: clamp(4rem, 10vw, 7rem) clamp(1rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4rem);
    color: var(--paper);
    background:
        linear-gradient(135deg, rgba(36, 23, 15, 0.93), rgba(60, 37, 24, 0.82)),
        var(--walnut);
    border-bottom: 6px double rgba(185, 137, 72, 0.5);
}

.stay-hero::before,
.stay-hero::after,
.security-hero::before,
.security-hero::after,
.memorial-hero::before,
.memorial-hero::after,
.guestbook-hero::before,
.guestbook-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.stay-hero::before,
.security-hero::before,
.memorial-hero::before,
.guestbook-hero::before {
    z-index: 0;
    background-image: var(--hero-photo);
    background-position: var(--hero-photo-position);
    background-size: cover;
    filter: saturate(0.72) contrast(0.9) sepia(0.34);
    opacity: var(--hero-photo-opacity);
    -webkit-mask-image: linear-gradient(90deg, transparent 0 42%, #000 58%, #000 72%, transparent 94%);
    mask-image: linear-gradient(90deg, transparent 0 42%, #000 58%, #000 72%, transparent 94%);
}

.stay-hero::after,
.security-hero::after,
.memorial-hero::after,
.guestbook-hero::after {
    z-index: 0;
    background:
        linear-gradient(90deg, transparent 0 38%, var(--hero-tint) 54%, var(--hero-tint) 82%, transparent 100%),
        linear-gradient(90deg, transparent 0 42%, rgba(36, 23, 15, 0.56) 58%, rgba(36, 23, 15, 0.78) 86%, transparent 100%);
    mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(90deg, transparent 0 38%, #000 54%, #000 84%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0 38%, #000 54%, #000 84%, transparent 100%);
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero h1,
.page-hero p {
    width: min(900px, 100%);
}

.page-hero p:last-child {
    margin-bottom: 0;
    font-size: 1.25rem;
}

.stay-hero {
    --hero-photo: url("assets/photos/house/house-aerial-autumn.jpg");
    --hero-photo-position: center 40%;
    --hero-tint: rgba(185, 137, 72, 0.92);
    background-color: var(--walnut);
}

.security-hero {
    --hero-photo: url("assets/photos/house/security-winter-walk.jpg");
    --hero-photo-position: center 58%;
    --hero-tint: rgba(35, 67, 52, 0.94);
    background:
        linear-gradient(135deg, rgba(36, 23, 15, 0.9), rgba(35, 67, 52, 0.84)),
        var(--moss);
}

.contact-hero {
    background:
        linear-gradient(135deg, rgba(36, 23, 15, 0.92), rgba(22, 63, 77, 0.78)),
        var(--blue-door);
}

.memorial-hero {
    --hero-photo: url("assets/photos/house/snowy-front-yard.jpg");
    --hero-photo-position: center 54%;
    --hero-tint: rgba(110, 31, 34, 0.94);
    background:
        linear-gradient(135deg, rgba(36, 23, 15, 0.92), rgba(110, 31, 34, 0.72)),
        var(--oxblood);
}

.guestbook-hero {
    --hero-photo: url("assets/photos/house/brass-kettle-bar.jpg");
    --hero-photo-position: center 38%;
    --hero-tint: rgba(185, 137, 72, 0.92);
    background-color: var(--walnut);
}

.ledger,
.timeline {
    padding-top: clamp(2rem, 5vw, 4rem);
}

.guestbook-keeper {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 2rem);
    align-items: center;
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1rem, 3vw, 2rem);
}

.guestbook-keeper h2 {
    max-width: 48rem;
}

.guestbook-keeper p:last-child {
    max-width: 45rem;
    margin-bottom: 0;
}

.guestbook-keeper .section-kicker,
.guestbook-codex .section-kicker {
    color: #4d1718;
    text-shadow: 0 1px 0 rgba(255, 248, 232, 0.7);
}

.guestbook-archive {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    padding: 0 0 clamp(1rem, 3vw, 2rem);
}

.guestbook-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    grid-column: span 3;
    min-height: 17rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    background:
        linear-gradient(135deg, rgba(255, 248, 232, 0.46), rgba(243, 232, 208, 0.2)),
        url("assets/lore-parchment-bg.png") center / cover,
        var(--paper);
    border: 1px solid rgba(105, 72, 45, 0.34);
    border-radius: 8px;
    box-shadow:
        0 1rem 2.5rem rgba(91, 58, 34, 0.14),
        inset 0 0 0 1px rgba(255, 248, 232, 0.38),
        inset 0 0 2.75rem rgba(91, 58, 34, 0.12);
}

.guestbook-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 12% 14%, rgba(105, 72, 45, 0.12), transparent 8rem),
        radial-gradient(circle at 86% 78%, rgba(185, 137, 72, 0.12), transparent 9rem),
        linear-gradient(180deg, rgba(255, 248, 232, 0.34), transparent 42%);
    pointer-events: none;
}

.guestbook-card > * {
    position: relative;
    z-index: 1;
}

.guestbook-card-large {
    grid-column: span 4;
    grid-row: span 2;
}

.guestbook-card-large::after {
    content: "";
    position: absolute;
    right: -4rem;
    bottom: -5rem;
    z-index: 0;
    width: min(22rem, 62%);
    aspect-ratio: 1;
    background: url("assets/watermarks/coffee-ring.png") center / contain no-repeat;
    opacity: 0.2;
    mix-blend-mode: multiply;
    pointer-events: none;
    transform: rotate(-13deg);
}

.guestbook-card-dark {
    background:
        radial-gradient(circle at 22% 20%, rgba(185, 137, 72, 0.22), transparent 10rem),
        radial-gradient(circle at 84% 86%, rgba(0, 0, 0, 0.38), transparent 11rem),
        linear-gradient(135deg, rgba(36, 23, 15, 0.72), rgba(36, 23, 15, 0.94)),
        url("assets/lore-parchment-bg.png") center / cover,
        linear-gradient(135deg, rgba(59, 37, 24, 0.98), rgba(36, 23, 15, 0.96));
    color: var(--paper);
    border-color: rgba(185, 137, 72, 0.46);
    box-shadow:
        0 1rem 2.5rem rgba(36, 23, 15, 0.24),
        inset 0 0 0 1px rgba(185, 137, 72, 0.2),
        inset 0 0 3rem rgba(0, 0, 0, 0.24);
}

.guestbook-card-dark::before {
    background:
        radial-gradient(ellipse at 12% 16%, rgba(185, 137, 72, 0.22), transparent 7rem),
        radial-gradient(ellipse at 78% 18%, rgba(255, 248, 232, 0.08), transparent 5rem),
        radial-gradient(ellipse at 92% 72%, rgba(0, 0, 0, 0.34), transparent 10rem),
        radial-gradient(ellipse at 34% 96%, rgba(0, 0, 0, 0.22), transparent 8rem),
        linear-gradient(90deg, rgba(0, 0, 0, 0.22), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.26)),
        linear-gradient(180deg, rgba(185, 137, 72, 0.1), transparent 28%, rgba(0, 0, 0, 0.18));
    mix-blend-mode: soft-light;
    opacity: 0.9;
}

.guestbook-index {
    margin-bottom: 0.65rem;
    color: #4d1718;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06rem;
    text-shadow: 0 1px 0 rgba(255, 248, 232, 0.7);
    text-transform: uppercase;
}

.guestbook-card-dark .guestbook-index {
    color: #ffd88f;
    text-shadow: 0 1px 0 rgba(36, 23, 15, 0.8);
}

.guestbook-card h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(1.55rem, 2.3vw, 2.2rem);
}

.guestbook-card p:last-child,
.guestbook-card aside:last-child {
    margin-bottom: 0;
}

.guestbook-card aside {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    background: rgba(185, 137, 72, 0.16);
    border-left: 3px solid var(--brass);
    color: var(--walnut);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.55;
}

.guestbook-codex {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(14rem, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(1rem, 4vw, 3rem);
    padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 6vw, 5rem);
    border-top: 1px solid rgba(105, 72, 45, 0.2);
}

.guestbook-codex::before {
    content: "";
    position: absolute;
    top: 0.25rem;
    right: clamp(0rem, 7vw, 5rem);
    z-index: 0;
    width: clamp(8rem, 22vw, 15rem);
    aspect-ratio: 1;
    background: url("assets/watermarks/gravy-paw.png") center / contain no-repeat;
    opacity: 0.16;
    mix-blend-mode: multiply;
    pointer-events: none;
    transform: rotate(17deg);
}

.guestbook-codex > * {
    position: relative;
    z-index: 1;
}

.guestbook-codex ol {
    display: grid;
    gap: 0.8rem;
    margin: 0;
    padding-left: 1.25rem;
}

.guestbook-codex li {
    padding-left: 0.25rem;
    line-height: 1.6;
}

.security-profile {
    display: grid;
    grid-template-columns: minmax(16rem, 0.75fr) minmax(0, 1.25fr) minmax(12rem, 0.6fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(2.5rem, 6vw, 5rem) 0 2rem;
}

.security-profile-badge {
    align-self: center;
    justify-self: center;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.contact-copy {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-content: start;
    overflow: hidden;
    padding: 1.45rem 1.35rem;
    background:
        linear-gradient(90deg, rgba(92, 55, 29, 0.12), transparent 1.45rem),
        radial-gradient(circle at 86% 18%, rgba(185, 137, 72, 0.22), transparent 5.75rem),
        radial-gradient(circle at 16% 84%, rgba(22, 63, 77, 0.12), transparent 5rem),
        linear-gradient(180deg, rgba(255, 248, 232, 0.96), rgba(234, 211, 159, 0.82));
    border: 2px solid rgba(105, 72, 45, 0.45);
    border-radius: 3px;
    box-shadow: 0 1rem 2rem rgba(91, 58, 34, 0.12);
}

.contact-copy h2 {
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(105, 72, 45, 0.24);
}

.contact-copy .button {
    margin-top: 0.75rem;
}

.map-frame {
    min-height: 28rem;
    overflow: hidden;
    background: rgba(255, 248, 232, 0.88);
    border: 1px solid rgba(105, 72, 45, 0.28);
    border-radius: 8px;
    box-shadow: 0 1rem 2rem rgba(91, 58, 34, 0.12);
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 28rem;
    border: 0;
}

.compact {
    padding-top: 1rem;
}

.memorial-card img,
.photo-strip img {
    display: block;
    width: 100%;
    border: 1px solid rgba(105, 72, 45, 0.28);
    border-radius: 8px;
    box-shadow: 0 1rem 2rem rgba(91, 58, 34, 0.16);
}

.photo-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1rem 0 clamp(3rem, 6vw, 5rem);
}

.photo-strip figure {
    margin: 0;
    padding: 0.5rem;
    background: rgba(255, 248, 232, 0.82);
    border: 1px solid rgba(105, 72, 45, 0.2);
    border-radius: 8px;
}

.photo-strip img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-shadow: none;
}

.photo-strip figcaption {
    padding: 0.65rem 0.25rem 0.15rem;
    color: var(--walnut);
    font-size: 0.88rem;
    font-weight: 700;
}

.memorial-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 5rem) 0 1rem;
}

.memorial-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto auto;
    overflow: hidden;
    gap: 0.85rem;
    padding: clamp(1rem, 2vw, 1.35rem);
    background:
        linear-gradient(135deg, rgba(255, 248, 232, 0.44), rgba(243, 232, 208, 0.14)),
        url("assets/lore-parchment-bg.png") center / cover,
        var(--paper);
    border: 1px solid rgba(105, 72, 45, 0.34);
    border-radius: 8px;
    box-shadow:
        0 1rem 2.5rem rgba(91, 58, 34, 0.14),
        inset 0 0 0 1px rgba(255, 248, 232, 0.38),
        inset 0 0 2.75rem rgba(91, 58, 34, 0.12);
}

.memorial-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 12% 14%, rgba(105, 72, 45, 0.12), transparent 8rem),
        radial-gradient(circle at 86% 78%, rgba(185, 137, 72, 0.12), transparent 9rem),
        linear-gradient(180deg, rgba(255, 248, 232, 0.34), transparent 42%);
    pointer-events: none;
}

.memorial-card img {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    padding: 0.32rem;
    background:
        linear-gradient(135deg, rgba(255, 248, 232, 0.5), rgba(185, 137, 72, 0.13)),
        url("assets/lore-parchment-bg.png") center / cover;
    border: 1px solid rgba(105, 72, 45, 0.24);
    border-radius: 3px;
    filter: sepia(0.28) saturate(0.82) contrast(0.94);
    mix-blend-mode: multiply;
    opacity: 0.94;
    box-shadow:
        0 0.2rem 0.8rem rgba(91, 58, 34, 0.1),
        inset 0 0 1.25rem rgba(91, 58, 34, 0.16);
}

.memorial-card div {
    position: relative;
    z-index: 1;
    order: -1;
    display: flex;
    flex-direction: column;
    min-height: 8.5rem;
}

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

.remembrance-note {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-top: 1px solid rgba(105, 72, 45, 0.22);
}

.remembrance-note::after {
    content: "";
    position: absolute;
    right: clamp(-4rem, -2vw, -1rem);
    bottom: -5.4rem;
    z-index: 0;
    width: clamp(13rem, 26vw, 20rem);
    aspect-ratio: 1;
    background: url("assets/watermarks/pressed-leaf.png") center / contain no-repeat;
    opacity: 0.13;
    mix-blend-mode: multiply;
    pointer-events: none;
    transform: rotate(-18deg);
}

.remembrance-note > * {
    position: relative;
    z-index: 1;
}

.stay-ledger article {
    overflow: hidden;
    min-height: 13rem;
    padding: 1.45rem 1.35rem 1.25rem;
    background:
        linear-gradient(90deg, rgba(92, 55, 29, 0.12), transparent 1.45rem),
        radial-gradient(circle at 86% 18%, rgba(185, 137, 72, 0.22), transparent 5.75rem),
        radial-gradient(circle at 16% 84%, rgba(110, 31, 34, 0.12), transparent 5rem),
        linear-gradient(180deg, rgba(255, 248, 232, 0.96), rgba(234, 211, 159, 0.82));
    border: 2px solid rgba(105, 72, 45, 0.45);
    border-radius: 3px;
    box-shadow: 0 1.1rem 1.8rem rgba(91, 58, 34, 0.16);
}

.stay-ledger article:first-child::before {
    content: "";
    position: absolute;
    right: -5.8rem;
    bottom: -4.2rem;
    z-index: 0;
    width: min(21rem, 108%);
    aspect-ratio: 3 / 2;
    background: url("assets/watermarks/room-key.png") center / contain no-repeat;
    opacity: 0.16;
    mix-blend-mode: multiply;
    pointer-events: none;
    transform: rotate(-9deg);
}

.stay-ledger article::after {
    content: "K";
    position: absolute;
    right: 1rem;
    bottom: 0.85rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    color: rgba(255, 248, 232, 0.9);
    background: rgba(110, 31, 34, 0.86);
    border: 1px solid rgba(185, 137, 72, 0.65);
    border-radius: 50%;
    font-size: 1.15rem;
    font-weight: 700;
    box-shadow: inset 0 0 0 0.2rem rgba(36, 23, 15, 0.18);
}

.stay-ledger article > * {
    position: relative;
    z-index: 1;
}

.stay-ledger h2 {
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(105, 72, 45, 0.24);
}

.stay-ledger p {
    margin-bottom: 0;
    padding-right: 2.6rem;
}

.stay-rules .section-kicker {
    color: var(--oxblood);
}

.memorial-gallery {
    padding-top: 0;
}

.memorial-gallery figure {
    padding: 0.65rem 0.65rem 1.15rem;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.38), transparent 34%, rgba(92, 55, 29, 0.08) 72%, transparent),
        #fff8e8;
    border: 1px solid rgba(105, 72, 45, 0.18);
    border-radius: 3px;
    box-shadow: 0 1rem 1.8rem rgba(91, 58, 34, 0.16), 0 0.08rem 0.18rem rgba(36, 23, 15, 0.12);
    transform: rotate(-1.2deg);
}

.memorial-gallery figure:nth-child(2n) {
    transform: rotate(1.1deg);
}

.memorial-gallery figure:nth-child(3n) {
    transform: rotate(-0.45deg);
}

.memorial-gallery img {
    border: 1px solid rgba(105, 72, 45, 0.2);
    border-radius: 2px;
}

.memorial-gallery figcaption {
    padding-top: 0.78rem;
    color: rgba(59, 37, 24, 0.86);
    font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
    font-size: 1.08rem;
    font-weight: 400;
    text-align: center;
}

.official-portrait {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 23rem);
    margin: 0;
    aspect-ratio: 1;
    isolation: isolate;
    background:
        radial-gradient(circle, rgba(255, 248, 232, 0.95) 0 36%, rgba(91, 58, 34, 0.2) 36.5%, transparent 38%),
        transparent;
    filter: drop-shadow(0 1.25rem 2.25rem var(--shadow));
}

.official-portrait::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: url("assets/security-portrait-frame.png") center / contain no-repeat;
    pointer-events: none;
}

.official-portrait img {
    position: relative;
    z-index: 1;
    width: 68%;
    height: 68%;
    object-fit: cover;
    object-position: 62% 42%;
    border-radius: 50%;
    filter: sepia(0.1) contrast(0.97) saturate(0.9);
    box-shadow: 0 0 0 0.35rem rgba(255, 248, 232, 0.76);
}

.official-portrait figcaption {
    position: absolute;
    z-index: 3;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.7rem;
    color: var(--paper);
    background: rgba(36, 23, 15, 0.82);
    border: 1px solid rgba(185, 137, 72, 0.75);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.security-gallery figure {
    position: relative;
    padding: 0.75rem 0.75rem 3rem;
    background:
        radial-gradient(circle at 18% 12%, rgba(185, 137, 72, 0.14), transparent 6rem),
        linear-gradient(180deg, #fffaf0, #f3e7cf);
    border: 1px solid rgba(105, 72, 45, 0.34);
    border-radius: 2px;
    box-shadow: 0 1.2rem 2rem rgba(91, 58, 34, 0.2), 0 0.1rem 0 rgba(36, 23, 15, 0.12);
    transform: rotate(-1.2deg);
}

.security-gallery figure:nth-child(2) {
    transform: rotate(1deg);
}

.security-gallery figure:nth-child(3) {
    transform: rotate(-0.35deg);
}

.security-gallery figure::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0.75rem;
    right: 0.75rem;
    bottom: 4rem;
    left: 0.75rem;
    background:
        radial-gradient(circle, transparent 46%, rgba(36, 23, 15, 0.28)),
        linear-gradient(180deg, rgba(255, 248, 232, 0.1), rgba(36, 23, 15, 0.12));
    border-radius: 2px;
    pointer-events: none;
}

.security-gallery img {
    border: 0;
    border-radius: 2px;
    filter: sepia(0.16) contrast(0.94) saturate(0.86);
}

.security-gallery figcaption {
    position: absolute;
    right: 0.9rem;
    bottom: 0.55rem;
    left: 0.9rem;
    padding: 0;
    color: var(--walnut);
    font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transform: rotate(-0.5deg);
}

.security-id-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    width: min(14.5rem, 100%);
    margin: 0;
    background:
        linear-gradient(180deg, rgba(255, 248, 232, 0.76), rgba(243, 232, 208, 0.38)),
        url("assets/lore-parchment-bg.png") center / cover,
        var(--paper);
    border: 1px solid rgba(105, 72, 45, 0.42);
    border-radius: 8px;
    box-shadow:
        0 1rem 2rem rgba(91, 58, 34, 0.16),
        inset 0 0 0 1px rgba(255, 248, 232, 0.46);
    transform: rotate(4deg);
}

.security-id-card > * {
    position: relative;
    z-index: 1;
}

.security-id-header {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    padding: 0.55rem 0.75rem;
    background:
        linear-gradient(90deg, rgba(36, 23, 15, 0.16), transparent 18%, transparent 82%, rgba(36, 23, 15, 0.16)),
        linear-gradient(180deg, rgba(35, 67, 52, 0.96), rgba(25, 52, 40, 0.96));
    color: var(--paper);
    font-family: "Courier New", Courier, monospace;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-align: center;
    text-transform: uppercase;
}

.security-id-photo {
    margin: 0;
    padding: 0.85rem 0.85rem 0.55rem;
    background:
        linear-gradient(180deg, rgba(255, 248, 232, 0.78), rgba(185, 137, 72, 0.13)),
        url("assets/lore-parchment-bg.png") center / cover;
}

.security-id-photo img {
    display: block;
    width: min(7.75rem, 100%);
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 4px;
    filter: sepia(0.34) saturate(0.78) contrast(0.92);
    mix-blend-mode: multiply;
    opacity: 0.94;
}

.security-id-details {
    padding: 0.35rem 0.85rem 0.65rem;
    font-family: "Courier New", Courier, monospace;
    text-align: center;
}

.security-id-details strong,
.security-id-details span {
    display: block;
}

.security-id-details strong {
    color: var(--ink);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.08;
}

.security-id-details span {
    margin-top: 0.3rem;
    color: var(--oxblood);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
}

.security-id-details p {
    margin: 0.4rem 0 0;
    color: rgba(36, 23, 15, 0.78);
    font-size: 0.68rem;
    line-height: 1.25;
}

.security-id-barcode {
    min-height: 3.1rem;
    padding: 0.45rem 0.75rem 0.5rem;
    font-family: "Courier New", Courier, monospace;
    color: rgba(36, 23, 15, 0.72);
    font-size: 0.58rem;
    letter-spacing: 0.08rem;
    text-align: center;
    text-transform: uppercase;
    background:
        repeating-linear-gradient(90deg, rgba(36, 23, 15, 0.88) 0 2px, transparent 2px 5px, rgba(36, 23, 15, 0.7) 5px 6px, transparent 6px 10px) center 0.55rem / min(10.5rem, 82%) 1.15rem no-repeat,
        rgba(255, 248, 232, 0.28);
}

.security-id-barcode span {
    display: block;
    padding-top: 1.55rem;
}

.security-stats {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 0 0 clamp(3rem, 6vw, 5rem);
    border-top: 1px solid rgba(105, 72, 45, 0.28);
    border-bottom: 1px solid rgba(105, 72, 45, 0.28);
}

.security-stats::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    right: clamp(0.75rem, 7vw, 5rem);
    z-index: 0;
    width: clamp(13rem, 28vw, 20rem);
    aspect-ratio: 520 / 220;
    background: url("assets/watermarks/inspected-stamp.svg") center / contain no-repeat;
    opacity: 0.18;
    mix-blend-mode: multiply;
    pointer-events: none;
    transform: rotate(-7deg);
}

.security-stats div {
    position: relative;
    z-index: 1;
    padding: 1.3rem clamp(1rem, 3vw, 1.75rem);
    border-right: 1px solid rgba(105, 72, 45, 0.22);
}

.security-stats div:last-child {
    border-right: 0;
}

.security-stats span {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--oxblood);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.security-stats strong {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--ink);
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    line-height: 1.08;
}

.security-stats p {
    margin-bottom: 0;
}

.house-gallery {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
    padding-top: 0;
}

.house-gallery .wide-photo {
    grid-column: span 1;
}

.house-gallery .wide-photo img {
    aspect-ratio: 5 / 3;
}

.house-gallery figure:first-child {
    grid-row: span 2;
}

.house-gallery figure:first-child img {
    height: calc(100% - 2.35rem);
}

.house-gallery figure:last-child {
    grid-column: 1 / -1;
}

.house-gallery figure:last-child img {
    aspect-ratio: 3 / 1;
}

.stay-gallery figure {
    position: relative;
    padding: 0.75rem 0.75rem 2.9rem;
    background:
        radial-gradient(circle at 24% 12%, rgba(185, 137, 72, 0.12), transparent 7rem),
        #fffaf0;
    border: 1px solid rgba(105, 72, 45, 0.32);
    border-radius: 2px;
    box-shadow: 0 1.2rem 2rem rgba(91, 58, 34, 0.2), 0 0.1rem 0 rgba(36, 23, 15, 0.12);
    transform: rotate(-1.3deg);
}

.stay-gallery figure:nth-child(2) {
    transform: rotate(1.1deg);
}

.stay-gallery figure:nth-child(3) {
    transform: rotate(-0.45deg);
}

.stay-gallery figure::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0.75rem;
    right: 0.75rem;
    bottom: 3.9rem;
    left: 0.75rem;
    background: radial-gradient(circle, transparent 45%, rgba(36, 23, 15, 0.28));
    border-radius: 2px;
    pointer-events: none;
}

.stay-gallery img {
    border: 0;
    border-radius: 2px;
    filter: sepia(0.08) contrast(0.96) saturate(0.94);
}

.stay-gallery figcaption {
    position: absolute;
    right: 0.9rem;
    bottom: 0.55rem;
    left: 0.9rem;
    padding: 0;
    color: var(--walnut);
    font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transform: rotate(-0.5deg);
}

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

    .site-nav {
        justify-content: flex-start;
    }

    .hero {
        min-height: 720px;
    }

    .hero::after {
        background:
            linear-gradient(0deg, rgba(36, 23, 15, 0.82), rgba(36, 23, 15, 0.18) 58%),
            linear-gradient(90deg, rgba(36, 23, 15, 0.22), transparent);
    }

    .hero-copy {
        align-self: end;
        justify-self: start;
    }

    .page-hero {
        min-height: clamp(21rem, 70vw, 30rem);
    }

    .stay-hero::before,
    .security-hero::before,
    .memorial-hero::before,
    .guestbook-hero::before {
        opacity: 0.24;
        -webkit-mask-image: linear-gradient(135deg, transparent 0 24%, #000 48%, #000 58%, transparent 82%);
        mask-image: linear-gradient(135deg, transparent 0 24%, #000 48%, #000 58%, transparent 82%);
    }

    .stay-hero::after,
    .security-hero::after,
    .memorial-hero::after,
    .guestbook-hero::after {
        background:
            linear-gradient(135deg, transparent 0 24%, var(--hero-tint) 46%, rgba(36, 23, 15, 0.82) 68%, transparent 100%);
        -webkit-mask-image: linear-gradient(135deg, transparent 0 22%, #000 44%, #000 64%, transparent 86%);
        mask-image: linear-gradient(135deg, transparent 0 22%, #000 44%, #000 64%, transparent 86%);
    }

    .band,
    .notice-board,
    .ledger,
    .timeline,
    .guestbook-keeper,
    .guestbook-codex,
    .security-profile,
    .contact-panel,
    .memorial-pair,
    .security-stats {
        grid-template-columns: 1fr;
    }

    .security-stats div {
        border-right: 0;
        border-bottom: 1px solid rgba(105, 72, 45, 0.22);
    }

    .security-stats div:last-child {
        border-bottom: 0;
    }

    .guestbook-archive {
        grid-template-columns: 1fr;
    }

    .guestbook-card,
    .guestbook-card-large {
        grid-column: 1;
        grid-row: auto;
        min-height: auto;
    }

    .notice-heading {
        border-bottom: 1px solid rgba(105, 72, 45, 0.24);
    }

    .notice-sheet {
        min-height: auto;
    }

    .house-gallery .wide-photo {
        grid-column: span 1;
    }

    .house-gallery figure:first-child {
        grid-row: span 1;
    }

    .house-gallery figure:first-child img,
    .house-gallery figure:last-child img {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .stay-gallery figure,
    .stay-gallery figure:nth-child(2),
    .stay-gallery figure:nth-child(3),
    .security-gallery figure,
    .security-gallery figure:nth-child(2),
    .security-gallery figure:nth-child(3) {
        transform: none;
    }
}

@media (max-width: 520px) {
    .brand {
        white-space: normal;
    }

    .site-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .site-nav a {
        padding: 0.5rem 0;
    }

    .hero {
        min-height: 660px;
        padding: 1rem;
    }

    .hero-image {
        object-position: 38% center;
    }

    .button {
        width: 100%;
    }

    h1 {
        font-size: clamp(3rem, 18vw, 4.4rem);
    }
}
