/* Thyme's website (decision 0115).
   The founder, 2026-11-30: pictures over words, the home message simple.
   2026-12-01: "a white background with black font, with each section like a
   page pop out." Black and greys for words; the brand's green stays in the
   icon, the pictures and the small marks. */

:root {
  color-scheme: light;
  --page: #FFFFFF;
  --ink: #1D1D1F;
  --muted: #5F6368;
  --faint: #86868B;
  --line: #E6E6EA;
  --tile: #F5F5F7;
  --accent: #4F7F4C;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 18px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

h1, h2, h3, .brand span {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.1;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); margin: 0 0 0.3em; font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.6rem); margin: 0 0 0.4em; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; margin: 0 0 0.3em; font-weight: 650; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

a { color: var(--ink); text-underline-offset: 0.18em; }
a:focus-visible, .skip:focus { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--page); color: var(--ink); padding: 8px 12px;
}
.skip:focus { left: 16px; z-index: 10; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site { border-bottom: 1px solid var(--line); background: var(--page); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 22%; box-shadow: 0 0 0 1px var(--line); }
.brand span { font-size: 1.35rem; font-weight: 700; }
header.site nav { display: flex; gap: 22px; }
header.site nav a { text-decoration: none; font-weight: 500; color: var(--muted); padding: 10px 2px; }
header.site nav a:hover { color: var(--ink); }

/* Each section a page of its own, raised from the white. */
main { padding: 32px 0 56px; }
.panel {
  max-width: 1120px;
  margin: 0 auto 48px;
  padding: 72px;
  background: var(--page);
  border-radius: 32px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 48px rgba(0, 0, 0, 0.08);
}
.panel .wrap { max-width: none; padding: 0; }
/* The founder, 2026-12-01: the panel under the mouse comes forward, the rest
   step back; a keyboard's place does the same. */
.panel { transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.35s ease; }
@media (hover: hover) {
  .panel:hover {
    transform: translateY(-6px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 32px 72px rgba(0, 0, 0, 0.16);
  }
  main:has(.panel:hover) .panel:not(:hover) { opacity: 0.7; }
}
.panel:focus-within { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05), 0 32px 72px rgba(0, 0, 0, 0.16); }
@media (prefers-reduced-motion: reduce) {
  .panel { transition: none; }
  .panel:hover { transform: none; }
}
@media (max-width: 720px) {
  .panel { margin: 0 14px 28px; padding: 36px 24px; border-radius: 26px; }
}

.lede { font-size: clamp(1.2rem, 2.4vw, 1.45rem); color: var(--muted); max-width: 28ch; line-height: 1.4; }
.intro { font-size: 1.15rem; color: var(--muted); max-width: 48ch; margin-bottom: 40px; }
.small { font-size: 0.95rem; color: var(--faint); }

.button {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
}
.button:hover { background: #000000; }
.button.secondary { background: var(--tile); color: var(--ink); }
.button.secondary:hover { background: var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 16px; }

/* The first page: one line, two ways in, one picture */
.hero .wrap { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.phone { width: min(240px, 62vw); height: auto; display: block; margin: 0 auto; }
@media (min-width: 860px) {
  .hero { padding: 88px 80px 80px; }
  .hero .wrap { grid-template-columns: 1fr auto; gap: 56px; }
}

/* A day with Thyme: words above each picture */
.scenes { display: grid; grid-template-columns: 1fr; gap: 36px 28px; }
@media (min-width: 640px) { .scenes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .scenes { grid-template-columns: repeat(3, 1fr); } }
.scene { margin: 0; display: flex; flex-direction: column; }
.scene figcaption { margin: 0 0 14px; }
.scene-art { display: block; width: 100%; height: auto; background: var(--tile); border-radius: 18px; margin-top: auto; }
.when { font-size: 0.9rem; font-weight: 600; color: var(--faint); margin: 0 0 4px; }
.scene h3 { margin: 0 0 4px; font-size: 1.2rem; }
.scene figcaption p:last-child { margin: 0; color: var(--muted); line-height: 1.45; }

/* Played one scene at a time (day.js); without it, all six as above. */
.player-bar { display: flex; gap: 8px; margin: 0 0 28px; }
.player-bar button { flex: 1; background: none; border: 0; padding: 14px 0; cursor: pointer; }
.player-bar .track { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.player-bar .fill { display: block; height: 100%; width: 0; background: var(--ink); }
.player-bar .done .fill { width: 100%; }
.player-bar .current .fill { animation: scene-time 5.5s linear forwards; }
.player.paused .player-bar .current .fill { animation-play-state: paused; }
@keyframes scene-time { from { width: 0; } to { width: 100%; } }
.scenes.playing { display: block; }
.scenes.playing .scene { display: none; text-align: center; }
.scenes.playing .scene.current { display: flex; animation: scene-in 0.6s ease; }
.scenes.playing .scene figcaption { margin: 0 auto 24px; max-width: 46ch; }
.scenes.playing .scene h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.scenes.playing .scene figcaption p:last-child { font-size: 1.1rem; }
.scenes.playing .scene-art { max-width: 620px; margin: 0 auto; }
@keyframes scene-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.player-controls { display: flex; justify-content: center; gap: 14px; margin-top: 28px; }
.player-button {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--page); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.player-button:hover { background: var(--tile); }
.player-button svg { width: 22px; height: 22px; }
.player-bar button:focus-visible, .player-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .player-bar .current .fill { animation: none; width: 100%; }
  .scenes.playing .scene.current { animation: none; }
}

/* Everything, at a glance: no boxes, a mark and a few words each */
.tiles { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 32px 36px; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tiles li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
.tiles svg { width: 40px; height: 40px; display: block; grid-row: span 2; }
.tiles h3 { margin: 2px 0 0.15em; font-size: 1.08rem; }
.tiles p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.45; }
@media (min-width: 600px) {
  .tiles li { display: block; }
  .tiles svg { margin-bottom: 12px; }
}

/* Private by design: a shield and four words */
.privacy .wrap { display: grid; grid-template-columns: 64px 1fr; gap: 32px; align-items: start; }
.shield { width: 64px; height: 64px; }
.checks { list-style: none; margin: 8px 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.checks li { background: var(--tile); color: var(--ink); font-weight: 500; padding: 8px 16px; border-radius: 999px; font-size: 0.98rem; }

/* Be among the first; for partners */
.start, .partners { text-align: center; }
.start .promise, .partners p { margin-left: auto; margin-right: auto; }
.promise, .partners p { max-width: 56ch; color: var(--muted); font-size: 1.15rem; }

/* Support and legal pages */
.page { padding: 8px 0 24px; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.3em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin: 0 0 0.5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; border: 1px solid var(--line); padding: 8px 10px; }
.prose th { background: var(--tile); }
.notice {
  background: var(--tile);
  border-radius: 14px;
  padding: 14px 18px;
  margin: 0 0 1.6em;
}
.notice p { margin: 0; }
.faq h2 { font-size: 1.2rem; margin-top: 1.4em; }

/* Footer */
footer.site { padding: 28px 0 40px; color: var(--faint); font-size: 0.9rem; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
footer.site nav a { font-weight: 500; color: var(--muted); padding: 6px 0; }
footer.site p { max-width: 75ch; }
footer.site a { color: var(--muted); }
.fine { font-size: 0.8rem; }
