/* The road ahead. Jesse J. Camacho, concept 3.
   One spine, seven stages. Literata only. Locked palette. */

:root{
  --ink:      #15171A;
  --navy:     #1E3A5F;
  --navy-deep:#16304E;
  --band:     #F6F6F4;
  --hairline: #E4E5E2;
  --white:    #FFFFFF;

  --serif: "Literata", Georgia, "Century Schoolbook", serif;

  /* six sizes, no more */
  --t-display: 44px;
  --t-eyebrow: 17px;
  --t-head:    30px;
  --t-lead:    23px;
  --t-body:    20px;
  --t-small:   19px;

  --spine-x: 17px;      /* centre line of the spine */
  --marker:  34px;
  --stage-indent: 78px;
}

*{ box-sizing: border-box; }

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

body{
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--t-body);
  line-height: 1.62;
  font-weight: 400;
  overflow-x: hidden;
}

.wrap{
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- links and focus ---------- */

a{
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
a:hover{ color: var(--navy-deep); text-decoration-thickness: 2px; }

a:focus-visible,
summary:focus-visible,
.skip:focus{
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip{
  position: absolute;
  display: inline-block;
  left: -9999px;
  top: 0;
  background: var(--white);
  color: var(--navy);
  padding: 14px 20px;
  min-height: 44px;
  font-size: var(--t-small);
  border: 1px solid var(--hairline);
  z-index: 10;
}
.skip:focus{
  left: 16px;
  top: 16px;
}

.vh{
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- navigation: hairline rules, the site's own idiom ---------- */

.nav{
  border-bottom: 1px solid var(--hairline);
  background: var(--white);
}

.nav-inner{
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 6px 32px 7px;
}

.nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 28px;
}

.nav a{
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
  font-size: var(--t-small);
  line-height: 1.3;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.nav a:hover{
  color: var(--navy-deep);
  border-bottom-color: var(--hairline);
}
.nav a[aria-current="page"]{
  color: var(--navy);
  font-weight: 600;
  border-bottom-color: var(--navy);
}
.nav a:focus-visible{
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

/* ---------- the opening heading, shared by the interior banner ---------- */

h1{
  margin: 0 0 14px;
  font-size: var(--t-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

/* the compact interior banner: a heading, a line, a hairline */
.banner{
  border-bottom: 1px solid var(--hairline);
  padding: clamp(30px, 4.5vh, 44px) 0 clamp(24px, 3.5vh, 34px);
  animation: rise 460ms ease-out both;
}
.banner h1{ margin-bottom: 12px; }
.banner p{
  margin: 0;
  font-size: var(--t-lead);
  line-height: 1.4;
  letter-spacing: -0.01em;
  max-width: 46ch;
}

@keyframes rise{
  from{ opacity: 0; transform: translateY(10px); }
  to  { opacity: 1; transform: none; }
}

/* ---------- the spine ---------- */

.road{ padding: 8px 0 0; }

.stages{ position: relative; }

/* the rule itself, drawn behind the markers */
.stages::before{
  content: "";
  position: absolute;
  left: var(--spine-x);
  top: 52px;
  bottom: 24px;
  width: 1px;
  background: var(--hairline);
}

/* the road ends: a small terminus on the spine */
.stages::after{
  content: "";
  position: absolute;
  left: calc(var(--spine-x) - 4px);
  bottom: 20px;
  width: 9px;
  height: 9px;
  background: var(--navy);
  border-radius: 2px;
}

.stage{
  position: relative;
  padding: 52px 0 44px var(--stage-indent);
}

.marker{
  position: absolute;
  left: 0;
  top: 52px;
  width: var(--marker);
  height: var(--marker);
  background: var(--navy);
  color: var(--white);
  border-radius: 2px;
  font-size: var(--t-small);
  font-weight: 600;
  line-height: var(--marker);
  text-align: center;
}

h2{
  margin: 0 0 22px;
  font-size: var(--t-head);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 26ch;
}

.stage p{
  margin: 0 0 22px;
  max-width: 66ch;
}

/* the honest note at the foot of every stage */
.note{
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  max-width: 62ch;
}
.note-label{
  display: block;
  color: var(--navy);
  font-weight: 600;
  font-size: var(--t-small);
  margin-bottom: 6px;
}

/* ---------- voices pinned to the stage ---------- */

.voice{
  margin: 34px 0 0;
  padding: 26px 30px 28px;
  background: var(--band);
  border-left: 3px solid var(--navy);
  max-width: 62ch;
}

.voice-frame{
  margin: 0 0 16px;
  font-size: var(--t-small);
  color: var(--navy);
  font-weight: 600;
  max-width: 52ch;
}

.voice blockquote{
  margin: 0;
}
.voice blockquote p{
  margin: 0;
  font-size: var(--t-body);
  line-height: 1.58;
}
/* keep the writer's own paragraph breaks visible */
.voice blockquote p + p{ margin-top: 18px; }

.voice figcaption{
  margin-top: 16px;
  font-size: var(--t-small);
  line-height: 1.45;
  max-width: 52ch;
}

.verify{
  margin-top: 24px;
  font-size: var(--t-small);
  max-width: 60ch;
}

/* ---------- disclosure ---------- */

details{
  margin-top: 22px;
  border-top: 1px solid var(--hairline);
}

summary{
  list-style: none;
  cursor: pointer;
  color: var(--navy);
  font-size: var(--t-small);
  font-weight: 600;
  padding: 14px 36px 14px 0;
  min-height: 44px;
  position: relative;
  display: block;
  transition: color 180ms ease;
}
summary::-webkit-details-marker{ display: none; }
summary:hover{ color: var(--navy-deep); }

summary span{
  text-decoration: underline;
  text-underline-offset: 3px;
}

summary::after{
  content: "+";
  position: absolute;
  right: 4px;
  top: 14px;
  font-size: var(--t-body);
  line-height: 1.4;
  color: var(--navy);
}
details[open] summary::after{ content: "\2212"; }

.details-body{
  padding-bottom: 8px;
  animation: unfold 260ms ease-out both;
}
.details-body p{
  margin: 0 0 18px;
  font-size: var(--t-body);
  line-height: 1.58;
}
.details-body p:last-child{ margin-bottom: 0; }

@keyframes unfold{
  from{ opacity: 0; transform: translateY(-6px); }
  to  { opacity: 1; transform: none; }
}

/* ---------- quiet structure: markers without a road ---------- */
/* used where the content genuinely has no order */

.stages--quiet::before,
.stages--quiet::after{ display: none; }

.stages--quiet .stage{
  padding-top: 44px;
  padding-bottom: 8px;
  border-top: 1px solid var(--hairline);
}
.stages--quiet .stage:first-child{ border-top: 0; padding-top: 20px; }
.stages--quiet .marker{ top: 44px; }
.stages--quiet .stage:first-child .marker{ top: 20px; }

/* ---------- hairline rows: lists that are not a sequence ---------- */

.rows{
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
  max-width: 66ch;
}
.rows li{
  padding: 16px 0;
  border-bottom: 1px solid var(--hairline);
}
.rows .row-name{
  display: block;
  font-weight: 600;
}
.rows .row-detail{
  display: block;
  font-size: var(--t-small);
  line-height: 1.5;
  margin-top: 4px;
}
.rows--plain li{ padding: 12px 0; }

/* ---------- the caution block ---------- */

.caution{
  margin: 34px 0 6px;
  padding: 22px 26px 24px;
  background: var(--band);
  border-left: 3px solid var(--navy);
  max-width: 62ch;
}
.caution p{
  margin: 0 0 14px;
  font-size: var(--t-small);
  line-height: 1.55;
}
.caution p:last-child{ margin-bottom: 0; }

/* ---------- photograph placeholders ---------- */

.photo-slot{
  margin: 30px 0 0;
  padding: 30px 26px;
  background: var(--band);
  border: 1px dashed var(--navy);
  max-width: 62ch;
}
.photo-slot p{
  margin: 0;
  font-size: var(--t-small);
  line-height: 1.5;
  color: var(--navy);
  max-width: 54ch;
}

/* ---------- close, contact, fine print ---------- */

.close{
  margin-top: 24px;
  padding: 56px 0;
  background: var(--band);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.close h2{ margin-bottom: 20px; }
.close p{
  margin: 0 0 22px;
  max-width: 64ch;
}
.close p:last-child{ margin-bottom: 0; }

.contact{ padding: 56px 0 8px; }
.contact h2{ margin-bottom: 18px; }
.contact > .wrap > p{ max-width: 62ch; }

.contact-list{
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
  max-width: 62ch;
}
.contact-list li{
  border-bottom: 1px solid var(--hairline);
}
.contact-list a{
  display: block;
  padding: 16px 2px;
  min-height: 56px;
  font-size: var(--t-body);
}

.small{
  font-size: var(--t-small);
  line-height: 1.6;
  max-width: 66ch;
  margin: 0 0 20px;
}
.contact .small{ margin-top: 42px; }

.fine{
  padding: 44px 0 64px;
  border-top: 1px solid var(--hairline);
}
.fine p{
  margin: 0 0 12px;
  font-size: var(--t-small);
  line-height: 1.5;
  max-width: 66ch;
  color: var(--ink);
}

.fine-links{
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  max-width: 62ch;
  border-top: 1px solid var(--hairline);
}
.fine-links li{ border-bottom: 1px solid var(--hairline); }
.fine-links a{
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 12px 2px;
  font-size: var(--t-small);
}
.fine-place{
  margin-bottom: 26px;
}
.fine-notices{
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}

/* ---------- narrow screens: one clean left aligned column ---------- */

@media (max-width: 760px){
  :root{
    --t-display: 34px;
    --t-head: 26px;
    --t-lead: 21px;
    --t-body: 19px;
    --t-small: 19px;
    --spine-x: 13px;
    --marker: 26px;
    --stage-indent: 42px;
  }
  .wrap{ padding: 0 20px; }
  .nav-inner{ padding: 4px 20px 5px; }
  .nav ul{ column-gap: 22px; }
  .stages::before{ top: 44px; bottom: 20px; }
  .road{ padding: 6px 0 0; }
  h1{ margin-bottom: 12px; }
  .banner{ padding: 28px 0 24px; }
  .stage{ padding: 44px 0 34px var(--stage-indent); }
  .marker{ top: 44px; line-height: var(--marker); }
  .stages--quiet .stage{ padding-top: 34px; padding-bottom: 6px; }
  .stages--quiet .stage:first-child{ padding-top: 16px; }
  .stages--quiet .marker{ top: 34px; }
  .stages--quiet .stage:first-child .marker{ top: 16px; }
  .voice{ padding: 22px 20px 24px; border-left-width: 3px; }
  .caution{ padding: 20px 18px 22px; }
  .photo-slot{ padding: 24px 18px; }
  .close, .contact{ padding: 42px 0; }
  .fine{ padding: 36px 0 52px; }
}

@media (max-width: 400px){
  :root{ --t-display: 31px; }
  .wrap{ padding: 0 18px; }
}

/* ---------- motion off when asked ---------- */

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.road-lead{
  font-size: var(--t-lead);
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 30ch;
  margin: 0 0 clamp(2rem, 5vw, 3rem);
}
