/* Life Domination — site styles (direction D: Field Journal + Trail Map) */

:root {
  --bone: #EFE9DC;
  --bone-2: #E5DDCC;
  --paper: #F7F3EA;
  --ink: #1C1B19;
  --ink-2: #3A3832;
  --muted: #5E5A51;
  --bronze: #AD7E4E;      /* decoration and large type only */
  --bronze-ink: #7E562F;  /* bronze for small text on bone (passes contrast) */
  --rule: rgba(28, 27, 25, 0.25);

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1240px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  font-optical-sizing: auto;
}

img { max-width: 100%; display: block; }

a { color: var(--bronze-ink); }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--bronze-ink); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--bone); padding: 12px 16px;
  font-family: var(--sans); font-size: 14px; text-decoration: none;
}
.skip:focus { top: 12px; color: var(--bone); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Type helpers ---------- */

.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze-ink);
  margin: 0;
}
.h-display { margin: 0; font-weight: 300; font-size: clamp(48px, 5vw, 76px); line-height: 1; letter-spacing: -0.01em; }
.h-section { margin: 0; font-weight: 300; font-size: clamp(40px, 4vw, 60px); line-height: 1.02; }
.lede { margin: 0; font-size: 22px; line-height: 1.5; color: var(--ink-2); }
.small { font-family: var(--sans); font-size: 13px; color: var(--muted); margin: 0; }
em, .italic { font-style: italic; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 26px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--ink); cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.btn--dark { background: var(--ink); color: var(--bone); }
.btn--dark:hover { background: #33312D; color: var(--bone); }
.btn--line { background: transparent; color: var(--ink); font-weight: 500; }
.btn--line:hover { background: var(--ink); color: var(--bone); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.arrow-link { font-family: var(--sans); font-size: 14px; }

/* ---------- Header ---------- */

.strip { border-bottom: 1px solid var(--ink); }
.strip .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 10px; padding-bottom: 10px;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}

.masthead .wrap { padding-top: 40px; }
.masthead__inner {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding-bottom: 24px; border-bottom: 3px double var(--ink);
}
.masthead__crest { width: 64px; height: 64px; }
.masthead__name {
  text-decoration: none; color: var(--ink); text-align: center;
  font-size: clamp(36px, 7vw, 96px); line-height: 1; letter-spacing: 0.06em;
}
.masthead__name:hover { color: var(--ink); }
.masthead__name .light { font-weight: 300; }
.masthead__name .bold { font-weight: 500; }

.masthead--compact .wrap { padding-top: 24px; }
.masthead--compact .masthead__inner { gap: 12px; padding-bottom: 14px; }
.masthead--compact .masthead__crest { width: 44px; height: 44px; }
.masthead--compact .masthead__name { font-size: clamp(28px, 4.4vw, 52px); }

.nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 32px; }
.nav a {
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; padding: 12px 0;
  border-bottom: 1px solid transparent;
}
.nav a:hover { border-bottom-color: var(--ink); color: var(--ink); }
.nav a[aria-current="page"] { border-bottom-color: var(--bronze); }
.nav .nav__cta { color: var(--bronze-ink); font-weight: 600; }

/* ---------- Hero ---------- */

.hero { border-bottom: 1px solid var(--ink); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 56px; padding-bottom: 80px; }
.hero__text { flex: 1.3 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero__title { margin: 0; font-weight: 300; font-size: clamp(52px, 6.4vw, 104px); line-height: 0.98; letter-spacing: -0.02em; }
.hero__figure { flex: 1 1 340px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.hero__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }

figcaption { font-family: var(--sans); font-size: 13px; color: var(--muted); }

/* ---------- Chapter Zero / Basecamp ---------- */

.chapter .wrap { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 88px; padding-bottom: 88px; }
.chapter__side { flex: 0 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.chapter__side h2 { margin: 0; font-weight: 400; font-size: 44px; line-height: 1.05; }
.chapter__body { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.chapter__body p { margin: 0; }
.chapter__body .lead { font-size: 22px; line-height: 1.55; }
.chapter__body .lead + p { color: var(--ink-2); }

.dropcap::first-letter {
  float: left; font-size: 88px; line-height: 0.8; padding: 8px 12px 0 0; color: var(--bronze);
}

.pullquote {
  margin: 12px 0; padding: 24px 0;
  border-top: 1px solid var(--bronze); border-bottom: 1px solid var(--bronze);
  font-style: italic; font-size: 30px; line-height: 1.3;
}

.assess { border: 1px solid var(--ink); }
.assess__head {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 18px 28px; border-bottom: 1px solid var(--ink);
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
}
.assess__head strong { color: var(--bronze-ink); font-weight: 600; }
.assess__head span { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: rgba(28, 27, 25, 0.22); margin: 0; }
.stat { background: var(--bone); padding: 26px 24px; margin: 0; }
.stat dt { font-weight: 300; font-size: 60px; line-height: 1; }
.stat dd { margin: 10px 0 0; font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.stat--accent dt { color: var(--bronze); }
.assess__foot {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
  padding: 22px 28px; border-top: 1px solid var(--ink); background: var(--bone-2);
}

/* ---------- Photo band ---------- */

.photo-band { margin: 0 auto; }
.photo-band img { width: 100%; height: clamp(260px, 36vw, 460px); object-fit: cover; object-position: center 40%; }
.photo-band figcaption { padding-top: 10px; }

/* ---------- The Ascent ---------- */

.ascent .wrap { padding-top: 96px; padding-bottom: 96px; }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px;
  padding-bottom: 20px; border-bottom: 3px double var(--ink);
}
.section-head__title { display: flex; flex-direction: column; gap: 10px; }
.section-head p { margin: 0; max-width: 440px; font-size: 17px; color: var(--ink-2); }

.trail { margin: 0; padding: 40px 0 16px; border-bottom: 1px solid var(--rule); overflow: hidden; }
.trail svg { width: 100%; height: auto; }

.contents { margin: 0; padding: 0; list-style: none; }
.contents li { border-bottom: 1px solid var(--rule); }
.contents a {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px;
  padding: 20px 0; text-decoration: none; color: var(--ink);
}
.contents a:hover .contents__name { font-style: italic; }
.contents__num { flex: 0 0 56px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.1em; color: var(--bronze-ink); }
.contents__name { flex: 0 0 220px; font-size: 32px; line-height: 1.1; }
.contents__line { flex: 1 1 320px; min-width: 0; font-size: 18px; color: var(--ink-2); }
.contents__go { font-family: var(--sans); font-size: 13px; color: var(--bronze-ink); }

/* ---------- Field notes ---------- */

.notes { background: var(--bone-2); }
.notes .wrap { padding-top: 88px; padding-bottom: 88px; }
.notes__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; }
.notes__grid { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.note { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.note:hover { color: var(--ink); }
.note:hover .note__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.note__title { font-size: 30px; line-height: 1.15; }
.note__dek { font-size: 17px; font-style: italic; color: var(--ink-2); }

/* ---------- Subscribe ---------- */

.subscribe .wrap {
  padding-top: 96px; padding-bottom: 96px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
}
.subscribe h2 { margin: 0; font-weight: 300; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; max-width: 820px; }
.subscribe p { margin: 0; max-width: 560px; color: var(--ink-2); }

.signup { width: 100%; max-width: 560px; display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--sans); }
.signup input[type="email"] {
  flex: 1 1 260px; min-height: 52px; padding: 0 18px;
  border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink);
  font: inherit; font-size: 16px;
}
.signup button { min-height: 52px; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup__msg { flex-basis: 100%; min-height: 1.4em; margin: 4px 0 0; font-size: 14px; color: var(--ink-2); text-align: inherit; }
.signup__msg[data-state="ok"] { color: #2C4034; }
.signup__msg[data-state="error"] { color: #8A2E1F; }

/* ---------- Footer ---------- */

.footer { border-top: 3px double var(--ink); }
.footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  padding-top: 36px; padding-bottom: 48px;
  font-family: var(--sans); font-size: 13px; color: var(--muted);
}
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }
.footer__legal { flex-basis: 100%; max-width: 680px; margin: 0; }

/* ---------- Interior pages ---------- */

.page-head .wrap { padding-top: 64px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 18px; border-bottom: 1px solid var(--ink); }
.page-head h1 { margin: 0; font-weight: 300; font-size: clamp(52px, 6vw, 96px); line-height: 0.98; letter-spacing: -0.02em; }
.page-head .lede { max-width: 680px; }

.prose { max-width: 700px; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { margin: 1.8em 0 0.5em; font-weight: 400; font-size: 34px; line-height: 1.15; }
.prose ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

.about .wrap { display: flex; flex-wrap: wrap; gap: 64px; padding-top: 72px; padding-bottom: 96px; align-items: flex-start; }
.about__photo { flex: 0 1 380px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.about__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; }
.about__body { flex: 1 1 480px; min-width: 0; }

/* Programs */
.ladder { list-style: none; margin: 0; padding: 0; }
.rung {
  display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline;
  padding: 36px 0; border-bottom: 1px solid var(--rule);
}
.rung__num { flex: 0 0 72px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze-ink); }
.rung__main { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rung__main h2 { margin: 0; font-weight: 400; font-size: 36px; line-height: 1.1; }
.rung__main p { margin: 0; color: var(--ink-2); }
.rung__status { flex: 0 0 auto; font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule); padding: 6px 10px; }
.rung--featured { background: var(--paper); padding-left: 28px; padding-right: 28px; border: 1px solid var(--ink); margin: 24px 0; }
.rung--featured .rung__status { color: var(--bronze-ink); border-color: var(--bronze); }

/* Field notes index */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 8px; }
.filters button {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--rule); background: transparent; color: var(--ink);
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.06em; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bone); border-color: var(--ink); }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-bottom: 1px solid var(--rule); }
.post-list li[hidden] { display: none; }
.post-list a { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: baseline; padding: 22px 0; text-decoration: none; color: var(--ink); }
.post-list a:hover .post-list__title { font-style: italic; }
.post-list__date { flex: 0 0 120px; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.post-list__title { flex: 1 1 420px; min-width: 0; font-size: 26px; line-height: 1.2; }
.post-list__tags { flex: 0 0 auto; font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze-ink); }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  body { font-size: 18px; }
  .nav { gap: 0 20px; }
  .hero .wrap { padding-top: 36px; padding-bottom: 56px; }
  .chapter .wrap, .ascent .wrap, .notes .wrap, .subscribe .wrap { padding-top: 64px; padding-bottom: 64px; }
  .stat dt { font-size: 48px; }
  .contents__name { flex-basis: auto; font-size: 28px; }
  .contents__go { display: none; }
  .pullquote { font-size: 26px; }
  .rung--featured { padding-left: 20px; padding-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
