/* ============================================================
   PPEBBL.com  --  goblincore reliquary
   palette: warm vellum + olive + sienna + pomegranate + gold
   layout : true masonry, asymmetric tiles
   ============================================================ */

:root {
    --vellum:        #F2E6D0;   /* primary background */
    --tea-ivory:     #E8D4B0;   /* deeper tile bg */
    --moss:          #6B7C4A;   /* mossy olive */
    --marble:        #D8CDB8;   /* cracked marble */
    --ink:           #3B2D1F;   /* oak-gall ink (body) */
    --ink-deep:      #2A1F14;   /* walnut ink (display) */
    --sienna:        #8B5A2B;   /* sienna pencil */
    --pomegranate:   #8B2E2E;   /* warm red */
    --gold:          #C9A04E;   /* burnished gold */

    --oak:           #6B4A2B;   /* secondary ink */

    --gap-shelf:     clamp(18px, 2vw, 32px);
    --tile-pad:      clamp(20px, 2.4vw, 36px);

    --fs-display:    clamp(2.4rem, 5vw, 4.8rem);
    --fs-h2:         clamp(1.7rem, 3vw, 2.6rem);
    --fs-body:       17px;

    --radius-1: 12px 4px 18px 6px;
    --radius-2: 6px 16px 4px 14px;
    --radius-3: 18px 8px 14px 4px;
    --radius-4: 10px 14px 6px 18px;
}

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

html, body {
    margin: 0;
    padding: 0;
    background: var(--vellum);
    color: var(--ink);
    font-family: "Lora", Georgia, serif;
    font-size: var(--fs-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* aged paper background for the whole page */
body {
    background-color: var(--vellum);
    background-image:
        radial-gradient(circle at 18% 22%, rgba(201,160,78,0.08) 0%, rgba(201,160,78,0) 35%),
        radial-gradient(circle at 72% 60%, rgba(139,90,43,0.07) 0%, rgba(139,90,43,0) 40%),
        radial-gradient(circle at 40% 88%, rgba(201,160,78,0.06) 0%, rgba(201,160,78,0) 30%),
        repeating-radial-gradient(circle at 50% 50%, rgba(59,45,31,0.018) 0px, rgba(59,45,31,0.018) 1px, transparent 1px, transparent 3px);
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='14' viewBox='0 0 18 14'><ellipse cx='9' cy='7' rx='7' ry='5' fill='%23D8CDB8' stroke='%233B2D1F' stroke-width='1'/><path d='M3 7 Q6 4 10 6' stroke='%233B2D1F' stroke-width='0.5' fill='none' opacity='0.5'/></svg>") 9 7, default;
}

a, button, .ink-link, .seal-button, .tile, label, input, select, textarea {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='18' viewBox='0 0 20 18'><path d='M10 2 Q14 6 12 10 M10 2 Q6 6 8 10 M8 10 Q6 12 5 14 M12 10 Q14 12 15 14 M10 6 L10 14' stroke='%23C9A04E' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>") 10 9, pointer;
}

/* ---------- particle canvas ---------- */
#dust-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.55;
}

/* ============================================================
   masthead
   ============================================================ */
.masthead {
    position: sticky;
    top: 0;
    z-index: 30;
    background: linear-gradient(180deg, rgba(242,230,208,0.96), rgba(242,230,208,0.86) 70%, rgba(242,230,208,0));
    backdrop-filter: blur(2px);
    border-bottom: 1px solid rgba(59,45,31,0.12);
}

.masthead-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 18px clamp(20px, 4vw, 56px) 14px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.brand-mark {
    transform: translateY(8px) rotate(-4deg);
    display: inline-block;
    filter: drop-shadow(0 2px 0 rgba(59,45,31,0.06));
}

.brand-name {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.015em;
    color: var(--ink-deep);
    line-height: 1;
}

.brand-dot {
    color: var(--pomegranate);
}

.brand-tag {
    font-family: "Caveat", cursive;
    font-size: 1.25rem;
    color: var(--sienna);
    transform: translateY(-2px) rotate(-2deg);
}

.primary-nav {
    display: flex;
    gap: clamp(14px, 2vw, 28px);
    flex-wrap: wrap;
    align-items: baseline;
}

.ink-link {
    position: relative;
    color: var(--ink-deep);
    text-decoration: none;
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 2px 4px 6px;
    transition: color 220ms ease;
}

.ink-link::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: 0;
    height: 6px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'><path d='M0 4 Q12 1 24 4 T48 4 T72 4 T96 4' stroke='%236B7C4A' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 320ms cubic-bezier(.22,.94,.46,1.05);
}

.ink-link:hover { color: var(--moss); }
.ink-link:hover::after { transform: scaleX(1); }

/* ============================================================
   masonry shelves
   ============================================================ */
.rummage {
    max-width: 1320px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 56px) clamp(20px, 4vw, 56px) 80px;
    position: relative;
}

.masonry-shelf {
    column-count: 3;
    column-gap: var(--gap-shelf);
    margin-bottom: clamp(24px, 4vw, 56px);
}

@media (max-width: 1199px) {
    .masonry-shelf { column-count: 2; }
}
@media (max-width: 768px) {
    .masonry-shelf { column-count: 1; }
}

/* tiles */
.tile {
    --curl-dir: 1;
    --rest-rotate: 0deg;
    break-inside: avoid;
    display: block;
    margin: 0 0 var(--gap-shelf);
    padding: var(--tile-pad);
    position: relative;
    border-radius: var(--radius-1);
    background-color: var(--vellum);
    background-image:
        radial-gradient(circle at var(--stain-x1, 25%) var(--stain-y1, 30%), rgba(201,160,78,0.10) 0%, rgba(201,160,78,0) 28%),
        radial-gradient(circle at var(--stain-x2, 65%) var(--stain-y2, 70%), rgba(201,160,78,0.09) 0%, rgba(201,160,78,0) 32%),
        radial-gradient(circle at var(--stain-x3, 85%) var(--stain-y3, 20%), rgba(139,90,43,0.07) 0%, rgba(139,90,43,0) 25%),
        repeating-linear-gradient(var(--paper-angle, 38deg),
            rgba(59,45,31,0.018) 0px,
            rgba(59,45,31,0.018) 1px,
            transparent 1px,
            transparent 4px);
    box-shadow:
        inset 0 0 0 1px rgba(139,90,43,0.10),
        inset 0 -16px 28px -18px rgba(139,90,43,0.18),
        0 1px 0 rgba(59,45,31,0.04),
        0 14px 22px -18px rgba(59,45,31,0.18);
    transform: rotate(var(--rest-rotate));
    transition:
        transform 380ms cubic-bezier(.22,.94,.46,1.05),
        box-shadow 380ms ease;
    overflow: hidden;
    color: var(--ink);
}

/* alternative tile shapes */
.tile:nth-child(2n)   { border-radius: var(--radius-2); }
.tile:nth-child(3n)   { border-radius: var(--radius-3); }
.tile:nth-child(5n)   { border-radius: var(--radius-4); }

/* deeper tile background variant */
.tile.bust-niche,
.tile.specimen-jar,
.tile.cluster-quote {
    background-color: var(--tea-ivory);
}

.tile .tea-stains {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(ellipse at 15% 80%, rgba(139,46,46,0.05) 0%, rgba(139,46,46,0) 30%),
        radial-gradient(ellipse at 88% 12%, rgba(201,160,78,0.10) 0%, rgba(201,160,78,0) 28%);
    mix-blend-mode: multiply;
}

.tile .foxing {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 12% 20%, var(--sienna) 0.6px, transparent 1.2px),
        radial-gradient(circle at 78% 35%, var(--sienna) 0.5px, transparent 1px),
        radial-gradient(circle at 30% 70%, var(--sienna) 0.6px, transparent 1.2px),
        radial-gradient(circle at 60% 84%, var(--sienna) 0.5px, transparent 1px),
        radial-gradient(circle at 92% 78%, var(--sienna) 0.6px, transparent 1.2px),
        radial-gradient(circle at 45% 14%, var(--sienna) 0.4px, transparent 0.9px);
    opacity: 0.35;
}

/* paper-curl on hover */
.tile::after {
    content: "";
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 0;
    height: 0;
    background:
        linear-gradient(135deg, transparent 50%, rgba(139,90,43,0.35) 50%, var(--oak) 70%, var(--ink) 100%);
    clip-path: polygon(100% 100%, 0% 100%, 100% 0%);
    transition: width 380ms cubic-bezier(.22,.94,.46,1.05),
                height 380ms cubic-bezier(.22,.94,.46,1.05);
    pointer-events: none;
    border-radius: 0 0 inherit 0;
}

.tile:hover {
    transform: rotate(calc(var(--curl-dir) * 0.6deg)) translateY(-2px);
    box-shadow:
        inset 0 0 0 1px rgba(139,90,43,0.15),
        inset 0 -16px 28px -18px rgba(139,90,43,0.18),
        0 2px 0 rgba(59,45,31,0.06),
        0 22px 30px -16px rgba(59,45,31,0.28);
}

.tile:hover::after {
    width: 36px;
    height: 36px;
}

/* shake-error pattern */
.tile.shake-error,
.field.shake-error input,
.field.shake-error textarea,
.field.shake-error select {
    animation: shakeError 320ms cubic-bezier(.36,.07,.19,.97);
}

@keyframes shakeError {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-4px); }
    40%  { transform: translateX(4px); }
    60%  { transform: translateX(-3px); }
    80%  { transform: translateX(2px); }
    100% { transform: translateX(0); }
}

/* entrance animations */
.tile {
    opacity: 0;
}
.tile.in-view {
    animation: settleIn 700ms cubic-bezier(.22,.94,.46,1.05) forwards;
}
.tile.in-view.entrance-drift {
    animation-name: driftIn;
}
.tile.in-view.entrance-zoom {
    animation-name: zoomIn;
}
.tile.in-view.entrance-wobble {
    animation-name: wobbleIn;
}

@keyframes driftIn {
    0%   { opacity: 0; transform: translateY(20px) rotate(-1.5deg); }
    100% { opacity: 1; transform: translateY(0) rotate(var(--rest-rotate)); }
}
@keyframes zoomIn {
    0%   { opacity: 0; transform: scale(0.95) rotate(0.6deg); }
    100% { opacity: 1; transform: scale(1) rotate(var(--rest-rotate)); }
}
@keyframes wobbleIn {
    0%   { opacity: 0; transform: translateY(14px) rotate(-2deg); }
    40%  { opacity: 1; transform: translateY(-2px) rotate(1deg); }
    70%  { transform: translateY(0) rotate(-0.4deg); }
    100% { opacity: 1; transform: rotate(var(--rest-rotate)); }
}
@keyframes settleIn {
    0%   { opacity: 0; transform: translateY(18px) rotate(-1deg); }
    100% { opacity: 1; transform: rotate(var(--rest-rotate)); }
}

/* ============================================================
   tile typology
   ============================================================ */

/* ---- vellum slab ---- */
.vellum-slab .display-h {
    font-family: "Playfair Display", Georgia, serif;
    font-size: var(--fs-display);
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.08;
    color: var(--ink-deep);
    margin: 0 0 18px;
    font-feature-settings: "liga" 1, "dlig" 1;
}

.vellum-slab .display-h.smaller {
    font-size: var(--fs-h2);
    line-height: 1.12;
}

.vellum-slab .display-h .rest {
    display: inline;
}

.vellum-slab .lede {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
    color: var(--oak);
    margin: 0 0 18px;
    line-height: 1.5;
}

.vellum-slab .body {
    font-family: "Lora", Georgia, serif;
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--ink);
    margin: 0 0 14px;
}

.vellum-slab .cormorant-h {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    color: var(--oak);
    margin: 0 0 14px;
    line-height: 1.2;
}

.tile-large {
    /* visual emphasis -- the hero anchor */
    padding: clamp(28px, 3vw, 48px);
}

/* drop cap (illuminated manuscript) */
.dropcap {
    float: left;
    display: inline-block;
    margin: 6px 14px 0 0;
    line-height: 0.8;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 900;
    font-size: 4.5em;
    color: var(--pomegranate);
    -webkit-text-stroke: 1px var(--gold);
    text-stroke: 1px var(--gold);
    transform: translateY(-2px) rotate(-1.5deg);
    animation: dropcapFill 700ms ease 200ms both;
}

@keyframes dropcapFill {
    0%   { color: transparent; -webkit-text-stroke-color: var(--gold); transform: translateY(-2px) rotate(-3deg); }
    50%  { color: transparent; -webkit-text-stroke-color: var(--gold); }
    100% { color: var(--pomegranate); -webkit-text-stroke-color: var(--gold); transform: translateY(-2px) rotate(-1.5deg); }
}

.dropcap .cap-letter {
    display: inline-block;
}

/* corner fragment ornament */
.corner-fragment {
    position: absolute;
    right: 12px;
    top: 12px;
    opacity: 0.85;
    pointer-events: none;
}

/* wax seal */
.seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow:
        inset 0 -3px 6px rgba(0,0,0,0.25),
        inset 0 2px 4px rgba(255,255,255,0.18),
        0 2px 4px rgba(59,45,31,0.18);
    transform: rotate(-6deg);
    transition: transform 320ms ease;
    float: right;
}

.seal:hover {
    transform: rotate(2deg) scale(1.06);
}

/* ---- bust niche ---- */
.bust-niche {
    padding: 0;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    display: flex;
    flex-direction: column;
}

.bust-niche.shorter { aspect-ratio: 1 / 1; }

.bust-art {
    flex: 1 1 auto;
    background: linear-gradient(160deg, #F2E6D0 0%, #E8D4B0 60%, #D8CDB8 100%);
    display: block;
    position: relative;
    min-height: 220px;
}

.bust-art svg {
    width: 100%;
    height: 100%;
    display: block;
}

.bust-niche .plaque {
    margin: 0;
    padding: 14px 18px 18px;
    background: var(--vellum);
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--oak);
    line-height: 1.4;
    border-top: 1px dashed rgba(59,45,31,0.25);
}

.bust-niche .plaque em {
    font-weight: 500;
    color: var(--ink-deep);
    font-style: italic;
}

/* ---- pebble cluster ---- */
.pebble-cluster .caveat-h {
    font-family: "Caveat", cursive;
    font-weight: 700;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    color: var(--sienna);
    transform: rotate(-1.2deg);
    margin: 0 0 10px;
    line-height: 1.1;
}
.pebble-cluster .caveat-h.big {
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.pebble-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    margin: 8px 0 14px;
}

.pebble-row.big { gap: 18px; }

.pebble {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: transform 280ms ease;
}

.pebble svg { display: block; }

.pebble:hover {
    transform: translateY(-3px) rotate(-3deg);
}

.pebble.p-1 { transform: rotate(-4deg); }
.pebble.p-2 { transform: rotate(2deg); }
.pebble.p-3 { transform: rotate(-2deg); }
.pebble.p-4 { transform: rotate(3deg); }
.pebble.p-5 { transform: rotate(-1deg); }

.caveat-tag {
    font-family: "Caveat", cursive;
    font-weight: 500;
    font-size: 1rem;
    color: var(--sienna);
    line-height: 1;
    text-align: center;
    transform: rotate(-1deg);
    max-width: 100px;
    white-space: normal;
}

.caveat-tag.big {
    font-size: 1.2rem;
    margin: 6px 0 4px;
    display: block;
    text-align: center;
}

.caveat-inline {
    font-family: "Caveat", cursive;
    color: var(--sienna);
    font-size: 1.15em;
    transform: rotate(-1deg);
    display: inline-block;
}

.annotate {
    font-family: "Lora", Georgia, serif;
    font-size: 0.95rem;
    color: var(--ink);
    margin: 6px 0 0;
    line-height: 1.55;
}

.annotate.big {
    font-size: 1.05rem;
}

/* ---- footnote scrap ---- */
.footnote-scrap {
    background-color: var(--vellum);
    transform: rotate(-1.4deg);
    --rest-rotate: -1.4deg;
    padding: 22px 22px 26px;
    border-radius: 4px 14px 6px 18px;
    position: relative;
}

.footnote-scrap.small {
    padding: 18px 18px 22px;
}

.footnote-scrap .torn-edge {
    position: absolute;
    inset: -1px -1px 0 -1px;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'><path d='M0 0 L0 4 L4 2 L8 5 L14 1 L20 4 L26 2 L32 5 L38 1 L44 4 L50 2 L56 5 L62 2 L68 4 L74 1 L80 5 L86 2 L92 4 L98 1 L100 4 L100 0 Z' fill='%23F2E6D0' stroke='%238B5A2B' stroke-width='0.4' opacity='0.6'/></svg>");
    background-repeat: no-repeat;
    background-size: 100% 8px;
    background-position: top;
    height: 8px;
    transform: translateY(-1px);
}

.footnote-scrap .caveat-note {
    margin: 0;
    font-family: "Caveat", cursive;
    font-weight: 500;
    font-size: 1.4rem;
    line-height: 1.3;
    color: var(--sienna);
    transform: rotate(-0.8deg);
}

.footnote-scrap .caveat-note em {
    color: var(--oak);
    font-style: italic;
}

.footnote-scrap.small .caveat-note { font-size: 1.2rem; }

/* ---- specimen jar ---- */
.specimen-jar {
    text-align: center;
    padding: 22px 18px 24px;
}

.specimen-jar.squarer { aspect-ratio: 1 / 1.05; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.specimen-jar .lens {
    display: inline-flex;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, rgba(255,255,255,0.5), transparent 60%),
        var(--vellum);
    box-shadow:
        inset 0 0 0 2px var(--ink-deep),
        inset 0 -8px 14px rgba(139,90,43,0.18),
        0 4px 8px rgba(59,45,31,0.15);
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.specimen-jar .caveat-tag.big {
    font-style: italic;
    color: var(--sienna);
}

.specimen-jar .annotate {
    color: var(--oak);
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1rem;
}

/* ---- cornice strip ---- */
.cornice-strip {
    position: relative;
    margin: clamp(10px, 2vw, 24px) 0 clamp(20px, 3vw, 40px);
    padding: 14px 18px;
    background: linear-gradient(180deg, var(--marble) 0%, var(--tea-ivory) 100%);
    border-radius: 4px;
    border-top: 1px solid rgba(59,45,31,0.2);
    border-bottom: 1px solid rgba(59,45,31,0.2);
    box-shadow:
        inset 0 0 0 1px rgba(201,160,78,0.18),
        0 1px 0 rgba(255,255,255,0.4) inset;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    overflow: hidden;
}

.cornice-strip::before,
.cornice-strip::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 26px;
    top: 0;
    background: linear-gradient(90deg, var(--tea-ivory) 0%, transparent 100%);
}
.cornice-strip::before { left: 0; }
.cornice-strip::after  { right: 0; transform: scaleX(-1); }

.cornice-label {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--ink-deep);
    z-index: 2;
    white-space: nowrap;
}
.cornice-label span {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 800;
    font-style: normal;
    color: var(--pomegranate);
    margin-right: 6px;
}
.cornice-label.right {
    text-align: right;
}

.meander {
    width: 100%;
    height: 30px;
    display: block;
}

.meander-path {
    stroke-dasharray: 1600;
    stroke-dashoffset: 1600;
    transition: stroke-dashoffset 900ms ease;
}

.cornice-strip.cornice-active .meander-path {
    stroke-dashoffset: 0;
}

/* mini cornice tile (no full strip) */
.cornice-mini {
    background-color: var(--marble);
    border-top: 1px solid rgba(59,45,31,0.2);
    border-bottom: 1px solid rgba(59,45,31,0.2);
}

/* ---- cluster quote ---- */
.cluster-quote {
    text-align: center;
    padding: 28px 22px 22px;
    font-family: "Cormorant Garamond", serif;
    color: var(--ink-deep);
    background-color: var(--tea-ivory);
}

.cluster-quote .pull-quote {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    line-height: 1.35;
    color: var(--ink-deep);
    margin: 0 0 14px;
    quotes: none;
}

.cluster-quote .bracket {
    display: inline-block;
    font-family: "Caveat", cursive;
    font-weight: 700;
    font-size: 4rem;
    line-height: 0.5;
    color: var(--gold);
    transform: translateY(8px);
}

.cluster-quote .bracket.left  { transform: translateY(20px) rotate(-3deg); }
.cluster-quote .bracket.right { transform: translateY(20px) rotate(3deg); }

.cluster-quote .cite {
    margin: 8px 0 0;
    font-family: "Caveat", cursive;
    font-size: 1.1rem;
    color: var(--sienna);
    transform: rotate(-1deg);
}

/* ---- pressed leaf tile ---- */
.pressed-leaf {
    position: relative;
    overflow: hidden;
    min-height: 280px;
}
.pressed-leaf .leaf-bg {
    position: absolute;
    right: -20px;
    top: -10px;
    width: 60%;
    height: 100%;
    opacity: 0.6;
    pointer-events: none;
}
.pressed-leaf .cormorant-h {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    color: var(--oak);
    margin: 0 0 14px;
    position: relative;
    z-index: 2;
}
.pressed-leaf .caveat-note {
    position: relative;
    z-index: 2;
    font-family: "Caveat", cursive;
    font-size: 1.4rem;
    color: var(--sienna);
    line-height: 1.35;
    transform: rotate(-0.6deg);
    max-width: 70%;
    margin: 0;
}

/* ledger list */
.ledger-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: "Lora", Georgia, serif;
    font-size: 1rem;
    line-height: 1.6;
}
.ledger-list li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(59,45,31,0.18);
    color: var(--ink);
}
.ledger-list li:last-child { border-bottom: none; }
.ledger-list strong {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 500;
    color: var(--ink-deep);
}
.ledger-list em {
    color: var(--oak);
    font-style: italic;
}

/* ============================================================
   form (correspondence)
   ============================================================ */
.goblin-form {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-family: "Caveat", cursive;
    font-size: 1.15rem;
    color: var(--sienna);
    transform: rotate(-1deg);
    align-self: flex-start;
}

.field input,
.field textarea,
.field select {
    font-family: "Lora", Georgia, serif;
    font-size: 1rem;
    color: var(--ink);
    background: rgba(242,230,208,0.55);
    border: 1px solid rgba(59,45,31,0.25);
    border-radius: 6px 14px 4px 12px;
    padding: 10px 12px;
    transition: border-color 280ms ease, background 280ms ease;
    outline: none;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: rgba(139,90,43,0.55);
    font-style: italic;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--moss);
    background: rgba(242,230,208,0.85);
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
    border-color: rgba(139,46,46,0.6);
}

.seal-button {
    align-self: flex-start;
    background: transparent;
    border: none;
    padding: 8px 8px 8px 0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--ink-deep);
    transition: transform 320ms cubic-bezier(.22,.94,.46,1.05);
}

.seal-button svg {
    filter: drop-shadow(0 2px 3px rgba(59,45,31,0.25));
    transition: transform 320ms ease;
}

.seal-button:hover { transform: translateY(-1px); }
.seal-button:hover svg { transform: rotate(-8deg) scale(1.05); }

.seal-button:active svg {
    transform: scale(0.92);
}

.form-message {
    min-height: 28px;
    font-family: "Caveat", cursive;
    font-size: 1.2rem;
    color: var(--sienna);
    margin: 4px 0 0;
    transform: rotate(-0.6deg);
}

.form-message.is-error  { color: var(--pomegranate); }
.form-message.is-ok     { color: var(--moss); }

/* ============================================================
   footer
   ============================================================ */
.page-foot {
    max-width: 1320px;
    margin: 0 auto;
    padding: 30px clamp(20px, 4vw, 56px) 60px;
    text-align: center;
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--oak);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.foot-mark {
    color: var(--gold);
    font-size: 1.4rem;
}

/* ============================================================
   responsive tweaks
   ============================================================ */
@media (max-width: 768px) {
    .masthead-inner { flex-direction: column; align-items: flex-start; }
    .primary-nav { padding-top: 4px; }
    .hero-crown .tile-large { padding: 24px; }
    .pressed-leaf .caveat-note { max-width: 100%; }
    .cornice-label { font-size: 0.95rem; }
}
