/* Demo: Matt Roberts, high school history teacher.

   Teaching leads and holds most of the page; coaching is one section, because
   he is applying for a classroom. A hiring principal is scanning for results,
   certification and whether this person can run a department, so those are the
   three things given room.

   Visually: warm paper and a serif for the headings, navy rather than the
   institutional maroon every Texas school site already uses. Closer to a
   well-set syllabus than to a brochure. */

:root {
  --paper:   #FAF8F3;
  --raise:   #FFFFFF;
  --sunk:    #F1EDE4;
  --ink:     #1A1E24;
  --ink-2:   #4E5661;
  --ink-3:   #646B73;
  --line:    #E0DACE;
  --line-2:  #C8C0B0;
  --navy:    #1B3A5C;
  --navy-2:  #12293F;
  --navy-soft: #E7EDF3;
  --gold:    #C8891F;
  --gold-2:  #906011;
  --gold-soft: #F7EDDA;

  --display: "Lora", Georgia, "Times New Roman", serif;
  --body:    "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--navy); text-underline-offset: 3px; }

.shell { max-width: 1020px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
}

/* ----------------------------------------------------------------- top --- */
.top {
  background: var(--navy);
  color: #EDF2F7;
  border-bottom: 5px solid var(--gold);
  padding-block: 54px 48px;
  background-image: radial-gradient(60% 80% at 92% 6%, rgba(200, 137, 31, 0.28), transparent 60%);
}

.top__in {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

.top h1 {
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.top .sub { margin-top: 18px; color: rgba(237, 242, 247, 0.78); max-width: 46ch; }

.card { background: rgba(255, 255, 255, 0.08); border-left: 3px solid var(--gold); padding: 22px; }
.card__row {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 10px;
  font-size: 0.9rem;
  padding-block: 6px;
}
.card__row + .card__row { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.card__row span { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }

.btn {
  display: inline-block;
  margin-top: 18px;
  padding: 11px 22px;
  background: var(--gold);
  color: #16202B;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--gold);
}
.btn:hover { background: var(--gold-2); border-color: var(--gold-2); color: #fff; }
.btn--quiet { background: transparent; color: inherit; border-color: currentColor; }
.btn--quiet:hover { background: rgba(255, 255, 255, 0.12); border-color: currentColor; color: inherit; }

/* --------------------------------------------------------------- blocks --- */
.block { padding-block: 52px; border-bottom: 1px solid var(--line); }
.block--sunk { background: var(--sunk); border-bottom: 0; margin-inline: calc(50% - 50vw); padding-inline: max(24px, calc(50vw - 510px)); }

.big {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.18;
  max-width: 24ch;
}
.lede { margin-top: 16px; color: var(--ink-2); max-width: 66ch; }

.numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  margin-top: 32px;
  background: var(--line);
  border: 1px solid var(--line);
}
.numbers > div { background: var(--raise); padding: 18px 20px; }
.numbers__n {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.numbers__l { margin-top: 8px; font-size: 0.85rem; color: var(--ink-2); }

.built { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 26px; }
.built h4 { font-family: var(--display); font-size: 1.05rem; font-weight: 600; padding-top: 12px; border-top: 2px solid var(--navy); }
.built p { margin-top: 10px; color: var(--ink-2); font-size: 0.93rem; }

/* -------------------------------------------------------------- coaching --- */
.coach { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; margin-top: 24px; align-items: start; }
.coach h3 { font-family: var(--display); font-size: clamp(1.25rem, 3vw, 1.6rem); font-weight: 600; }
.coach__text p { margin-top: 14px; color: var(--ink-2); max-width: 62ch; }

.coach__facts { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.coach__facts li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-2); }
.coach__facts b { font-family: var(--display); font-size: 1.05rem; color: var(--ink); margin-right: 8px; font-variant-numeric: tabular-nums; }

.quote { margin: 36px 0 0; padding-left: 22px; border-left: 3px solid var(--navy); }
.quote p { font-family: var(--display); font-size: clamp(1.05rem, 2.4vw, 1.3rem); line-height: 1.45; max-width: 52ch; }
.quote footer { margin-top: 12px; font-size: 0.82rem; font-weight: 600; color: var(--ink-3); }

/* ------------------------------------------------------------- history --- */
.roles { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.roles li {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
  color: var(--ink-2);
}
.roles span { font-size: 0.83rem; color: var(--ink-3); }
.roles b { font-family: var(--display); font-size: 1rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: 4px; }

.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; margin-top: 34px; }
.creds h4 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.tight { margin: 12px 0 0; padding-left: 18px; }
.tight li { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 6px; }
.tight li::marker { color: var(--line-2); }

/* ------------------------------------------------------------- contact --- */
.contact { padding: 48px 0 76px; }
.contact h2 { font-family: var(--display); font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 600; max-width: 24ch; }
.contact p { margin-top: 14px; color: var(--ink-2); max-width: 58ch; }
.contact__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contact .btn { margin-top: 0; }
.updated { margin-top: 30px; font-size: 0.76rem; color: var(--ink-3); }

/* ------------------------------------------------------------ narrower --- */
@media (max-width: 860px) {
  .top__in, .coach { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .block--sunk, .block--dark { margin-inline: 0; padding-inline: 0; }
  .coach--media { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .shell { padding-left: 18px; padding-right: 18px; }
  .roles li, .card__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}


/* ------------------------------------------------------------- coaching --- */
.block--dark {
  background: var(--navy-2);
  color: #EDF2F7;
  border-bottom: 0;
  padding-block: 50px 54px;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(24px, calc(50vw - 510px));
}
.block--dark .label { color: var(--gold); }
.block--dark .big { color: #fff; }
.block--dark p { color: rgba(237, 242, 247, 0.78); }
.block--dark .tally b { color: var(--gold); }
.block--dark blockquote { border-left-color: var(--gold); background: rgba(255, 255, 255, 0.06); }
.block--dark blockquote p { color: #fff; }
.block--dark blockquote footer { color: #B5BCC4; }
.block--dark .shot figcaption { color: rgba(255, 255, 255, 0.75); }
.block--dark .coach__facts { border-top-color: var(--gold); }
.block--dark .coach__facts li { color: rgba(237, 242, 247, 0.85); border-bottom-color: rgba(255, 255, 255, 0.14); }
.block--dark .coach__facts b { color: #fff; }

.top__side { display: grid; gap: 20px; }

/* ------------------------------------------------------------ media slot ---
   Where the client's own headshot, work photograph or video goes. Marked
   rather than faked: a framed panel in the page palette with a glyph and a
   label, so the slot looks deliberate while it is empty and the layout does
   not move when the real image lands in it. */
.shot { margin: 0; }
.shot__fill {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 9px),
    linear-gradient(158deg, #27507A 0%, #1B3A5C 54%, #5C3D12 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.shot__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 74% 16%, rgba(214, 150, 42, 0.42), transparent 62%);
}
.shot__glyph {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  color: rgba(255, 255, 255, 0.62);
}
.shot--wide .shot__fill,
.shot--video .shot__fill { aspect-ratio: 16 / 9; }
.shot--square .shot__fill { aspect-ratio: 1 / 1; }
.shot--tall .shot__fill { aspect-ratio: 3 / 4; }
.shot figcaption {
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.shot--on-dark figcaption { color: rgba(255, 255, 255, 0.55); }
.shot__play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #D6962A;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.38);
}
.shot__play svg { width: 25px; height: 25px; margin-left: 4px; color: #1A1E24; }

/* A row of slots, for the pages where the work is the photographs. */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

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

/* Coaching, with room for the photograph that makes it real. */
.coach--media { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 34px; align-items: start; margin-top: 22px; }
.coach--media .coach { margin-top: 0; }
