:root {
  --paper: #f3efe4;
  --paper-light: #fbf8f0;
  --ink: #1d1b18;
  --muted: #625d54;
  --line: #bdb5a5;
  --line-dark: #70695e;
  --accent: #87352d;
  --accent-dark: #61231e;
  --blue: #264c5d;
  --focus: #125c92;
  --max-width: 1120px;
  --narrow-width: 820px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

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

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

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

h1,
h2,
h3,
p,
figure,
blockquote {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
}

h1 {
  max-width: 16ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.035em;
}

h2 {
  max-width: 23ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.15rem, 4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.4rem;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: #fff;
  background: var(--focus);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-width,
.header-inner {
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin-inline: auto;
}

.narrow {
  max-width: var(--narrow-width);
}

.site-header {
  border-bottom: 1px solid var(--line-dark);
  background: var(--paper);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 88px;
}

.site-title {
  display: inline-block;
  color: var(--ink);
  text-decoration: none;
}

.site-title span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  padding-block: 0.25rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

nav a[aria-current="page"] {
  border-bottom: 2px solid var(--accent);
}

.hero {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.hero-copy {
  max-width: 920px;
}

.eyebrow,
.case-label,
.strategy-type,
.path-label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 1.25rem;
}

.hero-answer {
  max-width: 38rem;
  margin-bottom: 1.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  line-height: 1.45;
}

figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.section-rule {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line-dark);
}

.section-intro {
  max-width: 48rem;
  margin-bottom: 2.75rem;
  color: #3e3a34;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.labor-path {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  margin: 2.5rem 0;
  border-block: 1px solid var(--line-dark);
}

.labor-path div {
  padding: 1.4rem 1rem;
}

.labor-path strong {
  display: block;
  margin-top: 0.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
}

.labor-path .path-reveal {
  background: #e7dfce;
}

.path-arrow {
  position: relative;
  display: block;
  align-self: center;
  width: 2.25rem;
  height: 2px;
  background: var(--ink);
}

.path-arrow::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

blockquote {
  margin: 3rem 0;
  padding: 1.7rem 2rem;
  border-block: 1px solid var(--line);
  text-align: center;
}

blockquote p {
  max-width: 32ch;
  margin-inline: auto;
  margin-bottom: 0.75rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35;
}

blockquote cite {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.category-preamble {
  max-width: 42rem;
  margin: 0 0 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.three-moves {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--line-dark);
  background: var(--line-dark);
}

.three-moves article {
  padding: 1.5rem;
  background: var(--paper-light);
}

.three-moves article p {
  margin-bottom: 0;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.case-study {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-dark);
  background: var(--paper-light);
}

.case-study figure {
  margin: 0;
  padding: 0.75rem 0.75rem 0;
}

.case-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  object-fit: cover;
  filter: saturate(0.82);
}

.checkout-photo {
  object-position: center 25%;
}

.annotation-photo {
  object-position: center;
}

.ai-coding-photo {
  background: #fff;
  object-fit: contain;
}

.case-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.3rem;
}

.case-label {
  margin-bottom: 0.5rem;
}

.case-body h3 {
  min-height: 3.2rem;
}

.case-body dl {
  margin: 0 0 1.25rem;
}

.case-body dl div {
  padding-block: 0.85rem;
  border-top: 1px solid var(--line);
}

.case-body dt {
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-body dd {
  margin: 0.25rem 0 0;
  font-size: 0.93rem;
}

.analysis-note {
  margin-top: auto;
  margin-bottom: 0.65rem;
  font-size: 0.91rem;
}

.citation {
  margin-bottom: 0;
  font-size: 0.82rem;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.strategy-grid article {
  padding: 2rem;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}

.strategy-type {
  margin-bottom: 1rem;
}

.strategy-grid article > p:not(.strategy-type, .appeal) {
  color: #3e3a34;
}

.appeal {
  margin-bottom: 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.evidence-grid article {
  padding: 1.5rem;
  border-top: 4px solid var(--accent);
  background: var(--paper-light);
}

.evidence-number {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1;
}

.source-caveat {
  color: var(--muted);
  font-size: 0.82rem;
}

.closing-section {
  text-align: center;
}

.closing-section h2 {
  margin-inline: auto;
}

.final-questions {
  margin: 2.5rem 0;
  border-block: 1px solid var(--line-dark);
}

.final-questions p {
  margin: 0;
  padding: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.final-questions p + p {
  border-top: 1px solid var(--line);
}

/* Sources page */

.sources-simple {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.sources-simple h1 {
  margin-bottom: 3rem;
  font-size: clamp(2.7rem, 6vw, 4.8rem);
}

.references {
  display: grid;
  gap: 1.25rem;
}

.references p {
  margin: 0;
  padding-left: 2rem;
  text-indent: -2rem;
  overflow-wrap: anywhere;
}

.references p:target {
  padding-block: 0.75rem;
  outline: 2px solid var(--accent);
  outline-offset: 0.5rem;
  background: var(--paper-light);
}

@media (max-width: 900px) {
  .case-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin-inline: auto;
  }

  .case-study {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) 1.2fr;
  }

  .case-study figure {
    padding-bottom: 0.75rem;
  }

  .case-photo {
    height: 100%;
    min-height: 380px;
    aspect-ratio: auto;
  }

  .case-body h3 {
    min-height: auto;
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-width,
  .header-inner {
    width: min(calc(100% - 1.5rem), var(--max-width));
  }

  .header-inner {
    align-items: flex-start;
    min-height: auto;
    padding-block: 1rem;
  }

  nav {
    gap: 1rem;
    padding-top: 0.15rem;
  }

  .labor-path {
    grid-template-columns: 1fr;
  }

  .labor-path div {
    border-top: 1px solid var(--line);
  }

  .labor-path div:first-child {
    border-top: 0;
  }

  .path-arrow {
    display: none;
  }

  .three-moves,
  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .case-study {
    display: flex;
  }

  .case-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

}

@media (max-width: 520px) {
  body {
    font-size: 0.96rem;
  }

  .header-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.6rem);
  }

  .section-rule {
    padding-block: 3.75rem;
  }

  blockquote {
    padding-inline: 0.75rem;
  }

  .strategy-grid article {
    padding: 1.4rem;
  }

}

@media print {
  body {
    color: #000;
    background: #fff;
  }

  .site-header,
  .skip-link {
    display: none;
  }

  a {
    color: #000;
  }

  .section-rule {
    break-inside: avoid;
  }
}
