/* lupine.day — a daily wildflower almanac
   palette:
     #f1ead8  paper / cream
     #2a2724  ink
     #3b3270  deep lupine
     #7c6db0  lupine bloom
     #c8b8e0  pale violet
     #5d6f47  leaf green
     #d9b34a  pollen yellow
     #a8324a  bloodroot stain
   typeface: Inter
*/

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --paper: #f1ead8;
    --paper-2: #e8e0c8;
    --ink: #2a2724;
    --ink-2: #5a5550;
    --rule: #c9bfa6;
    --lupine-deep: #3b3270;
    --lupine: #7c6db0;
    --lupine-pale: #c8b8e0;
    --leaf: #5d6f47;
    --pollen: #d9b34a;
    --bloodroot: #a8324a;
    --serif: 'Inter', system-ui, sans-serif;
    --sans: 'Inter', system-ui, sans-serif;
    --measure: 32rem;
    --shadow-press: 0 1px 0 rgba(42,39,36,0.06);
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.55;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* paper grain — barely visible noise so cream doesn't look flat */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    mix-blend-mode: multiply;
    background-image:
        radial-gradient(rgba(42,39,36,0.03) 1px, transparent 1px),
        radial-gradient(rgba(42,39,36,0.025) 1px, transparent 1px);
    background-size: 3px 3px, 7px 7px;
    background-position: 0 0, 1px 2px;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--lupine-deep); }

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

button { font-family: inherit; font-size: inherit; color: inherit; cursor: pointer; background: none; border: 0; }

/* ---------------- header ---------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(241, 234, 216, 0.92);
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 36px 14px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.brand-mark {
    width: 28px;
    height: 28px;
    color: var(--lupine-deep);
    transition: transform 600ms cubic-bezier(.22,1,.36,1);
}

.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }

.brand-text {
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.015em;
}

.site-nav {
    display: flex;
    gap: 28px;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.site-nav a {
    position: relative;
    padding: 4px 0;
    color: var(--ink-2);
    transition: color 200ms ease;
}

.site-nav a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 320ms cubic-bezier(.22,1,.36,1);
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

.meta-clock {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.78rem;
    font-feature-settings: "tnum" 1;
    color: var(--ink-2);
    letter-spacing: 0.04em;
    text-transform: lowercase;
    line-height: 1.2;
}

.meta-clock__date { font-weight: 500; color: var(--ink); }
.meta-clock__time { font-variant-numeric: tabular-nums; }

.header-rule {
    height: 1px;
    background: var(--rule);
    margin: 0 36px;
    opacity: 0.6;
}

/* ---------------- buttons ---------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 999px;
    transition: transform 200ms cubic-bezier(.22,1,.36,1), background 200ms ease, color 200ms ease, box-shadow 200ms ease;
    box-shadow: var(--shadow-press);
}

.btn-primary {
    background: var(--ink);
    color: var(--paper);
}

.btn-primary:hover {
    background: var(--lupine-deep);
    color: var(--paper);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--ink);
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-1px);
}

/* ---------------- hero ---------------- */

.hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 36px 100px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: stretch;
}

.eyebrow {
    font-size: 0.78rem;
    color: var(--ink-2);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 28px;
    font-weight: 500;
}

.hero-title {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(3rem, 8vw, 6.6rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 36px;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line-1 { font-weight: 200; }
.hero-title .line-2 { font-weight: 600; color: var(--lupine-deep); padding-left: 1.5em; }
.hero-title .line-2 em { font-style: italic; font-family: 'Inter', serif; font-weight: 400; }
.hero-title .line-3 { font-weight: 200; padding-left: 0.4em; }

.hero-lede {
    max-width: 32em;
    font-size: 1.075rem;
    line-height: 1.6;
    color: var(--ink-2);
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

.hero-marquee {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 0.82rem;
    color: var(--ink-2);
    border-top: 1px dashed var(--rule);
    padding-top: 18px;
    font-feature-settings: "tnum" 1;
}

.hero-marquee li {
    position: relative;
    white-space: nowrap;
}

.hero-marquee li:not(:last-child)::after {
    content: '·';
    margin-left: 18px;
    color: var(--rule);
}

.hero-illus {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px dashed var(--rule);
    padding-left: 48px;
}

.lupine-svg {
    width: 100%;
    max-width: 320px;
    height: auto;
}

.lupine-spike .petal-row {
    transform-origin: 160px 160px;
    animation: petalSway 8s ease-in-out infinite;
}

.lupine-spike .petal-row[data-row="2"] { animation-delay: -0.4s; }
.lupine-spike .petal-row[data-row="3"] { animation-delay: -0.8s; }
.lupine-spike .petal-row[data-row="4"] { animation-delay: -1.2s; }
.lupine-spike .petal-row[data-row="5"] { animation-delay: -1.6s; }
.lupine-spike .petal-row[data-row="6"] { animation-delay: -2.0s; }
.lupine-spike .petal-row[data-row="7"] { animation-delay: -2.4s; }
.lupine-spike .petal-row[data-row="8"] { animation-delay: -2.8s; }
.lupine-spike .petal-row[data-row="9"] { animation-delay: -3.2s; }
.lupine-spike .petal-row[data-row="10"] { animation-delay: -3.6s; }

@keyframes petalSway {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(2px) rotate(0.4deg); }
}

.lupine-stem path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: stemDraw 3s cubic-bezier(.22,1,.36,1) 0.3s forwards;
}

@keyframes stemDraw {
    to { stroke-dashoffset: 0; }
}

.lupine-bee {
    transform-origin: 60px 160px;
    animation: beeFlight 14s ease-in-out infinite;
}

@keyframes beeFlight {
    0%   { transform: translate(0,0) rotate(0); opacity: 1; }
    20%  { transform: translate(60px,-40px) rotate(8deg); }
    40%  { transform: translate(80px,40px) rotate(-6deg); }
    60%  { transform: translate(20px,80px) rotate(4deg); }
    80%  { transform: translate(-10px,20px) rotate(-3deg); }
    100% { transform: translate(0,0) rotate(0); }
}

.hero-foot {
    margin-top: 48px;
    padding-top: 18px;
    border-top: 1px solid var(--rule);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.78rem;
    color: var(--ink-2);
    letter-spacing: 0.04em;
    font-feature-settings: "tnum" 1;
    align-items: center;
}

.hero-foot__sep {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rule);
}

/* ---------------- entry ---------------- */

.entry {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 36px 100px;
}

.entry-frame {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 6px;
    box-shadow:
        0 1px 0 rgba(42,39,36,0.04),
        0 30px 80px -40px rgba(59,50,112,0.25);
    overflow: hidden;
    position: relative;
}

.entry-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 70%, rgba(241,234,216,0.6) 100%);
    pointer-events: none;
}

.entry-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 36px 48px 24px;
    border-bottom: 1px dashed var(--rule);
    gap: 24px;
    flex-wrap: wrap;
}

.kicker {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ink-2);
    margin-bottom: 14px;
    font-weight: 500;
}

.entry-title {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2.25rem, 4vw, 3.4rem);
    letter-spacing: -0.025em;
    line-height: 1.05;
    color: var(--ink);
    font-style: italic;
}

.entry-sub {
    margin-top: 8px;
    font-size: 1rem;
    color: var(--ink-2);
}

.entry-num {
    font-family: var(--serif);
    font-weight: 200;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--lupine);
    letter-spacing: 0.04em;
    line-height: 1;
}

.entry-num span { font-style: italic; font-weight: 300; }

.entry-body {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
}

.entry-aside {
    padding: 36px 36px 36px 48px;
    border-right: 1px dashed var(--rule);
    background: linear-gradient(180deg, rgba(124,109,176,0.04), rgba(124,109,176,0));
}

.datasheet {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--ink);
}

.datasheet > div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dotted var(--rule);
}

.datasheet > div:last-child { border-bottom: 0; }

.datasheet dt {
    color: var(--ink-2);
    text-transform: lowercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    padding-top: 2px;
}

.datasheet dd { color: var(--ink); }

.swatches {
    margin-top: 32px;
}

.swatches figcaption {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--ink-2);
    margin-bottom: 10px;
}

.swatch-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.swatch {
    width: 28px;
    height: 36px;
    background: var(--c);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    transition: transform 240ms cubic-bezier(.22,1,.36,1);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}

.swatch:hover {
    transform: translateY(-3px) scale(1.05);
}

.swatch::after {
    content: attr(data-hex);
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.68rem;
    color: var(--ink-2);
    font-feature-settings: "tnum" 1;
    opacity: 0;
    transition: opacity 200ms ease;
    white-space: nowrap;
}

.swatch:hover::after { opacity: 1; }

.entry-article {
    padding: 36px 48px 36px 36px;
    max-width: 36em;
}

.entry-article p {
    font-family: var(--serif);
    font-size: 1.075rem;
    line-height: 1.72;
    color: var(--ink);
    margin-bottom: 1.2em;
    text-wrap: pretty;
}

.entry-article em {
    font-style: italic;
    color: var(--lupine-deep);
}

.dropcap .drop {
    float: left;
    font-family: var(--serif);
    font-weight: 600;
    font-size: 4.6em;
    line-height: 0.85;
    padding: 0.05em 0.1em 0 0;
    color: var(--lupine-deep);
    font-style: italic;
}

.pullquote {
    font-style: italic;
    font-size: 1.4rem !important;
    line-height: 1.4 !important;
    color: var(--lupine-deep) !important;
    border-left: 2px solid var(--lupine);
    padding-left: 24px;
    margin: 32px 0 !important;
    font-weight: 300;
}

.entry-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 48px;
    border-top: 1px dashed var(--rule);
    font-size: 0.85rem;
    color: var(--ink-2);
    background: rgba(124,109,176,0.04);
    flex-wrap: wrap;
    gap: 12px;
}

.entry-foot a { color: var(--ink); border-bottom: 1px dotted var(--rule); }

.bookmark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-2);
    transition: color 220ms ease;
}

.bookmark__icon {
    display: inline-flex;
    width: 14px;
    color: var(--lupine);
    transition: transform 280ms cubic-bezier(.22,1,.36,1);
}

.bookmark:hover { color: var(--lupine-deep); }
.bookmark:hover .bookmark__icon { transform: translateY(-2px); }

.bookmark.is-marked .bookmark__icon svg path {
    fill: var(--lupine);
}

.bookmark.is-marked .bookmark__label::before {
    content: 'bookmarked · ';
}

/* ---------------- almanac ---------------- */

.almanac {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 36px;
    border-top: 1px solid var(--rule);
}

.section-head {
    max-width: 720px;
    margin-bottom: 48px;
}

.section-head--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-head h2 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
    color: var(--ink);
}

.section-lede {
    font-size: 1.05rem;
    color: var(--ink-2);
    line-height: 1.6;
    max-width: 38em;
}

.almanac-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    gap: 24px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chip {
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.84rem;
    color: var(--ink-2);
    background: transparent;
    border: 1px solid var(--rule);
    transition: all 200ms ease;
    letter-spacing: 0.01em;
}

.chip:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.chip.is-active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.search-wrap {
    position: relative;
    width: 320px;
    max-width: 100%;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--ink-2);
    pointer-events: none;
}

.search-wrap input {
    width: 100%;
    padding: 11px 16px 11px 38px;
    background: transparent;
    border: 1px solid var(--rule);
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 200ms ease, background 200ms ease;
}

.search-wrap input::placeholder { color: var(--ink-2); }

.search-wrap input:focus {
    outline: none;
    border-color: var(--lupine-deep);
    background: rgba(255,255,255,0.4);
}

.almanac-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 24px;
}

.card {
    background: var(--paper-2);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 320ms cubic-bezier(.22,1,.36,1), box-shadow 320ms cubic-bezier(.22,1,.36,1);
    position: relative;
    border: 1px solid var(--rule);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px -28px rgba(59,50,112,0.4);
    border-color: var(--card-c);
}

.card.is-hidden {
    display: none;
}

.card-num {
    position: absolute;
    top: 10px;
    left: 12px;
    font-size: 0.72rem;
    color: var(--ink-2);
    font-feature-settings: "tnum" 1;
    letter-spacing: 0.05em;
    z-index: 2;
    font-weight: 500;
}

.card-art {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
}

.card-art svg {
    width: 100%;
    height: 100%;
    transition: transform 600ms cubic-bezier(.22,1,.36,1);
}

.card:hover .card-art svg { transform: scale(1.05) rotate(-1deg); }

.card-meta {
    padding: 14px 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-name {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.96rem;
    color: var(--ink);
    line-height: 1.2;
    font-weight: 500;
}

.card-fam {
    font-size: 0.75rem;
    color: var(--ink-2);
    letter-spacing: 0.04em;
}

.load-more {
    display: block;
    margin: 56px auto 0;
    padding: 14px 28px;
    border: 1px dashed var(--rule);
    border-radius: 999px;
    color: var(--ink-2);
    font-size: 0.9rem;
    transition: all 220ms ease;
    letter-spacing: 0.02em;
}

.load-more:hover {
    color: var(--ink);
    border-color: var(--ink);
    background: var(--paper-2);
}

/* ---------------- field notes ---------------- */

.field-notes {
    max-width: 880px;
    margin: 0 auto;
    padding: 80px 36px;
    border-top: 1px solid var(--rule);
}

.notes {
    list-style: none;
    counter-reset: note;
    margin-top: 32px;
    border-top: 1px dashed var(--rule);
}

.note {
    counter-increment: note;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px dashed var(--rule);
    align-items: baseline;
}

.note-when {
    font-size: 0.78rem;
    color: var(--ink-2);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-feature-settings: "tnum" 1;
    font-weight: 500;
    position: relative;
}

.note-when::before {
    content: counter(note, decimal-leading-zero);
    color: var(--lupine);
    font-style: italic;
    margin-right: 10px;
    font-feature-settings: "tnum" 1;
}

.note p {
    font-family: var(--serif);
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--ink);
    text-wrap: pretty;
}

/* ---------------- subscribe ---------------- */

.subscribe {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 36px;
    border-top: 1px solid var(--rule);
}

.subscribe-inner {
    background: linear-gradient(135deg, rgba(59,50,112,0.04), rgba(124,109,176,0.07));
    border: 1px solid var(--rule);
    border-radius: 8px;
    padding: 56px 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.subscribe-inner::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(124,109,176,0.18), transparent);
    pointer-events: none;
}

.subscribe-text h2 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 14px 0 16px;
    color: var(--ink);
}

.subscribe-text p {
    color: var(--ink-2);
    font-size: 0.98rem;
    line-height: 1.6;
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.subscribe-label span {
    font-size: 0.74rem;
    color: var(--ink-2);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 500;
}

.subscribe-label input {
    padding: 12px 16px;
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 6px;
    font-size: 0.96rem;
    color: var(--ink);
    font-family: inherit;
    transition: border-color 220ms ease, box-shadow 220ms ease;
}

.subscribe-label input:focus {
    outline: none;
    border-color: var(--lupine-deep);
    box-shadow: 0 0 0 3px rgba(124,109,176,0.15);
}

.subscribe-form .btn { margin-top: 6px; }

.subscribe-status {
    font-size: 0.85rem;
    color: var(--leaf);
    min-height: 1.2em;
    transition: opacity 200ms ease;
}

.subscribe-status.is-error { color: var(--bloodroot); }

/* ---------------- colophon ---------------- */

.colophon {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 36px 100px;
    border-top: 1px solid var(--rule);
}

.colophon-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
}

.colophon h2 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 14px 0 18px;
    color: var(--ink);
}

.colophon p {
    color: var(--ink-2);
    line-height: 1.65;
    font-size: 1rem;
    max-width: 36em;
}

.colophon p em { color: var(--ink); font-style: italic; }

.colophon-meta dl {
    border-top: 1px solid var(--rule);
}

.colophon-meta dl > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px dotted var(--rule);
    font-size: 0.92rem;
}

.colophon-meta dt {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: var(--ink-2);
    padding-top: 4px;
}

.colophon-meta dd { color: var(--ink); }

.colophon-note {
    margin-top: 14px;
    font-size: 0.94rem;
    color: var(--ink-2);
    line-height: 1.6;
    max-width: 36em;
    font-style: italic;
}

.colophon-tag {
    font-style: normal;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0.04em;
    margin-right: 4px;
}

/* ---------------- foot ---------------- */

.site-foot {
    border-top: 1px solid var(--rule);
    background: var(--paper-2);
}

.foot-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 36px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--ink-2);
}

.foot-sep {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rule);
}

.foot-top {
    margin-left: auto;
    color: var(--ink);
    border-bottom: 1px dotted var(--rule);
    padding-bottom: 1px;
    transition: color 200ms ease, border-color 200ms ease;
}

.foot-top:hover {
    color: var(--lupine-deep);
    border-color: var(--lupine-deep);
}

/* ---------------- responsive ---------------- */

@media (max-width: 980px) {
    .header-inner { grid-template-columns: auto auto; gap: 18px; }
    .site-nav { grid-column: 1 / -1; justify-content: flex-start; gap: 18px; flex-wrap: wrap; }
    .meta-clock { align-items: flex-end; }

    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-illus { border-left: none; padding-left: 0; border-top: 1px dashed var(--rule); padding-top: 36px; max-width: 320px; margin: 0 auto; }

    .entry-body { grid-template-columns: 1fr; }
    .entry-aside { border-right: none; border-bottom: 1px dashed var(--rule); }

    .colophon-grid { grid-template-columns: 1fr; gap: 36px; }

    .subscribe-inner { grid-template-columns: 1fr; padding: 40px 32px; gap: 32px; }
}

@media (max-width: 640px) {
    .header-inner { padding: 14px 20px; }
    .header-rule { margin: 0 20px; }
    .hero { padding: 56px 20px 72px; }
    .entry, .almanac, .field-notes, .subscribe, .colophon { padding-left: 20px; padding-right: 20px; }
    .entry-head, .entry-aside, .entry-article, .entry-foot { padding-left: 24px !important; padding-right: 24px !important; }
    .entry-article p { font-size: 1rem; }
    .pullquote { font-size: 1.2rem !important; }
    .note { grid-template-columns: 1fr; gap: 6px; }
    .note-when { font-size: 0.72rem; }
    .almanac-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }
    .foot-inner { padding: 22px 20px; }
    .foot-top { margin-left: 0; }
    .filter-group { gap: 6px; }
    .chip { font-size: 0.78rem; padding: 7px 12px; }
    .search-wrap { width: 100%; }
    .meta-clock { display: none; }
}

/* fade-in for revealed sections */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 800ms cubic-bezier(.22,1,.36,1), transform 800ms cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
