/* ==========================================================================
   Ebony Paster — personal site
   Design system: Understory, Clay accent
   Fonts: Newsreader (reading), Atkinson Hyperlegible (labels)
   ========================================================================== */

:root {
  /* Surfaces and text */
  --paper: #fbf7f0;
  --linen: #f1eadd;
  --silt: #d9d0c1;
  --stone: #6b655b;
  --bark: #22201c;

  /* Signature */
  --fern: #2e4a3b;
  --moss: #5c7c69;

  /* Clay accent */
  --clay-deep: #6e4530;
  --clay: #8c5a3c;
  --clay-lift: #c98a63;

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --legible: "Atkinson Hyperlegible", "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --page: 1280px;
  --gutter: 80px;
}

@media (max-width: 900px) {
  :root { --gutter: 40px; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }
}

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

/* Our layout classes set display, which would otherwise beat the browser's
   rule for the hidden attribute and leave hidden blocks on screen. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--linen);
  color: var(--bark);
  font-family: var(--legible);
  font-size: 17px;
  line-height: 1.5;
}

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

a { color: var(--clay-deep); text-underline-offset: 3px; }
a:hover { color: var(--clay); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--fern);
  color: var(--paper);
  padding: 12px 20px;
  z-index: 10;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------- Typography */

.display,
.h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--fern);
  margin: 0;
}

.h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.08;
  color: var(--fern);
  margin: 0;
}

.h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 28px);
  line-height: 1.2;
  color: var(--fern);
  margin: 0;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.55;
  margin: 0;
  max-width: 32em;
}

.prose {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  max-width: 34em;
}

.label {
  font-family: var(--legible);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.33;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.small {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.5;
  color: var(--stone);
  margin: 0;
}

.subhead {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.clay { color: var(--clay-deep); }
.on-dark-muted { color: var(--silt); }

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

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

.section { padding-top: 96px; padding-bottom: 96px; }
.section--tight { padding-top: 64px; padding-bottom: 64px; }

.band-fern { background: var(--fern); color: var(--paper); }
.band-bark { background: var(--bark); color: var(--paper); }
.band-paper { background: var(--paper); }

.band-fern .h2,
.band-bark .h2,
.band-fern .h3,
.band-bark .h3 { color: var(--paper); }

/* Cards keep their own light surface inside a dark band, so their text must
   stay dark rather than inheriting the band's paper-colored headings. */
.band-fern .card,
.band-bark .card { color: var(--bark); }

.band-fern .card .h3,
.band-bark .card .h3 { color: var(--fern); }

.band-fern a,
.band-bark a { color: var(--clay-lift); }
.band-fern a:hover,
.band-bark a:hover { color: var(--paper); }
.band-fern :focus-visible,
.band-bark :focus-visible { outline-color: var(--clay-lift); }

.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-40 { gap: 40px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .grid-2,
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .section { padding-top: 64px; padding-bottom: 64px; }
}

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

.btn {
  display: inline-block;
  font-family: var(--legible);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 28px;
  min-height: 44px;
  text-align: center;
}

.btn-primary { background: var(--fern); color: var(--paper); }
.btn-primary:hover { background: var(--bark); color: var(--paper); }

.btn-outline {
  border: 1px solid var(--stone);
  color: var(--bark);
  background: transparent;
}
.btn-outline:hover { border-color: var(--fern); color: var(--fern); }

.band-bark .btn-primary,
.band-fern .btn-primary { background: var(--paper); color: var(--bark); }

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

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  padding-bottom: 28px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--fern);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.site-nav a {
  font-family: var(--legible);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--bark);
  text-decoration: none;
  background: var(--paper);
  padding: 14px 18px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.site-nav a:hover { background: var(--silt); color: var(--bark); }
.site-nav a[aria-current="page"] { background: var(--silt); }
.site-nav a.nav-cta { background: var(--fern); color: var(--paper); }
.site-nav a.nav-cta:hover { background: var(--bark); }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 56px;
  align-items: start;
  padding-top: 64px;
  padding-bottom: 80px;
}

/* Home's hero carries the portrait plus two cards, so it gets a wider
   right-hand column and lays those out side by side. */
.hero--home { grid-template-columns: minmax(0, 1fr) 580px; align-items: center; }

.hero-media {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
  align-items: end;
}

@media (max-width: 1000px) {
  .hero,
  .hero--home { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 700px) {
  .hero-media { grid-template-columns: minmax(0, 1fr); }
}

.hero-actions {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--paper);
}

/* -------------------------------------------------------------------- Cards */

.card {
  background: var(--paper);
  border: 1px solid var(--silt);
  text-decoration: none;
  color: var(--bark);
  display: flex;
  flex-direction: column;
}

.card:hover { border-color: var(--fern); }

.card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--linen);
  border-bottom: 1px solid var(--silt);
}

.card-body { padding: 28px; display: flex; flex-direction: column; gap: 10px; }

/* Pathway tiles */

.pathways { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tile {
  text-decoration: none;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 220px;
}

.tile-lg {
  grid-column: span 2;
  grid-row: span 2;
  background: var(--fern);
  color: var(--paper);
  padding: 40px;
  min-height: 340px;
}

.tile-md { grid-column: span 2; background: var(--bark); color: var(--paper); }
.tile-sm { grid-column: span 2; background: var(--paper); color: var(--bark); }

.tile-lg .tile-title { font-size: clamp(40px, 5.6vw, 72px); }
.tile-md .tile-title { font-size: clamp(32px, 3.8vw, 48px); }
.tile-sm .tile-title { font-size: clamp(28px, 2.8vw, 36px); color: var(--fern); }

.tile-title {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.05;
}

.tile-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }

.tile:hover .arrow { transform: translateX(4px); }
.arrow { transition: transform 120ms ease-out; flex-shrink: 0; }

@media (max-width: 900px) {
  .pathways { grid-template-columns: minmax(0, 1fr); }
  .tile-lg, .tile-md, .tile-sm { grid-column: span 1; grid-row: span 1; }
}

/* ------------------------------------------------------- Placeholder blocks */

.placeholder {
  background: var(--paper);
  border: 1px dashed var(--stone);
  color: var(--stone);
  font-family: var(--legible);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  min-height: 160px;
}

.placeholder--media { aspect-ratio: 16 / 9; min-height: 0; }
.placeholder--portrait { aspect-ratio: 4 / 5; min-height: 0; }
.placeholder--square { aspect-ratio: 1 / 1; min-height: 0; }

/* ------------------------------------------------------------ Facts / lists */

.facts { display: grid; gap: 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 800px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.fact { display: flex; flex-direction: column; gap: 8px; }

.panel {
  background: var(--paper);
  border: 1px solid var(--silt);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rule { border: 0; border-top: 1px solid var(--silt); margin: 0; }
.band-fern .rule, .band-bark .rule { border-top-color: var(--moss); }

.steps { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-family: var(--serif); }
.checklist .mark { font-family: var(--legible); font-size: 12px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; flex-shrink: 0; min-width: 5.5em; padding-top: 4px; }
.mark-done { color: var(--moss); }
.mark-todo { color: var(--stone); }

.tag {
  display: inline-block;
  font-family: var(--legible);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border: 1px solid var(--stone);
  padding: 4px 8px;
}

.stack > .tag { align-self: flex-start; }

.tag--in-use { border-color: var(--fern); color: var(--fern); }
.tag--in-progress { border-color: var(--clay-deep); color: var(--clay-deep); }
.tag--idea { border-color: var(--stone); color: var(--stone); }

/* ----------------------------------------------------------------- Slideshow */

.slideshow { display: flex; flex-direction: column; gap: 24px; }

.slide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--silt);
  padding: 32px;
}

@media (max-width: 860px) {
  .slide { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

.slide-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.slide-nav { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  width: 44px;
  height: 44px;
  border: 1px solid var(--stone);
  background: transparent;
  color: var(--bark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--fern); color: var(--fern); }

.dots { display: flex; gap: 8px; }
.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid var(--stone);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.dot[aria-current="true"] { background: var(--fern); border-color: var(--fern); }

.counter { font-family: var(--legible); font-size: 13px; color: var(--stone); }

.slide-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.details {
  border-top: 1px solid var(--silt);
  padding-top: 24px;
  margin-top: 8px;
}

.details > summary {
  cursor: pointer;
  font-family: var(--legible);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--clay-deep);
  min-height: 44px;
  display: flex;
  align-items: center;
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 80px;
  padding-bottom: 80px;
}

.footer-quote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.08;
  color: var(--paper);
  margin: 0;
}

.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links a { font-size: 17px; }

/* ------------------------------------------------------------------ Utility */

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

.confidentiality {
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.6;
  color: var(--stone);
  border-left: 0;
  max-width: 46em;
  margin: 0;
}
