/* ponytail: font comes from Google Fonts via @import (one extra round trip); self-host the woff2 if load time matters */
@import url("https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500&display=swap");

:root { --bg: #f3f1eb; --text: #25241f; --muted: #6d6a61; --line: #d6d2c6; --accent: #1d5c4a; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #1c1d1b; --text: #d9d8d2; --muted: #918f87; --line: #3a3b36; --accent: #6fcfae; }
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  max-width: 40rem; margin: 0 auto 0 clamp(0rem, 12vw - 3rem, 8rem); padding: 0 1.5rem;
  color: var(--text); font: 400 0.875rem/1.8 "Fira Code", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
a { color: inherit; text-decoration-color: var(--muted); text-underline-offset: 4px; }
a:hover, a[aria-current] { color: var(--accent); text-decoration-color: currentColor; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

header { display: flex; justify-content: space-between; align-items: baseline; padding: clamp(2rem, 8vw, 5rem) 0 clamp(3rem, 9vw, 5.5rem); }
.mark { font-weight: 500; font-size: 1rem; text-decoration: none; color: var(--text); }
.mark b { color: var(--accent); font-weight: inherit; }
nav a + a { margin-left: 1.5rem; }

h1, h2, h3 { font: inherit; margin: 0; }
h1 { font-weight: 500; margin-bottom: 1.8em; }
p { margin: 0 0 1.8em; max-width: 31rem; }
.label { font-size: 0.75rem; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 5rem 0 2.5rem; }
h1.label { margin-top: 0; }

/* the n-back task: does this item match the one n steps back? */
figure { margin: 3.5rem 0 0; max-width: 31rem; }
.cells { display: block; width: 100%; height: auto; color: var(--line); }
.cells .hit { fill: var(--accent); stroke: var(--accent); }
.cells path { stroke: var(--accent); }
figcaption { margin-top: 1.25rem; font-size: 0.75rem; color: var(--muted); }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { margin-bottom: 2rem; }
.rows h3 { font-weight: 500; margin-bottom: 0.3rem; }
.rows p { margin: 0; color: var(--muted); }

.box { border: 1px solid var(--muted); margin: 3.5rem -1.25rem 0; padding: 0 1.25rem; }
.box > h2 { font-weight: 500; padding: 1.1rem 0; }
details { border-top: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 0; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary .title::before { content: "+ "; color: var(--muted); }
details[open] summary .title::before { content: "- "; }
summary:hover .title { color: var(--accent); }
.tag { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.role { padding: 0.5rem 0 1rem; }
.role h3 { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 2rem 0 0.9rem; }
.role ul { margin: 0 0 1.8em; padding-left: 1.25rem; max-width: 31rem; list-style: "- "; }
.role li { margin-bottom: 0.5rem; padding-left: 0.25rem; }

footer { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 6rem; padding-bottom: 4rem; font-size: 0.75rem; color: var(--muted); }
