/* Jesse J. Camacho, concept 2: the question board */

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

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

  --gutter: 1.5rem;
  --wrap: 47rem;
  --measure: 40rem;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

h1, h2 {
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

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

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--navy-deep); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.9rem 1.25rem;
  font-size: 18px;
  text-decoration: underline;
  z-index: 10;
}
.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
  color: var(--white);
}

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

.intro {
  padding: 4.5rem 0 3.25rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 7fr 4fr;
  column-gap: 2.5rem;
  align-items: end;
}

.eyebrow {
  grid-column: 1 / -1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy);
  margin: 0 0 1.4rem;
  max-width: none;
}

h1 {
  font-size: clamp(2.1rem, 7vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.tagline {
  font-size: clamp(1.3rem, 4vw, 1.5rem);
  line-height: 1.35;
  margin: 0.7rem 0 1.5rem;
  max-width: none;
}

.intro-body {
  font-size: 20px;
  line-height: 1.6;
  margin: 0;
  max-width: 62ch;
}

.intro-portrait {
  margin: 0;
  max-width: 360px;
  border-bottom: 3px solid var(--navy);
}

.intro-portrait img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- site navigation ---------- */

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

.sitenav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  column-gap: 1.5rem;
}

.sitenav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.45rem 0;
  font-size: 17px;
  line-height: 1.35;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease;
}

.sitenav a:hover { text-decoration: underline; }

.sitenav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--navy);
}

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

.banner {
  padding: 2.75rem 0 2.25rem;
  border-bottom: 1px solid var(--hairline);
}

.banner h1 {
  font-size: clamp(1.7rem, 5.4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 21ch;
}

.banner-line {
  font-size: clamp(1.1rem, 2.9vw, 1.3rem);
  line-height: 1.45;
  color: var(--navy);
  margin: 1.05rem 0 0;
  max-width: 34rem;
}

/* ---------- the board ---------- */

.board {
  padding-bottom: 1rem;
  scroll-margin-top: 1.5rem;
}

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

.board li { border-bottom: 1px solid var(--hairline); }

.board a {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  min-height: 56px;
  padding: 0.95rem 0;
  font-size: 21px;
  line-height: 1.35;
  color: var(--navy);
  text-decoration: none;
  transition: color 180ms ease;
}

.board a::before {
  content: "\2192";
  flex: none;
  color: var(--navy);
  font-size: 18px;
  transform: translateY(-0.1em);
  transition: transform 180ms ease;
}

.board a:hover,
.board a:focus-visible {
  color: var(--navy-deep);
  text-decoration: underline;
}
.board a:hover::before { transform: translate(0.25rem, -0.1em); }

/* ---------- answer blocks ---------- */

.answer {
  padding: 3.5rem 0 3.75rem;
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 1.5rem;
}
.answer:first-of-type { border-top: none; }

.answer h2 {
  font-size: clamp(1.5rem, 4.6vw, 2.05rem);
  line-height: 1.2;
  max-width: 22ch;
  margin-bottom: 1.5rem;
}

.lead {
  font-size: clamp(1.3rem, 3.2vw, 1.55rem);
  line-height: 1.4;
  color: var(--navy);
  max-width: 34rem;
  margin-bottom: 1.6rem;
}

/* ---------- interleaved voices ---------- */

.voice {
  background: var(--band);
  padding: 3.25rem 0 3.5rem;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.voice-label {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 1.1rem;
}

.voice blockquote {
  margin: 0 0 1.35rem;
  padding: 0;
}

.voice blockquote p {
  font-size: clamp(1.3rem, 3.2vw, 1.55rem);
  line-height: 1.5;
  max-width: 34rem;
  margin: 0;
}

.attrib {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  max-width: 34rem;
}

.verify { font-size: 18px; margin: 0; }
.verify a {
  display: inline-block;
  padding: 0.6rem 0;
  min-height: 44px;
  line-height: 1.5;
}

/* ---------- questions to ask ---------- */

.ask {
  padding: 3.5rem 0 3.75rem;
  border-top: 1px solid var(--hairline);
  background: var(--band);
}

.ask h2 {
  font-size: clamp(1.5rem, 4.6vw, 2.05rem);
  line-height: 1.2;
  margin-bottom: 1.4rem;
}

.ask-list {
  list-style: none;
  margin: 2rem 0 2.25rem;
  padding: 0;
  border-top: 1px solid var(--hairline);
  max-width: 36rem;
}

.ask-list li {
  border-bottom: 1px solid var(--hairline);
  padding: 1.05rem 0;
  line-height: 1.5;
}

.backlink { font-size: 18px; margin: 0; }
.backlink a {
  display: inline-block;
  padding: 0.6rem 0;
  min-height: 44px;
  line-height: 1.5;
}

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

.contact {
  padding: 3.5rem 0 3.5rem;
  border-top: 1px solid var(--hairline);
}

.contact h2 {
  font-size: clamp(1.5rem, 4.6vw, 2.05rem);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  max-width: 24ch;
}

.contact-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
  max-width: 36rem;
}

.contact-list li { border-bottom: 1px solid var(--hairline); }

.contact-list a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0.85rem 0;
  line-height: 1.4;
}

/* ---------- recommendations in full ---------- */

.rec {
  padding: 3rem 0 3.25rem;
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 1.5rem;
}

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

.rec h2 {
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.rec-rel {
  font-size: 18px;
  line-height: 1.5;
  color: var(--navy);
  margin-bottom: 1.6rem;
  max-width: 34rem;
}

.rec blockquote { margin: 0 0 1.35rem; padding: 0; }

.rec blockquote p {
  font-size: 19px;
  line-height: 1.6;
  max-width: 34rem;
  margin: 0 0 1em;
}
.rec blockquote p:last-child { margin-bottom: 0; }

/* ---------- matters ---------- */

.matter-list {
  list-style: none;
  margin: 1.9rem 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
  max-width: 38rem;
}

.matter-list li {
  border-bottom: 1px solid var(--hairline);
  padding: 1.05rem 0;
  line-height: 1.5;
}

.matter-name { font-weight: 600; display: block; }

.matter-meta {
  display: block;
  font-size: 18px;
  line-height: 1.5;
  margin-top: 0.3rem;
}

.note {
  font-size: 18px;
  line-height: 1.6;
  max-width: 36rem;
}

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

.photo-slot {
  background: var(--band);
  border: 1px dashed var(--hairline);
  padding: 1.9rem 1.5rem;
  margin: 2rem 0 0;
  max-width: 34rem;
  font-size: 18px;
  line-height: 1.55;
}
.photo-slot p { margin: 0; max-width: none; }

/* ---------- credentials ---------- */

.deflist {
  margin: 1.9rem 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
  max-width: 36rem;
}

.deflist > div {
  border-bottom: 1px solid var(--hairline);
  padding: 1.05rem 0;
}

.deflist dt { font-weight: 600; line-height: 1.4; }

.deflist dd {
  margin: 0.3rem 0 0;
  font-size: 18px;
  line-height: 1.55;
}

/* ---------- legal ---------- */

.legal {
  border-top: 1px solid var(--hairline);
  background: var(--band);
  padding: 2.75rem 0 3.5rem;
}

.legal p {
  font-size: 18px;
  line-height: 1.55;
  max-width: 36rem;
  margin: 0 0 0.85rem;
}
.legal p:last-child { margin-bottom: 0; }

.footroutes {
  list-style: none;
  margin: 0 0 1.9rem;
  padding: 0;
  border-top: 1px solid var(--hairline);
  max-width: 36rem;
}

.footroutes li { border-bottom: 1px solid var(--hairline); }

.footroutes a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0.7rem 0;
  font-size: 18px;
  line-height: 1.4;
}

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

.intro, .board, .banner {
  animation: rise 600ms ease-out both;
}
.board { animation-delay: 120ms; }

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

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

/* ---------- small screens ---------- */

@media (max-width: 48rem) {
  .intro-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1.9rem;
    align-items: start;
  }
  .intro-portrait {
    order: 1;
    width: 70%;
    max-width: 280px;
  }
  .eyebrow { order: 2; margin-bottom: 0; }
  .intro-text { order: 3; }
}

@media (max-width: 34rem) {
  :root { --gutter: 1.25rem; }
  body { font-size: 19px; }
  .intro { padding: 3rem 0 2.75rem; }
  .intro-body { font-size: 19px; }
  .board a { font-size: 20px; }
  .answer { padding: 2.75rem 0 3rem; }
  .answer h2 { max-width: none; }
  .sitenav ul { column-gap: 1.1rem; }
  .sitenav a { font-size: 16px; min-height: 44px; }
  .banner { padding: 2rem 0 1.75rem; }
  .banner h1 { max-width: none; }
  .rec { padding: 2.5rem 0 2.75rem; }
  .matter-list { margin-top: 1.5rem; }
}
