/* WheekWorks' website. It shares Wheekly's tokens from DESIGN.md (the
   "Website" section) so the studio and its app read as one family. No
   shadows, no gradients, no third-party requests. */

@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* colors (DESIGN.md front matter) */
  --page: #f1f6f3; /* river-mist */
  --surface: #ffffff;
  --surface-low: #f7faf8;
  --ink: #18332c; /* river-ink */
  --muted: #4d635b; /* muted-ink */
  --action: #1f6b5f; /* river-teal-action */
  --on-action: #ffffff;
  --hero-field: #daeae2;
  --on-hero-field: #18332c;
  --separator: #d5e0da;
  --todo-bg: #fff1c2;
  --todo-ink: #5c4400;

  /* rounded */
  --r-control: 16px;
  --r-card: 22px;
  --r-hero: 26px;

  /* spacing */
  --s-04: 4px;
  --s-08: 8px;
  --s-12: 12px;
  --s-16: 16px;
  --s-20: 20px;
  --s-24: 24px;
  --s-28: 28px;
  --s-30: 30px;
  --section-gap: 64px; /* components.web-page.sectionGap */
  --hero-padding: 56px 48px; /* components.web-hero.padding */

  /* layout */
  --page-width: 1040px; /* components.web-page.maxWidth */
  --reading-width: 680px; /* components.web-page.readingWidth */

  --system: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --serif: "Newsreader", "New York", ui-serif, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #101c18; /* night-river */
    --surface: #192823; /* night-surface */
    --surface-low: #14221e;
    --ink: #ffffff;
    --muted: #d5e2dc;
    --action: #86d3c1;
    --on-action: #00382f;
    --hero-field: #203b33;
    --on-hero-field: #f1f8f4;
    --separator: #3e514a;
    --todo-bg: #4a3b0a;
    --todo-ink: #ffe7a3;
  }
}

@media (prefers-contrast: more) {
  :root {
    --ink: #07110e;
    --muted: #293a34;
    --separator: #61756d;
  }
}

@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root {
    --ink: #ffffff;
    --muted: #ffffff;
    --separator: #8ea49b;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--system);
  font-size: 1.0625rem; /* 17px body */
  line-height: 1.5;
  overflow-wrap: break-word;
}

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

a {
  color: var(--action);
  text-underline-offset: 0.15em;
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

/* Serif for moments: page titles and a few headings only. */
.serif {
  font-family: var(--serif);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: 0;
}

p {
  margin: 0;
}

p + p {
  margin-top: var(--s-12);
}

.skip-link {
  position: absolute;
  left: var(--s-16);
  top: -100px;
  background: var(--surface);
  padding: var(--s-12) var(--s-16);
  border-radius: var(--r-control);
  z-index: 10;
}

.skip-link:focus {
  top: var(--s-12);
}

.wrap {
  width: 100%;
  max-width: calc(var(--page-width) + 2 * var(--s-20));
  margin: 0 auto;
  padding: 0 var(--s-20);
}

.reading {
  max-width: calc(var(--reading-width) + 2 * var(--s-20));
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--separator);
  background: var(--page);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-08) var(--s-20);
  min-height: 74px;
  padding-top: var(--s-08);
  padding-bottom: var(--s-08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-12);
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand span {
  font-size: 1.5rem; /* 24px serif heading */
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-04) var(--s-16);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-04);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--action);
}

/* Buttons and chips: every button is a pill. One filled button per page. */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-12);
  margin-top: var(--s-28);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.button-filled {
  background: var(--action);
  color: var(--on-action);
}

/* A status, not an action, so it's neutral rather than teal. */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--s-08) var(--s-16);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
}

/* Sections */

main {
  display: block;
}

.section {
  margin-top: var(--section-gap);
}

.section:last-child {
  margin-bottom: var(--section-gap);
}

.eyebrow {
  color: var(--muted);
  font-size: 0.8125rem; /* 13px caption */
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.125rem); /* 28 to 34px */
  margin-top: var(--s-08);
}

.section-intro {
  color: var(--muted);
  margin-top: var(--s-12);
  max-width: var(--reading-width);
}

/* Hero: the one broad field, in Hero Field. */

.hero {
  margin-top: var(--s-30);
  background: var(--hero-field);
  color: var(--on-hero-field);
  border-radius: var(--r-hero);
  padding: var(--s-30) var(--s-24);
  display: grid;
  gap: var(--s-24);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem); /* typography.web-hero */
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin-top: var(--s-12);
}

.hero .lead {
  font-size: 1.25rem; /* 20px */
  line-height: 1.45;
  margin-top: var(--s-20);
  max-width: 34em;
}

.hero img {
  justify-self: center;
  width: 100%;
  max-width: 480px;
}

@media (min-width: 820px) {
  .hero {
    grid-template-columns: 1.15fr 1fr;
    padding: var(--hero-padding);
  }
}

/* Cards: white surface, card radius, no border, no shadow. */

.cards {
  display: grid;
  gap: var(--s-12);
  margin-top: var(--s-24);
  list-style: none;
  padding: 0;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .cards.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: var(--s-20);
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.card p {
  color: var(--muted);
  margin-top: var(--s-08);
}

/* A quiet inset panel, like Settings' privacy note. */

.panel {
  background: var(--surface-low);
  border: 1px solid var(--separator);
  border-radius: var(--r-card);
  padding: var(--s-24);
  margin-top: var(--s-24);
}

.panels {
  display: grid;
  gap: var(--s-12);
  margin-top: var(--s-24);
}

.panels .panel {
  margin-top: 0;
}

@media (min-width: 820px) {
  .panels {
    grid-template-columns: 1.4fr 1fr;
  }
}

.panel p {
  max-width: var(--reading-width);
}

.panel h3 {
  font-size: 1.25rem; /* 20px section heading */
  font-weight: 700;
}

.panel p,
.panel ul {
  margin-top: var(--s-12);
}

/* The story */

.story {
  display: grid;
  gap: var(--s-24);
  align-items: center;
}

.story blockquote {
  margin: var(--s-20) 0 0;
  font-size: 1.25rem; /* 20px */
  line-height: 1.5;
}

.story figcaption {
  color: var(--muted);
  margin-top: var(--s-16);
}

.story img {
  justify-self: center;
  width: 100%;
  max-width: min(100%, 380px);
}

@media (min-width: 820px) {
  .story {
    grid-template-columns: 1.4fr 1fr;
  }
}
/* Footer */

.site-footer {
  border-top: 1px solid var(--separator);
  padding: var(--s-30) 0;
  color: var(--muted);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--s-20);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
}

.site-footer p {
  margin-top: var(--s-12);
}

/* 404 */

.not-found {
  text-align: center;
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.not-found img {
  margin: 0 auto var(--s-24);
  width: 100%;
  max-width: min(100%, 320px);
}

.not-found h1 {
  font-size: 2.125rem;
}

.not-found p {
  color: var(--muted);
  margin-top: var(--s-12);
}

.not-found .actions {
  justify-content: center;
}

/* A quiet second action beside the one filled pill. */

.button-plain {
  background: var(--surface);
  color: var(--action);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* At a glance: the hero's three numbers. */

.facts {
  display: grid;
  gap: var(--s-12);
  margin: 0;
}

.facts div {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: var(--s-16) var(--s-20);
}

.facts dt {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.75rem; /* 28px display */
  line-height: 1.2;
  color: var(--ink);
}

.facts dd {
  margin: var(--s-04) 0 0;
  color: var(--muted);
}

/* Experience: one row per role, the dates in a column of their own. */

.timeline {
  list-style: none;
  margin: var(--s-24) 0 0;
  padding: 0 var(--s-20);
  background: var(--surface);
  border-radius: var(--r-card);
}

.timeline li {
  display: grid;
  gap: 0 var(--s-20);
  padding: var(--s-12) 0;
}

.timeline li + li {
  border-top: 1px solid var(--separator);
}

.timeline .when {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem; /* 15px subheadline */
}

.timeline .role {
  font-weight: 600;
}

.timeline .org {
  color: var(--muted);
}

@media (min-width: 720px) {
  .timeline li {
    grid-template-columns: 9.5em 1fr 1fr;
    align-items: baseline;
  }

  .timeline .when {
    font-size: inherit;
  }
}

.timeline + .section-intro {
  margin-top: var(--s-20);
}

/* In their words */

.quotes {
  display: grid;
  gap: var(--s-12);
  margin-top: var(--s-16);
}

@media (min-width: 820px) {
  .quotes {
    grid-template-columns: repeat(2, 1fr);
  }
}

.quotes figure {
  margin: 0;
}

.quotes blockquote {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem; /* 20px */
  line-height: 1.45;
}

.quotes figcaption {
  color: var(--muted);
  margin-top: var(--s-12);
}
