/* ========================================
   busybeaver — a garden
   ======================================== */

:root {
    --cream: #f7f3e7;
    --cream-2: #efe9d8;
    --ink: #2c3a2e;
    --ink-soft: #44523f;
    --moss: #5f7355;
    --sage: #93a585;
    --bloom: #c26d4f;
    --marigold: #d9a441;
    --bark: #8a6f52;
    --hairline: rgba(44, 58, 46, 0.14);

    --serif-display: 'Fraunces', Georgia, serif;
    --serif-body: 'Newsreader', Georgia, serif;

    --measure: 960px;
    --pad-x: max(clamp(20px, 6vw, 64px), calc((100% - 960px) / 2));

    --s-xs: 12px;
    --s-sm: 18px;
    --s-md: 28px;
    --s-lg: 44px;
    --s-xl: 68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(1200px 500px at 85% -5%, rgba(217, 164, 65, 0.09), transparent 60%),
        radial-gradient(1000px 600px at -10% 30%, rgba(147, 165, 133, 0.12), transparent 55%),
        var(--cream);
    color: var(--ink);
    font-family: var(--serif-body);
    font-optical-sizing: auto;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: var(--moss); text-decoration-color: rgba(95, 115, 85, 0.4); text-underline-offset: 3px; }
a:hover { color: var(--bloom); }

::selection { background: rgba(194, 109, 79, 0.2); }

em { font-style: italic; }

/* Gate (masthead) ------------------------ */
.gate {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--s-md);
    padding: 14px var(--pad-x);
    background: rgba(247, 243, 231, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hairline);
}

.gate-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--serif-display);
    font-weight: 600;
    font-size: 19px;
    color: var(--ink);
    text-decoration: none;
}

.gate-logo { width: 30px; height: 30px; object-fit: contain; }

.gate-nav {
    display: flex;
    gap: var(--s-md);
    font-family: var(--serif-body);
    font-style: italic;
    font-size: 16px;
}

.gate-nav a { text-decoration: none; color: var(--ink-soft); transition: color 0.2s ease; }
.gate-nav a:hover { color: var(--bloom); }
.gate-nav .is-accent { color: var(--bloom); }

/* Entrance (hero) ------------------------ */
.entrance {
    position: relative;
    z-index: 0;
    padding: clamp(64px, 10vh, 110px) var(--pad-x) clamp(90px, 14vh, 140px);
    overflow: hidden;
}

.overline {
    margin: 0 0 var(--s-sm);
    font-family: var(--serif-body);
    font-style: italic;
    font-size: 16px;
    color: var(--moss);
}

.entrance-title {
    margin: 0;
    font-family: var(--serif-display);
    font-weight: 420;
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    line-height: 1.04;
    letter-spacing: -0.015em;
    max-width: 14ch;
}

.entrance-title em {
    font-style: italic;
    color: var(--bloom);
}

.entrance-lede {
    margin: var(--s-md) 0 0;
    max-width: 560px;
    font-size: 18.5px;
    line-height: 1.75;
    color: var(--ink-soft);
}

.entrance-lede em { color: var(--moss); }

.entrance-cta { margin-top: var(--s-lg); }

.walk-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--serif-display);
    font-style: italic;
    font-weight: 500;
    font-size: 18px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1.5px solid var(--bloom);
    padding-bottom: 3px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.walk-link:hover { color: var(--bloom); gap: 12px; }

/* Path bends between sections ------------- */
.bend {
    display: flex;
    justify-content: center;
    color: var(--sage);
    margin: -6px 0;
}

.bend svg { width: 140px; height: 78px; }

.bend--mirror svg { transform: scaleX(-1); }

/* Patches (sections) ---------------------- */
.patch {
    position: relative;
    z-index: 0;
    padding: var(--s-xl) var(--pad-x);
    scroll-margin-top: 80px;
}

.patch-title {
    margin: 0 0 var(--s-md);
    font-family: var(--serif-display);
    font-weight: 480;
    font-size: clamp(1.7rem, 3.6vw, 2.4rem);
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.patch-note {
    margin: calc(var(--s-md) * -0.5) 0 var(--s-md);
    color: var(--ink-soft);
    font-style: italic;
    max-width: 540px;
}

.patch-aside {
    margin: var(--s-md) 0 0;
    font-style: italic;
    color: var(--ink-soft);
    max-width: 640px;
}

/* Beds (questions) ------------------------ */
.beds {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    gap: var(--s-sm);
}

.bed {
    padding: var(--s-md);
    background: rgba(147, 165, 133, 0.13);
    border-radius: 58% 42% 55% 45% / 46% 52% 48% 54%;
    transition: background 0.25s ease, transform 0.25s ease;
}

.bed:nth-child(2n) { border-radius: 45% 55% 42% 58% / 55% 45% 57% 43%; }
.bed:nth-child(3n) { border-radius: 52% 48% 58% 42% / 44% 56% 44% 56%; }

.bed:hover { background: rgba(147, 165, 133, 0.22); transform: translateY(-3px); }

.bed-icon { width: 30px; height: 30px; color: var(--moss); }

.bed h3 {
    margin: 10px 0 6px;
    font-family: var(--serif-display);
    font-weight: 550;
    font-size: 19px;
    line-height: 1.25;
}

.bed p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* Entries (writing) ----------------------- */
.entries { display: flex; flex-direction: column; }

.entries-loading { font-style: italic; color: var(--sage); margin: 0; }

.entry {
    display: flex;
    align-items: baseline;
    gap: var(--s-sm);
    padding: var(--s-sm) 0;
    border-bottom: 1px solid var(--hairline);
    text-decoration: none;
    color: var(--ink);
}

.entry:last-child { border-bottom: none; }

.entry-leaf {
    flex: none;
    width: 14px;
    height: 14px;
    color: var(--sage);
    transform: translateY(1px);
    transition: color 0.2s ease, transform 0.2s ease;
}

.entry:hover .entry-leaf { color: var(--bloom); transform: translateY(1px) rotate(-14deg); }

.entry-title {
    font-family: var(--serif-display);
    font-weight: 500;
    font-size: 21px;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.entry:hover .entry-title { color: var(--bloom); }

.entry-meta {
    margin-left: auto;
    flex: none;
    font-style: italic;
    font-size: 15px;
    color: var(--sage);
    white-space: nowrap;
}

/* Trail (trajectory) ---------------------- */
.trail {
    position: relative;
    max-width: 720px;
    padding-left: 6px;
}

.trail::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 14px;
    bottom: 24px;
    border-left: 1.6px dashed rgba(95, 115, 85, 0.45);
}

.trail-stop {
    position: relative;
    display: flex;
    gap: var(--s-sm);
    padding: 0 0 var(--s-md) 0;
}

.trail-stop:last-child { padding-bottom: 0; }

.trail-marker {
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 4px;
    color: var(--moss);
    background: var(--cream);
    border-radius: 50%;
    z-index: 1;
}

.trail-marker svg { width: 20px; height: 20px; display: block; }

.trail-when {
    display: block;
    font-style: italic;
    font-size: 15px;
    color: var(--sage);
}

.trail-body h3 {
    margin: 2px 0 4px;
    font-family: var(--serif-display);
    font-weight: 520;
    font-size: 19.5px;
    line-height: 1.3;
}

.trail-body p {
    margin: 0;
    font-size: 15.5px;
    color: var(--ink-soft);
}

.trail-stop.is-now .trail-body {
    background: rgba(194, 109, 79, 0.07);
    border-radius: 14px;
    padding: 12px 18px;
    margin: -8px 0 0 -4px;
}

/* Packets (plantings) --------------------- */
.packets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    gap: var(--s-sm);
}

.packet {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 var(--s-md) var(--s-md);
    background: rgba(239, 233, 216, 0.65);
    border: 1px solid var(--hairline);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.packet:hover {
    background: #fffdf6;
    border-color: rgba(194, 109, 79, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(44, 58, 46, 0.1);
}

.packet-band {
    height: 8px;
    margin: 0 calc(var(--s-md) * -1) 10px;
    background: var(--sage);
    opacity: 0.55;
}

.packet:nth-child(4n+2) .packet-band { background: var(--bloom); }
.packet:nth-child(4n+3) .packet-band { background: var(--marigold); }
.packet:nth-child(4n) .packet-band { background: var(--moss); }

.packet-kind {
    font-style: italic;
    font-size: 13.5px;
    color: var(--moss);
}

.packet-name {
    font-family: var(--serif-display);
    font-weight: 560;
    font-size: 21px;
}

.packet-desc {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--ink-soft);
}

/* Pressed pages (publications) ------------ */
.pressed { display: flex; flex-direction: column; }

.pressed-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px var(--s-sm);
    padding: var(--s-sm) 0;
    border-bottom: 1px solid var(--hairline);
    text-decoration: none;
    color: var(--ink);
}

.pressed-item:last-child { border-bottom: none; }

.pressed-item h3 {
    margin: 0;
    font-family: var(--serif-display);
    font-weight: 500;
    font-size: 19px;
    line-height: 1.35;
    max-width: 640px;
    transition: color 0.2s ease;
}

.pressed-item:hover h3 { color: var(--bloom); }

.pressed-meta {
    margin-left: auto;
    font-style: italic;
    font-size: 15px;
    color: var(--sage);
    white-space: nowrap;
}

/* Bench (contact) ------------------------- */
.bench {
    padding: var(--s-xl) var(--pad-x);
    text-align: center;
    scroll-margin-top: 80px;
}

.bench-scene {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.bench-seat {
    width: 74px;
    color: var(--bark);
}

.bench-links {
    margin-top: var(--s-md);
    display: flex;
    justify-content: center;
    gap: 14px;
    font-style: italic;
    font-size: 17px;
    color: var(--sage);
}

/* Ground (footer) ------------------------- */
.ground {
    background: var(--ink);
    color: rgba(247, 243, 231, 0.75);
    text-align: center;
    padding: var(--s-md) var(--pad-x);
    font-style: italic;
    font-size: 15px;
}

.ground p { margin: 0; }


/* Botanical plates (vintage prints) -------- */
.plate {
    margin: 0;
    pointer-events: none;
}

.plate img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 29 / 36;
    object-fit: cover;
    border-radius: 999px 999px 12px 12px;
    box-shadow: 0 10px 30px rgba(44, 58, 46, .12);
}

.plate figcaption {
    margin-top: 6px;
    text-align: center;
    font-style: italic;
    font-size: 13px;
    color: var(--sage);
    letter-spacing: 0.01em;
}

.plate--hero {
    position: absolute;
    right: calc(var(--pad-x) * 0.55);
    top: 50%;
    transform: translateY(-50%) rotate(0.6deg);
    width: min(340px, 28vw);
    z-index: -1;
}

.plate--margin {
    position: absolute;
    width: min(210px, calc((100vw - 1030px) / 2));
    z-index: -1;
}

.plate--r { right: 20px; top: var(--s-lg); }
.plate--low { top: auto; bottom: 120px; }

.plate--bench {
    width: 190px;
    margin: 0 auto;
}

@media (max-width: 1280px) {
    .plate--margin { display: none; }
}

@media (max-width: 760px) {
    .plate--hero {
        position: static;
        transform: none;
        width: min(260px, 70vw);
        margin: var(--s-md) auto 0;
    }
}

/* Responsive ------------------------------ */
@media (max-width: 680px) {
    .gate { flex-direction: column; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
    .gate-nav { gap: 18px; font-size: 15px; }

    .entrance { padding-top: 48px; }

    .entry { flex-wrap: wrap; }
    .entry-meta { margin-left: 26px; }

    .pressed-meta { margin-left: 0; }
}
