/* jessecamacho9.noahlot.com — SITE 9, "This week".
   One sheet of good paper. Palette and type are locked. */

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

  --s-small:   18px;
  --s-body:    20px;
  --s-quote:   clamp(1.5rem, 4.5vw, 2rem);
  --s-h2:      clamp(1.5rem, 3.4vw, 1.875rem);
  --s-h1:      clamp(2rem, 6vw, 2.75rem);
  --s-phone:   clamp(2.25rem, 9vw, 4rem);
  --s-numeral: clamp(4.75rem, 15vw, 9.5rem);

  --measure:   34rem;
  --rail:      8.5rem;
  --gutter:    clamp(1.375rem, 5vw, 3rem);
  --radius:    0px;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Literata", Georgia, "Century Schoolbook", serif;
  font-size: var(--s-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

img { max-width: 100%; height: auto; }

/* ---------- links ---------- */

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

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

/* ---------- for screen readers only ---------- */

.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;
}

.actions:focus { outline: none; }
.actions:focus-visible { outline: 2px solid var(--navy); outline-offset: 6px; }

/* ---------- skip link ---------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--white);
  color: var(--navy);
  font-size: var(--s-small);
  padding: 12px 18px;
  min-height: 44px;
  border: 1px solid var(--navy);
}
.skip:focus {
  left: var(--gutter);
  top: 12px;
}

/* ---------- page frame ---------- */

main {
  display: block;
  padding: 0 var(--gutter);
}

main:focus { outline: none; }

.intro,
.opening,
.actions,
.banner-inner,
.band-inner,
.voice,
.close,
.foot-inner,
.sitenav-inner {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- navigation: the running head of the sheet ---------- */

.sitenav {
  padding: clamp(1.5rem, 4vh, 2.5rem) var(--gutter) 0;
}

.sitenav-head {
  margin: 0 0 0.65rem;
  font-size: var(--s-small);
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy);
}

.sitenav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: clamp(1.1rem, 3.2vw, 1.9rem);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.sitenav-links a {
  display: inline-block;
  min-height: 44px;
  padding: 11px 0;
  font-size: var(--s-small);
  line-height: 22px;
  color: var(--ink);
  text-decoration: none;
}

.sitenav-links a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.sitenav-links a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

/* ---------- interior page banner ---------- */

.banner {
  padding: clamp(2.5rem, 8vh, 4.25rem) 0 clamp(2rem, 6vh, 3.25rem);
}

.banner-line {
  max-width: var(--measure);
  margin: 0;
  color: var(--navy);
}

/* ---------- quotations ---------- */

.pull,
.rec {
  margin: 1.9rem 0 0;
}

.rec { margin-top: 0; }

.pull blockquote,
.rec blockquote {
  margin: 0 0 1.15rem;
  max-width: var(--measure);
  padding-left: 1.25rem;
  border-left: 2px solid var(--hairline);
}

.pull blockquote p,
.rec blockquote p { margin: 0 0 1.05em; }

.pull blockquote p:last-child,
.rec blockquote p:last-child { margin-bottom: 0; }

.pull figcaption,
.rec-meta {
  font-size: var(--s-small);
  line-height: 1.5;
  max-width: var(--measure);
  margin: 0 0 1.15rem;
}

.rec-meta { margin-bottom: 1.5rem; }

/* ---------- ruled lists ---------- */

.ruled {
  list-style: none;
  margin: 1.55rem 0 0;
  padding: 0;
  max-width: var(--measure);
}

.ruled > li {
  padding: 1.05rem 0;
  border-top: 1px solid var(--hairline);
}

.ruled > li:last-child { border-bottom: 1px solid var(--hairline); }

.ruled cite {
  font-style: italic;
}

.ruled .detail {
  display: block;
  font-size: var(--s-small);
  line-height: 1.5;
}

/* ---------- photo placeholders ---------- */

.photo-slot {
  max-width: var(--measure);
  margin: 1.9rem 0 0;
  padding: clamp(2.25rem, 7vh, 3.5rem) 1.4rem;
  background: var(--band);
  border: 1px dashed var(--navy);
}

.photo-slot p {
  margin: 0;
  font-size: var(--s-small);
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- a plain paragraph sitting in the text column ---------- */

.column {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  padding-top: clamp(2.5rem, 7vh, 4rem);
}

.column h2 {
  margin: 0 0 0.5em;
  font-size: var(--s-h2);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.column p,
.column .linkline { max-width: var(--measure); }

.linkline {
  font-size: var(--s-small);
  line-height: 1.5;
  max-width: var(--measure);
}

.action-body .phone { margin: 0 0 1.1rem; }

.linkline a {
  display: inline-block;
  padding: 11px 0;
}

/* ---------- the introduction ---------- */

.intro {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0;
  column-gap: clamp(2rem, 5vw, 3rem);
  padding-top: clamp(3.25rem, 11vh, 6.5rem);
  padding-bottom: clamp(2.5rem, 8vh, 4.5rem);
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: var(--s-small);
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy);
}

.nb { white-space: nowrap; }

h1 {
  margin: 0 0 0.3em;
  font-size: var(--s-h1);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.tagline {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.intro-para {
  max-width: 62ch;
  margin: 0;
}

.intro-portrait {
  order: -1;
  display: block;
  width: 70%;
  max-width: 280px;
  height: auto;
  margin: 0 0 2.25rem;
  border-bottom: 3px solid var(--navy);
}

/* ---------- what to do this week ---------- */

.opening {
  padding-bottom: clamp(2rem, 5vh, 3rem);
}

.opening h2 {
  margin: 0 0 0.55em;
  font-size: var(--s-quote);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--navy);
}

.lede {
  max-width: var(--measure);
  margin: 0;
}

/* ---------- the six actions ---------- */

.actions {
  list-style: none;
  padding: 0;
  margin-top: 0;
  margin-bottom: 0;
  border-top: 1px solid var(--hairline);
}

.actions > li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 2.5rem;
  padding: clamp(2.75rem, 8vh, 4.5rem) 0;
  border-bottom: 1px solid var(--hairline);
}

.numeral {
  display: block;
  font-size: var(--s-numeral);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.action-body { max-width: var(--measure); }

.actions h2,
.actions h3 {
  margin: 0 0 0.55em;
  font-size: var(--s-h2);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ---------- what not to do ---------- */

.band {
  background: var(--band);
  margin: clamp(3.5rem, 10vh, 6rem) calc(-1 * var(--gutter)) 0;
  padding: clamp(3.25rem, 9vh, 5.5rem) var(--gutter);
}

.band-inner { max-width: 46rem; }

.band h2 {
  margin: 0 0 0.7em;
  font-size: var(--s-h2);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.band p { max-width: var(--measure); }

/* ---------- the one voice ---------- */

.voice {
  margin: clamp(4rem, 12vh, 7.5rem) auto;
  padding: 0;
}

.voice blockquote {
  margin: 0 0 1.4rem;
  max-width: 24ch;
  font-size: var(--s-quote);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.voice figcaption {
  font-size: var(--s-small);
  line-height: 1.5;
  max-width: var(--measure);
}

.voice figcaption a {
  display: inline-block;
  padding: 11px 0;
}

/* ---------- close ---------- */

.close {
  padding-top: clamp(3rem, 9vh, 5rem);
  padding-bottom: clamp(2.5rem, 7vh, 4rem);
  border-top: 1px solid var(--hairline);
}

.close-line { max-width: var(--measure); }

.close-links {
  font-size: var(--s-small);
  line-height: 1.5;
  margin-bottom: 2.25rem;
}

.close-links a {
  display: inline-block;
  padding: 11px 0;
}

.phone { margin: 0; }

.phone a {
  display: inline-block;
  min-height: 44px;
  padding: 4px 0;
  font-size: var(--s-phone);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

/* ---------- disclaimers ---------- */

footer {
  padding: clamp(1.75rem, 4vh, 2.5rem) var(--gutter) clamp(4rem, 12vh, 7rem);
}

.foot-inner {
  padding-top: 1.75rem;
  border-top: 1px solid var(--hairline);
}

.foot-routes {
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: clamp(1.1rem, 3.2vw, 1.9rem);
  font-size: var(--s-small);
}

.foot-routes a,
.foot-routes span {
  display: inline-block;
  min-height: 44px;
  padding: 11px 0;
  line-height: 22px;
}

.foot-legal {
  margin: 0;
  font-size: var(--s-small);
  line-height: 1.6;
  color: var(--ink);
}

/* ---------- desktop: numerals move into their own column ---------- */

@media (min-width: 720px) {
  /* The introduction is the masthead of the sheet: it holds the full width,
     text left and portrait right, bottom-aligned. */
  .intro {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: end;
  }
  /* The location line runs across the head of the sheet so it stays on one
     line at the tracking the block calls for. */
  .eyebrow    { grid-column: 1 / -1; grid-row: 1; }
  .intro-text { grid-column: 1; grid-row: 2; }
  .intro-portrait {
    grid-column: 2;
    grid-row: 2;
    order: 0;
    width: 100%;
    max-width: 360px;
    margin-bottom: 0;
  }

  .actions > li {
    grid-template-columns: var(--rail) minmax(0, 1fr);
    align-items: start;
  }
  .numeral {
    text-align: right;
    margin-top: -0.14em;
  }
  /* Everything else aligns to the same text column, so the numerals
     hang alone in the left margin of the sheet. */
  .opening,
  .banner-inner,
  .band-inner,
  .voice,
  .close,
  .column,
  .foot-inner {
    padding-left: calc(var(--rail) + 2.5rem);
  }
}

/* ---------- motion ---------- */

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

.intro,
.opening,
.banner,
.actions,
.band,
.voice,
.close,
.column,
footer {
  animation: rise 600ms ease-out both;
}
.opening { animation-delay: 90ms; }
.banner  { animation-delay: 60ms; }
.actions { animation-delay: 140ms; }
.band    { animation-delay: 190ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
