@font-face { font-family: "Literata"; src: url("/assets/fonts/literata-latin.woff2") format("woff2"); font-style: normal; font-weight: 500 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/source-sans-3-latin.woff2") format("woff2"); font-style: normal; font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/assets/fonts/ibm-plex-mono-600-latin.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }

:root {
  --ink: #152229;
  --paper: #ffffff;
  --ground: #f4f7f5;
  --line: #cbd4d1;
  --muted: #586970;
  --cobalt: #3157e2;
  --amber: #f2b544;
  --display: "Literata", Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --shell: min(1160px, calc(100vw - 80px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ground); font-family: var(--body); font-size: 17px; line-height: 1.58; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.035em; }
h3 { line-height: 1.2; }
p:last-child { margin-bottom: 0; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; color: var(--ink); background: var(--amber); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.eyebrow { display: block; margin-bottom: 14px; font-family: var(--mono); font-size: .71rem; font-weight: 600; letter-spacing: .075em; line-height: 1.4; text-transform: uppercase; }

.site-header { background: var(--ink); color: var(--ground); border-bottom: 1px solid #34444b; }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.identity { min-width: 0; display: flex; align-items: baseline; gap: 14px; text-decoration: none; }
.identity-name { font-family: var(--display); font-size: 1.2rem; }
.identity-role { color: #aebbc0; font-family: var(--mono); font-size: .65rem; letter-spacing: .045em; text-transform: uppercase; }
.desktop-nav { display: flex; gap: 30px; }
.desktop-nav a, .mobile-menu a, .mobile-menu summary, .mobile-resume { font-family: var(--mono); font-size: .71rem; letter-spacing: .045em; text-decoration: none; text-transform: uppercase; }
.desktop-nav a[aria-current="page"], .mobile-nav-link[aria-current="page"], .mobile-resume[aria-current="page"] { color: var(--amber); }
.mobile-menu, .mobile-resume { display: none; }
.mobile-menu { position: relative; }
.mobile-menu summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; list-style: none; }
.mobile-menu nav { position: absolute; z-index: 20; top: 42px; right: 0; width: min(220px, calc(100vw - 24px)); padding: 10px; background: var(--ink); border: 1px solid #4a5a61; }
.mobile-nav-link { display: block; min-height: 44px; padding: 12px; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border: 1px solid transparent; font-family: var(--mono); font-size: .75rem; font-weight: 600; letter-spacing: .03em; text-decoration: none; text-transform: uppercase; }
.button--primary { color: var(--paper); background: var(--cobalt); }
.button--light { color: var(--ground); border-color: #607077; }
.button--ink { color: var(--ground); background: var(--ink); }
.button--outline { border-color: var(--ink); }
.text-link, .row-link, .section-link { min-height: 44px; display: inline-flex; align-items: center; font-family: var(--mono); font-size: .76rem; font-weight: 600; letter-spacing: .025em; }
.text-link--light { color: #d4dddf; }
.section-link { margin-top: 32px; }
a[href="/data-work/"] { font-family: var(--body); font-size: 1.2rem; font-weight: 600; }
.inline-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 24px; }

.hero { padding: 94px 0 78px; color: var(--ground); background: var(--ink); border-top: 4px solid var(--amber); }
.hero-grid { display: block; max-width: 1160px; }
.hero-copy .eyebrow { color: var(--amber); }
.hero h1 { max-width: 820px; margin-bottom: 26px; font-size: clamp(3.2rem, 6vw, 5.6rem); line-height: 1; }
.hero-copy > p { max-width: 690px; margin-bottom: 34px; color: #c5d0d3; font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.hero-facts { margin: 0; border-top: 1px solid #415158; }
.hero-facts div { padding: 22px 0; border-bottom: 1px solid #415158; }
.hero-facts dt { color: var(--amber); font-family: var(--display); font-size: 2.3rem; line-height: 1; }
.hero-facts dd { margin: 7px 0 0; color: #aebbc0; font-size: .86rem; }
.work-section, .supporting-section, .writing-index, .about-experience, .resume-experience { padding: 96px 0; }
.section-intro { display: grid; grid-template-columns: 2fr 7fr; gap: 48px; margin-bottom: 48px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.section-intro h2 { max-width: 760px; margin-bottom: 12px; font-size: clamp(2.3rem, 4.5vw, 4.5rem); line-height: 1.04; }
.section-intro p { max-width: 650px; color: var(--muted); }
.project-ledger { border-top: 1px solid var(--ink); }
.project-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--ink); }
.project-meta { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: .88rem; }
.project-meta .eyebrow { margin: 0; color: var(--cobalt); }
.project-copy h2, .project-copy h3 { line-height: 1.2; margin-bottom: 12px; font-family: var(--display); font-size: 2rem; font-weight: 500; letter-spacing: -.025em; }
.project-copy p { max-width: 680px; }
.project-copy strong { display: block; margin-top: 20px; color: var(--ink); }
.project-row > .row-link { justify-self: end; }
.home-writing { padding: 88px 0; background: var(--paper); border-block: 1px solid var(--line); }
.home-writing-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; }
.home-writing h2, .home-about h2 { margin-bottom: 20px; font-size: clamp(2.4rem, 4.5vw, 4.4rem); line-height: 1.05; }
.home-writing p { max-width: 560px; }
.featured-article { padding-left: 42px; border-left: 4px solid var(--amber); }
.featured-article h3 { margin-bottom: 16px; font-family: var(--display); font-size: clamp(2rem, 3.5vw, 3.5rem); font-weight: 500; letter-spacing: -.03em; }
.home-about { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; padding-block: 96px; }
.home-about > div:last-child { max-width: 650px; }

.page-hero { padding: 76px 0; border-bottom: 1px solid var(--ink); }
.page-hero--ink { color: var(--ground); background: var(--ink); border-top: 4px solid var(--amber); }
.page-hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: end; }
.page-hero h1 { margin: 0; font-size: clamp(3rem, 5.5vw, 5.2rem); line-height: 1.02; }
.page-hero-copy { max-width: 610px; justify-self: end; font-size: 1.08rem; }
.page-hero--ink .page-hero-copy { color: #c5d0d3; }
.page-meta { margin-bottom: 12px; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
.simple-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.simple-heading h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.8rem); }
.work-index { padding: 88px 0 28px; }
.supporting-register { border-top: 1px solid var(--ink); }
.supporting-row { display: grid; grid-template-columns: 3fr 6fr 2fr; gap: 40px; padding: 34px 0; border-bottom: 1px solid var(--ink); }
.supporting-meta { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: .84rem; }
.supporting-meta .eyebrow { margin-bottom: 4px; }
.supporting-row h3 { margin-bottom: 8px; font-family: var(--display); font-size: 1.55rem; font-weight: 500; }
.supporting-row strong { font-size: .92rem; }
.supporting-row > div:last-child { justify-self: end; }

.featured-writing { max-width: 900px; margin-bottom: 60px; padding: 46px; background: var(--paper); border: 1px solid var(--ink); border-top: 5px solid var(--cobalt); }
.featured-writing h2 { max-width: 760px; margin-bottom: 18px; font-size: clamp(2.4rem, 4.5vw, 4.3rem); line-height: 1.05; }
.featured-writing p { max-width: 670px; }
.writing-register { border-top: 1px solid var(--ink); }
.writing-row { display: grid; grid-template-columns: 2fr 7fr 2fr; gap: 36px; padding: 32px 0; border-bottom: 1px solid var(--ink); }
.writing-meta { color: var(--muted); font-size: .84rem; }
.writing-meta .eyebrow { margin-bottom: 5px; }
.writing-row h3 { margin-bottom: 8px; font-family: var(--display); font-size: 1.55rem; font-weight: 500; }
.writing-row > div:last-child { justify-self: end; }
.route-action { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 42px; }

.about-main, .about-writing-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; padding-block: 88px; }
.about-main h2, .about-writing h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1.06; }
.about-main > div:last-child, .about-writing-grid > div:last-child { max-width: 650px; }
.about-writing { background: var(--paper); border-block: 1px solid var(--line); }
.experience-register { border-top: 1px solid var(--ink); }
.experience-row { display: grid; grid-template-columns: 4fr 8fr; gap: 60px; padding: 34px 0; border-bottom: 1px solid var(--ink); }
.experience-row h3 { margin-bottom: 0; font-family: var(--display); font-size: 1.5rem; font-weight: 500; }
.experience-row strong { display: block; margin-bottom: 8px; }
.experience-proof { margin-top: 14px; font-weight: 700; }
.resume-options { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 72px 0 28px; }
.resume-card { display: flex; flex-direction: column; align-items: flex-start; padding: 38px; background: var(--paper); border: 1px solid var(--ink); }
.resume-card h2 { margin-bottom: 14px; font-size: 2rem; }
.resume-card p { flex: 1; }
.resume-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 52px; font-family: var(--mono); font-size: .7rem; letter-spacing: .035em; text-transform: uppercase; }
.breadcrumb a { text-decoration: none; }
.case-hero { padding: 54px 0 78px; color: var(--ground); background: var(--ink); border-top: 4px solid var(--amber); }
.case-hero-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: end; }
.case-hero h1 { max-width: 800px; margin-bottom: 22px; font-size: clamp(3.1rem, 5.5vw, 5.4rem); line-height: 1; }
.case-hero p { max-width: 650px; color: #c5d0d3; font-size: 1.12rem; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-top: 1px solid #45545b; }
.fact-grid div { padding: 22px 14px 0 0; border-right: 1px solid #45545b; }
.fact-grid div:last-child { border-right: 0; padding-left: 14px; }
.fact-grid div:nth-child(2) { padding-left: 14px; }
.fact-grid dt { color: var(--amber); font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; }
.fact-grid dd { margin: 8px 0 0; color: #aebbc0; font-size: .82rem; }
.case-body { padding: 32px 0; }
.case-section { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; padding: 36px 0; border-bottom: 1px solid var(--ink); }
.case-section:first-child { border-top: 1px solid var(--ink); }
.case-section h2 { max-width: 520px; font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.08; }
.case-section > div:last-child { max-width: 660px; }
.case-process > div > p { margin-top: 24px; }
.case-process { margin-top: 24px; }
.case-process summary { cursor: pointer; text-decoration: underline; text-underline-offset: .22em; }
.case-process figure { margin: 24px 0 0; min-width: 0; max-width: 540px; }
.case-tools { margin: 28px 0 0; color: var(--muted); }
.resume-downloads { padding-block: 36px; }
.case-process figure img { display: block; width: 100%; height: auto; }
.case-process figcaption { margin-top: 16px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.case-list { margin: 0; padding-left: 1.2rem; }
.case-list li { margin-bottom: 12px; padding-left: 6px; }
.case-result { max-width: 930px; padding: 74px 0; }
.case-result h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 1.06; }
.case-result p { max-width: 720px; margin-top: 22px; padding-left: 20px; border-left: 4px solid var(--amber); }
.case-details { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; padding: 38px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.case-contact { padding: 74px 0; color: var(--ground); background: var(--ink); }
.case-contact-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 80px; align-items: end; }
.case-contact h2 { margin: 0; font-size: clamp(2.3rem, 4.5vw, 4.1rem); line-height: 1.05; }
.case-contact p { color: #c5d0d3; }
.case-next { display: flex; justify-content: space-between; gap: 24px; padding-block: 40px; font-family: var(--mono); font-size: .76rem; font-weight: 600; }

.site-footer { padding: 76px 0 30px; color: var(--ground); background: var(--ink); border-top: 4px solid var(--amber); }
.footer-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 80px; }
.footer-grid h2 { max-width: 700px; margin-bottom: 0; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.12; }
.footer-copy p { color: #c5d0d3; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }
.footer-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 22px; color: #9dabb0; border-top: 1px solid #415158; font-size: .8rem; }
.not-found { min-height: 65vh; padding-block: 110px; }
.not-found h1 { margin-bottom: 20px; font-size: clamp(3rem, 6vw, 5rem); }
.not-found p { max-width: 560px; }
.not-found > div { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 48px, 760px); }
  .desktop-nav { display: none; }
  .mobile-menu, .mobile-resume { display: block; }
  .identity-role { display: none; }
  .hero-grid, .page-hero-grid, .case-hero-grid, .home-writing-grid, .home-about, .about-main, .about-writing-grid, .case-section, .case-contact-grid, .footer-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero { padding-top: 70px; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-facts div { padding: 18px 16px; border-right: 1px solid #415158; }
  .hero-facts div:last-child { border-right: 0; }
  .section-intro { grid-template-columns: 1fr; gap: 12px; }
  .project-row { grid-template-columns: minmax(0, 1fr) auto; }
  .project-row > .row-link { grid-column: 2; justify-self: start; }
  .supporting-row, .writing-row { grid-template-columns: 2fr 5fr; }
  .supporting-row > div:last-child, .writing-row > div:last-child { grid-column: 2; justify-self: start; }
  .featured-article { padding-left: 28px; }
  .fact-grid { max-width: 620px; }
  .case-details { gap: 34px; }
  .footer-meta { grid-column: auto; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 32px); }
  body { font-size: 16px; }
  .header-inner { min-height: 72px; gap: 12px; }
  .identity-name { font-size: 1.05rem; }
  .mobile-resume { font-size: .64rem; }
  .hero, .page-hero, .case-hero { padding-block: 54px; }
  .hero h1, .page-hero h1, .case-hero h1 { font-size: clamp(2.65rem, 13vw, 4.2rem); }
  .hero-facts { grid-template-columns: 1fr; }
  .hero-facts div { border-right: 0; }
  .work-section, .supporting-section, .writing-index, .about-experience, .resume-experience { padding: 68px 0; }
  .project-row, .supporting-row, .writing-row, .experience-row { grid-template-columns: 1fr; gap: 18px; padding: 30px 0; }
  .project-row > .row-link, .supporting-row > div:last-child, .writing-row > div:last-child { grid-column: auto; }
  .simple-heading { align-items: flex-start; flex-direction: column; }
  .home-writing, .about-main, .about-writing-grid, .home-about { padding-block: 68px; }
  .featured-article { padding-left: 20px; }
  .featured-writing { padding: 30px 24px; }
  .route-action { align-items: flex-start; flex-direction: column; }
  .resume-options { grid-template-columns: 1fr; padding-top: 48px; }
  .resume-card { padding: 28px 24px; }
  .breadcrumb { margin-bottom: 34px; }
  .fact-grid { grid-template-columns: 1fr; border-top: 1px solid #45545b; }
  .fact-grid div, .fact-grid div:nth-child(2), .fact-grid div:last-child { padding: 16px 0; border-right: 0; border-bottom: 1px solid #45545b; }
  .case-body { padding: 50px 0; }
  .case-section { padding: 40px 0; gap: 18px; }
  .case-result { padding: 52px 0; }
  .case-details { grid-template-columns: 1fr; gap: 10px; }
  .case-details > div { padding: 24px 0; }
  .case-contact { padding: 56px 0; }
  .case-next, .footer-meta { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.data-writing summary { cursor: pointer; font-family: var(--display); font-size: 1.6rem; }
.data-writing[open] summary { margin-bottom: 2rem; }
