/* Fordyce Design — edit this file for all visual styling.
   1. Tokens and base type  2. Shared shell  3. Home and work
   4. Reading and evidence  5. Metrics  6. Footer  7. Responsive/print */

/* 1. Tokens and base type */
:root {
  color-scheme: light;
  --gf-paper: #fff;
  --gf-ink: #15191f;
  --gf-muted: #515b68;
  --gf-blue: #5573b4;
  --gf-line: #dce0e6;
  --gf-soft: #f6f7f9;
  --gf-serif: Georgia, 'Times New Roman', serif;
  --gf-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}
:root[data-gf-appearance="dark"] {
  color-scheme: dark;
  --gf-paper: #171a20;
  --gf-ink: #f1eee8;
  --gf-muted: #b9c1cc;
  --gf-blue: #94b4ff;
  --gf-line: #3b424d;
  --gf-soft: #222833;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-gf-appearance="light"]):not([data-gf-appearance="dark"]) {
    color-scheme: dark;
    --gf-paper: #171a20;
    --gf-ink: #f1eee8;
    --gf-muted: #b9c1cc;
    --gf-blue: #94b4ff;
    --gf-line: #3b424d;
    --gf-soft: #222833;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--gf-paper); color: var(--gf-ink); font: 400 1.0625rem/1.7 var(--gf-sans); }
a { color: var(--gf-blue); text-underline-offset: .24em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .15em; }
:is(a, button, summary, select):focus-visible { outline: 3px solid var(--gf-blue); outline-offset: 5px; }
img { max-width: 100%; height: auto; }
button, select { font: inherit; }
[hidden] { display: none !important; }
p { margin: 0 0 1.2em; line-height: 1.7; }
h1, h2, h3, h4 { font-family: var(--gf-serif); font-weight: 400; color: var(--gf-ink); text-wrap: balance; }
h1 { font-size: clamp(1.875rem, 3.25vw, 2.5rem); line-height: 1.17; letter-spacing: -.027em; margin: 0 0 .65em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 1.875rem); line-height: 1.25; letter-spacing: -.02em; margin: 1.65em 0 .7em; }
h3 { font-size: clamp(1.375rem, 2.2vw, 1.5625rem); line-height: 1.28; letter-spacing: -.02em; margin: 1.5em 0 .65em; }
h4 { font-size: 1.25rem; line-height: 1.35; letter-spacing: -.01em; }
:root :where(.gf-flow) > * { margin-block: 24px 0; }
:root :where(.gf-flow) > :first-child { margin-block-start: 0; }
:root :where(.gf-flow) > :last-child { margin-block-end: 0; }
.gf-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.gf-skip-link { position: absolute; left: 16px; top: -90px; padding: 12px 18px; background: var(--gf-ink); color: var(--gf-paper); z-index: 100; text-decoration: none; }
.gf-skip-link:focus { top: 12px; }

/* 2. Shared shell and navigation */
.gf-shell { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.gf-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--gf-line); }
.gf-brand-lockup { display: flex; align-items: center; gap: 16px; min-width: 300px; }
.gf-brand { min-width: 0; }
.gf-logomark { display: block; flex: 0 0 64px; width: 64px; height: 64px; }
.gf-logomark img { display: block; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.gf-brand-name { margin: 0; font: 400 1.625rem/1.15 var(--gf-serif); letter-spacing: -.025em; }
.gf-brand-name a { color: var(--gf-ink); text-decoration: none; }
.gf-brand-role { margin: 7px 0 0; color: var(--gf-muted); font-size: .8125rem; line-height: 1.6; }
.gf-nav { display: flex; list-style: none; gap: 28px; align-items: center; flex-wrap: wrap; margin: 0; padding: 0; font-size: .875rem; }
.gf-nav a { display: inline-block; color: var(--gf-ink); text-decoration: none; padding: .6rem 0; }
.gf-nav a:hover { color: var(--gf-blue); }
.gf-nav :is([aria-current="page"], [aria-current="location"]) { color: var(--gf-blue); text-decoration: underline; text-underline-offset: .5em; }
.gf-kicker, .gf-work-period, .gf-work-meta { font: 400 .8125rem/1.5 var(--gf-sans); color: var(--gf-muted); letter-spacing: .025em; }
.gf-kicker { margin: 0 0 1.35rem; }

/* 3. Home and chronological work listings */
.gf-home-hero { padding-block: 56px; display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(230px, 1fr); gap: 58px; }
.gf-hero-title { max-width: 23ch; }
.gf-hero-main p:not(.gf-kicker) { max-width: 62ch; }
.gf-lede { font-size: 1.125rem; line-height: 1.7; }
.gf-hero-main .gf-lede { font-size: 1.0625rem; line-height: 1.72; }
.gf-hero-main > p:not(.gf-kicker):not(.gf-lede) { font-size: 1rem; line-height: 1.72; margin-top: 20px; }
.gf-hero-index { border-top: 1px solid var(--gf-line); padding-top: 18px; align-self: start; margin-top: 40px; }
.gf-hero-index h2 { font-size: 1.4375rem; line-height: 1.3; margin: 0 0 15px; }
.gf-hero-index h2 a { color: var(--gf-ink); text-decoration: none; }
.gf-hero-index h2 a:hover { color: var(--gf-blue); }
.gf-hero-index p { font-size: .875rem; line-height: 1.65; }
.gf-hero-index .gf-kicker { margin-bottom: 14px; }
.gf-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
.gf-actions > p { margin: 0; }
.gf-actions a { display: inline-block; padding: 10px 13px; border: 1px solid var(--gf-line); border-radius: 9px; color: var(--gf-ink); background: transparent; font-size: .875rem; line-height: 1.5; font-weight: 500; text-decoration: none; transition: background-color .15s ease, color .15s ease, transform .1s ease; }
.gf-actions a:is(:hover, :active) { background: var(--gf-soft); border-color: var(--gf-blue); color: var(--gf-ink); }
.gf-actions a:active { box-shadow: inset 0 0 0 100px rgb(0 0 0 / 8%); transform: translateY(1px); }
.gf-actions a:focus-visible { outline-width: 2px; outline-offset: 3px; }
.gf-section { padding-block: 38px 46px; border-top: 1px solid var(--gf-line); }
.gf-section > h2 { margin-top: 0; margin-bottom: 34px; }
.gf-section .gf-kicker { margin-bottom: .9rem; }
.gf-section p { max-width: 65ch; }
.gf-work-group { padding-block: 38px 42px; }
.gf-work-group > h2 { margin: 0 0 1.2rem; }
.gf-work-period { margin: 0 0 .3rem; }
.gf-work-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; padding-block: 30px; align-items: start; }
.gf-work-row > * { margin-block: 0; min-width: 0; }
.gf-work-row + .gf-work-row { margin-top: 12px; }
.gf-work-number { display: none; }
.gf-work-row h3 { margin: 0 0 14px; max-width: 28ch; }
.gf-work-row h3 a { color: var(--gf-ink); text-decoration: none; }
.gf-work-row h3 a:hover { color: var(--gf-blue); }
.gf-work-meta { margin: .6rem 0; }
.gf-work-description { font-size: 1rem; min-width: 0; }
.gf-work-description p { margin: 0 0 1rem; }
.gf-work-description a { font-size: .875rem; }
.gf-current h2 { margin-top: 0; }
.gf-index-entry { padding-block: 1rem; }
.gf-index-entry + .gf-index-entry { margin-top: .5rem; }
.gf-index-entry p { margin: .2rem 0; font-size: .94rem; line-height: 1.5; }
.gf-index-entry a { font-family: var(--gf-serif); font-size: 1.45rem; text-decoration: none; }
.gf-perspective { background: var(--gf-soft); padding: 36px; margin-block: 30px 60px; }
.gf-perspective h2 { margin-top: 0; }
.gf-invitation { padding-block: 30px 56px; max-width: 62ch; font-size: 1.125rem; line-height: 1.7; }
.gf-invitation p + p { margin-top: 18px; }

/* 4. Reading, supporting evidence, tables, and original product imagery */
.gf-page, .gf-account { padding-block: 52px 64px; }
.gf-page-title { max-width: 27ch; }
.gf-page .gf-content > p, .gf-reading { max-width: 65ch; }
.gf-page .gf-content > h2 { max-width: 32ch; }
.gf-account { max-width: 850px; margin-inline: auto; }
.gf-account .gf-content { max-width: 68ch; }
.gf-account h1 { max-width: 24ch; }
.gf-account .gf-content > h2 { margin-top: 1.7em; }
.gf-account .gf-content > p + p { margin-top: 1.2em; }
.gf-standfirst { color: var(--gf-muted); font-size: .9375rem; line-height: 1.65; padding-bottom: 28px; border-bottom: 1px solid var(--gf-line); margin-bottom: 2rem; }
.gf-question { background: var(--gf-soft); padding: 28px 32px; margin-top: 32px; }
.gf-question h2 { font: 400 .8125rem/1.5 var(--gf-sans); color: var(--gf-muted); margin: 0 0 14px; letter-spacing: .025em; }
.gf-question p { font: 400 1.5rem/1.35 var(--gf-serif); margin: 0; }
.gf-evidence { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--gf-line); }
.gf-evidence h2 { margin-top: 0; }
.gf-table { margin: 1.5rem 0 2rem; overflow-x: auto; max-width: 100%; }
.gf-table table { border-collapse: collapse; width: 100%; font-size: .9375rem; line-height: 1.65; }
.gf-table td, .gf-table th { border: 0; border-bottom: 1px solid var(--gf-line); text-align: left; vertical-align: top; padding: 14px 16px; overflow-wrap: normal; word-break: normal; hyphens: none; }
.gf-table th { font-weight: 600; background: var(--gf-soft); }
.gf-table td:first-child { font-weight: 600; width: 29%; }
.gf-disclosure { font-size: .875rem; line-height: 1.6; color: var(--gf-muted); border-top: 1px solid var(--gf-line); padding-top: 22px; margin-top: 40px; }
.gf-backlink { margin-top: 36px; }
.gf-profile-photo { width: clamp(180px, 20vw, 208px); margin: .3rem 0 2.4rem; }
.gf-profile-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; border-radius: 32px; object-fit: cover; }
.gf-case-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 824px; margin: 2.25rem 0 3rem; }
.gf-case-gallery-wide { display: block; max-width: 800px; }
.gf-case-figure { margin: 0; max-width: 100%; }
.gf-case-gallery-wide .gf-case-figure { margin-bottom: 2rem; }
.gf-case-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--gf-line); border-radius: 8px; background: #fff; }
.gf-case-figure figcaption { font: 400 .875rem/1.6 var(--gf-sans); color: var(--gf-muted); margin-top: .7rem; }
.gf-quantic-gallery { display: block; max-width: 824px; }
.gf-quantic-gallery .gf-case-figure + .gf-case-figure { max-width: 620px; margin-top: 1.75rem; }
.gf-case-image-crop { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--gf-line); border-radius: 8px; background: #fff; }
.gf-case-image-crop img { position: absolute; max-width: none; width: 112%; height: auto; top: -10%; left: -3.4%; border: 0; border-radius: 0; }
.gf-supporting { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--gf-line); }
.gf-supporting h2 { margin-top: 0; }
.gf-supporting .gf-details { border-top: 1px solid var(--gf-line); padding: 18px 0; }
.gf-supporting summary { font: 400 1.4375rem/1.35 var(--gf-serif); cursor: pointer; }
.gf-supporting details p { margin: 18px 0 5px; max-width: 65ch; }
.gf-gallery { margin-block: 40px; gap: 30px; }
.gf-gallery img { object-fit: contain; }

/* 5. Homepage metrics. Edit values/evidence in src/_data/metrics.json. */
.gf-home-metrics { padding-block: 34px 40px; border-top: 1px solid var(--gf-line); color: var(--gf-ink); clear: both; }
.gf-home-metrics > h2 { font-size: 1.5625rem; line-height: 1.25; margin: 0 0 28px; }
.gf-home-metrics-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.gf-home-metrics .gf-home-metric { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; text-align: left; padding: 0; margin: 0; min-width: 0; min-height: 190px; cursor: pointer; }
.gf-home-metric > p { margin-block: 0; }
.gf-home-metric-number { font: 400 clamp(2.25rem, 4vw, 2.75rem)/1.1 var(--gf-serif); letter-spacing: -.035em; color: var(--gf-blue); white-space: nowrap; }
.gf-home-metric-number a { color: var(--gf-blue); text-decoration: none; }
.gf-home-metric-label { font-size: .875rem; line-height: 1.5; font-weight: 500; max-width: 18ch; }
.gf-home-metric-context { font-size: .8125rem; line-height: 1.6; color: var(--gf-muted); max-width: 24ch; margin-top: auto !important; }
.gf-home-metric:hover .gf-home-metric-label, .gf-home-metric:has([aria-expanded="true"]) .gf-home-metric-label { text-decoration: underline; text-underline-offset: .25em; text-decoration-color: var(--gf-blue); }
.gf-home-metric:focus-within { outline: 3px solid var(--gf-blue); outline-offset: 4px; }
:root.gf-metrics-js .gf-home-metric-proof:not(.is-active):not(:target) { display: none; }
.gf-home-metric-proof { margin-top: 28px; padding: 24px 28px; background: var(--gf-soft); }
.gf-home-metric-proof h3 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 12px; }
.gf-home-metric-proof p { font-size: 1rem; line-height: 1.7; max-width: 65ch; margin: 0; }
.gf-home-metric-proof > p:last-child { margin-top: 12px; }
.gf-home-metric-proof > p:last-child a { display: inline-block; padding: 6px 0; font-size: .875rem; }

/* 6. Shared footer and appearance selector */
.gf-footer { border-top: 1px solid var(--gf-line); padding-block: 26px 30px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 20px 28px; color: var(--gf-muted); font-size: .8125rem; line-height: 1.6; }
.gf-footer > *, .gf-footer-links > * { margin-block: 0; min-width: 0; }
.gf-footer p { margin: 0; line-height: 1.6; }
.gf-footer a { color: var(--gf-muted); white-space: nowrap; }
.gf-footer-links { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 22px; }
.gf-appearance-control { display: flex; align-items: center; gap: 10px; font: 400 .8125rem/1.5 var(--gf-sans); color: var(--gf-muted); justify-self: end; align-self: center; white-space: nowrap; }
.gf-appearance-control label { cursor: pointer; }
.gf-appearance-select-wrap { position: relative; display: inline-flex; flex: 0 0 auto; }
.gf-appearance-control select { appearance: none; min-height: 44px; min-width: 108px; max-width: 100%; padding: .45rem 2.1rem .45rem .8rem; border: 1px solid var(--gf-line); border-radius: .5rem; background: var(--gf-paper); color: var(--gf-ink); font: inherit; line-height: 1.5; cursor: pointer; margin: 0; }
.gf-appearance-control select:hover { border-color: var(--gf-blue); }
.gf-appearance-select-wrap::after { content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--gf-ink); border-bottom: 1.5px solid var(--gf-ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* 7. Responsive layout and print */
@media (max-width: 1100px) and (min-width: 601px) {
  .gf-footer { grid-template-columns: minmax(0, 1fr) auto; }
  .gf-footer > p { grid-column: 1/-1; }
  .gf-footer-links { justify-self: start; justify-content: flex-start; }
}
@media (max-width: 900px) {
  .gf-shell { width: calc(100% - 48px); }
  .gf-home-hero { grid-template-columns: 1fr; gap: 30px; padding-block: 38px; }
  .gf-hero-index { margin-top: 0; }
  .gf-work-row { gap: 28px; }
  .gf-account { max-width: 100%; }
  .gf-home-metrics-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
  .gf-home-metrics .gf-home-metric { grid-column: span 2; min-height: 180px; }
  .gf-home-metrics .gf-home-metric:nth-child(4), .gf-home-metrics .gf-home-metric:nth-child(5) { grid-column: span 3; min-height: 150px; }
}
@media (max-width: 600px) {
  .gf-shell { width: calc(100% - 36px); }
  .gf-header { display: block; padding-block: 24px 22px; }
  .gf-brand-lockup { min-width: 0; gap: 14px; }
  .gf-logomark { flex-basis: 56px; width: 56px; height: 56px; }
  .gf-logomark img { width: 56px; height: 56px; }
  .gf-brand-name { font-size: 1.5rem; }
  .gf-brand-role { font-size: .75rem; }
  .gf-nav { gap: 26px; margin-top: 20px; }
  h1 { font-size: 1.875rem; }
  .gf-page, .gf-account { padding-block: 36px 48px; }
  .gf-section { padding-block: 30px 36px; }
  .gf-work-row { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 24px; }
  .gf-work-row + .gf-work-row { margin-top: 20px; }
  .gf-question { padding: 24px 22px; }
  .gf-question p { font-size: 1.375rem; }
  .gf-perspective { padding: 26px 22px; }
  .gf-case-gallery { grid-template-columns: 1fr; gap: 22px; }
  .gf-profile-photo { width: 180px; margin-bottom: 2rem; }
  .gf-home-metrics { padding-block: 30px; }
  .gf-home-metrics-grid { display: block; }
  .gf-home-metrics .gf-home-metric { display: grid; grid-template-columns: 106px minmax(0, 1fr); grid-template-rows: auto auto; gap: 6px 18px; padding-block: 22px; min-height: 112px; width: 100%; align-items: start; }
  .gf-home-metric + .gf-home-metric { margin-top: 4px; }
  .gf-home-metric-number { grid-row: 1/span 2; font-size: 2.5rem; }
  .gf-home-metric-label { grid-column: 2; font-size: .9375rem; max-width: none; }
  .gf-home-metric-context { grid-column: 2; max-width: none; margin-top: 0 !important; }
  .gf-home-metric-proof { padding: 22px; }
  .gf-table { overflow-x: visible; }
  .gf-table table, .gf-table tbody, .gf-table tr, .gf-table td { display: block; width: 100%; }
  .gf-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  .gf-table tbody tr { border-top: 1px solid var(--gf-line); padding: 14px 0 18px; }
  .gf-table tbody tr:last-child { border-bottom: 1px solid var(--gf-line); }
  .gf-table tbody td { border: 0; padding: 0; font-size: 1rem; }
  .gf-table tbody td:first-child { width: 100%; margin-bottom: .35rem; font-weight: 600; }
  .gf-footer { display: block; }
  .gf-footer-links { justify-content: flex-start; margin-top: 20px; }
  .gf-appearance-control { margin-top: 20px; }
  .gf-appearance-control select { appearance: auto; padding: .45rem .65rem; min-width: 100px; font-size: 1rem; }
  .gf-appearance-select-wrap::after { display: none; }
}
@media (forced-colors: active) {
  .gf-appearance-control select { appearance: auto; padding-inline: .8rem; }
  .gf-appearance-select-wrap::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gf-actions a { transition: none; }
}
@media print {
  :root, :root[data-gf-appearance] { color-scheme: light; --gf-paper: #fff; --gf-ink: #15191f; --gf-muted: #515b68; --gf-blue: #5573b4; --gf-line: #cbd2dc; --gf-soft: #fafbfc; }
  body { background: #fff; color: #15191f; }
  .gf-nav, .gf-actions, .gf-footer, .gf-backlink, .gf-hero-index { display: none; }
  .gf-shell { width: 100%; }
  .gf-home-hero, .gf-work-row { display: block; }
  .gf-page, .gf-account { padding-block: 20px; }
  .gf-question { background: none; border: 1px solid var(--gf-line); }
  .gf-header { padding-block: 10px; }
  .gf-home-metrics-grid { display: block; }
  .gf-home-metrics .gf-home-metric { display: block; min-height: 0; padding-block: 10px; break-inside: avoid; }
  .gf-home-metric-number { font-size: 1.5rem; margin-right: 12px; }
  .gf-home-metric-label { margin-right: 12px; }
  .gf-home-metric-context { display: block; }
  .gf-home-metric-proof { display: none; }
}
