/* ==========================================================================
   Blindly Wheeling — shared stylesheet (v2)
   A calmer, more open read: one accent colour, generous whitespace, fewer
   competing devices. One sans-serif typeface (Source Sans 3) is used
   throughout, for headings and body alike — no serif, no italics —
   for the most readable result across screens and visual conditions.
   ========================================================================== */

:root {
  --ink: #20242a;
  --ink-soft: #565d63;
  --paper: #fdfbf7;
  --tint: #f5f1e8;
  --teal: #1c4b53;
  --teal-deep: #123338;
  --amber: #e2902f;
  --amber-deep: #a85f15;
  --line: #e6dfcd;
  --white: #ffffff;
  --radius: 6px;
  --max: 980px;
  --measure: 36em;
  --gap: clamp(2.5rem, 6vw, 4.5rem);
}

/* ----- Reset & base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.25rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; height: auto; border-radius: var(--radius); }
a { color: var(--teal); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--amber-deep); }

/* No italics anywhere on the site — easier to read. Emphasis is kept
   semantically (em/cite/i) but shown as weight/colour instead of slant. */
em, i, cite, blockquote, .note {
  font-style: normal;
}
em {
  font-weight: 700;
}

h1, h2, h3 {
  font-family: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--teal-deep);
  line-height: 1.2;
  margin: 0 0 0.55em;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1.2em; max-width: var(--measure); }
ul, ol { margin: 0 0 1.2em; padding-left: 1.25em; max-width: var(--measure); }
li { margin-bottom: 0.4em; }
li::marker { color: var(--amber-deep); }

/* Generous, calm focus ring */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

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

.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--amber);
  color: var(--teal-deep);
  padding: 0.6em 1em;
  border-radius: 0 0 6px 6px;
  font-weight: 700;
  z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* ----- Layout ----- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.measure { max-width: var(--measure); }
.section { padding: var(--gap) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--tint); }
.section--tint + .section--tint { border-top: none; }
.section--teal { background: var(--teal-deep); color: var(--paper); border-top: none !important; }
.section--teal h2, .section--teal h3 { color: var(--white); }
.section--teal p, .section--teal li { color: #e7ddc6; }
.section--teal a { color: var(--white); }
.section--teal a:hover { color: var(--amber); }

.label {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 0.6em;
}
.section--teal .label { color: var(--amber); }

.lede { font-size: 1.4rem; color: var(--ink-soft); max-width: var(--measure); }
.section--teal .lede { color: #e7ddc6; }

/* ----- Links styled as actions ----- */
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--amber);
}
.more-link:hover { border-bottom-color: var(--amber-deep); }

/* ----- Buttons (used sparingly, for the one or two real actions per page) ----- */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem; align-items: center; margin-top: 1.6rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.7em 1.3em;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--teal);
  color: var(--teal);
  background: transparent;
  min-height: 44px;
}
.btn--solid { background: var(--amber); border-color: var(--amber); color: var(--teal-deep); }
.btn--solid:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: var(--white); }
.btn:not(.btn--solid):hover { background: var(--teal); color: var(--white); }
.section--teal .btn:not(.btn--solid) { border-color: var(--paper); color: var(--paper); }
.section--teal .btn:not(.btn--solid):hover { background: var(--paper); color: var(--teal-deep); }

/* ----- Header ----- */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 34px; height: 34px; border-radius: 7px; }
.brand-name { font-family: "Source Sans 3", sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--teal-deep); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  border-radius: 6px;
  padding: 0.5em 0.9em;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  min-height: 44px;
}
.nav-toggle:hover { background: var(--teal); color: var(--white); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 0.3em 0.05em;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--teal-deep); border-bottom-color: var(--amber); }
.site-nav a[aria-current="page"] { color: var(--teal-deep); border-bottom-color: var(--amber); }

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { width: 100%; }
  .site-nav[hidden] { display: none; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 0.5rem 0 0.25rem; width: 100%; }
  .site-nav a { display: block; width: 100%; padding: 0.8em 0; border-bottom: 1px solid var(--line); }
  .site-nav a:hover { border-bottom-color: var(--line); }
}

/* ----- Hero (home only) ----- */
.hero { padding: var(--gap) 0 calc(var(--gap) * 0.6); }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.hero img { width: 100%; }
@media (max-width: 800px) { .hero-inner { grid-template-columns: 1fr; gap: 2rem; } }

/* ----- Page header (non-home pages) ----- */
.page-header { padding: calc(var(--gap) * 0.75) 0 calc(var(--gap) * 0.5); border-bottom: 1px solid var(--line); }
.page-header .lede { margin-bottom: 0; }

/* ----- Simple two-column ----- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 1.75rem; } }
.split figcaption { font-size: 1rem; color: var(--ink-soft); margin-top: 0.6em; }

/* ----- Signature element: the clean pull-quote ----- */
blockquote.quote {
  margin: 1.8rem 0;
  padding-left: 1.4rem;
  border-left: 3px solid var(--amber);
  max-width: var(--measure);
}
blockquote.quote p {
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--teal-deep);
  margin-bottom: 0.45em;
}
blockquote.quote cite { font-style: normal; font-size: 1rem; font-weight: 600; color: var(--ink-soft); }
.section--teal blockquote.quote p { color: var(--white); }

/* ----- A short, plain note (used sparingly) ----- */
.note { color: var(--ink-soft); font-size: 1.1rem; max-width: var(--measure); }
.note strong { color: var(--ink); }

/* ----- Simple cards (used only where items are genuinely parallel) ----- */
.grid { display: grid; gap: 2rem; margin: 1.5rem 0; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .grid--2, .grid--3 { grid-template-columns: 1fr; } }
.card { padding-top: 1rem; border-top: 2px solid var(--amber); }
.card h2, .card h3 { margin-bottom: 0.35em; }
.card p:last-child { margin-bottom: 0; }
.book-cover { width: 100%; max-width: 160px; margin-bottom: 1rem; }

/* ----- Blog list ----- */
.post-list { display: flex; flex-direction: column; }
.post { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.post:first-child { border-top: none; padding-top: 0; }
.post h3 { margin-bottom: 0.3em; }
.post p { margin-bottom: 0; color: var(--ink-soft); }

/* ----- Audio ----- */
audio { width: 100%; margin: 1rem 0; max-width: var(--measure); }

/* ----- Disclosure widget (e.g. full transcript) ----- */
details { max-width: var(--measure); }
summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--teal);
  padding: 0.6em 0;
}
summary:hover { color: var(--amber-deep); }
details[open] summary { margin-bottom: 0.5rem; }

/* ----- Footer ----- */
.site-footer { background: var(--teal-deep); color: #cfd9da; padding: 2.5rem 0; }
.footer-inner { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.footer-name { font-family: "Source Sans 3", sans-serif; font-size: 1.25rem; color: var(--white); font-weight: 700; margin: 0; }
.footer-links { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; }
.footer-links a { color: #cfd9da; text-decoration: none; font-size: 1.02rem; }
.footer-links a:hover { color: var(--amber); text-decoration: underline; }
.copyright { font-size: 0.95rem; color: #8aa0a2; margin: 0.75rem 0 0; }
