:root {
  --page-bg: #f2f0ea;
  --paper: #fbfaf6;
  --text: #111111;
  --muted: #5f6468;
  --line: rgba(17, 17, 17, 0.16);
  --line-strong: rgba(17, 17, 17, 0.9);
  --accent: #1246a0;
  --accent-soft: rgba(18, 70, 160, 0.1);
  --max-width: 86rem;
  --gutter: clamp(1rem, 2vw, 1.5rem);
  --section-gap: clamp(3rem, 6vw, 5.5rem);
  --display: "League Spartan", "Arial Narrow", sans-serif;
  --body: "Inter Tight", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3,
ol,
ul {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

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

.site-frame {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(4rem, 8vw, 6rem);
}

.hero,
.project-hero {
  position: relative;
  padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(2.5rem, 5vw, 4.5rem);
  border-top: 0.5rem solid var(--accent);
  border-bottom: 1px solid var(--line-strong);
}

.hero::after,
.project-hero::after {
  content: "";
  position: absolute;
  aspect-ratio: 1;
  background: center / cover no-repeat url("../img/j-logo.svg");
}

.hero::after {
  top: clamp(0.7rem, 1.6vw, 1.1rem);
  right: clamp(0.25rem, 1vw, 0.75rem);
  width: clamp(3.2rem, 6vw, 4.6rem);
}

.project-hero::after {
  top: clamp(1rem, 2vw, 1.5rem);
  right: 0;
  width: clamp(4.5rem, 10vw, 7rem);
}

.hero__rail,
.hero__grid,
.content-grid,
.project-layout,
.project-hero__header,
.project-hero__summary-block,
.site-footer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.hero__rail {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  align-items: end;
}

.eyebrow,
.section-label,
.project-card__kicker,
.project-card__number,
.hero__issue,
.back-link,
.notes-list__date,
.timeline-list__meta span:first-child,
.site-footer p:first-child,
.project-hero__meta p:first-child {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow,
.section-label,
.project-card__kicker,
.project-card__number,
.back-link,
.notes-list__date,
.hero__issue {
  color: var(--accent);
}

.hero__rail .eyebrow {
  grid-column: 1 / 5;
}

.hero__issue {
  grid-column: 7 / 13;
  justify-self: end;
}

.hero__grid > div:first-child {
  grid-column: 1 / 9;
}

.hero__body {
  grid-column: 9 / 13;
  display: grid;
  gap: 1rem;
  align-content: end;
}

.hero__facts {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  color: var(--muted);
}

.hero__facts li {
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}

h1,
h2,
h3,
.project-card__footer span:last-child,
.timeline-list__meta span:last-child {
  font-family: var(--display);
}

h1 {
  max-width: 10ch;
  font-size: clamp(4.5rem, 12vw, 8.75rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.hero__subtitle {
  margin-top: 0.85rem;
  max-width: none;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__body p,
.project-hero__summary,
.section-block__lede,
.project-card p,
.deliverables-list span,
.notes-list article p:last-child,
.timeline-list li p,
.section-block > p {
  color: var(--muted);
}

.content-grid,
.project-layout {
  margin-top: var(--section-gap);
}

.content-grid > *,
.project-layout > * {
  grid-column: 1 / -1;
}

.section-block {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem var(--gutter);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
}

.section-block__header {
  grid-column: 1 / 4;
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.section-block > :not(.section-block__header) {
  grid-column: 5 / 13;
}

.section-block--intro .section-block__header {
  grid-column: 1 / 5;
}

.section-block--intro > :not(.section-block__header) {
  grid-column: 7 / 13;
}

.quote-strip {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: 0;
  padding: 2rem 0 1.4rem;
}

.quote-strip .quote-band {
  grid-column: 1 / -1;
}

.quote-band {
  margin: 0;
  color: var(--muted);
}

.quote-band p {
  max-width: none;
  font-size: 0.98rem;
  line-height: 1.55;
}

.quote-band__source {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.quote-strip + .content-grid {
  margin-top: 0;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
  align-items: stretch;
}

.project-card {
  position: relative;
  min-height: 24rem;
  border: 1px solid var(--line-strong);
  background: var(--paper);
}

.project-card--featured {
  grid-column: 1 / 8;
}

.project-card--secondary {
  grid-column: 8 / 13;
}

.project-card__link {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.25rem;
  height: 100%;
  padding: 1.5rem;
  transition: background-color 180ms ease, color 180ms ease;
}

.project-card__link:hover,
.project-card__link:focus-visible {
  background: var(--accent);
  color: #ffffff;
}

.project-card__link:hover .project-card__kicker,
.project-card__link:hover .project-card__number,
.project-card__link:hover .status-pill,
.project-card__link:hover .project-card__footer span:first-child,
.project-card__link:hover p,
.project-card__link:focus-visible .project-card__kicker,
.project-card__link:focus-visible .project-card__number,
.project-card__link:focus-visible .status-pill,
.project-card__link:focus-visible .project-card__footer span:first-child,
.project-card__link:focus-visible p {
  color: inherit;
}

.project-card__head {
  display: grid;
  gap: 0.85rem;
}

.project-card__number {
  font-size: clamp(3.25rem, 8vw, 5.25rem);
  line-height: 0.82;
}

.project-card__meta,
.project-card__footer,
.timeline-list__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.project-card__meta {
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
}

.project-card__content {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.project-card__content h3 {
  max-width: 10ch;
  font-size: clamp(2.15rem, 4vw, 3.6rem);
}

.project-card__content p {
  max-width: 32rem;
  font-size: 1.02rem;
  line-height: 1.65;
}

.project-card__footer {
  margin-top: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid currentColor;
}

.project-card__footer span:first-child,
.deliverables-list span,
.site-footer__detail {
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem 0.2rem;
  border: 1px solid currentColor;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.hero--index {
  padding-right: clamp(4.75rem, 8vw, 6.5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

.hero--index .hero__grid {
  align-items: start;
}

.hero--index .hero__body {
  padding-top: 1rem;
}

.hero--index h1 {
  font-size: clamp(4.8rem, 11vw, 9rem);
}

.hero--index .hero__subtitle {
  margin-top: 1rem;
}

.hero--index .hero__body p {
  max-width: 28rem;
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero--index .hero__facts {
  margin-top: 1rem;
}

.back-link {
  grid-column: 1 / 4;
  display: inline-block;
  margin-bottom: 1rem;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--text);
}

.project-hero__header {
  align-items: start;
}

.project-hero__title-block {
  grid-column: 1 / 10;
}

.project-hero__header .status-pill {
  grid-column: 11 / 13;
  justify-self: end;
  align-self: start;
  margin-top: 0.5rem;
}

.project-hero__summary-block {
  margin-top: 1rem;
}

.project-hero__summary {
  grid-column: 1 / 8;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5;
}

.project-hero__meta {
  grid-column: 9 / 13;
  display: grid;
  gap: 0.8rem;
  padding-top: 0.2rem;
}

.project-hero__meta p {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.project-layout {
  counter-reset: section-count;
}

.project-layout .section-block {
  counter-increment: section-count;
}

.project-layout .section-block__header::before {
  content: counter(section-count, decimal-leading-zero);
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--accent);
}

.timeline-list,
.deliverables-list,
.notes-list {
  display: grid;
  gap: 1rem;
  list-style: none;
}

.timeline-list li,
.deliverables-list li,
.notes-list article {
  display: grid;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.timeline-list__meta {
  padding-bottom: 0.15rem;
}

.timeline-list__meta span:last-child::before {
  content: "Phase / ";
  color: var(--accent);
}

.deliverables-list a {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.deliverables-list a:hover,
.deliverables-list a:focus-visible {
  color: var(--accent);
}

.site-footer {
  margin-top: var(--section-gap);
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
  align-items: start;
}

.site-footer p:first-child {
  grid-column: 1 / 4;
}

.site-footer__detail {
  grid-column: 7 / 13;
  justify-self: end;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero--index {
    padding-right: 0;
  }

  .hero::after {
    width: 3.5rem;
    right: 0.25rem;
  }

  .project-hero::after {
    width: 4rem;
  }

  .project-card--featured,
  .project-card--secondary,
  .quote-strip .quote-band,
  .section-block__header,
  .section-block > :not(.section-block__header),
  .section-block--intro .section-block__header,
  .section-block--intro > :not(.section-block__header),
  .project-hero__title-block,
  .project-hero__summary,
  .project-hero__meta,
  .site-footer p:first-child,
  .site-footer__detail,
  .hero__rail .eyebrow,
  .hero__issue,
  .hero__grid > div:first-child,
  .hero__body,
  .back-link {
    grid-column: 1 / -1;
  }

  .project-hero__header .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 0;
  }

  .hero--index .hero__issue,
  .site-footer__detail {
    justify-self: start;
    text-align: left;
  }

  .project-card--featured,
  .project-card--secondary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .site-frame {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .project-card__meta,
  .project-card__footer,
  .timeline-list__meta {
    flex-direction: column;
    align-items: start;
  }

  h1 {
    max-width: none;
    font-size: clamp(3.6rem, 20vw, 5.5rem);
  }

  h3 {
    font-size: clamp(1.6rem, 9vw, 2.2rem);
  }

  .project-card {
    min-height: auto;
  }

  .project-card__link {
    padding: 1.1rem;
  }

  .project-card__content h3 {
    max-width: none;
    font-size: clamp(1.9rem, 10vw, 2.7rem);
  }

  .project-card__content p {
    font-size: 0.98rem;
  }
}
