:root {
  --paper: #f6f3ec;
  --ink: #23271f;
  --muted: #646a5c;
  --moss: #4d6340;
  --moss-dark: #36472c;
  --line: #ddd7c8;
  --card: #fffdf8;
  --accent: #a5452f;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Source Sans 3", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--moss); }
a:hover { color: var(--moss-dark); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }

/* header */
.site-header { border-bottom: 1px solid var(--line); background: rgba(246,243,236,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.mark { width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: var(--moss); transform: rotate(-45deg); }
.site-header nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ink); border-color: var(--moss); }

/* hero */
.hero { position: relative; min-height: 72vh; display: flex; align-items: flex-end; overflow: hidden; background: var(--moss-dark); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,26,16,.85), rgba(20,26,16,.15) 65%); }
.hero-text { position: relative; z-index: 1; color: #fff; padding-bottom: 64px; padding-top: 120px; }
.hero-text h1 { max-width: 780px; font-size: clamp(2rem, 4.6vw, 3.5rem); }
.hero .eyebrow { color: #d9e4c8; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--moss); margin: 0 0 10px; }
.btn { display: inline-block; background: var(--moss); color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem; border: 0; cursor: pointer; font-family: var(--sans); }
.btn:hover { background: var(--moss-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--moss); box-shadow: inset 0 0 0 2px var(--moss); }
.btn.ghost:hover { background: var(--moss); color: #fff; }

/* sections & cards */
.section { padding: 72px 24px 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head a { font-weight: 600; text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(35,39,31,.45); color: inherit; }
.thumb { position: relative; aspect-ratio: 3/2; background: #e5e0d2; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.noimg { width: 100%; height: 100%; background: linear-gradient(135deg, #cfd8bf, #9fb08a); }
.num { position: absolute; left: 14px; top: 14px; background: rgba(255,253,248,.92); color: var(--moss-dark); font-weight: 600; font-size: .85rem; padding: 2px 10px; border-radius: 999px; }
.card-body { padding: 18px 20px 22px; }
.card-body h3 { margin-bottom: 6px; }
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding-bottom: 88px; }
.feature-img img { border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.feature-text p { color: var(--muted); }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; gap: 24px; } }

.page-head { padding-top: 64px; padding-bottom: 36px; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.page-head + .grid { padding-bottom: 88px; }

/* posts */
.post { padding-top: 56px; padding-bottom: 88px; }
.crumb { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 10px; }
.crumb a { text-decoration: none; }
.meta { color: var(--muted); margin: 0 0 32px; font-size: .95rem; }
.prose p { margin: 0 0 1.1em; }
.prose h3 { margin-top: 1.6em; font-size: 1.35rem; }
.prose a { word-break: break-word; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 28px 0; }
.gallery.single { grid-template-columns: minmax(0, 560px); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 8px; cursor: zoom-in; background: #e5e0d2; }
.gallery.single img { aspect-ratio: auto; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; border-top: 1px solid var(--line); padding-top: 28px; }
.pager a { text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.pager small { display: block; font-family: var(--sans); font-size: .8rem; color: var(--moss); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.pager .next { text-align: right; }
.comments { margin-top: 48px; }
.comments h2 { font-size: 1.6rem; }
.comment { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.comment p { margin: 0 0 6px; }
.who { font-weight: 600; }
.who span { font-weight: 400; color: var(--muted); font-size: .9rem; margin-left: 6px; }

/* form */
.form { display: grid; gap: 18px; margin-top: 24px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form textarea { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.form input:focus, .form textarea:focus { outline: 2px solid var(--moss); outline-offset: 1px; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }
.site-footer p { margin: 4px 0; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(15,18,12,.92); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 24px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 6px; }
.lightbox button { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }
