/* ── Tokens (edit these to restyle) ─────────────────────────── */
:root {
  --bg: #ffffff;
  --text: #222222;
  --muted: #888888;
  --link: #0645ad;
  --link-hover: #0b0080;
  --font: Helvetica, "Helvetica Neue", Arial, sans-serif;
  --font-size: 17px;
  --line-height: 1.55;
  --content-width: 440px;
  --page-pad-y: 3.5rem;
  --page-pad-x: 1.5rem;
  --gap: 1.25rem;
}

/* ── Reset ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Page ───────────────────────────────────────────────────── */
html {
  height: 100%;
}

body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--font-size);
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: calc(var(--content-width) + 2 * var(--page-pad-x));
  margin: 0 auto;
  padding: var(--page-pad-y) var(--page-pad-x);
}

/* ── Portrait ───────────────────────────────────────────────── */
.portrait {
  display: block;
  width: 100%;
  max-width: var(--content-width);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: var(--gap);
}

/* ── Intro ──────────────────────────────────────────────────── */
.intro {
  max-width: var(--content-width);
  text-align: left;
  margin-bottom: 0.65rem;
}

/* ── Project menu (details/summary dropdown) ────────────────── */
.menu {
  max-width: var(--content-width);
  margin-bottom: 2.25rem;
}

.menu summary {
  list-style: none;
  cursor: pointer;
  width: fit-content;
  color: var(--link);
  text-decoration: none;
  user-select: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary:hover,
.menu summary:focus-visible {
  color: var(--link-hover);
}

.menu summary:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
}

.menu-list {
  list-style: none;
  margin-top: 0.55rem;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.menu-list a {
  color: var(--link);
  text-decoration: none;
}

.menu-list a:hover,
.menu-list a:focus-visible {
  color: var(--link-hover);
}

.menu-list a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

/* ── Footer links ───────────────────────────────────────────── */
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  max-width: var(--content-width);
  margin-top: 1.5rem;
}

.links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95em;
}

.links a:hover,
.links a:focus-visible {
  color: var(--text);
}

.links a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 540px) {
  :root {
    --font-size: 16px;
    --page-pad-y: 2rem;
    --page-pad-x: 1.25rem;
    --gap: 1.1rem;
  }
}
