@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,800;1,9..144,600&display=swap');

:root {
  --bg: #f5f0e6;
  --paper: #fffdf8;
  --ink: #1d2b24;
  --muted: #66756c;
  --green: #1f3d2b;
  --green2: #2f5d42;
  --accent: #c8553d;
  --line: #ddd5c4;
  --serif: Fraunces, Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "DM Sans", system-ui, Arial, sans-serif; font-size: 18px; line-height: 1.75; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 740px; margin: 0 auto; padding: 0 22px; }
.wide { max-width: 1160px; }

/* top bar */
.topbar { background: var(--green); color: #cfe0d4; font-size: .78rem; text-align: center; padding: 7px 10px; letter-spacing: .5px; }
header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
header .wrap { max-width: 1160px; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { font-family: var(--serif); font-weight: 800; font-size: 1.55rem; color: var(--green); text-decoration: none; letter-spacing: -.5px; }
.logo i { font-style: normal; display: inline-block; transition: transform .6s; }
.logo:hover i { transform: rotate(180deg); }
nav { display: flex; gap: 26px; font-size: .78rem; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover { border-color: var(--accent); }

/* hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--green); }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: slowzoom 24s ease-out forwards; }
@keyframes slowzoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,25,17,.88) 0%, rgba(10,25,17,.35) 55%, rgba(10,25,17,.1) 100%); }
.hero .in { position: relative; z-index: 2; max-width: 1160px; width: 100%; margin: 0 auto; padding: 0 22px 64px; }
.eyebrow { display: inline-block; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 5px 12px; border-radius: 3px; text-decoration: none; }
.hero h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(2.6rem, 7vw, 5.6rem); line-height: 1.02; letter-spacing: -2px; margin: 18px 0 14px; max-width: 880px; }
.hero h1 em { color: #f3c58f; font-weight: 600; }
.hero p { max-width: 560px; font-size: 1.2rem; margin: 0 0 26px; color: #e8efe9; }
.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; padding: 14px 30px; border-radius: 4px; text-decoration: none; letter-spacing: .5px; transition: transform .2s, background .2s; }
.btn:hover { background: #ad432d; transform: translateY(-2px); }

/* category tiles */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: -48px auto 0; position: relative; z-index: 5; }
.tile { position: relative; height: 130px; border-radius: 8px; overflow: hidden; display: flex; align-items: flex-end; text-decoration: none; color: #fff; background: var(--green); box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,25,17,.85), rgba(10,25,17,.1)); }
.tile span { position: relative; z-index: 2; padding: 12px 14px; font-family: var(--serif); font-weight: 800; font-size: 1.1rem; }
.tile:hover img { transform: scale(1.12); }

.sec { font-family: var(--serif); font-size: 2rem; font-weight: 800; color: var(--green); margin: 70px 0 26px; display: flex; align-items: baseline; justify-content: space-between; letter-spacing: -.5px; }
.sec small { font-family: "DM Sans", sans-serif; font-size: .8rem; color: var(--muted); font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }

/* magazine top: 1 big + 2 small */
.mag { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; }
.mag .stack { display: grid; gap: 26px; }
.big, .small { position: relative; display: flex; align-items: flex-end; overflow: hidden; border-radius: 10px; color: #fff; text-decoration: none; background: var(--green); min-height: 260px; }
.big { min-height: 540px; }
.big img, .small img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.big::after, .small::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,25,17,.9), rgba(10,25,17,.05) 70%); }
.big:hover img, .small:hover img { transform: scale(1.07); }
.big .t, .small .t { position: relative; z-index: 2; padding: 26px; }
.big h3 { font-family: var(--serif); font-size: 2.3rem; line-height: 1.1; margin: 12px 0 8px; }
.small h3 { font-family: var(--serif); font-size: 1.4rem; line-height: 1.2; margin: 10px 0 0; }
.big p { margin: 0 0 8px; color: #dfe9e1; }
.big .meta, .small .meta { color: #cfdcd2; }

/* list rows */
.rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 44px; }
.row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; color: inherit; align-items: center; }
.row .ph { height: 120px; border-radius: 8px; overflow: hidden; background: var(--green); }
.row .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.row:hover .ph img { transform: scale(1.1); }
.row h3 { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; margin: 6px 0 6px; color: var(--green); }
.row:hover h3 { color: var(--accent); }
.row p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat { font-size: .7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.meta { font-size: .8rem; color: var(--muted); font-weight: 500; }

/* quote band */
.band { margin: 80px 0 0; background: var(--green); color: #e8efe9; text-align: center; padding: 70px 22px; }
.band q { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(1.6rem, 4vw, 2.6rem); line-height: 1.25; display: block; max-width: 820px; margin: 0 auto 14px; quotes: none; }
.band small { letter-spacing: 3px; text-transform: uppercase; color: #9fb8a8; }

/* article */
.a-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: #fff; background: var(--green); overflow: hidden; }
.a-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.a-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,25,17,.9), rgba(10,25,17,.2) 70%); }
.a-hero .in { position: relative; z-index: 2; max-width: 900px; width: 100%; margin: 0 auto; padding: 0 22px 46px; }
.a-hero h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.06; letter-spacing: -1.5px; margin: 16px 0 12px; }
.a-hero .meta { color: #d3e0d7; }
.paper { background: var(--paper); max-width: 780px; margin: -26px auto 0; position: relative; z-index: 3; padding: 40px 44px 20px; border-radius: 10px 10px 0 0; box-shadow: 0 -10px 40px -20px rgba(0,0,0,.25); }
.prose > p:first-child { font-size: 1.28rem; line-height: 1.6; color: var(--green); font-family: var(--serif); font-weight: 600; }
.prose h2 { font-family: var(--serif); font-size: 1.7rem; color: var(--green); line-height: 1.2; margin: 2.4rem 0 .7rem; letter-spacing: -.5px; }
.prose h2::after { content: ""; display: block; width: 44px; height: 4px; background: var(--accent); margin-top: 10px; border-radius: 2px; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose li { margin: .4rem 0; }
.prose strong { color: var(--green); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { background: var(--green); color: #fff; font-size: .75rem; letter-spacing: 1px; text-transform: uppercase; }
.note { background: #eef3e8; border-left: 4px solid var(--green2); padding: 14px 18px; border-radius: 0 8px 8px 0; margin: 1.6rem 0; font-size: .95rem; }
.crumbs { font-size: .8rem; margin-bottom: 4px; }
.crumbs a { color: #f3c58f; text-decoration: none; }
.crumbs span { opacity: .7; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; z-index: 100; animation: grow linear both; animation-timeline: scroll(root); }
@keyframes grow { to { transform: scaleX(1); } }

/* plain pages */
.page h1 { font-family: var(--serif); font-size: clamp(2.4rem, 7vw, 4rem); color: var(--green); margin: 60px 0 10px; letter-spacing: -1.5px; line-height: 1.05; }
.page h1 + p { font-size: 1.25rem; }

.more { margin: 60px auto 0; }
.back { display: inline-block; margin: 36px 0 0; font-weight: 700; text-decoration: none; letter-spacing: .5px; border-bottom: 2px solid var(--accent); padding-bottom: 2px; color: var(--green); }

footer { background: var(--green); color: #b9cdbf; margin-top: 80px; padding: 50px 0 34px; font-size: .88rem; }
footer .wrap { max-width: 1160px; }
footer .top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.14); }
footer .logo { color: #fff; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
footer .links a { color: #b9cdbf; text-decoration: none; text-transform: uppercase; font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; }
footer .links a:hover { color: #f3c58f; }
footer .copy { padding-top: 22px; }
footer .copy a { color: #b9cdbf; }
.band + footer { margin-top: 0; }

@supports (animation-timeline: view()) {
  @keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
  .row, .small, .big, .tile { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
}

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .mag { grid-template-columns: 1fr; }
  .big { min-height: 420px; }
  .rows { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  nav { gap: 14px; letter-spacing: 1px; }
  nav .hide-m { display: none; }
  .hero { min-height: 70vh; }
  .hero .in { padding-bottom: 80px; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .big h3 { font-size: 1.7rem; }
  .row { grid-template-columns: 110px 1fr; gap: 14px; }
  .row .ph { height: 100px; }
  .paper { padding: 28px 22px 10px; margin-top: -20px; }
  .topbar { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.fine { color: var(--muted); font-size: .82rem; line-height: 1.5; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 34px; }
footer .copy { line-height: 1.6; }
