/* WheekWorks' website, in the WheekWorks design system: Hay by day, Burrow
   by night, Instrument Serif for moments and names, Instrument Sans for
   everything you use. One shadow, modest corners, no gradients, no
   third-party requests. */

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* color: the WheekWorks system's Hay theme */
  --hay: #f6f3ec;
  --surface: #ffffff;
  --sunk: #ede8dd;
  --line: #ddd6c8;
  --muted-ink: #5c5862;
  --ink: #17161c;
  --ginger: #e5793b;
  --on-ginger: #17161c;
  --ginger-text: #a8481a;
  --plum: #7a4565;
  --gold: #d9a441;
  --cream: #fff8ee;
  --ear: #c4562a;
  --band: #14131a;
  --shadow-card: 0 8px 24px rgba(23, 22, 28, 0.06);

  /* radius */
  --radius-sm: 7px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* spacing */
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --section-gap: clamp(64px, 9vw, 112px);

  /* layout */
  --page-width: 1120px;
  --reading-width: 640px;
  --gutter: clamp(20px, 4vw, 32px);

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* the Burrow theme */
    --hay: #14131a;
    --surface: #1e1d26;
    --sunk: #0e0d12;
    --line: #33313d;
    --muted-ink: #b5afb9;
    --ink: #f4eee3;
    --ginger: #ee8a4f;
    --ginger-text: #f4a06d;
    --plum: #c792b0;
    --gold: #c98f2a;
    --band: #0e0d12;
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}

@media (prefers-contrast: more) {
  :root {
    --muted-ink: #3a3740;
    --line: #8e877a;
  }
}

@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root {
    --muted-ink: #f4eee3;
    --line: #77727f;
  }
}

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

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

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

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

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

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
}

/* Instrument Serif for moments and names. It has one weight, 400: never
   set it bolder, or the browser smears in a fake bold. */
.serif,
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}

p {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: var(--space-16);
  top: -100px;
  background: var(--surface);
  color: var(--ink);
  padding: var(--space-12) var(--space-16);
  border-radius: var(--radius-md);
  z-index: 10;
}

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

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

/* The mark: Beaker and Mooshu nose to nose. Mooshu stays ginger; Beaker
   takes the contrast tone. */

.mark {
  display: block;
  height: auto;
  overflow: visible;
}

.mark .mooshu { fill: var(--ginger); }
.mark .ear { fill: var(--ear); }
.mark .blaze { fill: var(--cream); }
.mark .eye-m { fill: #17161c; }
.mark .beaker { fill: var(--ink); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.mark .beaker-ear { fill: var(--ink); }
.mark .eye-b { fill: var(--hay); }
.mark .rosette { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; }
.mark .wheek { fill: none; stroke: var(--plum); stroke-width: 5; stroke-linecap: round; }

/* The wordmark: a playful italic Instrument Serif "Wheek" joined to an
   engineered Instrument Sans "Works", drawn as outlines by wordmark.py and
   tuned by hand: a delicate italic against a dense, solid sans. Inline SVG in currentColor, so it
   takes ink, or cream on Burrow. Size it by width. */
.wordmark {
  display: block;
  height: auto;
  aspect-ratio: 4874 / 777;
}

/* Header */

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

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

.brand .mark {
  width: 64px;
}

.brand .wordmark {
  width: 168px;
}

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

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

.site-nav a:hover {
  color: var(--plum);
}

/* Buttons: radius-md, never pills. One ginger button per page. */

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-24);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}

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

.button-filled:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.button-plain {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-plain:hover {
  border-color: var(--muted-ink);
}

/* Sections */

main {
  display: block;
}

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

.caption {
  color: var(--muted-ink);
  font-size: 0.75rem; /* 12px */
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head {
  display: grid;
  gap: var(--space-12);
  max-width: var(--reading-width);
}

.section-title {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem); /* 32 to 44px */
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.section-intro {
  color: var(--muted-ink);
  max-width: var(--reading-width);
}

/* Hero */

.hero {
  display: grid;
  gap: var(--space-48);
  align-items: end;
  padding-top: clamp(32px, 6vw, 80px);
}

.hero h1 {
  font-size: clamp(3rem, 1.7rem + 5.6vw, 5.5rem); /* 48 to 88px */
  line-height: 0.96;
  letter-spacing: -0.015em;
  margin-top: var(--space-16);
}

.hero .lead {
  font-size: 1.1875rem; /* 19px */
  line-height: 1.55;
  margin-top: var(--space-24);
  max-width: 34em;
}

.hero .lead + .lead {
  margin-top: var(--space-12);
}

.hero .studio-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--muted-ink);
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.5fr 1fr;
  }
}

/* At a glance: three numbers in one card. */

.facts {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.facts div {
  padding: var(--space-24);
}

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

.facts dt {
  font-weight: 600;
  font-size: 1.875rem; /* 30px stat */
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.facts dt span {
  color: var(--ginger-text);
}

.facts dd {
  margin: var(--space-4) 0 0;
  color: var(--muted-ink);
  font-size: 0.9375rem;
}

/* Cards: surface, a hairline, radius-lg. */

.cards {
  display: grid;
  gap: var(--space-16);
  margin: var(--space-32) 0 0;
  list-style: none;
  padding: 0;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
}

.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.625rem; /* 26px */
  line-height: 1.1;
}

.card p {
  color: var(--muted-ink);
  margin-top: var(--space-8);
  font-size: 1rem;
}

.card .num {
  display: block;
  margin-bottom: var(--space-16);
  color: var(--ginger-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

/* The studio: a Burrow band across the page, whatever the theme. */

.band {
  margin-top: var(--section-gap);
  background: var(--band);
  color: #f4eee3;
  padding: clamp(48px, 8vw, 96px) 0;

  --ink: #f4eee3;
  --muted-ink: #b5afb9;
  --surface: #1e1d26;
  --line: #33313d;
  --plum: #c792b0;
  --ginger: #ee8a4f;
  --gold: #c98f2a;
  --hay: var(--band);
}

/* The studio's name, then what it makes: a card per product. */
.studio {
  display: grid;
  gap: var(--space-48);
}

.products {
  display: grid;
  gap: var(--space-24);
}

@media (min-width: 760px) {
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.studio .mark {
  width: min(100%, 300px);
}

.studio-name {
  margin-top: var(--space-24);
}

.studio .wordmark {
  width: clamp(260px, 18rem + 6vw, 380px);
}

.studio .tagline {
  margin-top: var(--space-12);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--muted-ink);
}

.product {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.product img {
  width: 100%;
  background: #f6f3ec;
}

.product-body {
  padding: var(--space-24);
}

.product h2 {
  font-size: 2rem;
  line-height: 1.05;
  margin-top: var(--space-8);
}

.product p {
  color: var(--muted-ink);
  margin-top: var(--space-12);
}

.product .badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #3a2418;
  color: #f4a06d;
  font-size: 0.8125rem;
  font-weight: 600;
}

.product .more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: var(--space-8);
  font-weight: 600;
}

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

.timeline {
  list-style: none;
  margin: var(--space-32) 0 0;
  padding: 0 var(--space-24);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.timeline li {
  display: grid;
  gap: 0 var(--space-24);
  padding: var(--space-16) 0;
}

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

.timeline .when {
  color: var(--muted-ink);
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
}

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

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

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

.timeline + .section-intro {
  margin-top: var(--space-24);
}

/* In their words: the serif's italic voice. */

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

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

.quotes figure {
  margin: 0;
  padding: var(--space-32);
}

.quotes blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.625rem; /* 26px */
  line-height: 1.3;
}

.quotes figcaption {
  color: var(--muted-ink);
  margin-top: var(--space-16);
  font-size: 0.9375rem;
}

/* Contact */

.contact {
  display: grid;
  gap: var(--space-24);
  background: var(--sunk);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 48px);
  margin-bottom: var(--section-gap);
}

.contact h2 {
  margin-top: var(--space-12);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

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

.contact .aside {
  color: var(--muted-ink);
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: 1fr 1.4fr;
    align-items: start;
  }
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-32) 0;
  color: var(--muted-ink);
  font-size: 0.9375rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
}

.site-footer .mark {
  width: 56px;
}

.site-footer .end {
  display: flex;
  align-items: center;
  gap: var(--space-12);
}

/* 404 */

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

.not-found .mark {
  width: min(100%, 260px);
  margin-bottom: var(--space-32);
}

.not-found h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

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

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

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