/* ===== TOKENS ===== */
:root {
  --bg: #faf7f2;
  --text: #2b2622;
  --muted: #6b625a;
  --accent: #a3462a;       /* 5.6:1 on --bg */
  --accent-hover: #7a2f19;
  --rule: #e4dbd0;
  --font: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1b18;
    --text: #ede6dc;
    --muted: #b3a99e;
    --accent: #e8957a;     /* 7.4:1 on --bg */
    --accent-hover: #f4bba8;
    --rule: #3a332e;
  }
}

/* ===== BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.125rem/1.6 var(--font);
  -webkit-text-size-adjust: 100%;
}
h1, h2 {
  font-weight: normal;
  line-height: 1.15;
}
h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-style: italic;
  margin: 0 0 0.5em;
}
h2 {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1em;
}
p {
  margin: 0 0 1em;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--accent-hover);
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ===== LAYOUT ===== */
.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "intro"
    "me"
    "making"
    "work"
    "name"
    "elsewhere";
  gap: 3rem;
  max-width: 34rem;
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.intro     { grid-area: intro; }
.me        { grid-area: me; }
.making    { grid-area: making; }
.work      { grid-area: work; }
.name      { grid-area: name; }
.elsewhere { grid-area: elsewhere; }

@media (min-width: 56rem) {
  .page {
    grid-template-columns: minmax(0, 34rem) minmax(0, 15rem);
    grid-template-areas:
      "intro     me"
      "making    name"
      "work      name"
      "elsewhere name";
    column-gap: 5rem;
    max-width: 60rem;
    padding: 6rem 2rem;
  }
  .me {
    align-self: end;
  }
}

/* ===== COMPONENTS ===== */
.intro h1 {
  margin-bottom: 0.25em;
}
.tagline {
  color: var(--accent);
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 1.5em;
}
.lede {
  font-size: 1.25rem;
}

.me {
  margin: 0;
  max-width: 15rem;
}
.me img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
}
.me figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: 0.75rem;
}

/* Dictionary entries for my name */
.name {
  border-left: 1px solid var(--rule);
  padding-left: 1.25rem;
  font-size: 0.9rem;
}
.definition {
  margin: 0 0 1.75rem;
}
.definition dt {
  font-size: 1.75rem;
  font-style: italic;
  line-height: 1.1;
}
.definition dd {
  margin: 0;
}
.definition .meta {
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.kind::after {
  content: "⋅";
  margin: 0 0.5em;
}
.definition ol {
  margin: 0;
  padding-left: 1.25em;
}

.elsewhere ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
