:root {
  --ink: #20251c;
  --olive: #39442c;
  --olive-dark: #27301f;
  --cream: #f6f0e4;
  --paper: #fffaf1;
  --sand: #d8c5a4;
  --rust: #a44e32;
  --line: rgba(39, 48, 31, .18);
  --serif: "Gloock", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.65; }
img { display: block; width: 100%; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.skip-link { position: fixed; top: -80px; left: 1rem; z-index: 100; background: white; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header { height: 82px; padding: 0 clamp(1.25rem, 5vw, 5rem); display: flex; align-items: center; justify-content: space-between; background: rgba(255,250,241,.94); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-family: var(--serif); font-size: 1.15rem; }
.brand-logo { width: 52px; height: 52px; object-fit: cover; flex: 0 0 auto; }
nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }
nav a { text-decoration: none; font-size: .86rem; font-weight: 500; }
nav a:hover { color: var(--rust); }
.nav-cta { border-bottom: 1px solid currentColor; padding-bottom: .25rem; }
.menu-button { display: none; border: 0; background: none; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }

.hero { min-height: calc(100vh - 82px); position: relative; display: grid; align-items: center; overflow: hidden; }
.hero > img, .hero-overlay { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.hero-overlay { background: linear-gradient(90deg, rgba(18,21,13,.88) 0%, rgba(18,21,13,.58) 40%, rgba(18,21,13,.03) 72%); }
.hero-content { position: relative; z-index: 2; color: white; max-width: 720px; padding: 7rem clamp(1.25rem, 8vw, 8rem); }
.eyebrow { margin: 0 0 1.5rem; text-transform: uppercase; letter-spacing: .19em; font-size: .7rem; font-weight: 600; }
.eyebrow.olive { color: var(--olive); }
.eyebrow.terracotta { color: var(--rust); }
.eyebrow.sand { color: var(--sand); }
h1, h2, h3, blockquote { font-family: var(--serif); font-weight: 400; line-height: 1.07; margin-top: 0; }
h1 { font-size: clamp(3.3rem, 7vw, 7rem); letter-spacing: -.04em; margin-bottom: 1.7rem; }
h2 { font-size: clamp(2.3rem, 4.5vw, 4.5rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.55rem, 2.2vw, 2.25rem); }
.hero-copy { max-width: 580px; font-size: clamp(1rem, 1.4vw, 1.18rem); color: rgba(255,255,255,.82); margin-bottom: 2.2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 52px; padding: .9rem 1.4rem; border: 1px solid transparent; border-radius: 999px; font-weight: 600; font-size: .82rem; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-light { background: var(--cream); color: var(--olive-dark); }
.button-dark { background: var(--olive-dark); color: white; }
.section-pad { padding: clamp(5rem, 10vw, 9rem) clamp(1.25rem, 8vw, 8rem); }

.intro { background: var(--cream); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .65fr); gap: clamp(3rem, 9vw, 10rem); align-items: end; }
.intro h2 { max-width: 960px; margin-bottom: 0; }
.intro-grid > div { font-size: 1.05rem; }
.signature { font-family: var(--serif); font-size: 2.4rem; font-style: italic; color: var(--rust); margin: 1.5rem 0 0; }

.journal { background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1.2fr .55fr; gap: 3rem; align-items: end; margin-bottom: 4rem; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { color: #5f645a; }
.featured-post { display: grid; grid-template-columns: 1.3fr .7fr; background: var(--olive-dark); color: white; min-height: 520px; }
.featured-post > img { height: 100%; object-fit: cover; }
.post-copy { align-self: center; padding: clamp(2.5rem, 5vw, 5rem); }
.post-copy > p:not(.post-meta) { color: rgba(255,255,255,.72); }
.post-meta { font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: var(--rust); font-weight: 600; }
.featured-post .post-meta { color: var(--sand); }
.text-link { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0 0 .3rem; cursor: pointer; font-size: .82rem; font-weight: 600; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-top: 2rem; }
.post-card { border: 1px solid var(--line); background: #fff; }
.post-card img { aspect-ratio: 1.45; object-fit: cover; }
.post-card-body { padding: 2rem; }
.post-card h3 { margin-bottom: .7rem; }
.post-card-body > p:not(.post-meta) { color: #666b61; }

.rhythms { display: grid; grid-template-columns: 1fr 1fr; background: var(--olive-dark); color: white; }
.rhythms-image img { height: 100%; min-height: 740px; object-fit: cover; }
.rhythms-copy { padding: clamp(4rem, 8vw, 8rem); align-self: center; }
.rhythms-copy > h2 { margin-bottom: 3rem; }
.rhythm-list > div { display: grid; grid-template-columns: 40px 1fr; gap: 1.3rem; padding: 1.6rem 0; border-top: 1px solid rgba(255,255,255,.18); }
.rhythm-list span { color: var(--sand); font-size: .7rem; }
.rhythm-list h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin-bottom: .3rem; }
.rhythm-list p { margin: 0; color: rgba(255,255,255,.67); font-size: .9rem; }

.quote-section { text-align: center; background: var(--rust); color: white; }
.quote-section blockquote { max-width: 980px; margin: 1rem auto 1.5rem; font-size: clamp(2.4rem, 5vw, 5rem); }
.quote-section > p { text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; }
.leaf { font-size: 2rem; color: var(--sand); }

.about { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem, 8vw, 9rem); align-items: center; background: var(--cream); }
.about-visual { aspect-ratio: 1; background: var(--paper); border: 1px solid rgba(39, 48, 31, .1); }
.about-visual img { width: 100%; height: 100%; object-fit: contain; }
.about-copy p:not(.eyebrow) { max-width: 680px; color: #555b50; }
.about-copy .button { margin-top: 1.2rem; }

.letters { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(3rem, 9vw, 10rem); align-items: end; background: var(--olive-dark); color: white; }
.letters h2 { margin-bottom: 1rem; }
.letters p { color: rgba(255,255,255,.7); }
form label { display: block; font-size: .75rem; margin-bottom: .7rem; }
.form-row { display: flex; gap: .7rem; }
input { flex: 1; min-width: 0; padding: .9rem 1.2rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(255,255,255,.06); color: white; outline: none; }
input:focus { border-color: var(--sand); box-shadow: 0 0 0 3px rgba(216,197,164,.18); }
input::placeholder { color: rgba(255,255,255,.45); }
.form-note { font-size: .74rem; margin: .8rem .4rem 0; }

footer { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 2rem; align-items: center; padding: 2.2rem clamp(1.25rem, 5vw, 5rem); background: #171b13; color: rgba(255,255,255,.62); font-size: .7rem; }
.footer-brand { color: white; }

dialog { width: min(760px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); border: 0; padding: 0; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgba(0,0,0,.32); }
dialog::backdrop { background: rgba(12,15,9,.72); backdrop-filter: blur(5px); }
.dialog-close { position: sticky; float: right; top: 1rem; margin: 1rem 1rem 0 0; width: 44px; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 1.5rem; cursor: pointer; z-index: 2; }
#article-content { padding: clamp(3rem, 8vw, 6rem); }
#article-content h2 { margin-bottom: 1rem; }
#article-content .article-lead { font-size: 1.18rem; color: var(--olive); }
#article-content h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; margin: 2.2rem 0 .8rem; }

@media (max-width: 850px) {
  .site-header { height: 68px; }
  .menu-button { display: block; }
  nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 1.3rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  nav.open { display: flex; }
  nav a { padding: .8rem; }
  .hero { min-height: calc(100svh - 68px); }
  .hero-overlay { background: linear-gradient(90deg, rgba(18,21,13,.86), rgba(18,21,13,.45)), linear-gradient(0deg, rgba(18,21,13,.4), transparent); }
  .hero > img { object-position: 66% center; }
  .intro-grid, .section-heading, .featured-post, .rhythms, .about, .letters { grid-template-columns: 1fr; }
  .featured-post { min-height: auto; }
  .featured-post > img { max-height: 480px; }
  .rhythms-image img { min-height: 480px; }
  .about-visual { width: min(100%, 620px); max-height: 620px; }
  footer { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .form-row .button { width: 100%; }
  h1 { font-size: 3.35rem; }
  .hero-content { padding-top: 5rem; }
}

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