/* Amani Newton portfolio. Shared styles for every page.
   Ink blue on paper, highlighter yellow for what to act on and what is right.
   Red pencil appears only on a missed answer. */

:root {
  --paper: #F2F4F9;
  --surface: #FCFCFE;
  --ink: #141B3D;
  --muted: #565E7C;
  --line: #CCD1E0;
  --mark: #FFE04A;
  --mark-ink: #141B3D;
  --underline: #8F7400;
  --miss: #C2314A;
  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Literata", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D1126;
    --surface: #161C3A;
    --ink: #E9ECF7;
    --muted: #A3ABC9;
    --line: #2D3559;
    --underline: #FFE04A;
    --miss: #FF8296;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0D1126;
  --surface: #161C3A;
  --ink: #E9ECF7;
  --muted: #A3ABC9;
  --line: #2D3559;
  --underline: #FFE04A;
  --miss: #FF8296;
  color-scheme: dark;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--mark); color: var(--mark-ink); }
img, svg, video { max-width: 100%; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--underline); text-decoration-thickness: 0.14em; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mark { background: var(--mark); color: var(--mark-ink); padding: 1px 5px; border-radius: 2px; }

/* Header and footer */
.site-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 32px; padding-block: 16px; }
.site-name { font-family: var(--display); font-weight: 700; font-size: 1.125rem; text-decoration: none; padding: 10px 0; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 28px; font-family: var(--display); font-size: 1rem; }
.site-nav a { text-decoration: none; padding: 10px 0; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--underline); text-decoration-thickness: 0.14em; text-underline-offset: 0.2em; }
.site-foot { border-top: 1.5px solid var(--line); }
.site-foot .wrap { padding-block: 28px 44px; font-size: 0.9375rem; color: var(--muted); }

/* Buttons and action rows */
.button { display: inline-block; background: var(--mark); color: var(--mark-ink); border: 2px solid var(--mark-ink); padding: 11px 20px; font-family: var(--display); font-weight: 700; text-decoration: none; border-radius: 3px; }
.button:hover { background: var(--mark-ink); color: var(--mark); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; font-family: var(--display); }
.actions a:not(.button) { padding: 10px 0; }
.actions .strong { font-weight: 700; }

/* Home: hero */
.hero { padding-block: 72px 128px; }
.hero h1 { max-width: 11em; font-weight: 800; font-size: clamp(2.75rem, 6.4vw, 5.125rem); line-height: 0.98; letter-spacing: -0.025em; }
.hero-intro { margin-top: 32px; max-width: 34em; font-size: 1.1875rem; line-height: 1.6; }

/* Home: sections */
.section { border-top: 1.5px solid var(--line); }
.section > .wrap { padding-block: 96px 104px; }
.section-title { font-weight: 800; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.02; letter-spacing: -0.02em; }

/* Home: work grid. Everything sits on the same two columns. */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 56px; margin-top: 48px; }
.work a { text-decoration: none; }
.work-feature { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); align-items: center; gap: 28px 56px; }
.work-feature img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1.5px solid var(--line); border-radius: 3px; background: #fff; }
.work-text { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.work-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.work-title h3 { font-weight: 700; font-size: 1.4375rem; line-height: 1.2; letter-spacing: -0.01em; }
.work-title svg { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease; }
.work-feature .work-title h3 { font-size: clamp(1.6875rem, 3vw, 2.25rem); line-height: 1.08; letter-spacing: -0.015em; }
.work-feature .work-title svg { flex-basis: 26px; width: 26px; height: 26px; margin-top: 7px; }
.work-feature p { max-width: 26em; font-size: 1.1875rem; line-height: 1.55; }
.work-card { display: flex; flex-direction: column; gap: 10px; padding-top: 28px; border-top: 1.5px solid var(--line); }
.work-card p { max-width: 30em; line-height: 1.55; }
.work a:hover h3 { text-decoration: underline; text-decoration-color: var(--underline); text-decoration-thickness: 0.1em; text-underline-offset: 0.2em; }
.work a:hover .work-title svg { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .work-title svg { transition: none; } .work a:hover .work-title svg { transform: none; } }

/* Home: approach and the sample question */
.approach { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 72px; margin-top: 48px; }
.principles { flex: 1 1 380px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 32px; }
.principles dt { font-family: var(--display); font-weight: 800; font-size: 1.4375rem; line-height: 1.15; letter-spacing: -0.01em; }
.principles dd { margin: 8px 0 0; max-width: 30em; }
.question { flex: 1 1 380px; min-width: 0; background: var(--surface); border: 2px solid var(--ink); border-radius: 4px; padding: 28px 28px 26px; }
.question-kicker { font-family: var(--display); font-size: 0.9375rem; color: var(--muted); }
.question h3 { font-weight: 700; font-size: 1.5rem; line-height: 1.2; margin-top: 10px; }
.options { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.option { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; width: 100%; min-height: 48px; text-align: left; font: inherit; font-size: 1rem; line-height: 1.45; color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-radius: 3px; padding: 12px 14px; cursor: pointer; }
.option:hover { border-color: var(--ink); }
.option .verdict { font-family: var(--display); font-weight: 700; font-size: 0.875rem; white-space: nowrap; visibility: hidden; }
.option[aria-pressed="true"] .verdict { visibility: visible; }
.option.is-right[aria-pressed="true"] { background: var(--mark); color: var(--mark-ink); border-color: var(--mark-ink); }
.option.is-miss[aria-pressed="true"] { border-color: var(--miss); }
.option.is-miss[aria-pressed="true"] .verdict { color: var(--miss); }
.feedback { margin-top: 18px; padding-top: 16px; border-top: 1.5px solid var(--line); font-size: 1rem; line-height: 1.55; }
.feedback[hidden] { display: none; }
.feedback p + p { margin-top: 10px; }
.question-hint { margin-top: 16px; font-size: 0.9375rem; color: var(--muted); }

/* Prose beside a short list of facts (About, and the top of each case study) */
.two-col { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 72px; }
.prose { flex: 1.75 1 440px; min-width: 0; max-width: 40em; }
.prose p + p { margin-top: 1em; }
.facts { flex: 1 1 260px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; font-size: 0.96875rem; line-height: 1.45; }
.facts dt { font-family: var(--display); font-size: 0.9375rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; }
.facts.row { flex: none; flex-direction: row; flex-wrap: wrap; gap: 20px 56px; }
.facts.row > div { flex: 1 1 220px; max-width: 320px; }
.about-body { margin-top: 40px; }
.contact-line { margin-top: 20px; max-width: 34em; font-size: 1.1875rem; }
.contact .actions { margin-top: 28px; }

/* Case study: page head */
.page-head { padding-block: 56px 88px; }
.page-head h1 { max-width: 14em; font-weight: 800; font-size: clamp(2.375rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.025em; }
.lede { margin-top: 24px; max-width: 34em; font-size: 1.25rem; line-height: 1.55; }
.page-head .two-col, .page-head .facts.row { margin-top: 48px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px 20px; margin-top: 64px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1.5px solid var(--line); border-radius: 3px; background: #fff; }
.shots figcaption { margin-top: 8px; font-size: 0.90625rem; line-height: 1.4; color: var(--muted); }

/* Case study: one block per topic, heading on the left and content on the right */
.block { border-top: 1.5px solid var(--line); }
.block > .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 56px; padding-block: 72px 80px; }
.block h2 { flex: 0 1 232px; font-weight: 700; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }
.block-body { flex: 999 1 520px; min-width: 0; }
.block-body > p { max-width: 40em; }
.block-body > .button-row { margin-top: 22px; }
.block-body > p.caption, .caption { max-width: 44em; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }
.block-body > * + .caption { margin-top: 20px; }
.block-body > p + .plain-list, .block-body > p + .steps { margin-top: 24px; }

/* Titled items: decisions, things put in place */
.items { margin: 0; display: flex; flex-direction: column; gap: 30px; }
.items > div { max-width: 38em; }
.items dt { font-family: var(--display); font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.items dd { margin: 6px 0 0; line-height: 1.6; }
.items.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px 48px; }
.items.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 32px 48px; margin-top: 56px; }

/* Course modules */
.modules { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 22px 40px; }
.modules li { display: flex; align-items: center; gap: 16px; }
.modules svg { flex: 0 0 96px; width: 96px; height: 64px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 3px; }
.modules .node, .modules .tip { fill: var(--ink); }
.modules .edge { stroke: var(--ink); stroke-width: 1.4; fill: none; }
.module-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.module-name { font-family: var(--display); font-weight: 700; font-size: 1.03125rem; line-height: 1.3; }
.module-note { font-size: 0.90625rem; line-height: 1.4; color: var(--muted); }
.module-note a { color: var(--ink); }
.modules + .caption { margin-top: 32px; }

/* Video */
.video { margin: 0; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; border: 1.5px solid var(--line); border-radius: 3px; }
.video figcaption { margin-top: 12px; max-width: 44em; font-size: 0.9375rem; line-height: 1.5; color: var(--muted); }

/* Tables */
.table-wrap { overflow-x: auto; margin-top: 28px; }
.table { border-collapse: collapse; width: 100%; font-size: 0.96875rem; line-height: 1.5; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 20px 14px 0; border-bottom: 1.5px solid var(--line); }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table thead th { vertical-align: bottom; padding-top: 0; padding-bottom: 12px; border-bottom: 2px solid var(--ink); font-family: var(--display); }
.table.flow { min-width: 640px; }
.table.flow thead th { font-weight: 400; font-size: 0.9375rem; color: var(--muted); }
.table.flow thead th.checkpoint { font-weight: 700; color: inherit; }
.table.flow tbody th { width: 23%; font-family: var(--display); font-weight: 700; font-size: 1.0625rem; line-height: 1.3; }
.table.flow td:nth-child(2) { width: 42%; }
.table.path { min-width: 680px; line-height: 1.45; }
.table.path th, .table.path td { padding: 12px 16px 12px 0; }
.table.path thead th { padding-top: 0; font-weight: 800; font-size: 1.1875rem; }
.table.path tbody th { width: 19%; font-family: var(--display); font-weight: 400; color: var(--muted); }
.table.path td { width: 27%; }
.block-body > p.boundary, .boundary { margin-top: 32px; max-width: 38em; font-size: 1.15625rem; line-height: 1.6; }

/* Lists */
.plain-list { margin: 0; padding: 0; list-style: none; max-width: 44em; border-top: 1.5px solid var(--line); }
.plain-list li { padding: 12px 0; border-bottom: 1.5px solid var(--line); line-height: 1.45; }
.plain-list.counts li { display: flex; justify-content: space-between; gap: 16px; }
.plain-list .n { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 20px; max-width: 44em; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.2em 1fr; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 1.3125rem; line-height: 1.25; font-variant-numeric: tabular-nums; }
.steps strong { font-family: var(--display); font-weight: 700; display: block; }

/* Case study: closing row */
.pager { border-top: 1.5px solid var(--line); }
.pager > .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px 56px; padding-block: 56px 72px; }
.pager-links { display: flex; flex-direction: column; gap: 14px; padding: 10px 0; font-family: var(--display); font-weight: 700; }
.pager-next { display: flex; flex-direction: column; gap: 4px; max-width: 420px; padding: 10px 0; text-decoration: none; }
.pager-next span { font-family: var(--display); font-size: 0.9375rem; color: var(--muted); }
.pager-next strong { font-family: var(--display); font-weight: 700; font-size: 1.3125rem; line-height: 1.2; text-decoration: underline; text-decoration-color: var(--underline); text-decoration-thickness: 0.1em; text-underline-offset: 0.2em; }
.pager-next:hover strong { text-decoration-color: var(--ink); }

/* Small screens */
@media (max-width: 820px) {
  .hero { padding-block: 40px 80px; }
  .section > .wrap { padding-block: 64px 72px; }
  .page-head { padding-block: 36px 64px; }
  .block > .wrap { padding-block: 52px 60px; }
  .work { gap: 40px; }
}
@media (max-width: 460px) {
  .wrap { padding-inline: 18px; }
  .question { padding: 20px 18px; }
  .option { flex-direction: column; gap: 4px; }
  .option .verdict { display: none; }
  .option[aria-pressed="true"] .verdict { display: block; }
}
