:root {
  --paper: #faf8f4;
  --paper-soft: #f1ede4;
  --ink: #14120f;
  --ink-2: #4b463f;
  --ink-3: #857e73;
  --line: #e2dcd0;
  --accent: #b45309;
  --max: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 28px);
  margin-left: auto;
}

.site-nav a {
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.16s ease;
}

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

.lang {
  display: flex;
  margin-left: clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.lang__btn {
  padding: 6px 10px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.lang__btn + .lang__btn {
  border-left: 1px solid var(--line);
}

.lang__btn:hover {
  color: var(--ink);
}

.lang__btn.is-active {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 248px;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
  padding-block: clamp(56px, 9vw, 112px) clamp(44px, 7vw, 84px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--ink-3);
}

.hero h1 {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.lead {
  max-width: 54ch;
  margin: 0 0 34px;
  font-size: clamp(15.5px, 1.4vw, 17.5px);
  line-height: 1.65;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.btn:hover {
  background: transparent;
  color: var(--ink);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.facts {
  display: grid;
  margin: 0;
}

.facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.facts > div:last-child {
  border-bottom: 1px solid var(--line);
}

.facts dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.facts dd {
  margin: 0;
  font-size: 13px;
  text-align: right;
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(48px, 7vw, 92px);
  border-top: 1px solid var(--line);
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.6vw, 2.05rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section__meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}

/* ---------- work ---------- */

.work {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(24px, 3.2vw, 34px);
  border-top: 1px solid var(--line);
}

.work:first-child {
  border-top: 0;
  padding-top: 0;
}

.work__num {
  padding-top: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}

.work h3 {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}

/* Stretches the detail link over the whole card so anywhere is clickable. */
.work__detail {
  text-decoration: none;
  transition: color 0.16s ease;
}

.work__detail::after {
  content: "";
  position: absolute;
  inset: 0;
}

.work:hover .work__detail {
  color: var(--accent);
}

.work p {
  max-width: 60ch;
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.work p.work__kind {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.work p.work__meta {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.work p.work__result {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  font-size: 14px;
  color: var(--ink);
}

.work p.work__result strong {
  font-weight: 600;
}

.work p.work__links {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  font-size: 13px;
}

.work__links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.16s ease;
}

.work__links a:hover {
  border-color: var(--ink);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
}

.about p {
  max-width: 60ch;
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.about p:last-child {
  margin-bottom: 0;
}

.skills {
  display: grid;
  gap: 18px;
  margin: 0;
}

.skills dt {
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.skills dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.edu {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.edu__school {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 600;
}

.edu__meta {
  margin: 0;
  font-size: 13px;
  color: var(--ink-3);
}

.certs {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.certs__label {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.certs ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.certs li {
  margin-bottom: 6px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
}

.certs__more {
  margin: 10px 0 0;
  font-size: 13px;
}

.certs__more a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.16s ease;
}

.certs__more a:hover {
  border-color: var(--accent);
}

/* ---------- contact ---------- */

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.contact-links a {
  display: grid;
  gap: 6px;
  padding: 20px;
  background: var(--paper);
  text-decoration: none;
  transition: background 0.16s ease;
}

.contact-links a:hover {
  background: var(--paper-soft);
}

.contact-links .label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.contact-links .value {
  font-size: 14.5px;
  color: var(--ink);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 26px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- project list (three stacked, photo on the right) ---------- */

/* Project type and origin labels, kept short so the card stays scannable. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.chip {
  padding: 4px 9px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.chip--soft {
  border-color: var(--line);
  background: var(--paper-soft);
  color: var(--ink-3);
}

/* Marks a project that is still being built, so it reads differently from the finished ones. */
.chip--progress {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--paper);
}

.proj {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 22vw, 260px);
  gap: clamp(18px, 3vw, 38px);
  align-items: start;
  padding-block: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line);
}

.proj:first-child {
  border-top: 0;
  padding-top: 0;
}

/* Cards without a screenshot use the full width instead of an empty column. */
.proj--wide {
  grid-template-columns: minmax(0, 1fr);
}

.proj__shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-soft);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.proj__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.proj h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.proj h3 a {
  text-decoration: none;
  transition: color 0.16s ease;
}

.proj h3 a:hover {
  color: var(--accent);
}

.proj__meta {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.proj__desc {
  max-width: 56ch;
  margin: 0 0 12px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* The result line is the strongest claim on the card, so it gets its own block. */
.proj__result {
  max-width: 56ch;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: var(--paper-soft);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.proj__result strong {
  color: var(--accent);
}

.proj__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  font-size: 13px;
}

.proj__links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.16s ease;
}

.proj__links a:hover {
  border-color: var(--ink);
}

.pager {
  display: flex;
  gap: 6px;
}

.pager:empty {
  display: none;
}

.pager button {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.pager button.is-active {
  border-color: var(--accent);
  color: var(--accent);
}

.pager button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Experience list: three entries per tab, switched through the pager. */
.paged.is-ready .paged__page {
  display: none;
}

.paged.is-ready .paged__page.is-active {
  display: block;
}

.paged .pager {
  margin-top: 24px;
}

/* ---------- shared media frame and thumbnails ---------- */

.media-frame {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-soft);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

/* Images keep their whole frame visible; the empty area stays as background. */
.media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.thumb {
  position: relative;
  width: 84px;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-soft);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.16s ease;
}

.thumb.is-active {
  border-color: var(--accent);
}

.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding-block: clamp(44px, 8vw, 72px);
  }

  .facts {
    max-width: 420px;
  }

  .about {
    grid-template-columns: 1fr;
  }

  .proj {
    grid-template-columns: minmax(0, 1fr) 200px;
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .section__meta {
    text-align: left;
  }

  .work {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .work__num {
    display: none;
  }

  /* On narrow screens the photo moves under the text and shrinks. */
  .proj {
    grid-template-columns: 1fr;
  }

  .proj__shot {
    max-width: 260px;
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- studio additions ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
}

/* Products have no screenshots yet, so each card shows a typographic tile instead. */
.tile {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    repeating-linear-gradient(0deg, transparent 0 23px, var(--line) 23px 24px),
    var(--paper-soft);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.tile__glyph {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  font-style: italic;
  line-height: 1;
  color: var(--accent);
}

.tile__code,
.tile__num {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.tile__code {
  left: 12px;
  bottom: 10px;
}

.tile__num {
  top: 10px;
  right: 12px;
}

.chip--planned {
  border-style: dashed;
  border-color: var(--ink-3);
  color: var(--ink-3);
}

/* Moving strip of studio keywords under the hero. */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 36s linear infinite;
}

.ticker span {
  padding: 13px 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker span::after {
  content: "\2726";
  margin-left: 56px;
  color: var(--accent);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* Featured game: a large dark key-art panel beside the details. */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.feature__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 2px;
  background:
    radial-gradient(circle at 30% 35%, rgba(180, 83, 9, 0.38), transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(250, 248, 244, 0.06) 31px 32px),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(250, 248, 244, 0.06) 31px 32px),
    var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.feature__glyph {
  font-family: var(--font-display);
  font-size: clamp(6rem, 14vw, 10rem);
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.04em;
}

.feature__code,
.feature__status {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature__code {
  top: 16px;
  left: 18px;
  color: rgba(250, 248, 244, 0.6);
}

.feature__status {
  right: 18px;
  bottom: 16px;
  padding: 5px 10px;
  background: var(--accent);
  border-radius: 2px;
}

.feature h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.025em;
}

/* Smaller upcoming titles in a three-up grid. */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 28px);
  padding-top: clamp(26px, 3.4vw, 38px);
  border-top: 1px solid var(--line);
}

.card .tile {
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.7vw, 1.4rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.card p:not(.chips) {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}

.tile--empty {
  border-style: dashed;
  background: transparent;
}

.tile--empty .tile__glyph {
  color: var(--ink-3);
  font-style: normal;
}

/* Devlog entries read like a dated changelog. */
.log {
  margin: 0;
  padding: 0;
  list-style: none;
}

.log__item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(20px, 2.6vw, 28px);
  border-top: 1px solid var(--line);
}

.log__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.log__date {
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.log__tag {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.log h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.log p:not(.log__tag) {
  max-width: 60ch;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ---------- contact form ---------- */

.form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.form__hp {
  display: none;
}

.field {
  display: grid;
  gap: 7px;
}

.field--wide {
  grid-column: 1 / -1;
}

.field__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  transition: border-color 0.16s ease;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--ink);
  outline: none;
}

.form__foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.form .btn {
  cursor: pointer;
  font-family: inherit;
}

.form__status {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

.form__status.is-error {
  color: #b42318;
}

@media (max-width: 900px) {
  .feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .grid,
  .form {
    grid-template-columns: 1fr;
  }

  .log__item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .proj .tile {
    max-width: 260px;
    order: -1;
  }
}

/* ---------- legal pages (privacy policy) ---------- */

.legal {
  max-width: 760px;
  padding-block: clamp(48px, 7vw, 92px) clamp(56px, 8vw, 104px);
}

.legal__head {
  padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid var(--line);
}

.legal h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.028em;
}

.legal__meta {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Opening statement gets a rule on the left so it reads as the summary. */
.legal__lede {
  max-width: 58ch;
  margin: 0;
  padding-left: 14px;
  border-left: 2px solid var(--accent);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.legal__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.legal__toc a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.16s ease;
}

.legal__toc a:hover {
  color: var(--ink);
}

.legal section {
  padding-top: clamp(30px, 4vw, 42px);
}

.legal h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.legal__num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.legal h3 {
  margin: 22px 0 6px;
  font-size: 13px;
  font-weight: 600;
}

.legal p {
  max-width: 66ch;
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.legal ul {
  max-width: 66ch;
  margin: 0 0 14px;
  padding-left: 18px;
}

.legal li {
  margin-bottom: 7px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.16s ease;
}

.legal a:hover {
  text-decoration-color: var(--accent);
}

.legal code {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-soft);
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--ink);
}

.legal__scroll {
  overflow-x: auto;
  margin-bottom: 16px;
  border-top: 1px solid var(--line);
}

.legal table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 14px;
}

.legal th,
.legal td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal thead th {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.legal tbody th {
  width: 34%;
  font-weight: 600;
  color: var(--ink);
}

.legal td {
  color: var(--ink-2);
}

.legal__contact {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper-soft);
  list-style: none;
}

.legal__contact li:last-child {
  margin-bottom: 0;
}
