/* felipemontoya.co. Layout follows the "1a · Editorial index" design. */

:root {
  --bg: #062C22;
  --text: #E3F9F1;
  --glow: #0D4536;      /* "water": the radial light behind the hero */
  --ring: #0F523E;      /* "parks": portrait ring, rules, hovers */
  --accent: #7FE3BE;    /* links */
  --accent-hover: #B5F2DA;
  --muted: color-mix(in srgb, var(--text) 72%, var(--bg));
  --label: color-mix(in srgb, var(--text) 55%, var(--bg));

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(900px 500px at 10% 0%, var(--glow), var(--bg) 70%) no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.frame {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 72px 96px;
}

/* Hero */

.hero {
  margin-top: 56px;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.hero-text { max-width: 760px; }

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(48px, 9vw, 84px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
  margin: 18px 0 24px;
}

.lede p {
  font-size: 22px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
  text-wrap: pretty;
}
.lede a { border-bottom: 1px solid var(--accent); }

.portrait {
  flex: none;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--ring), 0 0 40px var(--glow);
}
.portrait-empty { background: var(--glow); }

/* Index: label column on the left, content on the right */

.index {
  margin-top: 96px;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.index-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
}

.index-row h2 {
  margin: 0;
  padding-top: 3px;
  color: var(--label);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.index-body > :first-child { margin-top: 0; }
.index-body > :last-child { margin-bottom: 0; }
.index-body p { color: var(--muted); margin: 0 0 10px; }

.index-body ul,
.page ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#talks .index-body a::after { content: " →"; }

#elsewhere ul { flex-direction: row; flex-wrap: wrap; gap: 24px; }
#elsewhere a::after { content: " ↗"; }

/* Plain pages (Talks) */

.page { margin-top: 24px; max-width: 760px; }
.back { font-size: 14px; }
.page h1 { margin-top: 48px; font-size: clamp(40px, 7vw, 64px); }
.page > p { color: var(--muted); font-size: 18px; }
.page ul { margin-top: 40px; }

.footnote {
  margin-top: 56px;
  font-size: 14px;
  color: var(--label);
}
.footnote hr { border: 0; border-top: 1px solid var(--ring); margin-bottom: 16px; }
.footnote ol { padding-left: 1.2em; }
.footnote-ref a, .footnote-backref { font-size: .8em; }

/* Phones */

@media (max-width: 720px) {
  .frame { padding: 32px 16px 64px; }
  .hero { margin-top: 24px; gap: 20px; }
  .portrait { width: 88px; height: 88px; }
  .lede p { font-size: 18px; }
  .index { margin-top: 64px; gap: 40px; }
  .index-row { grid-template-columns: 1fr; gap: 12px; }
  .page { margin-top: 8px; }
}
