/* ma2c.dev: same paper, ink, and tile colors as games.ma2c.dev. */
:root {
  --paper: #f6f1e7;
  --ink: #1f2a24;
  --muted: #59645b;
  --card: #fffdf8;
  --line: #e2d9c6;
  --tile: #ead3a2;
  --tile-edge: #c9ab70;
  --accent: #c2412d;
  --accent-ink: #ffffff;
  --chip: #ece4d3;
  --todo: #fff1a8;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121716;
    --ink: #ece6da;
    --muted: #a2aaa2;
    --card: #1b2220;
    --line: #2c3532;
    --tile: #d8bd86;
    --tile-edge: #a88a52;
    --accent: #e0644f;
    --accent-ink: #1a0f0c;
    --chip: #262f2c;
    --todo: #5a4c12;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: inherit; text-underline-offset: .18em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: .3rem; }
.wrap { max-width: 52rem; margin: 0 auto; padding-inline: 1.25rem; }

.skip { position: absolute; left: -999px; top: .5rem; padding: .5rem .8rem; background: var(--card); border-radius: .4rem; }
.skip:focus { left: .5rem; }

/* Hero */
.hero { padding: max(4.5rem, calc(env(safe-area-inset-top) + 3rem)) 0 3.5rem; }
.kicker {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
}
.lede { max-width: 38rem; margin: 0 0 .8rem; font-size: clamp(1.1rem, 2.6vw, 1.3rem); }
.lede.small { color: var(--muted); font-size: 1.05rem; }
.links { display: flex; flex-wrap: wrap; gap: .6rem; margin: 2rem 0 0; padding: 0; list-style: none; }

.button {
  display: inline-block;
  padding: .6rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--card);
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button.small { padding: .4rem .85rem; font-size: .92rem; }

/* Sections */
section { padding-block: 2.25rem; }
h2 {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.25rem;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.015em;
}
/* A little scrabble tile before each section title. */
h2::before {
  content: "";
  flex: none;
  width: 1.1rem;
  aspect-ratio: 1;
  border-radius: .22rem;
  background: var(--tile);
  box-shadow: inset 0 -.14rem 0 var(--tile-edge);
}
.prose { max-width: 40rem; margin: 0; }

.project {
  margin-bottom: 1rem;
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--card);
}
.project-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1rem;
  margin-bottom: .6rem;
}
.project h3 { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.project p { margin: 0 0 .9rem; color: var(--muted); }
.status { color: var(--muted); font-size: .9rem; font-weight: 600; }
.stack { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.stack li { padding: .12rem .6rem; border-radius: 99rem; background: var(--chip); color: var(--muted); font-size: .8rem; font-weight: 600; }

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.band h2 { margin-bottom: .3rem; }
.band p { margin: 0; color: var(--muted); }

footer { padding-block: 2.5rem 3rem; color: var(--muted); font-size: .88rem; }
footer p { margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* Placeholders still to be written. Remove the <mark> when the text is real. */
mark.todo { background: var(--todo); color: inherit; padding: 0 .2em; border-radius: .2em; outline: 1px dashed currentColor; }

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