/* ============================================================
   Chinnu & Goutham — a private archive
   Warm paper, deep green, Fraunces + Inter
   ============================================================ */

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --bg: #f1ede4;
  --bg-deep: #e9e3d7;
  --panel: #fbf8f1;
  --panel-2: #f5f1e8;
  --ink: #1c1e1a;
  --ink-2: #5b6158;
  --ink-3: #8a8f84;
  --line: #ddd6c8;
  --line-soft: rgba(28, 30, 26, 0.09);
  --green: #1d6b4f;
  --green-dark: #16523d;
  --green-wash: #e8f0e9;
  --ochre: #a9743f;
  --mark: #f4d472;
  --danger: #b4453a;

  --bubble-in: #fffdf7;
  --bubble-in-ink: #1c1e1a;
  --bubble-in-meta: #8a8f84;
  --bubble-in-border: rgba(28, 30, 26, 0.07);
  --bubble-in-shadow: 0 1px 1px rgba(28, 30, 26, 0.04), 0 12px 28px -22px rgba(28, 30, 26, 0.55);
  --bubble-out: #1c6a4c;
  --bubble-out-ink: #f2faf5;
  --bubble-out-meta: rgba(242, 250, 245, 0.6);
  --bubble-out-shadow: 0 10px 24px -18px rgba(20, 60, 44, 0.8);

  --shadow-panel: 0 24px 60px -40px rgba(28, 30, 26, 0.5);
  --shadow-pill: 0 16px 40px -22px rgba(20, 24, 21, 0.6);

  --sidebar-w: 360px;
  --thread-max: 780px;

  --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%231C1E1A' stroke-opacity='.055' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M34 52c-4-8 5-14 9-6 4-8 13-2 9 6-3 6-9 9-9 9s-6-3-9-9z'/%3E%3Ccircle cx='196' cy='48' r='6'/%3E%3Cpath d='M78 146l4 10 10 4-10 4-4 10-4-10-10-4 10-4z'/%3E%3Cpath d='M36 205c12-14 24 14 36 0'/%3E%3Cpath d='M214 152l8 8-8 8-8-8z'/%3E%3Cpath d='M132 26v10M127 31h10'/%3E%3Ccircle cx='142' cy='212' r='3'/%3E%3Cpath d='M206 214c0-6 5-10 10-10s10 4 10 10-5 10-10 10-10-4-10-10z'/%3E%3C/g%3E%3C/svg%3E");
}

html[data-theme="dark"] {
  --bg: #101310;
  --bg-deep: #0b0e0c;
  --panel: #161a17;
  --panel-2: #1b201c;
  --ink: #e9e6dc;
  --ink-2: #a5a99f;
  --ink-3: #71776d;
  --line: #2b312c;
  --line-soft: rgba(233, 230, 220, 0.1);
  --green: #8ad6b0;
  --green-dark: #a5e3c2;
  --green-wash: #16241c;
  --ochre: #d6a368;
  --mark: #d7b957;
  --danger: #d16b5f;

  --bubble-in: #1a211c;
  --bubble-in-ink: #e9e6dc;
  --bubble-in-meta: #8a9087;
  --bubble-in-border: rgba(233, 230, 220, 0.07);
  --bubble-in-shadow: 0 1px 1px rgba(0, 0, 0, 0.25), 0 18px 36px -28px rgba(0, 0, 0, 0.9);
  --bubble-out: #1d4b38;
  --bubble-out-ink: #eaf6ee;
  --bubble-out-meta: rgba(234, 246, 238, 0.58);
  --bubble-out-shadow: 0 12px 26px -20px rgba(0, 0, 0, 0.9);

  --doodle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='%23E9E6DC' stroke-opacity='.045' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M34 52c-4-8 5-14 9-6 4-8 13-2 9 6-3 6-9 9-9 9s-6-3-9-9z'/%3E%3Ccircle cx='196' cy='48' r='6'/%3E%3Cpath d='M78 146l4 10 10 4-10 4-4 10-4-10-10-4 10-4z'/%3E%3Cpath d='M36 205c12-14 24 14 36 0'/%3E%3Cpath d='M214 152l8 8-8 8-8-8z'/%3E%3Cpath d='M132 26v10M127 31h10'/%3E%3Ccircle cx='142' cy='212' r='3'/%3E%3Cpath d='M206 214c0-6 5-10 10-10s10 4 10 10-5 10-10 10-10-4-10-10z'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.has-overlay { overflow: hidden; }

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2 { margin: 0; }
::selection { background: var(--mark); color: #1b1d1a; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 5px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: content-box;
}

/* ---------------------------------------------------------- layout */

.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  background: var(--panel);
  border-right: 1px solid var(--line);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.35) inset;
}
.sidebar__scroll {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 30px 26px 10px;
}

#drawerClose {
  display: none;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 4;
  background: var(--panel);
  border-color: var(--line);
}

.main {
  position: relative;
  min-width: 0;
  background-color: var(--bg);
  background-image: var(--doodle);
  background-size: 260px 260px;
}

/* ---------------------------------------------------------- cover */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex: none; }

.cover__title {
  margin: 20px 0 12px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 42px;
  line-height: 0.97;
  letter-spacing: -0.028em;
  color: var(--ink);
  text-wrap: balance;
}
.cover__title em { font-style: italic; font-weight: 400; color: var(--green); }

.cover__dates {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.cover__dates .dash { color: var(--ink-3); }

.cover__intro {
  margin-top: 16px;
  max-width: 31ch;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

/* share bar */

.share { margin-top: 26px; }
.share__bar {
  display: flex;
  height: 3px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--line-soft);
}
.share__bar span { display: block; height: 100%; transition: width 0.4s ease; }
.share__chinnu { background: var(--green); }
.share__goutham { background: var(--ochre); }
.share__legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--ink-2);
}
.share__legend b { font-weight: 500; color: var(--ink); margin-left: 2px; }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot--c { background: var(--green); }
.dot--g { background: var(--ochre); }

/* stats */

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}
.stat {
  padding: 13px 0 12px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.stat:nth-child(odd) { border-right: 1px solid var(--line); padding-right: 14px; }
.stat:nth-child(even) { padding-left: 17px; }
.stat__value {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__value--sm { font-size: 20px; padding-top: 3px; }
.stat__label {
  display: block;
  margin-top: 6px;
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* tools */

.tools { margin-top: 24px; }

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-2);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.search:focus-within {
  border-color: var(--green);
  background: var(--panel);
  box-shadow: 0 0 0 3px var(--green-wash);
}
.search > .i { width: 15px; height: 15px; color: var(--ink-3); flex: none; }
.search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12.5px;
  outline: none;
}
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd {
  font-family: var(--sans);
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
  flex: none;
}
.search__clear {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--line);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1;
  flex: none;
}
.search__clear:hover { background: var(--ink-3); color: var(--panel); }

.filter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.filter__label {
  width: 42px;
  flex: none;
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.seg {
  display: flex;
  flex: 1;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}
.seg button {
  flex: 1;
  height: 26px;
  border-radius: 6px;
  font-size: 10.5px;
  color: var(--ink-2);
  transition: background 0.18s ease, color 0.18s ease;
}
.seg button:hover { color: var(--ink); }
.seg button.is-on { background: var(--ink); color: var(--panel); font-weight: 500; }

.filter--types { align-items: flex-start; }
.filter--types .filter__label { padding-top: 7px; }
.chips { display: flex; flex: 1; flex-wrap: wrap; gap: 4px; }
.chips button {
  height: 26px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  color: var(--ink-2);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.chips button:hover { border-color: var(--ink-3); color: var(--ink); }
.chips button.is-on {
  border-color: var(--green);
  background: var(--green-wash);
  color: var(--green);
  font-weight: 500;
}

.gallery-link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: 15px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 11.5px;
  text-align: left;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.gallery-link .i { width: 14px; height: 14px; color: var(--ink-3); }
.gallery-link em {
  margin-left: auto;
  font-style: normal;
  font-size: 9.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.gallery-link:hover { border-color: var(--green); color: var(--ink); background: var(--green-wash); }

/* contents */

.contents { margin-top: 26px; padding-bottom: 20px; }
.contents__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.daylink {
  display: flex;
  align-items: baseline;
  gap: 9px;
  width: 100%;
  padding: 8px 2px;
  color: var(--ink-2);
  text-align: left;
  transition: color 0.16s ease, opacity 0.16s ease;
}
.daylink__n {
  width: 18px;
  flex: none;
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  color: var(--ink-3);
}
.daylink__date { font-size: 12px; color: var(--ink); letter-spacing: 0.01em; }
.daylink__weekday { font-size: 9.5px; color: var(--ink-3); letter-spacing: 0.04em; }
.daylink__rule { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-3px); }
.daylink__count { font-size: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.daylink:hover .daylink__date { color: var(--green); }
.daylink.is-active .daylink__date,
.daylink.is-active .daylink__n { color: var(--green); }
.daylink.is-active .daylink__date { font-weight: 500; }
.daylink.is-empty { opacity: 0.35; }

/* sidebar foot */

.sidebar__foot {
  flex: none;
  padding: 14px 26px 18px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.reading-as {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.reading-as__seg {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--panel-2);
}
.reading-as__seg button {
  padding: 4px 9px;
  font-size: 9.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-2);
  transition: background 0.18s ease, color 0.18s ease;
}
.reading-as__seg button.is-on { background: var(--ink); color: var(--panel); }
.privacy {
  margin-top: 9px;
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

/* ---------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 64px;
  padding: 0 26px;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__where {
  display: flex;
  align-items: baseline;
  gap: 11px;
  flex: 1;
  min-width: 0;
}
.topbar__kicker {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
}
.topbar__date {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__count {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  white-space: nowrap;
}
.topbar__actions { display: flex; align-items: center; gap: 7px; }

.iconbtn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink-2);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.iconbtn:hover { background: var(--panel-2); border-color: var(--line); color: var(--ink); }
.iconbtn:active { transform: translateY(1px); }

/* Hidden on desktop; revealed in the mobile block below. */
.topbar__menu, .topbar__search { display: none; }

.pillbtn {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink-2);
  font-size: 11px;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.pillbtn .i { width: 14px; height: 14px; }
.pillbtn em {
  font-style: normal;
  font-size: 9.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.pillbtn:hover { background: var(--panel-2); border-color: var(--ink-3); color: var(--ink); }

#themeToggle .i-moon { display: none; }
html[data-theme="dark"] #themeToggle .i-sun { display: none; }
html[data-theme="dark"] #themeToggle .i-moon { display: block; }

.topbar__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
}
.topbar__progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  opacity: 0.45;
  transition: width 0.08s linear;
}

/* ---------------------------------------------------------- thread */

.thread {
  padding: 34px 30px 24px;
  position: relative;
}

.day {
  max-width: var(--thread-max);
  margin: 0 auto;
  padding-top: 54px;
  scroll-margin-top: 88px;
}
.day:first-of-type { padding-top: 6px; }
.notice + .day { padding-top: 40px; }

.day__head {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 24px;
}
.day__head > div { min-width: 0; }
.day__num {
  flex: none;
  width: 26px;
  padding-bottom: 5px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--green);
}
.day__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.day__meta {
  margin-top: 5px;
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.day__rule { flex: 1; height: 1px; background: var(--line); margin-bottom: 8px; }

/* system notice */

.notice {
  max-width: 600px;
  margin: 8px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}
.notice__body {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--green-wash) 70%, var(--panel));
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-2);
  text-align: left;
}
.notice__body .i { width: 13px; height: 13px; margin-top: 2px; color: var(--green); flex: none; }
.notice__body em { font-style: italic; color: var(--ink-2); }
.notice time {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.notice.is-dim { opacity: 0.35; transition: opacity 0.2s ease; }
.notice.is-current .notice__body { box-shadow: 0 0 0 2px var(--mark); }

/* messages */

.msg { display: flex; margin-top: 14px; }
.msg--group { margin-top: 2px; }
.msg--out { justify-content: flex-end; }

.msg__stack { max-width: min(76%, 560px); min-width: 0; }
.msg--out .msg__stack { display: flex; flex-direction: column; align-items: flex-end; }

.msg__name {
  display: none;
  margin: 0 0 3px 5px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green);
}
.msg__name--goutham { color: var(--ochre); }
.msg--label .msg__name { display: block; }
.msg--out .msg__name { margin: 0 5px 3px 0; }

.bubble {
  position: relative;
  padding: 7px 12px 5px;
  border: 1px solid var(--bubble-in-border);
  border-radius: 16px;
  background: var(--bubble-in);
  color: var(--bubble-in-ink);
  box-shadow: var(--bubble-in-shadow);
  max-width: 100%;
}
.msg--out .bubble {
  border-color: transparent;
  background: var(--bubble-out);
  color: var(--bubble-out-ink);
  box-shadow: var(--bubble-out-shadow);
}
.msg--last .bubble::after {
  content: "";
  position: absolute;
  bottom: -1px;
  width: 10px;
  height: 13px;
  background: var(--bubble-in);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.msg--last.msg--in .bubble::after { left: -9px; transform: scaleX(-1); }
.msg--last.msg--out .bubble::after { right: -9px; background: var(--bubble-out); }

.bubble__text {
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble__text--emoji { font-size: 24px; line-height: 1.3; }
.bubble__text em { font-style: italic; }
.bubble__text a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}
.bubble__text a:hover { text-decoration-color: currentColor; }

.bubble__meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 1px;
  font-size: 9.5px;
  line-height: 1.2;
  color: var(--bubble-in-meta);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.msg--out .bubble__meta { color: var(--bubble-out-meta); }
.bubble__edited { font-style: italic; opacity: 0.85; }
.bubble__meta time { letter-spacing: 0.01em; }

.msg--in .bubble--sticker .bubble__meta { justify-content: flex-start; }

.bubble--empty { min-width: 84px; min-height: 36px; padding: 8px 13px 6px; }
.bubble--empty .bubble__meta { margin-top: 12px; }

.bubble--deleted .bubble__text {
  font-style: italic;
  color: var(--bubble-in-meta);
}
.msg--out .bubble--deleted .bubble__text { color: var(--bubble-out-meta); }

/* media */

.bubble--media { padding: 2px; width: fit-content; max-width: 100%; }
.bubble--media .bubble__meta { padding: 1px 8px 4px; }
.bubble--media.is-uncaptioned .bubble__meta { display: none; }

.media {
  position: relative;
  display: block;
  width: fit-content;
  max-width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel-2);
  line-height: 0;
}
.media__img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 13px;
}
.media:hover .media__img { filter: brightness(0.97); }

.media__time {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 1px 6px 2px;
  border-radius: 6px;
  background: rgba(10, 12, 10, 0.46);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: rgba(255, 255, 255, 0.94);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.bubble__caption {
  padding: 8px 9px 2px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble__caption a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
}

/* stickers */

.bubble--sticker,
.msg--out .bubble--sticker {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  border-radius: 0;
}
.bubble--sticker::after { display: none !important; }
.bubble--sticker .bubble__meta,
.msg--out .bubble--sticker .bubble__meta {
  margin-top: 3px;
  padding: 0 2px;
  color: var(--ink-3);
}
.sticker {
  display: block;
  width: 136px;
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  filter: drop-shadow(0 5px 10px rgba(20, 24, 21, 0.16));
  transition: transform 0.22s ease;
}
.sticker img { width: 100%; height: auto; }
.sticker:hover { transform: translateY(-2px) scale(1.015); }

/* audio */

.bubble--audio { width: 306px; max-width: 100%; padding: 8px 10px 6px; }
.audio { display: flex; align-items: center; gap: 10px; }
.audio audio { display: none; }
.audio__btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  transition: transform 0.15s ease;
}
.msg--out .audio__btn { background: rgba(255, 255, 255, 0.16); color: #fff; }
.audio__btn:hover { transform: scale(1.05); }
.audio__btn .i { width: 13px; height: 13px; }
.audio__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.audio__wave {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 24px;
  cursor: pointer;
}
.audio__bar {
  width: 2px;
  min-height: 2px;
  border-radius: 2px;
  background: var(--bubble-in-meta);
  opacity: 0.5;
  transition: background 0.12s linear, opacity 0.12s linear;
}
.msg--out .audio__bar { background: rgba(255, 255, 255, 0.45); }
.audio__bar.is-played { background: var(--green); opacity: 1; }
.msg--out .audio__bar.is-played { background: #fff; }
.audio__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 9px;
  color: var(--bubble-in-meta);
  font-variant-numeric: tabular-nums;
}
.msg--out .audio__row { color: var(--bubble-out-meta); }
.audio__speed {
  font-size: 9px;
  color: inherit;
  letter-spacing: 0.04em;
  padding: 0 1px;
}
.audio__speed:hover { text-decoration: underline; }
.audio__btn .i-pause { width: 11px; height: 11px; }

/* video */

.media--video { position: relative; cursor: pointer; }
.media--video .media__img { filter: brightness(0.9); }
.media__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.media__play span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.92);
  color: #171a17;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.6);
}
.media__play .i { width: 16px; height: 16px; margin-left: 2px; }

/* documents */

.bubble--doc { width: min(336px, 100%); padding: 7px; }
.doc {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px;
  border-radius: 10px;
  transition: background 0.18s ease;
}
.doc:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.msg--out .doc:hover { background: rgba(255, 255, 255, 0.08); }
.doc__badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 44px;
  flex: none;
  border-radius: 5px;
  background: var(--danger);
  color: #fff;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.doc__badge--word { background: #2f5c8f; }
.doc__badge--excel { background: #2c6e49; }
.doc__info { flex: 1; min-width: 0; }
.doc__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.doc__sub {
  display: block;
  margin-top: 3px;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bubble-in-meta);
}
.msg--out .doc__sub { color: var(--bubble-out-meta); }
.doc__ext { width: 13px; height: 13px; flex: none; color: var(--bubble-in-meta); }
.msg--out .doc__ext { color: var(--bubble-out-meta); }

/* link cards */

.bubble--link { padding: 6px; }
.linkcard {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  padding: 7px 8px;
  border-radius: 10px;
  transition: background 0.18s ease;
}
.linkcard:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.msg--out .linkcard:hover { background: rgba(255, 255, 255, 0.08); }
.linkcard__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 7px;
  background: color-mix(in srgb, var(--green) 10%, transparent);
  color: var(--green);
}
.msg--out .linkcard__icon { background: rgba(255, 255, 255, 0.12); color: #fff; }
.linkcard__icon .i { width: 15px; height: 15px; }
.linkcard__body { flex: 1; min-width: 0; }
.linkcard__host { display: block; font-size: 11.5px; font-weight: 500; line-height: 1.35; }
.linkcard__path {
  display: block;
  max-width: 220px;
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9.5px;
  color: var(--bubble-in-meta);
}
.msg--out .linkcard__path { color: var(--bubble-out-meta); }
.linkcard__ext { width: 12px; height: 12px; flex: none; color: var(--bubble-in-meta); }
.msg--out .linkcard__ext { color: var(--bubble-out-meta); }

/* call events */

.call {
  display: flex;
  justify-content: center;
  margin: 14px 0;
  transition: opacity 0.2s ease;
}
.call__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
  color: var(--ink-2);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}
.call__pill .i { width: 12px; height: 12px; color: var(--green); }
.call__label {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.call__pill time { color: var(--ink-3); }
.call.is-dim { opacity: 0.35; }
.call.is-current .call__pill { box-shadow: 0 0 0 2px var(--mark); }

/* live location */

.bubble--location { width: min(340px, 100%); padding: 8px; }
.location {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
}
.location__pin {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--green) 11%, transparent);
  color: var(--green);
}
.location__pin .i { width: 16px; height: 16px; }
.msg--out .location__pin { background: rgba(255, 255, 255, 0.13); color: #fff; }
.location__body { flex: 1; min-width: 0; }
.location__title { display: block; font-size: 12px; font-weight: 600; line-height: 1.35; }
.location__coords {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9.5px;
  color: var(--bubble-in-meta);
  font-variant-numeric: tabular-nums;
}
.msg--out .location__coords { color: var(--bubble-out-meta); }
.location__open {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.8;
  white-space: nowrap;
}
.location__open .i { width: 10px; height: 10px; }
.location__open:hover { opacity: 1; text-decoration: underline; }

/* attachment present in the transcript but missing from the exports */

.bubble--unavailable { width: min(300px, 100%); padding: 8px; }
.unavailable {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
}
.unavailable__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 9px;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  color: var(--bubble-in-meta);
}
.unavailable__icon .i { width: 16px; height: 16px; }
.msg--out .unavailable__icon { background: rgba(255, 255, 255, 0.1); color: var(--bubble-out-meta); }
.unavailable__body { min-width: 0; }
.unavailable__title { display: block; font-size: 11.5px; font-weight: 500; line-height: 1.35; }
.unavailable__note {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.02em;
  color: var(--bubble-in-meta);
}
.msg--out .unavailable__note { color: var(--bubble-out-meta); }

/* search marks */

mark { background: var(--mark); color: #1b1d1a; border-radius: 2px; padding: 0 1px; }
.msg.is-dim { opacity: 0.35; filter: saturate(0.65); transition: opacity 0.2s ease; }
.msg.is-current .bubble { box-shadow: 0 0 0 2px var(--mark), var(--bubble-in-shadow); }
.msg.is-current.msg--out .bubble { box-shadow: 0 0 0 2px var(--mark), var(--bubble-out-shadow); }

/* empty state */

.empty-state {
  max-width: 420px;
  margin: 60px auto;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.empty-state h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 22px;
}
.empty-state p { font-size: 12px; color: var(--ink-2); }
.empty-state button {
  margin-top: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--panel);
  font-size: 11px;
}

/* search HUD */

.search-hud {
  position: sticky;
  top: 72px;
  z-index: 26;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 0;
  pointer-events: none;
}
.search-hud__pill {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  padding: 4px 5px 4px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--panel);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-pill);
  pointer-events: auto;
}
.search-hud__pill > span { margin-right: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.search-hud__pill button {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: inherit;
  opacity: 0.75;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.search-hud__pill button:hover { background: rgba(127, 127, 127, 0.25); opacity: 1; }
.search-hud__pill .i { width: 13px; height: 13px; }

/* thread intro (small screens) */

.thread-intro {
  display: none;
  max-width: var(--thread-max);
  margin: 0 auto;
  padding: 18px 16px 0;
}
.thread-intro h2 {
  margin: 10px 0 6px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.thread-intro h2 em { color: var(--green); font-style: italic; }
.thread-intro p:last-child {
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

/* colophon */

.colophon {
  max-width: var(--thread-max);
  margin: 0 auto;
  padding: 54px 30px 90px;
  text-align: center;
}
.colophon__amp {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  color: var(--green);
  opacity: 0.75;
}
.colophon__date {
  margin-top: 14px;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.colophon__title {
  margin-top: 8px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 23px;
  letter-spacing: -0.01em;
}
.colophon__meta { margin-top: 6px; font-size: 10.5px; color: var(--ink-3); }
.colophon__top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10.5px;
  color: var(--ink-2);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.colophon__top .i { width: 12px; height: 12px; }
.colophon__top:hover { border-color: var(--green); color: var(--green); background: var(--green-wash); }

/* to top */

.totop {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 35;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink-2);
  box-shadow: 0 12px 30px -14px rgba(20, 24, 21, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.18s ease;
}
.totop.is-on { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { color: var(--green); }

/* ---------------------------------------------------------- overlays */

.gallery {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  animation: overlay-in 0.22s ease both;
}
@keyframes overlay-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.gallery__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 32px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.gallery__bar h2 {
  margin: 10px 0 4px;
  font-family: var(--serif);
  font-weight: 300;
  font-size: 26px;
  letter-spacing: -0.015em;
}
.gallery__sub { font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.03em; }

.gallery__grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  grid-auto-rows: max-content;
  gap: 12px;
  padding: 24px 32px 48px;
  align-content: start;
}
.tile {
  position: relative;
  display: block;
  align-self: start;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--panel-2);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tile:hover img { transform: scale(1.035); }
.tile--sticker img { object-fit: contain; padding: 18px; }
.tile--sticker:hover img { transform: scale(1.06); }
.tile__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 22px 9px 7px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.58));
  color: rgba(255, 255, 255, 0.92);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.2s ease;
  text-align: left;
}
.tile:hover .tile__meta, .tile:focus-visible .tile__meta { opacity: 1; }
.tile__count {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(10, 12, 10, 0.62);
  color: #fff;
  font-size: 8.5px;
  letter-spacing: 0.02em;
}
.tile__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.tile__play span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 253, 247, 0.92);
  color: #171a17;
}
.tile__play .i { width: 14px; height: 14px; margin-left: 2px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: rgba(8, 10, 9, 0.95);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  color: #edeae2;
  animation: overlay-in 0.2s ease both;
}
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex: none;
}
.lightbox__where p { margin: 0; }
.lightbox__where > p:first-child {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}
.lightbox__file {
  margin-top: 4px !important;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-all;
}
.lightbox__actions { display: flex; gap: 5px; }
.lightbox .iconbtn { color: rgba(255, 255, 255, 0.7); }
.lightbox .iconbtn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.lightbox__stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 24px 72px;
}
.lightbox__stage img,
.lightbox__stage video {
  max-width: 100%;
  max-height: calc(100dvh - 200px);
  width: auto;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 30px 90px -30px rgba(0, 0, 0, 0.9);
}
.lightbox__stage .stage-fallback {
  max-width: 420px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}
.sticker-mat {
  display: grid;
  place-items: center;
  max-width: 100%;
  max-height: 100%;
  padding: 30px;
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.94);
}
.sticker-mat img {
  width: auto;
  height: auto;
  max-width: min(52vh, 420px);
  max-height: min(60vh, 460px);
  border-radius: 0;
  box-shadow: none;
}
.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transition: background 0.18s ease;
}
.lightbox__arrow:hover { background: rgba(255, 255, 255, 0.16); }
.lightbox__arrow--prev { left: 18px; }
.lightbox__arrow--next { right: 18px; }
.lightbox__foot {
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.lightbox__caption {
  max-width: 72ch;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  white-space: pre-wrap;
}
.lightbox__counter {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* scrim */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 10, 9, 0.45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
body.drawer-open .scrim { opacity: 1; pointer-events: auto; }

/* Short laptop screens: keep search and the day index above the fold. */

@media (min-width: 901px) and (max-height: 1060px) {
  .sidebar__scroll { padding-top: 22px; }
  .cover__title { font-size: 35px; margin: 14px 0 9px; }
  .cover__intro { display: none; }
  .share { order: 5; margin-top: 20px; }
  .stats { order: 4; margin-top: 20px; }
  .tools { order: 2; margin-top: 20px; }
  .contents { order: 3; margin-top: 18px; }
  .stat { padding: 10px 0 9px; }
  .stat__value { font-size: 21px; }
  .stat__value--sm { font-size: 18px; }
  .gallery-link { margin-top: 12px; }
  .daylink { padding: 6px 2px; }
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 1200px) {
  :root { --sidebar-w: 326px; }
  .cover__title { font-size: 38px; }
  .sidebar__scroll { padding: 26px 22px 8px; }
  .sidebar__foot { padding: 13px 22px 16px; }
}

@media (max-width: 900px) {
  .app { display: block; }
  body.drawer-open { overflow: hidden; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(88vw, 370px);
    height: 100dvh;
    z-index: 95;
    transform: translateX(-102%);
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 30px 0 60px -40px rgba(0, 0, 0, 0.7);
  }
  #drawerClose { display: grid; }
  .sidebar__scroll { padding: 24px 22px 8px; }
  .sidebar__foot { padding: 12px 22px 14px; }
  .cover__title { font-size: 36px; margin-top: 16px; }
  .cover__intro { display: none; }
  .share { display: none; }
  .stats { margin-top: 18px; }
  .stat { padding: 10px 0 9px; }
  .tools { margin-top: 18px; }
  .contents { margin-top: 18px; }
  .daylink { padding: 6px 2px; }
  body.drawer-open .sidebar { transform: none; }

  .topbar { height: 60px; padding: 0 14px; gap: 8px; }
  .topbar__menu { display: grid; }
  .topbar__search { display: grid; }
  .topbar__where { flex-direction: column; align-items: flex-start; gap: 0; }
  .topbar__date { font-size: 14.5px; }
  .topbar__count { display: none; }
  .topbar__kicker { font-size: 8px; }
  .pillbtn { padding: 0 9px; }
  .pillbtn span { display: none; }
  .pillbtn em { font-size: 9.5px; }

  .thread { padding: 20px 14px 26px; }
  .thread-intro { display: block; padding: 16px 20px 0; }
  .day { padding-top: 40px; }
  .day__title { font-size: 21px; }
  .day__num { width: 20px; font-size: 12px; }
  .day__head { gap: 10px; margin-bottom: 18px; }
  .day__meta { font-size: 8px; }
  .msg__stack { max-width: 86%; }
  .msg { margin-top: 14px; }
  .bubble__text { font-size: 14.5px; }
  .bubble__caption { font-size: 13.5px; }
  .media__img { max-width: 100%; }
  .sticker { width: 118px; }
  .bubble--audio { width: 100%; max-width: 286px; }
  .search { height: 40px; }
  .search input { font-size: 16px; }
  .search-hud { top: 66px; }
  .colophon { padding: 40px 20px 72px; }
  .totop { right: 16px; bottom: 16px; }
  .lightbox__stage {
    display: block;
    overflow-y: auto;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .lightbox__stage img,
  .lightbox__stage video {
    width: 100%;
    max-width: 100%;
    max-height: none;
    height: auto;
    margin: 0 auto;
  }
  .lightbox__stage .sticker-mat { margin: 0 auto; width: fit-content; }
  .lightbox__arrow {
    width: 36px;
    height: 36px;
    background: rgba(10, 12, 10, 0.55);
  }
  .lightbox__arrow--prev { left: 8px; }
  .lightbox__arrow--next { right: 8px; }
  .lightbox__foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .gallery__bar { padding: 18px 16px 14px; }
  .gallery__bar h2 { font-size: 21px; }
  .gallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 14px 14px 40px;
  }
  .gallery__sub { font-size: 9.5px; }
  .tile__meta { opacity: 1; padding-top: 18px; }
}

@media (max-width: 380px) {
  .cover__title { font-size: 34px; }
  .day__title { font-size: 19px; }
  .day__num { display: none; }
  .bubble--audio { max-width: 100%; }
  .chips button { padding: 0 7px; font-size: 9.5px; }
}

/* ---------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
