/* Soft studio. Sage ground, white rounded cards, terracotta accent. Bricolage Grotesque headings, Figtree body. */
:root {
  --bg: #e8efe4;
  --card: #f7faf5;
  --card-hover: #ffffff;
  --ink: #1f2e26;
  --muted: #4a5c52;
  --quiet: #5f6e66;          /* spec #7b8b82 darkened to reach 4.5:1 on the page background */
  --accent: #c8553d;
  --accent-block: #b84c35;   /* terracotta behind light text, darkened to reach 4.5:1 */
  --light: #f7faf5;
  --live: #2f6a4d;
  --dev: #9a5a00;
  --soon: #4a5c52;
  --head: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --pad: 20px;
}
@media (min-width: 720px) { :root { --pad: 44px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--body);
  overflow-wrap: break-word;
}
a { color: inherit; }
h1, h2 { overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip {
  position: absolute; left: -9999px; top: 10px; z-index: 20;
  background: var(--ink); color: var(--light); padding: 8px 14px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { left: var(--pad); }

.wrap { box-sizing: content-box; max-width: 1000px; margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 720px; }

/* pills */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 10px 16px;
  font: 600 14px/1.2 var(--body); text-decoration: none; cursor: pointer;
}
.pill-card { background: var(--card); color: var(--ink); }
.pill-card:hover { background: var(--card-hover); }
.pill-dark { background: var(--ink); color: var(--light); }

/* header */
.top { position: relative; display: flex; align-items: center; gap: 12px; padding-block: 20px; }
.brand {
  font: 700 20px/1.2 var(--head); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; margin-right: auto;
}
.top-sub .back { margin-right: auto; }
.top-sub .brand { margin-right: 0; }

.pills ul, .lang {
  display: flex; gap: 2px; margin: 0; padding: 5px; list-style: none;
  background: var(--card); border-radius: 999px;
}
.pills a, .lang a {
  display: block; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--muted);
}
.pills a { padding: 8px 15px; font-size: 14px; }
.lang a { padding: 6px 10px; font-size: 12px; letter-spacing: 0.06em; }
.pills a:hover, .lang a:hover { color: var(--ink); background: var(--card-hover); }
.pills a[aria-current], .lang a[aria-current] { background: var(--ink); color: var(--light); }

.menu { display: none; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.sheet {
  position: absolute; z-index: 10; top: calc(100% - 8px); left: var(--pad); right: var(--pad);
  display: grid; gap: 14px; padding: 14px;
  background: var(--card); border-radius: 22px; box-shadow: 0 14px 34px rgba(31, 46, 38, 0.14);
}
.sheet ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.sheet ul a { display: block; padding: 12px 14px; border-radius: 14px; font-weight: 600; text-decoration: none; }
.sheet ul a:hover { background: var(--bg); }
.sheet ul a[aria-current] { background: var(--ink); color: var(--light); }
.sheet .lang { justify-self: start; background: var(--bg); }

@media (max-width: 719px) {
  .top-home .pills, .top-home > .lang { display: none; }
  .menu { display: block; }
}
@media (max-width: 419px) {
  .top-sub .brand { font-size: 16px; }
  .top-sub { gap: 8px; }
}

/* home */
.intro { padding: 24px 0 32px; }
.intro h1 {
  margin: 0 0 16px; max-width: 860px;
  font: 600 34px/1.04 var(--head); letter-spacing: -0.03em;
}
.accent { color: var(--accent); }
.sub { margin: 0; max-width: 520px; font-size: 18px; color: var(--muted); }

.cards { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }
.cards li { display: flex; }
.card { background: var(--card); border-radius: 22px; }
a.card {
  flex: 1; display: grid; column-gap: 12px; padding: 22px;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto auto 1fr;
  grid-template-areas: "tile status" "name name" "teaser teaser" "tags tags";
  color: var(--ink); text-decoration: none;
  outline: 2px solid transparent; outline-offset: -2px;
}
a.card:hover { background: var(--card-hover); outline-color: var(--accent); }
a.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.tile {
  grid-area: tile; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 12px;
  color: var(--light); font: 700 16px/1 var(--head);
}
.tile-lg { width: 44px; height: 44px; border-radius: 15px; font-size: 20px; }
.status { grid-area: status; align-self: center; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; }
.s-live { color: var(--live); }
.s-dev { color: var(--dev); }
.s-soon { color: var(--soon); }
.card-name { grid-area: name; margin: 16px 0 6px; font: 600 22px/1.15 var(--head); letter-spacing: -0.01em; }
.card-teaser { grid-area: teaser; margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.card-tags { grid-area: tags; align-self: end; margin: 16px 0 0; font-size: 12px; color: var(--quiet); }

@media (min-width: 720px) {
  .intro { padding: 56px 0 48px; }
  .intro h1 { font-size: 56px; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 719px) {
  a.card {
    grid-template-columns: 38px 1fr; grid-template-rows: auto;
    grid-template-areas: "tile status" "tile name" "tile teaser";
    column-gap: 14px; padding: 16px;
  }
  a.card .tile { width: 38px; height: 38px; align-self: start; }
  .card-name { margin: 4px 0; font-size: 19px; }
  .card-tags { display: none; }
}

/* project, about, thinking, stack */
.proj-meta { display: flex; align-items: center; gap: 12px; margin: 20px 0 18px; }
.proj-title, .page-title { margin: 0 0 12px; font-weight: 600; font-family: var(--head); letter-spacing: -0.025em; line-height: 1.05; }
.proj-title { font-size: 36px; }
.page-title { font-size: 32px; margin-top: 20px; margin-bottom: 20px; }
.lede { margin: 0 0 24px; font-size: 17px; color: var(--muted); }

.story { padding: 20px; font-size: 16.5px; line-height: 1.65; }
.story p { margin: 0; }
.does { margin: 16px 0; padding: 16px 20px; border-radius: 22px; background: var(--accent-block); color: var(--light); }
.kicker { margin: 0 0 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.does-line { margin: 0; font-size: 16px; font-weight: 500; }
.opening { margin: 0 0 16px; padding: 20px 24px; font: 600 19px/1.4 var(--head); letter-spacing: -0.01em; }

.label { margin: 28px 0 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 7px 13px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 600; line-height: 1.3; }
.point .chips li { background: var(--bg); }
.where { margin: 22px 0 0; font-size: 12px; color: var(--quiet); }

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; }
.pager .pill { flex-direction: column; align-items: flex-start; gap: 2px; max-width: 48%; padding: 10px 20px; }
.pager .pill-dark { margin-left: auto; align-items: flex-end; text-align: right; }
.pager-label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; }
.pager-name { font-size: 14px; }

.points { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.point { padding: 20px; }
.point h2 { margin: 0 0 8px; font: 600 18px/1.25 var(--head); letter-spacing: -0.01em; }
.point p { margin: 0; color: var(--muted); }

@media (min-width: 720px) {
  .proj-title { font-size: 48px; }
  .page-title { font-size: 44px; }
  .story { padding: 28px; }
  .points { grid-template-columns: 1fr 1fr; }
  .points-single { grid-template-columns: 1fr; }
  .point { padding: 24px; }
}

/* footer */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  padding-top: 56px; padding-bottom: 32px; font-size: 13px; color: var(--muted);
}
.foot p { margin: 0; }
