/* The Context Window — the content pages. Same world as the landing page: chalk-green
   paper, one dark window object, Sentient display, system body, mono only for code.
   Type and spacing carry the hierarchy; no gradients, shadows, pills or boxed cards. */

@font-face { font-family: 'Sentient'; src: url('fonts/Sentient-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Sentient'; src: url('fonts/Sentient-Italic.woff2')  format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Sentient'; src: url('fonts/Sentient-Medium.woff2')  format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* Paper: a chalk with green in it. Not cream, not the UI-kit gray. */
  --paper:     #e4e9dc;
  --paper-lit: #eef1e6;   /* where the morning light falls */
  --ink:       #111813;
  --ink-2:     #3a453c;
  --ink-3:     #5a655a;   /* quietest text that still clears 4.5:1 on paper */
  --olive:     #4d5c43;   /* the one accent, tonal and desaturated */
  --rule:      #c4cbb9;

  /* The window: green-black, not blue-charcoal. */
  --win:       #0f1411;
  --win-ink:   #d9e0d2;
  --win-dim:   #7c877a;
  --win-hi:    #b9c9a6;

  --display: 'Sentient', Georgia, 'Times New Roman', serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  /* Flex column so the footer always sits at the bottom of the viewport, even on short pages. */
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

main { flex: 1 1 auto; }
/* Flex items with auto side margins shrink to their content; both frames must fill the row
   so their max-width and gutter behave as block boxes. */
.top, .page { width: 100%; }

/* Atmosphere: one raking wash of light from the upper left, and grain under everything.
   Both sit behind the content (z-index 0) so text stays crisp. */
.light {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120vmax 80vmax at 8% -10%, var(--paper-lit) 0%, rgba(238,241,230,0) 55%);
}
.grain {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .085;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.07 0 0 0 0 0.1 0 0 0 0 0.07 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
main, header, footer { position: relative; z-index: 1; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--gutter); top: -60px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 5; }
.skip-link:focus { top: 8px; }

a { color: inherit; }

/* ---------- nav: a contained strip, brand left, the one action right ---------- */
.top {
  max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--display); font-size: 19px; letter-spacing: .005em; color: var(--ink);
}
.brand .mark { width: 22px; height: 22px; color: var(--ink); }
.top-join {
  text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 8px 0;
  border-bottom: 1.5px solid transparent; transition: color .2s, border-color .2s;
}
.top-join:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- the content frame: a 12-col grid the bodies sit inside ---------- */
.page {
  max-width: var(--max); margin: 0 auto; padding: 6vh var(--gutter) 12vh;
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; row-gap: 0;
  align-content: start;
}
/* Text-first: bodies are one column, capped at 72ch, inside the 12-col frame. */
.col { grid-column: 1 / -1; }
@media (min-width: 1081px) {
  .col { grid-column: 1 / 9; }
}

/* H1 + the call date, set in the display face the way the landing page's title is. */
.h1 {
  margin: 0 0 .1em; font-family: var(--display); font-weight: 400;
  font-size: clamp(40px, 6vw, 92px); line-height: .98; letter-spacing: -.01em;
  color: var(--ink);
}
.h1 em { font-style: italic; color: var(--olive); }
.dateline { margin: 1.2em 0 0; font-size: 18px; color: var(--ink-2); max-width: 72ch; }

.section { margin: 4.5rem 0 0; max-width: 72ch; }
.section-h {
  margin: 0 0 .6em; font-family: var(--display); font-weight: 500;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -.005em;
  color: var(--ink);
}
.section-h em { font-style: italic; color: var(--olive); }

/* ---------- agenda list ---------- */
.agenda { list-style: none; margin: 0; padding: 0; }
.agenda li { padding: .5em 0; }
.agenda li:first-child { padding-top: 0; }
.agenda .a-title { font-family: var(--display); font-size: 20px; line-height: 1.3; color: var(--ink); }
.agenda .a-title a { color: var(--olive); text-decoration: none; border-bottom: 1px solid var(--rule); }
.agenda .a-title a:hover { border-bottom-color: var(--olive); }
.agenda .a-author { display: block; margin: .15em 0 0; font-size: 14px; color: var(--ink-3); }

/* ---------- recap blocks (also the note body on the room page) ---------- */
.recap { padding: .6em 0; }
.recap time { display: block; font-family: var(--display); font-size: 18px; color: var(--ink); margin: 0 0 .3em; }
.recap a { color: var(--olive); text-decoration: none; border-bottom: 1px solid var(--rule); }
.recap a:hover { border-bottom-color: var(--olive); }

/* ---------- markdown body (room page notes, summaries, recaps) ---------- */
.md { margin: 0; color: var(--ink-2); max-width: 72ch; }
.md p { margin: 0 0 .9em; }
.md ul, .md ol { margin: 0 0 .9em; padding-left: 1.4em; }
.md li { margin: 0 0 .2em; }
.md code { font-family: var(--mono); font-size: .92em; color: var(--ink); }

/* ---------- project section, one per member ---------- */
.project { padding: .9em 0; }
.project .p-name { font-family: var(--display); font-size: 20px; color: var(--ink); margin: 0; }
.project .p-meta { margin: .1em 0 .5em; font-size: 14px; color: var(--ink-3); }
.project .p-links { margin: .5em 0 0; font-size: 14px; color: var(--ink-3); }
.project .p-links a { color: var(--olive); text-decoration: none; border-bottom: 1px solid var(--rule); }
.project .p-links a:hover { border-bottom-color: var(--olive); }
.member-h {
  margin: 1.4em 0 .3em; font-family: var(--display); font-weight: 500; font-style: italic;
  font-size: 16px; color: var(--olive);
}

/* ---------- share file list + code blocks, in the window's own colours ---------- */
.files { list-style: none; margin: .4em 0 .9em; padding: 0; font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); }
.files li { padding: .1em 0; overflow-wrap: anywhere; }
.files .sz { color: var(--ink-3); }

/* The window object: green-black floor, mono type. */
pre {
  background: var(--win); color: var(--win-ink);
  padding: 16px 18px; margin: .4em 0 1em; overflow-x: auto;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.6;
}
pre code { font: inherit; color: inherit; }

/* The grip: the only rounded thing on the page, because a handle is a physical object. */
.grip {
  position: absolute; left: 50%; bottom: -3px; transform: translateX(-50%);
  width: 64px; height: 18px; padding: 0; border: 0; background: transparent;
  cursor: ns-resize; touch-action: none;
}
.grip::before {
  content: ''; position: absolute; left: 10px; right: 10px; top: 7px; height: 4px;
  border-radius: 2px; background: var(--win-hi); transition: background .2s;
}
.grip:hover::before, .grip:focus-visible::before { background: var(--paper); }
.grip:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ---------- footer: the one deliberate hard colour break, onto the window's own floor ---------- */
.foot { background: var(--win); color: var(--win-dim); overflow: hidden; }
.foot-row {
  max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 0;
  display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; font-size: 14px;
}
.foot-row a { color: var(--win-ink); text-decoration: none; border-bottom: 1px solid rgba(217,224,210,.3); }
.foot-row a:hover { border-bottom-color: var(--win-ink); }
.foot-word {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(110px, 20.5vw, 330px); line-height: .78; letter-spacing: .015em;
  color: var(--win-ink); text-align: center;
  margin: .12em 0 0; padding-top: .1em; transform: translateY(.18em);
}

/* ---------- motion respect ---------- */
@media (prefers-reduced-motion: reduce) {
  .top-join, .agenda .a-title a, .project .p-links a { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .page { padding-top: 5vh; }
  .top { gap: 16px; }
}
