:root {
    --paper: #f4f0e7;
    --paper-light: #fbf9f4;
    --ink: #21332c;
    --muted: #667069;
    --forest: #214b3c;
    --forest-dark: #16372c;
    --clay: #b9684b;
    --ochre: #d2a64a;
    --sage: #8ea38a;
    --line: rgba(33, 51, 44, 0.18);
    --serif: "Newsreader", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
    --shadow: 0 18px 50px rgba(33, 51, 44, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; }
h1 { font-size: clamp(3.2rem, 7vw, 6.6rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); letter-spacing: -0.035em; }
h3 { font-size: 2rem; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.narrow { max-width: 760px; }
.centered { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 16px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); font-family: var(--serif); font-size: 1.55rem; text-decoration: none; }
.wordmark-mark { display: grid; width: 35px; aspect-ratio: 1; place-items: center; border: 1px solid currentColor; border-radius: 50% 50% 45% 55%; font-size: 1.15rem; font-style: italic; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-link { position: relative; color: var(--ink); font-size: .88rem; text-decoration: none; }
.nav-link::after { position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: currentColor; content: ""; transform: scaleX(0); transition: transform .2s; }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-account { display: flex; align-items: center; gap: 18px; margin-left: 12px; }
.menu-toggle { display: none; padding: 12px; border: 0; background: transparent; }
.menu-toggle span:not(.sr-only) { display: block; width: 26px; height: 1px; margin: 7px 0; background: var(--ink); }

.button { display: inline-flex; min-height: 48px; padding: 0 24px; align-items: center; justify-content: center; border: 1px solid var(--forest); border-radius: 100px; background: var(--forest); color: white; font-size: .86rem; font-weight: 600; text-decoration: none; transition: background .2s, transform .2s; }
.button:hover { background: var(--forest-dark); transform: translateY(-2px); }
.button-small { min-height: 40px; padding-inline: 19px; }
.button-light { border-color: var(--paper-light); background: var(--paper-light); color: var(--forest); }
.text-link { display: inline-block; color: var(--forest); font-size: .88rem; font-weight: 600; text-underline-offset: 5px; }
.eyebrow { margin-bottom: 20px; color: var(--clay); font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }

.hero { display: grid; min-height: 710px; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 6vw; padding-block: 70px; }
.hero-copy h1 { max-width: 700px; margin-bottom: 28px; }
.hero-copy h1 em { color: var(--clay); font-weight: 400; }
.hero-intro { max-width: 590px; color: var(--muted); font-family: var(--serif); font-size: 1.45rem; line-height: 1.45; }
.button-row { display: flex; align-items: center; gap: 28px; margin-top: 36px; }
.hero-art { position: relative; min-height: 530px; overflow: hidden; border-radius: 48% 48% 8px 8px; background: #d7dfd1; }
.sun-shape { position: absolute; top: 68px; right: 50px; width: 190px; aspect-ratio: 1; border-radius: 50%; background: #e5b956; opacity: .85; }
.hero-note { position: absolute; z-index: 2; top: 115px; left: 44px; width: 245px; padding: 46px 30px; background: var(--paper-light); box-shadow: var(--shadow); font-family: var(--serif); font-size: 1.45rem; line-height: 1.3; transform: rotate(-5deg); }
.book-stack { position: absolute; right: 38px; bottom: 74px; left: 55px; }
.book-stack i { display: block; height: 63px; border-radius: 2px 8px 8px 2px; box-shadow: 7px 9px 16px rgba(0,0,0,.12); }
.book-stack i:nth-child(1) { width: 82%; margin-left: 12%; background: var(--clay); transform: rotate(-4deg); }
.book-stack i:nth-child(2) { width: 94%; background: var(--forest); transform: rotate(2deg); }
.book-stack i:nth-child(3) { width: 77%; margin-left: 10%; background: var(--ochre); transform: rotate(-1deg); }
.leaf { position: absolute; color: var(--forest); font-family: var(--serif); font-size: 6rem; transform: rotate(-45deg); }
.leaf-one { right: 15px; bottom: 30px; }.leaf-two { right: -5px; bottom: 100px; transform: rotate(-80deg); }

.manifesto { padding: 130px 0; background: var(--forest); color: var(--paper-light); }
.manifesto .eyebrow { color: #e6bd68; }
.manifesto h2 { margin-bottom: 28px; }
.manifesto p:last-child { max-width: 610px; margin-inline: auto; color: #cbd4cf; }
.section { padding-block: 120px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 55px; }
.section-heading h2 { margin-bottom: 0; }
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.book-card { min-width: 0; background: var(--paper-light); box-shadow: var(--shadow); }
.book-cover { display: grid; min-height: 340px; place-items: center; color: rgba(255,255,255,.82); font-family: var(--serif); font-size: 3.3rem; letter-spacing: .08em; }
.book-cover-sage { background: var(--sage); }.book-cover-ochre { background: var(--ochre); }.book-cover-clay { background: var(--clay); }
.book-cover span { display: grid; width: 54%; aspect-ratio: .75; place-items: center; border: 1px solid currentColor; }
.book-card-body { padding: 32px; }
.book-card-body h3 { margin-bottom: 5px; }
.book-author { color: var(--muted); }
.book-card blockquote { margin: 28px 0 18px; padding-left: 20px; border-left: 1px solid var(--clay); font-family: var(--serif); font-size: 1.18rem; }
.invitation { padding: 100px 0; background: var(--clay); color: white; }
.invitation-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 10vw; }
.invitation .eyebrow { color: #f7d59f; }.invitation h2 { margin-bottom: 0; }.invitation p { max-width: 500px; }

.page-hero { padding-block: 110px 80px; }
.page-hero h1 { font-size: clamp(3.2rem, 6vw, 5.4rem); }
.page-hero > p:last-child { color: var(--muted); font-family: var(--serif); font-size: 1.35rem; }
.filter-bar { margin-bottom: 50px; padding: 30px; border: 1px solid var(--line); }
.filter-bar > label, .auth-card label { display: block; margin-bottom: 10px; font-size: .78rem; font-weight: 600; }
.filter-controls { display: grid; grid-template-columns: 1fr 210px auto; gap: 12px; }
input, select { width: 100%; min-height: 50px; padding: 0 16px; border: 1px solid var(--line); border-radius: 0; background: var(--paper-light); color: var(--ink); }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--ochre); outline-offset: 3px; }
input:disabled, button:disabled { cursor: not-allowed; opacity: .65; }
.form-note { margin: 12px 0 0; color: var(--muted); font-size: .8rem; }
.journal-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, .8fr); gap: 90px; }
.entry-card { padding: 0 0 50px; margin-bottom: 50px; border-bottom: 1px solid var(--line); }
.entry-card h2 { margin-bottom: 18px; font-size: clamp(2.2rem, 4vw, 3.5rem); }.entry-card h2 a { text-decoration: none; }
.entry-meta { display: flex; gap: 24px; color: var(--muted); font-size: .78rem; }
.journal-aside { align-self: start; padding: 38px; background: #dce2d8; }.journal-aside h2 { font-size: 2.2rem; }
.prose { padding-bottom: 120px; font-family: var(--serif); font-size: 1.3rem; }
.prose h2 { margin-top: 70px; }.prose blockquote { margin: 70px 0; padding: 45px; border-block: 1px solid var(--line); color: var(--clay); font-size: 2.2rem; line-height: 1.2; text-align: center; }
.auth-shell { display: grid; min-height: 700px; place-items: center; padding-block: 70px; }
.auth-card { width: min(100%, 560px); padding: 55px; background: var(--paper-light); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 3.7rem; }.auth-card form { margin: 32px 0; }.auth-card input { margin-bottom: 22px; }.auth-card .button { width: 100%; margin-top: 8px; }

.site-footer { padding-top: 80px; background: #182d26; color: #dbe1dd; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .65fr 1fr; gap: 9vw; padding-bottom: 65px; }
.wordmark-footer { margin-bottom: 20px; color: white; }.footer-grid h2 { margin-bottom: 20px; color: white; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid p { color: #aebcb5; font-size: .88rem; }.footer-grid a:not(.wordmark) { display: block; margin: 9px 0; color: #dbe1dd; font-size: .88rem; text-decoration: none; }
.newsletter { display: flex; margin-top: 20px; }.newsletter input { border-color: #50635b; background: transparent; color: white; }.newsletter button { width: 55px; border: 1px solid #50635b; background: #29473b; color: white; }
.site-footer small { color: #82958c; }.footer-base { display: flex; justify-content: space-between; padding-block: 24px; border-top: 1px solid #385047; color: #82958c; font-size: .72rem; }

@media (max-width: 900px) {
    .hero { min-height: auto; grid-template-columns: 1fr 1fr; gap: 30px; }
    .hero-art { min-height: 470px; }.hero-note { left: 25px; width: 210px; }
    .book-grid { grid-template-columns: repeat(2, 1fr); }.book-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 14px); }
    .footer-grid { gap: 40px; }.journal-layout { gap: 45px; }
}

@media (max-width: 760px) {
    .shell { width: min(100% - 32px, 580px); }
    .header-inner { min-height: 72px; }.menu-toggle { display: block; }
    .site-nav { position: absolute; top: 72px; right: 0; left: 0; display: none; padding: 26px 24px 32px; align-items: stretch; flex-direction: column; gap: 20px; border-bottom: 1px solid var(--line); background: var(--paper-light); box-shadow: var(--shadow); }
    .site-nav.is-open { display: flex; }.nav-link { font-size: 1rem; }.nav-account { margin: 5px 0 0; align-items: stretch; flex-direction: column; }
    .hero { grid-template-columns: 1fr; padding-block: 70px; }.hero-art { min-height: 470px; }.hero-copy h1 { font-size: clamp(3.5rem, 17vw, 5.3rem); }
    .manifesto, .section { padding-block: 85px; }.section-heading { align-items: start; flex-direction: column; }
    .book-grid { grid-template-columns: 1fr; }.book-card:last-child { grid-column: auto; max-width: none; }.book-cover { min-height: 300px; }
    .invitation-inner, .journal-layout, .footer-grid { grid-template-columns: 1fr; }.invitation-inner { gap: 30px; }
    .filter-controls { grid-template-columns: 1fr; }.page-hero { padding-block: 80px 55px; }.journal-aside { order: -1; }
    .footer-grid { gap: 48px; }.footer-base { gap: 12px; flex-direction: column; }.auth-card { padding: 36px 25px; }
}

@media (max-width: 420px) {
    .hero-art { min-height: 390px; }.hero-note { top: 75px; width: 190px; padding: 35px 22px; font-size: 1.2rem; }.sun-shape { width: 145px; }.book-stack { right: 20px; bottom: 45px; left: 28px; }
    .button-row { align-items: stretch; flex-direction: column; }.button-row .text-link { text-align: center; }.book-card-body { padding: 25px; }.prose blockquote { padding: 32px 12px; font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
