@font-face {
  font-family: "Space Grotesk";
  src: url("/fonts/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --bg: #f3f0e8;
  --ink: #141414;
  --muted: #5d5a54;
  --line: #d6d1c4;
  --accent: #ff4a1c;
  --panel: #e7e2d6;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f0e;
    --ink: #f0ece2;
    --muted: #9c978c;
    --line: #2b2a27;
    --accent: #ff6a3d;
    --panel: #1b1a18;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
main, .top, .foot { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px;
}
.logo {
  display: inline-flex; align-items: center; gap: 1px;
  font-weight: 700; font-size: 30px; letter-spacing: -0.04em;
  text-decoration: none; line-height: 1;
}
.logo .eye { width: 19px; height: 25px; margin-top: 2px; }
nav { display: flex; gap: 22px; font-family: var(--mono); font-size: 14px; }
nav a { text-decoration: none; color: var(--muted); }
nav a:hover { color: var(--accent); }

/* The eye: the 0 in ixd0 */
.eye-ring { fill: none; stroke: currentColor; stroke-width: 5; }
.eye-pupil { fill: var(--accent); transition: transform 0.08s linear; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: center;
  min-height: 72vh; padding: 40px 0 80px;
}
.kicker, .tags, .section-title span, .hint {
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
}
.kicker { margin: 0 0 18px; }
h1 {
  font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -0.035em;
  margin: 0 0 28px; font-weight: 700;
}
.lede { font-size: 21px; color: var(--muted); max-width: 34em; margin: 0; }
.hero-eye { display: flex; flex-direction: column; align-items: center; }
.eye-big { width: min(100%, 280px); height: auto; }
.eye-big .eye-ring { stroke-width: 3; }
.hint { margin-top: 14px; }

/* Sections */
section { padding: 70px 0; border-top: 1px solid var(--line); }
.section-title { font-size: 15px; font-family: var(--mono); font-weight: 500; margin: 0 0 48px; text-transform: uppercase; letter-spacing: 0.08em; }
.section-title span { color: var(--accent); margin-right: 10px; }

/* Work */
.project {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  margin-bottom: 90px;
}
.project:last-child { margin-bottom: 0; }
.project:nth-child(odd of .project) > :first-child { order: 2; }
.project img, .placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.project h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; letter-spacing: -0.02em; margin: 8px 0 16px; }
.project p { margin: 0 0 14px; }
.tags { margin: 0; }
.link { color: var(--accent); font-weight: 500; }
.placeholder {
  display: grid; place-items: center; background: var(--panel);
  background-image: radial-gradient(circle, var(--line) 1.5px, transparent 1.6px);
  background-size: 22px 22px;
}
.placeholder.alt { background-image: repeating-linear-gradient(45deg, var(--line) 0 1px, transparent 1px 14px); }
.placeholder span {
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--bg); padding: 8px 14px; border-radius: 99px; color: var(--muted);
}

/* Practice */
.mediums {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.mediums li {
  padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 15px;
}
.mediums strong { display: block; color: var(--ink); font-size: 20px; margin-bottom: 4px; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.about-grid img { border-radius: 6px; }
.about-grid p { margin: 0 0 18px; font-size: 20px; }

/* Contact */
.big-link { font-size: clamp(32px, 6vw, 72px); font-weight: 700; letter-spacing: -0.03em; margin: 0 0 12px; line-height: 1.1; }
.big-link a { text-decoration: none; border-bottom: 4px solid var(--accent); }
.big-link a:hover { color: var(--accent); }
.contact p:last-child { color: var(--muted); }

.foot { padding-top: 30px; padding-bottom: 40px; font-family: var(--mono); font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

/* Mobile */
@media (max-width: 820px) {
  main, .top, .foot { padding-left: 16px; padding-right: 16px; }
  nav { gap: 14px; font-size: 13px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 30px 0 50px; }
  .hero-eye { order: -1; align-items: flex-start; }
  .eye-big { width: 110px; }
  .hint { display: none; }
  .project, .about-grid { grid-template-columns: 1fr; gap: 22px; margin-bottom: 60px; }
  .project:nth-child(odd of .project) > :first-child { order: 0; }
  .mediums { grid-template-columns: 1fr 1fr; }
  .mediums li { padding: 16px; }
  .mediums strong { font-size: 17px; }
  .lede, .about-grid p { font-size: 18px; }
}
@media (max-width: 460px) {
  nav a[href="#practice"] { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eye-pupil { transition: none; }
}
