/* geofflosophy v2 — cool stone and deep teal; editorial, not the v1 cream draft */

:root {
  --bg: #f3f5f2;
  --bg-elev: #fafbf9;
  --ink: #171916;
  --ink-soft: #2c302b;
  --muted: #5c6159;
  --faint: #8b9188;
  --line: #d5dad3;
  --accent: #0b574f;
  --accent-hover: #083e39;
  --accent-wash: #dceae7;
  --link: #0b574f;
  --max: 42rem;
  --header-max: 70rem;
  --font-display: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --font-body: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-ui: "Figtree", "Segoe UI", system-ui, sans-serif;
  --pad: 1.5rem;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-optical-sizing: auto;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--accent-hover); }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -120px;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 0.85rem;
  z-index: 20;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.skip:focus { top: 1rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
}

.site-header-inner,
.site-footer-inner {
  width: min(100% - 2 * var(--pad), var(--header-max));
  margin-inline: auto;
}

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
  padding-block: 3rem 5rem;
}

.site-header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.15rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
  line-height: 1;
}

.wordmark:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

.nav {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  gap: 1.35rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--accent); }

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1.5px;
}

.nav a.ext::after {
  content: " \2197";
  font-size: 0.75em;
  opacity: 0.7;
}

.hero { padding: 1.1rem 0 2.4rem; }

.wordmark-lg {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6.2vw, 3.65rem);
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.05;
  margin: 0 0 1.25rem;
}

.lede {
  font-size: 1.28rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.lede cite { font-style: italic; font-weight: 500; white-space: nowrap; }
@media (max-width: 420px) {
  .lede cite { white-space: normal; }
}

.section-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list > li { border-top: 1px solid var(--line); }
.post-list > li:last-child { border-bottom: 1px solid var(--line); }

.post-list a.item {
  display: grid;
  grid-template-columns: 7.6rem 1fr;
  gap: 0.85rem 1.5rem;
  padding: 1.15rem 0;
  text-decoration: none;
  color: inherit;
}

.post-list a.item:hover .ptitle { color: var(--accent); }

.pdate {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--muted);
  padding-top: 0.38rem;
}

.ptitle {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.28rem;
}

.pexcerpt {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

.more {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.98rem;
}

.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.55rem;
}

.page-intro {
  color: var(--muted);
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
}

.year-jump {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  display: flex;
  gap: 0.7rem 1.15rem;
  flex-wrap: wrap;
  margin: 0 0 2.4rem;
}

.year-jump a { text-decoration: none; font-weight: 500; }
.year-jump .count { color: var(--faint); font-weight: 400; }

.year-block { margin: 0 0 2.75rem; }

.year-block h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--accent);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 1.2rem;
}

.article-header { margin-bottom: 2.15rem; }

.article-header h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.6vw, 2.65rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.85rem;
}

.meta {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--muted);
}

.meta a { color: var(--muted); }
.meta a:hover { color: var(--accent); }
.meta .dot { margin: 0 0.55rem; color: var(--line); }

.article-body {
  font-size: 1.16rem;
  line-height: 1.72;
}

.article-body a { overflow-wrap: anywhere; }

.article-body b,
.article-body strong { font-weight: 650; }

.article-body u { text-underline-offset: 0.14em; }

.article-body div:has(> b > u:not(:has(br))) {
  margin-top: 1.85em;
  margin-bottom: 0.15em;
}

.article-body figure[hidden] { display: none; }

.article-body blockquote {
  margin: 1.5rem 0;
  padding: 0.15rem 0 0.15rem 1.15rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}

.article-body ol,
.article-body ul { padding-left: 1.3rem; }

.article-body li { margin: 0.3rem 0; }

.article-body .video { margin: 1.5rem 0; }

.article-body .video iframe,
.article-body iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: 6px;
  background: #111;
}

.article-body figure {
  margin: 0.4rem 0 1.3rem 1.4rem;
  float: right;
  width: min(48%, 16.5rem);
}

.article-body figure img,
.article-body img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
}

.article-body figcaption {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--faint);
  margin-top: 0.4rem;
  line-height: 1.4;
}

.article-body::after {
  content: "";
  display: block;
  clear: both;
}

.pager {
  margin-top: 3.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

.pager a { text-decoration: none; }
.pager .dir {
  display: block;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.pager .next { text-align: right; }
.pager .title-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.about-body p {
  font-size: 1.16rem;
  line-height: 1.7;
  margin: 0 0 1.1rem;
}

.about-portrait {
  float: right;
  width: 8.5rem;
  margin: 0 0 1rem 1.4rem;
  border-radius: 4px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--muted);
  flex-shrink: 0;
}

.site-footer-inner {
  padding-block: 1.4rem 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  justify-content: space-between;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }


/* Landing page (home) */
.landing {
  padding-block: 4.25rem 5rem;
  min-height: calc(100vh - 8.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing .hero {
  padding: 0 0 0.4rem;
}

.landing-copy {
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 1.05rem 0 0;
}

.landing-copy cite {
  font-style: italic;
  font-weight: 500;
  white-space: nowrap;
}

.landing-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2.25rem;
  margin-top: 2.6rem;
  padding-top: 1.85rem;
  border-top: 1px solid var(--line);
}

.landing-links a {
  text-decoration: none;
  color: inherit;
}

.landing-links h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.landing-links a:hover h2 { color: var(--accent-hover); }

.landing-links p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

.landing-links a.ext h2::after {
  content: " \2197";
  font-size: 0.72em;
  opacity: 0.7;
  margin-left: 0.12em;
}

@media (max-width: 640px) {
  :root { --pad: 1.15rem; }
  body { font-size: 1.06rem; }
  .post-list a.item {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    padding: 1.05rem 0;
  }
  .pdate { padding-top: 0; }
  .article-body figure,
  .about-portrait {
    float: none;
    width: 100%;
    margin: 1.1rem 0;
  }
  .about-portrait { width: 9.5rem; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .site-header-inner { flex-wrap: wrap; gap: 0.7rem; }

  .landing { min-height: 0; padding-block: 3rem 4rem; }
  .landing-links { grid-template-columns: 1fr; gap: 1.35rem; }
  .landing-copy cite { white-space: normal; }
}


/* Home video (Nov 2026) */
.home-video { margin-top: 2.4rem; padding-top: 1.85rem; border-top: 1px solid var(--line); }
.home-video h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.02em; margin: 0.2rem 0 1rem; line-height: 1.25; }
.home-video .video-frame iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 6px; background: #111; }
.home-video-links { font-family: var(--font-ui); font-size: 0.95rem; margin: 0.8rem 0 0; color: var(--muted); }
.home-video-links .dot { margin: 0 0.45rem; color: var(--line); }
.article-body h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.015em; line-height: 1.25; margin: 2.2rem 0 0.7rem; }
