/* Jesse J. Camacho, concept 6: VOICES
   Locked palette and one typeface. Nothing decorative. */

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

  /* seven sizes, no more */
  --t-h1:   clamp(32px, 5vw, 44px);
  --t-xl:   clamp(24px, 3.0vw, 28px);
  --t-lg:   clamp(21px, 2.4vw, 24px);
  --t-sm:   clamp(20px, 2.0vw, 21px);
  --t-note: 19px;
  --t-meta: 18px;
  --t-eyebrow: 17px;

  --serif: "Literata", Georgia, "Century Schoolbook", serif;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

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

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

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

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

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

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

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

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -6rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 1rem;
  background: var(--navy);
  color: var(--white);
  font-size: var(--t-meta);
  text-decoration: underline;
  transition: top 160ms ease;
}
.skip:hover { color: var(--white); }
.skip:focus { top: 0; }

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

.nav {
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  column-gap: clamp(1.1rem, 2.6vw, 2rem);
}
.nav__list a {
  display: flex;
  align-items: center;
  min-height: 52px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--ink);
  font-size: var(--t-meta);
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}
.nav__list a:hover {
  color: var(--navy);
  border-bottom-color: var(--hairline);
}
.nav__list a[aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
  border-bottom-color: var(--navy);
}
@media (max-width: 640px) {
  .nav__list { column-gap: 1rem; }
  .nav__list a { min-height: 44px; }
}

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

.banner {
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) clamp(2rem, 5vw, 3rem);
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
}
/* the banner sits in the same reading column the bands use */
.banner__inner { max-width: 62ch; margin: 0 auto; }
.banner h1 { max-width: 22ch; }
.banner__line {
  margin: 1.15rem 0 0;
  max-width: 56ch;
  font-size: var(--t-lg);
  line-height: 1.4;
  color: var(--navy);
}

/* ---------- the band rhythm, carried onto every page ---------- */

.band { padding: clamp(3rem, 7vw, 5rem) var(--gutter); }
.band--white { background: var(--white); }
.band--tone  { background: var(--band); }
.band--close { padding-bottom: clamp(4rem, 9vw, 6.5rem); }
.band__inner { max-width: 1080px; margin: 0 auto; }
.band__body  { max-width: 62ch; }
.band__body p { font-size: var(--t-note); }

h3 {
  margin: 2.4rem 0 0.8rem;
  font-size: var(--t-note);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
h3:first-child { margin-top: 0; }

/* ---------- hairline lists ---------- */

.list {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 62ch;
  border-top: 1px solid var(--hairline);
}
.list > li {
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--t-note);
  line-height: 1.6;
}
.list > li b {
  display: block;
  font-weight: 600;
  color: var(--navy);
}
.list--wide { max-width: 68ch; }

/* standalone links get a real target, inline links in sentences stay inline */
.list > li > a,
.verify p > a,
.record__source > a,
.more > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.list__note { display: block; }

/* ---------- a client's words inside a band ---------- */

figure.said {
  margin: clamp(2.25rem, 5vw, 3rem) 0 clamp(2.25rem, 5vw, 3rem);
  padding-left: clamp(1rem, 3vw, 1.4rem);
  border-left: 3px solid var(--navy);
  max-width: 58ch;
}
figure.said:last-child { margin-bottom: 0; }
figure.said--open { margin-top: 0; }
.said blockquote { font-size: var(--t-lg); }
.said .attrib { margin-top: 1.4rem; max-width: none; }

/* ---------- the record layout on the recommendations page ---------- */

.verify {
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--navy);
  background: var(--white);
  max-width: 62ch;
}
.verify p { font-size: var(--t-note); }
.verify p:last-child { margin-bottom: 0; }

.record { margin: 0; }
.record__meta {
  margin: 0 0 1.75rem;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.record__meta > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--hairline);
}
.record__meta dt {
  flex: 0 0 auto;
  min-width: 11rem;
  font-size: var(--t-meta);
  color: var(--navy);
}
.record__meta dd {
  flex: 1 1 16rem;
  margin: 0;
  font-size: var(--t-meta);
  line-height: 1.5;
}
.record blockquote { font-size: var(--t-sm); }
.record__source {
  margin: 1.5rem 0 0;
  font-size: var(--t-meta);
}

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

.placeholder {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding: clamp(2.25rem, 5vw, 3.25rem) clamp(1.25rem, 3vw, 2rem);
  background: var(--band);
  border: 1px dashed var(--hairline);
  max-width: 62ch;
}
.placeholder p {
  margin: 0;
  font-size: var(--t-meta);
  line-height: 1.6;
  color: var(--navy);
}
.placeholder b {
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 0.5rem;
}

/* ---------- opening ---------- */

.lede {
  padding: clamp(3rem, 8vw, 5.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
}

.lede__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  animation: rise 700ms ease-out both;
}

/* on narrow screens the portrait sits above the text */
.lede__portrait {
  order: -1;
  margin: 0 0 2.5rem;
}
.lede__portrait img {
  width: 70%;
  max-width: 280px;
  border-bottom: 3px solid var(--navy);
}

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

h1 {
  margin: 0;
  font-size: var(--t-h1);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lede__line {
  margin: 0.7rem 0 0;
  font-size: var(--t-lg);
  line-height: 1.35;
  color: var(--navy);
}

.lede__body {
  margin: 1.85rem 0 0;
  max-width: 50ch;
  font-size: var(--t-note);
  line-height: 1.6;
}

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

/* ---------- the seven bands ---------- */

.voice {
  padding: clamp(3.25rem, 8vw, 6rem) var(--gutter);
}
#voices > .voice:first-child { border-top: 1px solid var(--hairline); }

.voice--white { background: var(--white); }
.voice--tone  { background: var(--band); }

/* a little extra air around the two densest voices */
.voice--rail { padding-top: clamp(3.75rem, 9vw, 7rem); padding-bottom: clamp(3.75rem, 9vw, 7rem); }
.voice--last { padding-bottom: clamp(4rem, 10vw, 7.5rem); }

/* measured, not guessed: these land each size at 60 to 66 characters */
.voice--xl { --measure: 700px; }
.voice--lg { --measure: 734px; }
.voice--sm { --measure: 663px; }

.voice__inner { max-width: 1080px; margin: 0 auto; }
.voice:not(.voice--rail) .voice__inner { max-width: var(--measure); }
.voice--rail .voice__inner { max-width: var(--measure); }

.quote { margin: 0; }

blockquote {
  margin: 0;
  font-weight: 400;
  line-height: 1.6;
  text-wrap: pretty;
}
blockquote p + p { margin-top: 0; }

.voice--xl blockquote { font-size: var(--t-xl); line-height: 1.5; }
.voice--lg blockquote { font-size: var(--t-lg); }
.voice--sm blockquote { font-size: var(--t-sm); }

/* attribution */

.attrib {
  margin-top: 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline);
  font-size: var(--t-meta);
  line-height: 1.5;
  max-width: 44ch;
}
.attrib cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-size: var(--t-note);
  color: var(--ink);
}
.attrib__role,
.attrib__meta { display: block; color: var(--ink); }
.attrib__meta { color: var(--navy); }

/* the connective line: the only editorial voice on the page */

.note {
  margin: clamp(2.25rem, 5vw, 3.25rem) 0 0;
  max-width: 50ch;
  color: var(--navy);
  font-size: var(--t-note);
  line-height: 1.55;
}

/* the measure is centred as a block; everything inside it stays flush left */

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

.close {
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--gutter) clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--hairline);
  background: var(--white);
}
.close__inner { max-width: 1080px; margin: 0 auto; }
.close__text { max-width: 58ch; }

h2 {
  margin: 0 0 1.5rem;
  font-size: var(--t-lg);
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

.close__text p { font-size: var(--t-note); }

/* ---------- contact ---------- */

.contact {
  padding: clamp(3rem, 7vw, 5rem) var(--gutter);
  background: var(--band);
  border-top: 1px solid var(--hairline);
}
.contact__inner { max-width: 1080px; margin: 0 auto; }

.contact__list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 56ch;
  border-top: 1px solid var(--hairline);
}
.contact__list li { border-bottom: 1px solid var(--hairline); }
.contact__list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0.6rem 0;
  font-size: var(--t-note);
}
.contact__place { margin-top: 1.75rem; font-size: var(--t-meta); }

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

.foot {
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) clamp(3rem, 7vw, 4.5rem);
  border-top: 1px solid var(--hairline);
  background: var(--white);
}
.foot__inner { max-width: 62ch; margin: 0 auto; }
.foot p {
  margin: 0 0 0.9em;
  font-size: var(--t-meta);
  line-height: 1.6;
}
.foot p:last-child { margin-bottom: 0; }

.foot__routes {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
}
.foot__routes li { border-bottom: 1px solid var(--hairline); }
.foot__routes a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 0;
  font-size: var(--t-meta);
}
.foot__place { margin-bottom: 2rem; }

/* ---------- wide screens: the two rail bands ---------- */

@media (min-width: 900px) {
  /* the opening: text left, portrait right, bottom aligned */
  .lede__inner {
    display: grid;
    grid-template-columns: 7fr 4fr;
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: end;
  }
  .lede__portrait { order: 0; margin: 0; }
  .lede__portrait img { width: 100%; max-width: 360px; }

  /* rail bands widen to carry the attribution alongside the measure */
  .voice--rail .voice__inner { max-width: calc(16rem + 3.5rem + 663px); }
  .voice--rail .quote {
    display: grid;
    grid-template-columns: 16rem minmax(0, 1fr);
    column-gap: 3.5rem;
  }
  .voice--rail blockquote { grid-column: 2; grid-row: 1; }
  .voice--rail .attrib {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    margin-top: 0.35rem;
    padding-top: 0;
    border-top: 0;
    max-width: none;
  }
  .voice--rail .note { margin-left: calc(16rem + 3.5rem); }

}

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

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