/* SwarFlow shared notes viewer. Tokens match store/site/style.css (this site is
   deployed on its own, so it carries its own copy). Fonts are self-hosted (SIL OFL,
   see fonts/), so the page makes no third-party requests. */

@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #FCFCE6;
  --surf: #F1F1DA;
  --surf2: #E6E6CD;
  --line: #E3E3CB;
  --text: #1B1B1A;
  --muted: #5E5E55;
  --acc: #3FD67A;
  --acc-hover: #36C46D;
  --acc-text: #157A3E;
  --ink: #1B1B1A;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --col: 720px;
  --gutter: 32px;
  color-scheme: light dark;
}
@media (max-width: 520px) { :root { --gutter: 16px; } }
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --surf: #1F1F1D;
    --surf2: #2B2B28;
    --line: #2A2A27;
    --text: #FCFCE6;
    --muted: #A9A99C;
    --acc-hover: #5BE08F;
    --acc-text: #3FD67A;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--acc); color: var(--ink); }
a { color: var(--acc-text); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
h1, h2 { text-wrap: balance; }
p, li { text-wrap: pretty; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- top line ---------- */
.bar {
  width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto;
  padding: 22px var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--text); text-decoration: none;
  font-weight: 800; font-size: 18px; letter-spacing: -0.02em; line-height: 1;
}
.mark { display: block; width: 26px; height: auto; flex: none; }
.mark .c { fill: var(--acc); }
.bar-tag { color: var(--muted); font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; }

/* ---------- page column ---------- */
.page {
  flex: 1 0 auto;
  width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto;
  padding: clamp(40px, 8vw, 80px) var(--gutter) 24px;
}

/* Meeting text can hold long URLs or words: wrap them instead of scrolling sideways. */
.notes h1, .summary, .points li, .checklist li { overflow-wrap: anywhere; }

.meta {
  margin: 0 0 16px; color: var(--muted);
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em;
  display: flex; flex-wrap: wrap; gap: 6px 18px;
}
.meta span { display: inline-flex; align-items: center; }
.meta span + span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--acc); margin-right: 18px;
}
.notes h1 {
  margin: 0;
  font-size: clamp(30px, 5.4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800;
}

.block { margin-top: clamp(40px, 6vw, 56px); }
.block h2 {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 14px;
  font-size: 21px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700;
}
/* the brand's green centre bar */
.block h2::before { content: ""; flex: none; width: 5px; height: 1em; border-radius: 3px; background: var(--acc); }

.summary p { margin: 0 0 14px; white-space: pre-line; }
.summary p:last-child { margin-bottom: 0; }

.points, .checklist { list-style: none; margin: 0; padding: 0; }
.points li { position: relative; padding-left: 22px; margin: 0 0 10px; }
.points li::before {
  content: ""; position: absolute; left: 3px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--acc-text);
}

/* Action items look like a checklist but are not one: open boxes, nothing to tick. */
.checklist { background: var(--surf); border-radius: 22px; padding: 10px 24px; }
.checklist li { position: relative; padding: 12px 0 12px 34px; }
.checklist li + li { border-top: 1px solid var(--line); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: calc(12px + .2em);
  width: 19px; height: 19px; border-radius: 6px;
  border: 2px solid var(--acc-text);
}

.ai-note { margin: 40px 0 0; color: var(--muted); font-size: 14.5px; }

/* ---------- loading ---------- */
.sk { background: var(--surf); border-radius: 10px; }
.sk-meta { width: 180px; height: 14px; margin-bottom: 20px; }
.sk-title { width: 86%; height: 40px; margin-bottom: 10px; border-radius: 12px; }
.sk-h2 { width: 140px; height: 22px; margin: 52px 0 18px; }
.sk-line { width: 100%; height: 15px; margin-bottom: 14px; }
.sk-short { width: 54%; }
@media (prefers-reduced-motion: no-preference) {
  .sk { animation: sk-pulse 1.4s ease-in-out infinite alternate; }
  @keyframes sk-pulse { from { opacity: 1; } to { opacity: .45; } }
}

/* ---------- not available / error ---------- */
.state { max-width: 34rem; }
.state-bar { display: block; width: 6px; height: 40px; border-radius: 3px; background: var(--acc); margin-bottom: 24px; }
.state h1 { margin: 0 0 12px; font-size: clamp(28px, 4.6vw, 38px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.state p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; margin-top: 28px; padding: 0 22px;
  border: 0; border-radius: 16px; cursor: pointer;
  font: 700 16px/1 var(--sans);
  background: var(--acc); color: var(--ink);
  transition: background-color .15s, transform .2s var(--ease-out);
}
.btn:hover { background: var(--acc-hover); }
.btn:active { transform: scale(.97); }

/* ---------- footer ---------- */
.foot {
  width: 100%; max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto;
  padding: 0 var(--gutter) 32px;
  color: var(--muted); font-size: 14px; line-height: 1.5;
}
.foot::before { content: ""; display: block; height: 1px; background: var(--line); margin-bottom: 20px; }
.foot p { margin: 0; }
.foot a { color: var(--muted); font-weight: 600; text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.foot-brand a { color: var(--acc-text); }
.sep { width: 4px; height: 4px; border-radius: 50%; background: var(--acc); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 10px !important; }

@media (min-width: 640px) {
  .foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
  .foot::before { flex-basis: 100%; }
  .foot-links { margin-top: 0 !important; }
}

/* ---------- print: the notes on plain paper ---------- */
@media print {
  :root { --bg: #fff; --surf: #fff; --text: #000; --muted: #444; --line: #bbb; --acc-text: #000; --acc: #000; }
  body { font-size: 11.5pt; line-height: 1.5; display: block; min-height: 0; }
  .bar, .foot-links, .foot-brand a, .foot-brand .sep, .btn, .skeleton { display: none !important; }
  .page { padding: 0; max-width: none; }
  .notes h1 { font-size: 22pt; }
  .block { margin-top: 18pt; }
  .block h2 { font-size: 13pt; break-after: avoid; }
  .block h2::before { display: none; }
  .checklist { padding: 0; border-radius: 0; }
  .checklist li { padding-left: 26px; }
  .checklist li::before { width: 13px; height: 13px; border-width: 1.5px; border-radius: 3px; }
  li { break-inside: avoid; }
  .foot { padding: 18pt 0 0; max-width: none; }
  .foot::before { display: none; }
}
