/* ---------------------------------------------------------------------------
   Plausible Admission — stylesheet
   Dark editorial. Companion to plausibledenial.org — same off-black ground,
   warm ink, aged-amber accent (vs PD's oxblood). Display in Cormorant
   Garamond, body in Charter system serif. The "MISSION" within "adMISSION"
   wordmark is rendered italic amber.
--------------------------------------------------------------------------- */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/_inc/fonts/cormorant-garamond-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --bg:           #0c0c0d;
  --bg-elev:      #131210;
  --bg-elev-2:    #181612;

  --ink:          #e8e3da;
  --ink-strong:   #f4efe6;
  --ink-muted:    #8a8478;
  --ink-faint:    #5b5650;

  --rule:         #26221d;
  --rule-strong:  #3a342c;

  --accent:       #b8862b;        /* aged amber — the divergence from PD's oxblood */
  --accent-soft:  #d4a85a;
  --mission:      #d4a85a;        /* the "MISSION" highlight inside "adMISSION" */

  --display: "Cormorant Garamond", Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --serif:   Charter, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --measure:    38rem;
  --container:  1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.65 var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent); color: var(--ink-strong); }

/* --- Base typography ----------------------------------------------------- */

h1, h2, h3, h4 {
  color: var(--ink-strong);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin: 1.8em 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-top: 0; }
h2 {
  font-size: 1.55rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  margin-top: 2.2rem;
}
h3 { font-size: 1.2rem; }
h4 {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 1.6em 0 0.4em;
}

p, ul, ol, blockquote, figure, table { margin: 0 0 1.2rem; }

a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
}
a:hover { color: var(--ink-strong); text-decoration-thickness: 1px; }

strong { color: var(--ink-strong); font-weight: 700; }
em     { font-style: italic; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

code, kbd {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--bg-elev);
  padding: 0.05em 0.35em;
  border-radius: 3px;
}

blockquote {
  border-left: 3px solid var(--accent);
  margin-left: 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  color: var(--ink);
  font-style: italic;
}

/* --- Wordmark — the adMISSION treatment ---------------------------------- */

.wm {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.wm-mission {
  font-style: italic;
  color: var(--mission);
  font-weight: 700;
  letter-spacing: 0;
}

/* --- Layout primitives --------------------------------------------------- */

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus {
  left: 1rem; top: 1rem;
  background: var(--accent); color: var(--bg);
  padding: 0.5em 0.75em; z-index: 100;
}

.wrap   { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
main    { padding: 2.5rem 0 4rem; }
.prose  { max-width: var(--measure); }
.prose p, .prose li { font-size: 1.0625rem; }
.prose li { margin-bottom: 0.4rem; }

.lede {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0.5rem 0 1.5rem;
  max-width: var(--measure);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  margin: 0 0 0.6rem;
}

/* --- Site header --------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 12, 13, 0.88);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0.6rem 2rem;
  padding-top: 1rem; padding-bottom: 1rem;
}
.site-mark {
  text-decoration: none;
  color: var(--ink-strong);
  font-size: 1.35rem;
}
.site-mark:hover { color: var(--ink-strong); }
.site-mark .wm-mission { color: var(--mission); }

.site-nav { margin-left: auto; }
.site-nav ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem;
}
.site-nav li a {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav li a:hover                { color: var(--ink-strong); border-bottom-color: var(--rule-strong); }
.site-nav li a[aria-current="page"] { color: var(--accent-soft); border-bottom-color: var(--accent); }

/* --- Site footer --------------------------------------------------------- */

.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 2.5rem 0 2rem;
}
.site-footer__inner {
  display: grid; gap: 1.75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .site-footer__inner { grid-template-columns: 1.5fr 1fr 1fr 2fr; align-items: start; }
}
.site-footer__heading {
  font-family: var(--sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin: 0 0 0.7rem;
}
.site-footer__brand .site-footer__name {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  color: var(--ink-strong);
}
.site-footer__tag {
  color: var(--ink-muted);
  font-style: italic;
  margin: 0;
}
.site-footer__col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.45rem;
}
.site-footer__col a {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-muted);
  text-decoration: none;
}
.site-footer__col a:hover { color: var(--accent-soft); }

.site-footer__companion {
  background: var(--bg-elev-2);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1.1rem;
  font-size: 0.94rem;
}
.site-footer__companion p { margin: 0 0 0.5rem; }
.site-footer__companion p:last-child { margin-bottom: 0; }
.site-footer__companion a { color: var(--accent-soft); text-decoration: none; }
.site-footer__companion a:hover { color: var(--ink-strong); }
.site-footer__companion-blurb { color: var(--ink-muted); font-style: italic; }

.site-footer__legal {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-faint);
  grid-column: 1 / -1;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

/* --- Home: hero ---------------------------------------------------------- */

.home-hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2.5rem;
}
.home-hero .wm {
  font-size: clamp(3rem, 9vw, 6rem);
  line-height: 1;
  display: block;
  margin: 0 0 1.4rem;
}
.home-hero__tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  color: var(--accent-soft);
  margin: 0 0 1.5rem;
  max-width: 42ch;
}
.home-hero__lede {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: var(--measure);
  margin: 0 0 1.75rem;
}
.home-hero__ctas {
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem;
}
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.88rem;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--rule-strong);
  color: var(--ink-strong);
  background: transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { border-color: var(--accent); color: var(--accent-soft); }
.btn--primary { border-color: var(--accent); color: var(--accent-soft); }
.btn--primary:hover { background: var(--accent); color: var(--bg); }

/* --- Card grid (home + methodology index) -------------------------------- */

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .card-grid--2 { grid-template-columns: 1fr 1fr; } }

.card {
  display: block;
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  padding: 1.2rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--accent); }
.card .card__num {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.5rem;
}
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--ink-strong);
  border: 0;
  padding: 0;
}
.card p {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.55;
}

/* --- Pull quote --------------------------------------------------------- */

.pullquote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.25;
  color: var(--ink-strong);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1.6rem 0;
  margin: 2.5rem 0;
  max-width: var(--measure);
}
.pullquote .wm-mission { color: var(--mission); }

/* --- Section dividers / intros ------------------------------------------ */

.section-intro {
  font-size: 1.05rem;
  color: var(--ink);
  max-width: var(--measure);
  margin-bottom: 1.5rem;
}

/* --- In-practice callout (methodology pages) ---------------------------- */

.in-practice {
  background: var(--bg-elev);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  max-width: var(--measure);
}
.in-practice h4 {
  margin: 0 0 0.4rem;
  color: var(--accent-soft);
}
.in-practice p { margin: 0; font-size: 1rem; }

/* --- Companion card (home + about) -------------------------------------- */

.companion-card {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 1.4rem 1.5rem;
  margin: 3rem 0 1rem;
  max-width: var(--measure);
}
.companion-card .eyebrow { margin-bottom: 0.5rem; }
.companion-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  border: 0; padding: 0;
}
.companion-card p { margin: 0 0 0.5rem; }
.companion-card p:last-child { margin-bottom: 0; }

/* --- Breadcrumb --------------------------------------------------------- */

.breadcrumb {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 0 0 1rem;
}
.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}
.breadcrumb a:hover { color: var(--accent-soft); border-bottom-color: var(--accent); }
.breadcrumb .sep { margin: 0 0.4em; color: var(--ink-faint); }

/* --- Prev / next (methodology sub-pages) -------------------------------- */

.prevnext {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin: 3rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
}
@media (min-width: 640px) { .prevnext { grid-template-columns: 1fr 1fr; } }
.prevnext a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 0.8rem 1rem;
  border: 1px solid var(--rule);
  transition: border-color 0.15s ease;
}
.prevnext a:hover { border-color: var(--accent); }
.prevnext .pn__label {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  margin-bottom: 0.3rem;
}
.prevnext .pn__title { color: var(--ink-strong); font-size: 1.02rem; }
.prevnext .pn--next { text-align: right; }

/* --- Tools page lists --------------------------------------------------- */

.toollist {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.toollist li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
}
.toollist li:last-child { border-bottom: 0; }
.toollist a {
  font-weight: 600;
  color: var(--ink-strong);
  text-decoration: none;
}
.toollist a:hover { color: var(--accent-soft); }
.toollist .toollist__desc {
  display: block;
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-top: 0.15rem;
}

/* --- Colophon note (about-page honto.me line) --------------------------- */

.colophon-note {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.colophon-note a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
}
.colophon-note a:hover { color: var(--accent-soft); border-bottom-color: var(--accent); }

/* --- Responsive tweaks --------------------------------------------------- */

@media (max-width: 540px) {
  body { font-size: 17px; }
  .site-header__inner { flex-direction: column; align-items: flex-start; }
  .site-nav { margin-left: 0; }
  .site-nav ul { gap: 0.2rem 1rem; }
}

/* --- Print --------------------------------------------------------------- */

@media print {
  .site-nav, .site-footer { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
  main { padding: 0; }
  h1, h2, h3, h4 { color: #000; }
  .wm-mission { color: #000; font-style: italic; }
}
