:root {
  --bg: #0d2620;
  --gold: #c9a449;
  --mint: #5fb8b0;
  --text: #ece8df;
  --dim: #a9b7b2;
  --line: rgba(201, 164, 73, 0.18);
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  line-height: 1.6;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
::selection { background: var(--gold); color: var(--bg); }
a { color: var(--mint); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--bg); padding: 8px 14px; font-family: var(--sans); z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px 28px;
  padding: 20px max(6vw, calc((100vw - 1040px) / 2));
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand img { display: block; height: 62px; width: auto; }
.brand-name { font-family: var(--serif); font-weight: 600; letter-spacing: 0.06em; color: var(--gold); font-size: 1.02rem; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 6px clamp(18px, 3vw, 36px); }
.site-header nav a {
  font-family: var(--sans); font-size: 0.95rem; color: var(--dim); text-decoration: none;
  padding: 4px 0; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.site-header nav a:hover { color: var(--mint); border-color: var(--mint); }
.site-header nav a[aria-current="page"] { color: var(--text); border-color: var(--gold); }

/* layout */
main { flex: 1; width: 100%; padding: clamp(44px, 8vw, 96px) max(6vw, calc((100vw - 1040px) / 2)) 110px; }
main > * { max-width: 760px; }

.rule { width: 64px; height: 2px; background: var(--mint); border: 0; margin: 28px 0; }

/* home */
.kicker { font-family: var(--sans); color: var(--mint); font-size: 0.95rem; margin-bottom: 26px; }
.hero h1 { font-weight: 500; line-height: 1.2; font-size: clamp(1.9rem, 4.6vw, 2.8rem); color: var(--text); text-wrap: balance; max-width: 20em; }
.hero h1 span { display: block; text-wrap: balance; }
.hero h1 .h1-b { color: var(--gold); margin-top: 0.35em; font-size: 0.72em; }
.lede { font-size: 1.15rem; color: var(--dim); max-width: 52ch; }
.actions { margin-top: 36px; }
.btn {
  display: inline-block; font-family: var(--sans); font-size: 0.97rem; font-weight: 600;
  background: var(--gold); color: var(--bg); text-decoration: none;
  padding: 13px 28px; border-radius: 3px; transition: background .15s;
}
.btn:hover { background: var(--text); color: var(--bg); }

.block { margin-top: clamp(64px, 9vw, 108px); }
.block.first { margin-top: 0; }
.block h1, .block h2 { font-weight: 500; }
.block h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); }
.block h2 { font-size: 1.55rem; color: var(--gold); }

/* article rows */
.rows { list-style: none; }
.row { display: grid; grid-template-columns: 88px 1fr; gap: 6px 22px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); }
.rows li:first-child .row { border-top: 1px solid var(--line); }
.row-title { display: block; font-size: 1.22rem; line-height: 1.3; transition: color .15s; }
.row-teaser { display: block; margin-top: 7px; font-family: var(--sans); font-size: 0.93rem; line-height: 1.55; color: var(--dim); }
.row:hover .row-title { color: var(--mint); }

/* reading pages */
.prose-page h1 { text-wrap: balance; font-weight: 500; font-size: clamp(2rem, 4.8vw, 2.9rem); line-height: 1.15; }
.crumb { font-family: var(--sans); font-size: 0.9rem; margin-bottom: 22px; }
.prose { font-size: clamp(1.06rem, 1rem + 0.3vw, 1.2rem); line-height: 1.78; max-width: 38rem; }
.prose p { margin-bottom: 1.25em; color: var(--text); }
.prose .closing { margin-top: 2.2em; color: var(--gold); font-style: italic; }

.pager { max-width: 38rem; display: flex; justify-content: space-between; gap: 24px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: block; max-width: 48%; text-decoration: none; color: var(--text); font-size: 1.05rem; line-height: 1.35; }
.pager a small { display: block; font-family: var(--sans); font-size: 0.8rem; color: var(--dim); margin-bottom: 4px; }
.pager a:hover { color: var(--mint); }
.pager-next { text-align: right; margin-left: auto; }

/* footer */
.site-footer { padding: 34px max(6vw, calc((100vw - 1040px) / 2)); border-top: 1px solid var(--line); font-family: var(--sans); font-size: 0.85rem; color: var(--dim); }

@media (max-width: 560px) {
  .row { grid-template-columns: 64px 1fr; gap: 4px 16px; }
  .thumb { width: 64px; height: 64px; }
  .photo-credit { position: static; text-align: left; margin-top: 36px; }
  .hero-band { background-position: 70% 40%; }
  .brand img { height: 46px; }
  .brand-name { font-size: 0.92rem; }
  .pager { flex-direction: column; }
  .pager a { max-width: 100%; }
  .pager-next { text-align: left; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.thumb { width: 88px; height: 88px; object-fit: cover; border-radius: 2px; background: #12342c; display: block; }
.thumb-empty { background: #12342c url("logo.png") center / auto 70% no-repeat; opacity: .5; }
.row-text { display: block; min-width: 0; }
.row:hover .thumb { outline: 1px solid var(--mint); }

/* article header photo */
.plate { margin: 0 0 40px; max-width: 760px; }
.plate img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; background: #12342c; }
.plate figcaption { margin-top: 10px; font-family: var(--sans); font-size: 0.78rem; line-height: 1.5; color: var(--dim); }
.plate figcaption a { color: var(--dim); }
.plate figcaption a:hover { color: var(--mint); }

/* home: full-width photo band */
.hero-band {
  position: relative;
  padding: clamp(60px, 10vw, 130px) max(6vw, calc((100vw - 1040px) / 2)) clamp(70px, 10vw, 130px);
  background:
    linear-gradient(90deg, rgba(13,38,32,.95) 0%, rgba(13,38,32,.82) 42%, rgba(13,38,32,.38) 100%),
    linear-gradient(0deg, rgba(13,38,32,1) 0%, rgba(13,38,32,0) 28%),
    url("img/home-hero.jpg") center 40% / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero-band .hero-inner { max-width: 760px; }
.hero-band h1 { font-weight: 500; line-height: 1.2; font-size: clamp(1.9rem, 4.6vw, 2.8rem); color: var(--text); text-wrap: balance; }
.hero-band h1 span { display: block; text-wrap: balance; }
.hero-band h1 .h1-b { color: var(--gold); margin-top: 0.35em; font-size: 0.72em; }
.photo-credit { position: absolute; right: max(6vw, calc((100vw - 1040px) / 2)); bottom: 12px; font-family: var(--sans); font-size: 0.72rem; color: var(--dim); max-width: 60ch; text-align: right; }
.photo-credit a { color: var(--dim); }
.photo-credit a:hover { color: var(--mint); }
