@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #161614;
  --text: #edebe4;
  --text-dim: #8a877e;
  --text-faint: #6f6c63;
  --accent: #3b5c6b;
  --accent-bright: #6e97aa;
  --border: #2c2b27;

  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --measure: 38em;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------- layout shell ---------- */

.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}

.site-nav {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 1em 1.25em;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.site-nav__brand {
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text);
  text-decoration: none;
}

.site-nav a {
  color: var(--text-dim);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent-bright);
}

main {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3em 1.25em 6em;
}

/* ---------- page 1 title block ---------- */

.page1__title {
  margin-bottom: 2.5em;
}

.page1__title h1 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin: 0 0 0.6em;
}

.page1__title .subtitle {
  font-family: var(--font-body);
  color: var(--text-dim);
  font-size: 1.05rem;
  margin: 0;
}

/* ---------- prose ---------- */

p {
  margin: 0 0 1.6em;
}

.lede {
  font-size: 1.14em;
}

.muted {
  color: var(--text-dim);
  font-size: 0.97em;
}

.callout {
  border-left: 2px solid var(--accent-bright);
  padding-left: 1em;
  margin: 2em 0;
  font-size: 1.05em;
}

ul {
  margin: 0 0 1.6em;
  padding-left: 1.2em;
}

li {
  margin: 0 0 0.6em;
}

h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.page1 h2 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 1.5em;
  margin-top: 3em;
  margin-bottom: 1em;
}

.page2 h1 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-bottom: 1em;
}

.page2 h2 {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 2.5em;
}

strong {
  color: #f5f3ec;
  font-weight: 700;
}

em {
  font-style: italic;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-bright);
}

a:hover {
  opacity: 0.75;
}

.contact-cta {
  margin-top: 2.5em;
}

.contact-cta a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.closing-note {
  color: var(--text-faint);
  font-size: 0.95rem;
}

.contact-links {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 2.1;
}

/* ---------- expand / collapse ---------- */

details.expand {
  margin: 1.6em 0;
  border-top: 1px solid var(--border);
  padding-top: 1.2em;
}

details.expand + p,
p + details.expand {
  margin-top: -0.2em;
}

details.expand summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding-left: 1.4em;
  user-select: none;
}

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

details.expand summary::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent-bright);
  font-weight: 600;
}

details.expand[open] summary::before {
  content: "\2013";
}

details.expand[open] summary {
  color: var(--accent-bright);
}

details.expand summary:hover::before {
  opacity: 0.75;
}

.expand__content {
  margin-top: 1.4em;
  padding-left: 1em;
  border-left: 2px solid var(--accent);
}

details.expand--nested {
  margin: 1.6em 0 1.6em 1rem;
  border-top: none;
  padding-top: 0;
}

/* ---------- page 2 photo ---------- */

.page2__photo {
  width: 140px;
  height: 140px;
  border-radius: 6px;
  object-fit: cover;
  margin-bottom: 1.5em;
  filter: grayscale(15%);
}

/* ---------- responsive ---------- */

@media (max-width: 30em) {
  body {
    font-size: 1.05rem;
  }

  main {
    padding: 2em 1em 4em;
  }
}
