/* 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; }
html:not(.js) .lens[data-lens="cos"] { opacity: 1; }   /* without script the CoS lens stays readable */
@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; }

/* ---- notes list rows (design addendum 1a) ---- */
.notes .row { position: relative; }
.notes a.row:hover { color: var(--moss); }
.notes a.row:hover .title, .notes a.row:hover .date, .notes a.row:hover .kind, .notes a.row:hover .with, .notes a.row:hover .arrow { color: var(--moss); }
.notes .row.plain .title { color: var(--body); }
.notes .with { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--muted); }
.notes .arrow { font-family: var(--mono); font-size: 11.5px; color: var(--ink); flex: 0 0 14px; text-align: right; }
.notes .spacer { flex: 0 0 14px; }

/* ---- note page (design addendum 1b–1e) ---- */
.note-wrap { max-width: 880px; margin: 0 auto; padding: 28px 56px 96px; box-sizing: border-box; }
.note-nav { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; }
.note-nav a { border: 0; color: var(--mono-2); }
.note-nav a:hover { color: var(--moss); }
.note-nav .wordmark { color: var(--ink); }
.note-head { margin: 104px 0 56px; max-width: 620px; display: flex; flex-direction: column; gap: 20px; }
.note-head .meta { display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em; color: var(--mono-2); }
.note-head .meta .kind { color: var(--moss); }
.note-head h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.01em; }
.note-body { display: flex; flex-direction: column; gap: 26px; color: var(--body); }
.note-body > p, .note-body > h2, .note-body > h3, .note-body > ul, .note-body > blockquote { max-width: 620px; }
.note-body h2 { font-size: 28px; line-height: 1.2; color: var(--ink); }
.note-body h3 { font-size: 22px; line-height: 1.25; color: var(--ink); font-weight: 400; }
.note-body ul { margin: 0; padding-left: 1.2em; }
.note-body blockquote { margin: 0; padding-left: 20px; border-left: 1px solid var(--hair); }
.note-body code { font-family: var(--mono); font-size: 0.85em; }
.note-body .figure { max-width: 768px; margin: 14px 0; gap: 14px; }
.note-body .earlier { margin-top: 8px; padding-top: 18px; border-top: 1px dashed var(--hair); display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: start; }
.note-body .earlier-text { font-family: var(--mono); font-size: 11.5px; color: var(--muted); line-height: 1.7; max-width: 360px; }
.note-body .photo { margin: 14px 0; max-width: 768px; display: flex; flex-direction: column; gap: 12px; }
.note-body .photo img { width: 100%; height: auto; display: block; border: 1px solid var(--hair); }
.note-body .photo figcaption, .note-body .spoken figcaption { font-family: var(--mono); font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.note-body .spoken { margin: 14px 0; max-width: 620px; display: flex; flex-direction: column; gap: 10px; }
.note-body .player { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.note-body .player audio { display: none; }
html:not(.js) .note-body .player .play, html:not(.js) .note-body .player .track-wrap { display: none; }
.note-body .play { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; }
.note-body .play:hover { border-color: var(--moss); }
.note-body .play .tri { display: block; width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent var(--ink); margin-left: 2px; }
.note-body .play[aria-pressed="true"] .tri { width: 10px; height: 12px; border: 0; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); margin-left: 0; }
.note-body .track-wrap { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.note-body .track { position: relative; height: 1px; background: var(--hair); cursor: pointer; }
.note-body .marker { position: absolute; left: 0; top: -3px; width: 7px; height: 7px; background: var(--ink); }
.note-body .player .meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.note-body .passage { max-width: 620px; display: grid; grid-template-columns: 72px 1fr; gap: 16px; align-items: baseline; }
.note-body .passage .role { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--moss); padding-top: 4px; }
.note-body .passage-body { display: flex; flex-direction: column; gap: 18px; }
.note-body .open { max-width: 620px; display: flex; flex-direction: column; gap: 10px; padding: 18px 0; border-top: 1px dashed var(--hair); border-bottom: 1px dashed var(--hair); font-family: var(--mono); font-size: 12.5px; line-height: 1.7; letter-spacing: 0.02em; color: var(--mono-2); }
.note-body .open-label { color: var(--moss); }
.note-body .changes { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; letter-spacing: 0.02em; color: var(--muted); max-width: 620px; }
.note-foot { margin-top: 96px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.note-foot a { border: 0; color: var(--muted); }
.note-foot a:hover { color: var(--moss); }
@media (max-width: 480px) {
  .note-wrap { padding: 20px 20px 64px; }
  .note-head { margin: 64px 0 36px; gap: 14px; }
  .note-head .meta { gap: 12px; font-size: 12px; }
  .note-head h1 { font-size: 30px; }
  .note-body { gap: 22px; font-size: 18px; }
  .note-body .earlier { grid-template-columns: 1fr; }
  .note-body .earlier .fig { width: 200px; }
  .note-foot { margin-top: 64px; }
}
