:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #efede8;
  --line: #e4e1da;
  --text: #1b1a17;
  --text-2: #5c5850;
  --text-3: #858076;
  --accent: #1f4d36;
  --accent-soft: #e4eee7;
  --todo-bg: #fff4d6;
  --todo-line: #c99a2e;
  --font: "Geist", ui-sans-serif, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131311;
    --surface: #1b1a18;
    --surface-2: #23221f;
    --line: #2f2d29;
    --text: #edece8;
    --text-2: #aaa69d;
    --text-3: #7f7b72;
    --accent: #93c7a6;
    --accent-soft: #1f2b23;
    --todo-bg: #3a3017;
    --todo-line: #b38a2a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131311; --surface: #1b1a18; --surface-2: #23221f; --line: #2f2d29;
  --text: #edece8; --text-2: #aaa69d; --text-3: #7f7b72; --accent: #93c7a6; --accent-soft: #1f2b23;
  --todo-bg: #3a3017; --todo-line: #b38a2a; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; transition: text-decoration-color 150ms ease, color 150ms ease; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.name { font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.tabs { display: flex; gap: 24px; height: 100%; }
.tabs a { display: flex; align-items: center; height: 100%; text-decoration: none; color: var(--text-2); font-size: 15px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); border-bottom-color: var(--text); }

/* Type */
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; margin: 0; }
h1 { font-size: 40px; font-weight: 600; }
h2 { font-size: 26px; font-weight: 600; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
.lede { font-size: 20px; line-height: 1.55; color: var(--text-2); max-width: 680px; }
.muted { color: var(--text-2); }
.small { font-size: 14px; color: var(--text-3); }

/* Intro */
.intro { padding-top: 72px; padding-bottom: 56px; }
.intro h1 { max-width: 820px; margin-bottom: 20px; }
.intro .meta { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 24px; font-size: 15px; color: var(--text-2); }

/* Work list */
.work { display: grid; gap: 32px; padding-bottom: 96px; }
.project {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  text-decoration: none;
}
.project-text { padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.project-text h2 { font-size: 24px; }
.project-text p { color: var(--text-2); margin: 0; }
.project-meta { font-size: 14px; color: var(--text-3); margin-top: auto; padding-top: 12px; }
.project-link { font-weight: 500; color: var(--accent); }
.project:hover .project-link { text-decoration: underline; text-underline-offset: 3px; }
.project-art { background: var(--surface-2); display: flex; justify-content: center; align-items: flex-start; gap: 16px; padding: 40px 24px 0; height: 440px; overflow: hidden; }
.project-art img { width: 30%; max-width: 210px; border: 1px solid var(--line); border-radius: 16px; }
.project-art img:nth-child(2) { margin-top: 40px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 8px;
  background: var(--text); color: var(--bg); text-decoration: none; font-weight: 500; font-size: 15px;
  transition: opacity 150ms ease;
}
.button:hover { opacity: 0.88; }
.button.secondary { background: transparent; color: var(--text); border: 1px solid var(--line); }

/* Case study */
.case-head { padding-top: 64px; padding-bottom: 40px; }
.case-head h1 { margin-bottom: 16px; }
.facts-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin: 32px 0 0; }
.facts-row dt { font-size: 13px; color: var(--text-3); margin-bottom: 4px; }
.facts-row dd { margin: 0; font-size: 15px; }
.section { padding: 48px 0; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }
.section h2 { margin-bottom: 16px; }
.section > .wrap > p, .section .prose p { max-width: 680px; }
.prose ul, .prose ol { padding-left: 20px; max-width: 680px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }

.decision { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.decision:first-of-type { border-top: 0; }
.decision h3 { margin-bottom: 10px; }
.decision p { color: var(--text-2); }
.shots { display: flex; gap: 16px; justify-content: center; }
.shots figure { margin: 0; flex: 1; max-width: 260px; }
.shots img { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.shots figcaption { font-size: 13px; color: var(--text-3); margin-top: 8px; text-align: center; }
.shots video { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.shots.july figure { max-width: 200px; }
.hero-figure { margin: 0; }
.hero-figure img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
.prose figure { margin: 24px 0 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }

.strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.strip figure { margin: 0; }
.strip img { border: 1px solid var(--line); border-radius: 12px; }
.strip figcaption { font-size: 13px; color: var(--text-3); margin-top: 6px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 20px; }
.card h3 { margin-bottom: 6px; font-size: 16px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }

.proto-frame { display: flex; justify-content: center; padding: 24px 0 8px; }
.proto-frame iframe { width: 390px; height: 844px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }

.note { border-left: 2px solid var(--line); padding: 2px 0 2px 16px; color: var(--text-2); font-size: 15px; max-width: 680px; }

/* Placeholders Dave fills in. Visible on purpose. */
.todo { background: var(--todo-bg); outline: 1px dashed var(--todo-line); border-radius: 4px; padding: 0 4px; }

/* About */
.timeline { display: grid; gap: 0; max-width: 760px; }
.timeline > div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.timeline > div:first-child { border-top: 0; }
.timeline .when { color: var(--text-3); font-size: 15px; }
.timeline h3 { font-size: 17px; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--text-2); }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--text-3); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 860px) {
  h1 { font-size: 32px; }
  .lede { font-size: 18px; }
  .intro { padding-top: 48px; padding-bottom: 40px; }
  .project { grid-template-columns: 1fr; }
  .project-art { order: -1; height: 300px; padding-top: 24px; gap: 10px; }
  .project-text { padding: 24px; }
  .decision { grid-template-columns: 1fr; gap: 24px; }
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
  .proto-frame iframe { width: 100%; max-width: 390px; height: 780px; }
}
@media (max-width: 560px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .tabs { gap: 16px; }
  .tabs a { font-size: 14px; }
  .grid-2 { grid-template-columns: 1fr; }
  .timeline > div { grid-template-columns: 1fr; gap: 4px; }
  .shots { gap: 10px; }
}
