:root {
  --paper: #f1eee5;
  --ink: #171714;
  --acid: #d7ff43;
  --orange: #ff5c35;
  --line: rgba(23, 23, 20, .22);
  --muted: #68675f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Noto Serif SC", serif;
  line-height: 1.5;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  opacity: .15;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

.masthead, footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 clamp(22px, 4vw, 68px);
  border-bottom: 1px solid var(--line);
  font: 700 11px/1.2 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .08em;
}

.wordmark { display: flex; gap: 22px; color: inherit; text-decoration: none; }
.wordmark__index { color: var(--orange); }
.status { display: flex; align-items: center; gap: 9px; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: #46a23b; box-shadow: 0 0 0 4px rgba(70,162,59,.13); }

.hero {
  position: relative;
  min-height: 620px;
  padding: clamp(70px, 10vw, 150px) clamp(22px, 6vw, 96px) 70px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.eyebrow { margin: 0 0 22px; font: 700 11px/1.3 ui-monospace, Consolas, monospace; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0;
  font-size: clamp(48px, 7.6vw, 116px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.055em;
}
.hero h1 em { position: relative; font-weight: 400; color: var(--orange); }
.hero h1 em::after { content: ""; position: absolute; left: -3%; right: -5%; bottom: 6%; height: .09em; background: var(--acid); z-index: -1; transform: rotate(-2deg); }
.hero__aside { width: min(350px, 100%); margin: 58px 4vw 0 auto; font-size: 17px; }
.text-link { display: inline-flex; gap: 20px; margin-top: 14px; color: inherit; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.orbit { position: absolute; right: -80px; top: 55px; width: 310px; height: 310px; border: 1px solid var(--line); border-radius: 50%; animation: spin 18s linear infinite; }
.orbit::before, .orbit::after { content: ""; position: absolute; border-radius: 50%; background: var(--ink); }
.orbit::before { width: 11px; height: 11px; left: 16px; top: 76px; }
.orbit::after { width: 5px; height: 5px; right: 33px; bottom: 50px; }
.orbit span { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font: 700 13px ui-monospace, monospace; }

.archive { padding: 80px clamp(22px, 6vw, 96px) 110px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 44px; }
.section-heading h2, .workbench h2 { margin: 0; font-size: clamp(35px, 5vw, 68px); font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.counter { color: var(--orange); font: 400 clamp(42px, 6vw, 82px)/.8 ui-monospace, monospace; }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.project-card {
  grid-column: span 6;
  position: relative;
  min-height: 280px;
  padding: 28px;
  border: 1px solid var(--ink);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform .22s ease, background .22s ease;
}
.project-card:nth-child(3n) { grid-column: span 12; }
.project-card:hover { transform: translateY(-5px); background: var(--acid); }
.project-card__no { font: 700 11px ui-monospace, monospace; }
.project-card h3 { margin: 80px 0 12px; font-size: clamp(28px, 4vw, 52px); line-height: 1; font-weight: 400; }
.project-card p { max-width: 520px; margin: 0; color: var(--muted); }
.project-card time { position: absolute; right: 25px; top: 25px; font: 11px ui-monospace, monospace; }
.empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px dashed var(--line);
  text-align: center;
}
.empty strong { display: block; font-size: 28px; font-weight: 400; }
.empty span { display: block; margin-top: 8px; color: var(--muted); }

.workbench { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 7vw, 110px); padding: 90px clamp(22px, 6vw, 96px); color: #f7f3e9; background: var(--ink); }
.workbench__intro > p:last-child { max-width: 430px; margin-top: 36px; color: #aaa89f; font-size: 17px; }
.prompt-card { align-self: start; border: 1px solid #4d4d47; background: #20201d; box-shadow: 14px 14px 0 var(--acid); }
.prompt-card__top { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid #4d4d47; font: 700 10px ui-monospace, monospace; letter-spacing: .12em; }
.prompt-card button { padding: 8px 13px; border: 0; color: var(--ink); background: var(--acid); font: 700 11px ui-monospace, monospace; cursor: pointer; }
.prompt-card button:active { transform: translateY(1px); }
.prompt-card pre { margin: 0; padding: 24px; white-space: pre-wrap; color: #d8d5cc; font: 13px/1.8 ui-monospace, "SFMono-Regular", Consolas, monospace; }
footer { border-top: 1px solid #373732; border-bottom: 0; color: #aaa89f; background: var(--ink); }

@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media (max-width: 760px) {
  .status { display: none; }
  .hero { min-height: 560px; }
  .hero__aside { margin: 54px 0 0; }
  .orbit { width: 210px; height: 210px; right: -95px; top: 85px; }
  .project-card, .project-card:nth-child(3n) { grid-column: 1 / -1; min-height: 230px; }
  .workbench { grid-template-columns: 1fr; }
  .prompt-card { box-shadow: 8px 8px 0 var(--acid); }
  footer span:last-child { display: none; }
}
