/* e.lam practice site — tokens and layout from the design handoff. No radius, no shadows. */
:root {
  --paper: #f4f0e7;
  --ink: #211f1b;
  --body: #3e3a33;
  --mono-2: #6b665b;
  --muted: #8a8477;
  --hair: #d9d3c5;
  --underline: #b9b2a3;
  --stripe: #ece7db;
  --moss: #4d6a3f;
  --serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}

html { background: var(--paper); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 1120px; margin: 0 auto; padding: 28px 6vw 96px; }

h1, h2, h3, p { margin: 0; text-wrap: pretty; }
h1 { font-weight: 400; font-size: clamp(38px, 5vw, 58px); line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-weight: 400; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
p { color: var(--body); }
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--underline); }
a:hover { color: var(--moss); border-bottom-color: var(--moss); }
a:focus-visible, button:focus-visible { outline: 1px solid var(--moss); outline-offset: 3px; }
button { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }

.skip { position: absolute; left: -999px; top: 8px; font-family: var(--mono); font-size: 12.5px; padding: 6px 10px; background: var(--paper); border: 1px solid var(--ink); }
.skip:focus { left: 8px; }

/* type roles */
.label, .mono-note, .prompts, .navlinks, .lenses, .notes .date, .notes .kind, .role h3 {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; line-height: 1.7;
}
.label, .mono-note { color: var(--mono-2); }
.lead { font-size: 20px; color: var(--body); }
.lead-lg { font-size: 22px; color: var(--body); }
.pull { font-size: 22px; font-style: italic; color: var(--ink); }
.caption, .caption-note, .footer, .slot { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* nav */
.nav { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 32px; color: var(--ink); }
.wordmark { border: 0; font-family: var(--serif); font-size: 22px; letter-spacing: 0.01em; color: var(--ink); }
.navlinks { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.navlinks a { border: 0; color: var(--mono-2); }
.navlinks a:hover { color: var(--moss); }

/* layout */
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 64px; align-items: start; }
.opening { padding-top: 120px; }
.section { padding-top: 160px; }
.text { display: flex; flex-direction: column; gap: 20px; max-width: 440px; }
.opening .text { gap: 28px; }
.work-text { max-width: 560px; }
.figure { margin: 0; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fig { width: 100%; height: auto; display: block; }
.fig-lens { overflow: visible; }
.caption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* fig. 1 lenses */
.lenses { display: flex; flex-wrap: wrap; gap: 6px 22px; }
html:not(.js) .lenses { display: none; }
.lens-btn { padding: 6px 0; border-bottom: 1px solid transparent; color: var(--muted); letter-spacing: 0.02em; }
.lens-btn[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.lens { opacity: 0; }
.lens.is-active { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .lens { transition: opacity .4s; } }

/* cohort */
.cohort { display: flex; flex-direction: column; gap: 56px; }
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px 48px; border-top: 1px solid var(--hair); padding-top: 32px; }
.role { display: flex; flex-direction: column; gap: 8px; }
.role h3 { font-weight: 400; color: var(--ink); }
.role h3.owner { color: var(--moss); }
.cohort-note { max-width: 640px; }

/* work */
.work { display: flex; flex-direction: column; gap: 40px; }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.slot { min-height: 220px; border: 1px solid var(--hair); display: flex; align-items: flex-end; padding: 16px; color: var(--mono-2); box-sizing: border-box; }
.slot.empty { background: repeating-linear-gradient(135deg, var(--paper) 0 10px, var(--stripe) 10px 11px); }
.slot .trace { width: 100%; font-family: var(--serif); font-size: 17px; color: var(--body); }

/* notes */
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.notes li { border-bottom: 1px solid var(--hair); }
.notes .row { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; padding: 18px 0; border: 0; }
.notes a.row:hover .title { color: var(--moss); }
.notes .date { color: var(--muted); flex: 0 0 80px; }
.notes .title { font-family: var(--serif); font-size: 20px; flex: 1 1 260px; min-width: 0; color: var(--ink); }
.notes .kind { color: var(--moss); }

/* talk */
.talk { display: flex; flex-direction: column; gap: 28px; max-width: 640px; }
.talk h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.1; }
.prompts { display: flex; flex-direction: column; gap: 6px; color: var(--mono-2); }
.write { align-self: flex-start; display: inline-flex; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: 13px; padding: 10px 16px; border: 1px solid var(--ink); color: var(--ink); }
.write:hover { border-color: var(--moss); color: var(--moss); }
.write .arrow { color: var(--muted); }

/* footer */
.footer { padding-top: 140px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; }
