@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&display=swap");

@font-face {
  font-family: "Gloucester OS MT Std";
  src: url("assets/fonts/GloucesterOSMTStd-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gloucester MT Extra Condensed";
  src: url("assets/fonts/GloucesterMTExtraCondensed-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@property --background {
  syntax: "<color>";
  inherits: true;
  initial-value: #faf5eb;
}

@property --card-bg {
  syntax: "<color>";
  inherits: true;
  initial-value: #e8ded1;
}

@property --surface-bg {
  syntax: "<color>";
  inherits: true;
  initial-value: #ebe3d6;
}

@property --elevated {
  syntax: "<color>";
  inherits: true;
  initial-value: #ede6d9;
}

@property --text-primary {
  syntax: "<color>";
  inherits: true;
  initial-value: #211a14;
}

@property --text-secondary {
  syntax: "<color>";
  inherits: true;
  initial-value: #706357;
}

@property --text-tertiary {
  syntax: "<color>";
  inherits: true;
  initial-value: #8f8275;
}

@property --accent {
  syntax: "<color>";
  inherits: true;
  initial-value: #d6c9b8;
}

@property --separator {
  syntax: "<color>";
  inherits: true;
  initial-value: #ccbfad;
}

@property --btn-bg {
  syntax: "<color>";
  inherits: true;
  initial-value: #e4d6c4;
}

@property --btn-fg {
  syntax: "<color>";
  inherits: true;
  initial-value: #211a14;
}

@property --shadow-color {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(0, 0, 0, 0.08);
}

@property --shadow-hover-color {
  syntax: "<color>";
  inherits: true;
  initial-value: rgba(0, 0, 0, 0.12);
}

:root {
  --background: #faf5eb;
  --card-bg: #e8ded1;
  --surface-bg: #ebe3d6;
  --elevated: #ede6d9;
  --text-primary: #211a14;
  --text-secondary: #706357;
  --text-tertiary: #8f8275;
  --accent: #d6c9b8;
  --separator: #ccbfad;
  --destructive: #c7473d;
  --btn-bg: #e4d6c4;
  --btn-fg: #211a14;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --shadow-hover-color: rgba(0, 0, 0, 0.12);
  --shadow: 0 4px 12px var(--shadow-color);
  --shadow-hover: 0 8px 24px var(--shadow-hover-color);
  --theme-ease: 0.55s ease;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-wordmark: "Gloucester MT Extra Condensed", "Gloucester OS MT Std", "Playfair Display", serif;
  --font-display: "Gloucester OS MT Std", "Playfair Display", serif;
  --font-quote: "Playfair Display", "Gloucester OS MT Std", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --content: 1200px;
  --header-h: 72px;
}

html[data-theme="dark"] {
  --background: #0f0f0d;
  --card-bg: #211f1c;
  --surface-bg: #171412;
  --elevated: #312e29;
  --text-primary: #ede8e0;
  --text-secondary: #99948a;
  --text-tertiary: #6e6961;
  --accent: #47423b;
  --separator: #38332e;
  --btn-bg: #e8e0d4;
  --btn-fg: #1a1612;
  --shadow-color: rgba(0, 0, 0, 0.4);
  --shadow-hover-color: rgba(0, 0, 0, 0.55);
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

.brand-ink {
  filter: none;
}

html.theme-ready .brand-ink {
  transition: filter var(--theme-ease);
}

html[data-theme="dark"] .brand-ink {
  filter: invert(1) brightness(0.93) sepia(0.18);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --background: #0f0f0d;
    --card-bg: #211f1c;
    --surface-bg: #171412;
    --elevated: #312e29;
    --text-primary: #ede8e0;
    --text-secondary: #99948a;
    --text-tertiary: #6e6961;
    --accent: #47423b;
    --separator: #38332e;
    --btn-bg: #e8e0d4;
    --btn-fg: #1a1612;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --shadow-hover-color: rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }

  html:not([data-theme="light"]) .brand-ink {
    filter: invert(1) brightness(0.93) sepia(0.18);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html.theme-ready {
  transition:
    --background var(--theme-ease),
    --card-bg var(--theme-ease),
    --surface-bg var(--theme-ease),
    --elevated var(--theme-ease),
    --text-primary var(--theme-ease),
    --text-secondary var(--theme-ease),
    --text-tertiary var(--theme-ease),
    --accent var(--theme-ease),
    --separator var(--theme-ease),
    --btn-bg var(--theme-ease),
    --btn-fg var(--theme-ease),
    --shadow-color var(--theme-ease),
    --shadow-hover-color var(--theme-ease);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  background-image:
    radial-gradient(ellipse 80% 50% at 10% -10%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 60%),
    radial-gradient(ellipse 70% 40% at 110% 110%, color-mix(in srgb, var(--card-bg) 80%, transparent), transparent 55%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.045;
  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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

html.theme-ready body::before {
  transition: opacity var(--theme-ease);
}

html[data-theme="dark"] body::before {
  opacity: 0.055;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) body::before {
    opacity: 0.055;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--text-primary);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 60;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: var(--background);
  font-size: 13px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--background) 72%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--separator) 70%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--separator);
  background: var(--elevated);
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.2s ease, background-color var(--theme-ease), border-color var(--theme-ease), color var(--theme-ease);
}

.theme-toggle:hover {
  transform: scale(1.02);
  background: var(--card-bg);
}

.theme-toggle svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity var(--theme-ease);
}

.theme-toggle .icon-sun {
  opacity: 0;
}

.theme-toggle .icon-moon {
  opacity: 1;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 0;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle .icon-sun {
    opacity: 1;
  }

  html:not([data-theme="light"]) .theme-toggle .icon-moon {
    opacity: 0;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-mark {
  width: auto;
  height: 28px;
}

.wordmark {
  font-family: var(--font-wordmark);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 3px;
  line-height: 1;
  text-transform: lowercase;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: lowercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow var(--theme-ease), background-color var(--theme-ease), border-color var(--theme-ease), color var(--theme-ease);
}

.btn:hover {
  transform: scale(1.02);
}

.btn:active {
  transform: scale(0.99);
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-color: color-mix(in srgb, var(--separator) 85%, var(--text-primary));
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  box-shadow: var(--shadow-hover);
  background: color-mix(in srgb, var(--btn-bg) 88%, var(--text-primary));
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--separator);
}

.btn-secondary:hover {
  background: color-mix(in srgb, var(--elevated) 80%, transparent);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 19px;
}

.btn-nav {
  padding: 10px 20px;
  font-size: 15px;
}

/* ---------- hero ---------- */

.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.hero-mark {
  width: auto;
  height: 132px;
  margin: 0 auto 32px;
  animation: fade-up 0.6s ease-out both;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-wordmark);
  font-size: 48px;
  font-weight: 400;
  letter-spacing: 6px;
  line-height: 1.1;
  color: var(--text-primary);
  text-transform: lowercase;
  animation: fade-up 0.6s ease-out 0.12s both;
}

.hero .tagline {
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--text-secondary);
  animation: fade-up 0.6s ease-out 0.22s both;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fade-up 0.6s ease-out 0.36s both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- sections ---------- */

.section {
  padding: 64px 0;
}

.section-label {
  margin: 0 0 32px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--text-tertiary);
  text-transform: lowercase;
}

.section[id],
#download {
  scroll-margin-top: 88px;
}

/* ---------- features ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 24px 28px;
  border: 1px solid color-mix(in srgb, var(--separator) 55%, transparent);
  transition: transform 0.2s ease, box-shadow var(--theme-ease), background-color var(--theme-ease), border-color var(--theme-ease);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  margin-bottom: 24px;
}

.feature-icon img {
  height: 72px;
  width: auto;
}

.feature-card h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
  text-align: center;
  text-transform: lowercase;
}

.feature-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
}

/* ---------- how it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: var(--separator);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}

.step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--background);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1;
}

.step h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--text-primary);
  text-transform: lowercase;
}

.step p {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.how-mark {
  width: auto;
  height: 48px;
  margin: 0 auto 16px;
}

/* ---------- stats ---------- */

.stats {
  padding: 0;
}

.stats-banner {
  background: var(--card-bg);
  border-block: 1px solid color-mix(in srgb, var(--separator) 70%, transparent);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  padding: 48px 24px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--separator);
}

.stat-value {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-primary);
}

.stat-label {
  margin: 0;
  font-size: 13px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
}

/* ---------- personality ---------- */

.quote-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px;
  background: var(--surface-bg);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow);
  transition: background-color var(--theme-ease), box-shadow var(--theme-ease);
}

.quote-flock {
  height: 72px;
  width: auto;
  margin: 0 auto 24px;
}

.quote-card blockquote {
  margin: 0 0 16px;
  font-family: var(--font-quote);
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
}

.quote-card p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
}

/* ---------- final cta ---------- */

.final-cta {
  padding: 80px 0 96px;
  text-align: center;
}

.final-cta h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  color: var(--text-primary);
  text-transform: lowercase;
}

.final-cta p {
  margin: 0 0 32px;
  font-size: 17px;
  color: var(--text-secondary);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--surface-bg);
  border-top: 1px solid color-mix(in srgb, var(--separator) 70%, transparent);
  padding: 32px 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.footer-wordmark {
  font-family: var(--font-wordmark);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--text-primary);
  text-decoration: none;
  justify-self: start;
}

.footer-links {
  display: flex;
  gap: 24px;
  justify-self: center;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-note {
  margin: 0;
  justify-self: end;
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: right;
}

.footer-copy {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--separator);
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.features-grid .feature-card:nth-child(2) {
  transition-delay: 0.1s;
}

.features-grid .feature-card:nth-child(3) {
  transition-delay: 0.2s;
}

.steps .step:nth-child(2) {
  transition-delay: 0.1s;
}

.steps .step:nth-child(3) {
  transition-delay: 0.2s;
}

/* ---------- tablet ---------- */

@media (max-width: 768px) {
  .container {
    width: min(var(--content), calc(100% - 40px));
  }

  .hero {
    padding: 80px 0 64px;
  }

  .features-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .steps {
    gap: 32px;
  }

  .steps::before {
    display: none;
  }

  .step {
    text-align: left;
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    padding: 0;
  }

  .step-num {
    grid-row: 1 / 3;
    margin: 0;
  }

  .step h3 {
    grid-column: 2;
    margin: 0 0 4px;
  }

  .step p {
    grid-column: 2;
  }

  .footer-top {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 16px;
  }

  .footer-wordmark,
  .footer-note {
    justify-self: center;
    text-align: center;
  }
}

/* ---------- mobile ---------- */

@media (max-width: 480px) {
  .container {
    width: calc(100% - 32px);
  }

  .hero {
    padding: 64px 0 48px;
  }

  .hero-mark {
    height: 96px;
    margin-bottom: 24px;
  }

  .hero h1 {
    font-size: 36px;
    letter-spacing: 4px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .section {
    padding: 48px 0;
  }

  .feature-card {
    padding: 24px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 32px 24px;
  }

  .stat + .stat {
    border-left: none;
    border-top: 1px solid var(--separator);
  }

  .quote-card {
    padding: 32px 24px;
  }

  .quote-card blockquote {
    font-size: 22px;
  }

  .final-cta {
    padding: 64px 0 80px;
  }

  .final-cta h2 {
    font-size: 28px;
  }

  .wordmark {
    font-size: 22px;
    letter-spacing: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- the nest ---------- */

.nest-page .nest-main {
  padding: 48px 0 96px;
  min-height: calc(100vh - var(--header-h));
}

.nest-mark {
  height: 72px;
  margin: 0 auto 16px;
}

.auth-card,
.timer-card {
  max-width: 440px;
  margin: 0 auto;
  padding: 40px 32px;
  background: var(--surface-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  text-align: center;
}

.auth-card h1,
.gate h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  text-transform: lowercase;
}

.auth-form,
.lookup-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  text-align: left;
}

.auth-form label,
.timer-subject {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
  text-transform: lowercase;
}

.auth-form input,
.lookup-form input,
.timer-subject input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--separator);
  background: var(--elevated);
  color: var(--text-primary);
  font-size: 17px;
  font-family: var(--font-body);
}

.auth-form .btn,
.lookup-form .btn {
  width: 100%;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 12px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--separator);
}

.btn-google {
  width: 100%;
}

.form-error {
  margin: 0;
  font-size: 15px;
  color: var(--destructive);
}

.auth-note {
  margin: 16px 0 8px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  cursor: pointer;
  text-decoration: none;
}

.text-link:hover,
.text-link[aria-current="page"] {
  color: var(--text-primary);
}

.app-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.app-bar p,
.lede {
  margin: 0;
  color: var(--text-secondary);
}

.app-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.stat-tile {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-tile .stat-value {
  font-size: 28px;
}

.stat-tile .studying {
  font-size: 19px;
}

.block-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  text-transform: lowercase;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.post-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
  transition: transform 0.2s ease, box-shadow var(--theme-ease), background-color var(--theme-ease);
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.post-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  background: var(--elevated);
}

.post-thumb-empty {
  display: grid;
  place-items: center;
  font-size: 28px;
}

.post-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
}

.post-meta,
.post-id,
.empty {
  margin: 0;
  font-size: 13px;
  color: var(--text-tertiary);
}

.timer-card .clock {
  margin: 0;
  font-family: var(--font-display);
  font-size: 64px;
  letter-spacing: 0.04em;
  line-height: 1;
}

.timer-status {
  margin: 8px 0 24px;
  color: var(--text-secondary);
}

.preset-row,
.timer-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.chip {
  min-width: 48px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--separator);
  background: var(--elevated);
  color: var(--text-primary);
  font-family: var(--font-display);
  cursor: pointer;
}

.lookup-form {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 24px;
}

.lookup-form .btn {
  width: auto;
}

.guest-flock .section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}

.post-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: color-mix(in srgb, var(--background) 55%, transparent);
  backdrop-filter: blur(16px);
}

.post-modal[hidden] {
  display: none;
}

.post-modal-card {
  width: min(640px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  padding: 24px;
  background: var(--surface-bg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-hover);
}

.close-post {
  display: block;
  margin-left: auto;
  margin-bottom: 12px;
}

.post-video {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  background: var(--elevated);
}

.post-video-empty {
  display: grid;
  place-items: center;
  min-height: 160px;
  color: var(--text-tertiary);
  font-size: 15px;
}

.post-modal-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
}

.post-modal-card h3 {
  margin: 24px 0 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
}

.comment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-list li {
  padding: 8px 0;
  border-top: 1px solid var(--separator);
  font-size: 15px;
}

.comment-list span {
  color: var(--text-tertiary);
  font-size: 13px;
}

@media (max-width: 768px) {
  .stats-grid,
  .post-grid,
  .lookup-form {
    grid-template-columns: 1fr;
  }

  .timer-card .clock {
    font-size: 48px;
  }
}
