/* feeltime.es — river stone, graphite, one ripple per minute.
   Type: Fraunces SuperSoft (water-worn serifs) for display, Atkinson Hyperlegible Next (Braille Institute) for text. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fraunces-soft-latin.1626404aa6.woff2") format("woff2");
  font-weight: 300 500;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson";
  src: url("/assets/atkinson-next-latin.81a9769d0d.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --stone: #e3e4de;
  --stone-2: #d4d7cf;
  --field: #f3f4f0;
  --ink: #24272b;
  --slate: #565c60;
  --line: #b5b9b0;
  --pool: #2d6466;
  --error: #8a2e2e;
  --ripple: rgba(36, 39, 43, 0.42);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --text: "Atkinson", "Segoe UI", system-ui, sans-serif;
  --t-small: 0.9375rem;
  --t-body: 1.125rem;
  --t-h3: 1.5rem;
  --t-h2: clamp(2rem, 1.4rem + 2.2vw, 2.85rem);
  --t-h1: clamp(3.1rem, 1.6rem + 6.6vw, 6.6rem);

  --gutter: clamp(1rem, 0.4rem + 3vw, 3rem);
  --max: 74rem;
  --space: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --stone: #1d2023;
    --stone-2: #272b2f;
    --field: #15181a;
    --ink: #e3e4de;
    --slate: #a4aaaa;
    --line: #444a4f;
    --pool: #8cc4c0;
    --error: #f0a39b;
    --ripple: rgba(227, 228, 222, 0.38);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 var(--t-body)/1.55 var(--text);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--pool); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: var(--gutter); top: 0.75rem; background: var(--field); padding: 0.5rem 0.75rem; z-index: 5; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
h1 {
  font-size: var(--t-h1);
  font-weight: 330;
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-optical-sizing: auto;
}
h2 { font-size: var(--t-h2); line-height: 1.1; letter-spacing: -0.012em; }
p { margin: 0; text-wrap: pretty; }
h1, h2 { text-wrap: balance; }

/* header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 1.4rem;
}
.word {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 420;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.lang { font-size: var(--t-small); color: var(--slate); }

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  grid-template-areas: "copy stage";
  align-items: center;
  column-gap: clamp(1.5rem, 4vw, 4rem);
  min-height: min(46rem, calc(100svh - 5rem));
  padding-block: 1rem 0;
}
.hero-copy { grid-area: copy; max-width: 34rem; }
.lead { margin-top: 1.6rem; font-size: 1.3125rem; line-height: 1.5; max-width: 30rem; }

/* waitlist form */
.join { margin-top: 2.4rem; }
.join-label { display: block; font-size: var(--t-small); font-weight: 600; margin-bottom: 0.45rem; }
.join-row {
  display: flex;
  gap: 0.4rem;
  padding: 0.3rem;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 999px;
  max-width: 30rem;
}
.join-row:focus-within { border-color: var(--ink); }
.join input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
}
.join input[type="email"]:focus-visible { outline: none; }
.btn {
  flex: none;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--stone);
  font: 600 1rem/1 var(--text);
  padding: 0.95rem 1.35rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--stone)); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: 0.9rem;
  font-size: var(--t-small);
  color: var(--slate);
}
.consent input { width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; accent-color: var(--ink); flex: none; }
.note { margin-top: 0.35rem; font-size: var(--t-small); color: var(--slate); }
.msg { margin-top: 0.9rem; font-size: 1rem; min-height: 1.55em; }
.msg.good { color: var(--pool); }
.msg.bad { color: var(--error); }
.msg .btn { margin-left: 0.6rem; padding: 0.6rem 1rem; font-size: var(--t-small); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* the stage: pebble, ripples, live marks */
.stage {
  grid-area: stage;
  margin: 0;
  position: relative;
  display: grid;
  justify-items: center;
}
.pond { position: relative; width: 100%; max-width: 44rem; }
.pebble { position: relative; z-index: 1; width: 100%; transform-origin: 50% 60%; }
.pebble.tap { animation: nudge 0.16s ease-out; }
@keyframes nudge {
  40% { transform: translateY(1.5px) scale(0.994); }
}
.ripples { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ripple {
  position: absolute;
  left: var(--rx);
  top: var(--ry);
  width: var(--rw);
  aspect-ratio: var(--ra);
  border: 1.5px solid var(--ripple);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  animation: ripple 2.6s cubic-bezier(0.2, 0.6, 0.3, 1) forwards;
}
@keyframes ripple {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.02); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.25); }
}

.live-box { display: grid; justify-items: center; gap: 0.7rem; margin-top: 0.4rem; text-align: center; }
.marks { display: flex; gap: 0.9rem; align-items: center; list-style: none; margin: 0; padding: 0; }
.mark { display: flex; gap: 3px; }
.mark i {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  transition: background-color 0.3s;
}
.mark.on i { background: var(--ink); }
.live { font-size: var(--t-small); color: var(--slate); min-height: 1.55em; font-variant-numeric: tabular-nums; }
.demo {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 600 var(--t-small)/1 var(--text);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
}
.demo:hover { border-color: var(--ink); }
.demo[disabled] { cursor: default; color: var(--slate); }
.demo-note { font-size: 0.875rem; color: var(--slate); }

/* sections */
.section { padding-block: var(--space) 0; }
.section h2 { max-width: 22ch; }
.section-p { margin-top: 1.2rem; max-width: 36rem; font-size: 1.25rem; }

/* one hour of taps */
.hour { margin: 3rem 0 0; }
.hour-row { display: grid; grid-template-columns: repeat(6, max-content); gap: 1.1rem 1.6rem; } /* rows of half an hour */
.block { display: flex; gap: 0.45rem; align-items: center; }
.block i { display: block; width: 0.62rem; height: 0.62rem; border-radius: 50%; background: var(--ink); }
.block .dbl { display: flex; gap: 2px; width: auto; height: auto; background: none; }
.block .dbl b { display: block; width: 0.62rem; height: 0.62rem; border-radius: 50%; background: var(--ink); }
.hour figcaption { margin-top: 1rem; font-size: var(--t-small); color: var(--slate); }

/* what it leaves out */
.without-list {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.without-list li {
  font-family: var(--display);
  font-size: var(--t-h3);
  padding: 1.1rem 0.5rem 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.without .section-p { color: var(--slate); }

/* the object */
.object-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.views { display: grid; gap: 1rem; margin: 0; }
.views figcaption { font-size: var(--t-small); color: var(--slate); }
.facts { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.facts li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); max-width: 30rem; }
.facts li:first-child { border-top: 1px solid var(--line); }

/* status: a real sequence */
.steps { list-style: none; margin: 2.2rem 0 0; padding: 0; max-width: 40rem; }
.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0 0 1.6rem 2rem;
}
.steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.steps li:first-child::before { background: var(--ink); }
.steps li::after {
  content: "";
  position: absolute;
  left: calc(0.4rem - 0.75px);
  top: 1.45rem;
  bottom: 0.2rem;
  border-left: 1.5px solid var(--line);
}
.steps li:last-child::after { display: none; }
.steps .when { font-weight: 600; }

/* questions */
.faq-list { margin-top: 2rem; max-width: 46rem; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  font-weight: 600;
  position: relative;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0.3rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list details p { padding: 0 0 1.3rem; max-width: 40rem; color: var(--slate); }

/* last call */
.again { text-align: left; }
.again .btn { margin-top: 1.8rem; }

/* footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  padding-block: var(--space) 2.5rem;
  font-size: var(--t-small);
  color: var(--slate);
}
.foot p:first-child { margin-right: auto; }

/* text pages: privacy, 404 */
.doc { max-width: 44rem; padding-block: 3rem var(--space); }
.doc h1 { font-size: clamp(2.6rem, 2rem + 3vw, 4rem); }
.doc h2 { font-size: var(--t-h3); margin-top: 2.4rem; }
.doc p { margin-top: 0.8rem; }
.doc .updated { margin-top: 1rem; color: var(--slate); font-size: var(--t-small); }

@media (max-width: 52rem) {
  /* phones: headline, pebble, then the words and the form */
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "h1" "stage" "lead" "join";
    min-height: 0;
    padding-block: 0.5rem 0;
    row-gap: 0;
  }
  .hero-copy { display: contents; }
  .hero h1 { grid-area: h1; }
  .hero .lead { grid-area: lead; margin-top: 1.2rem; }
  .hero .join { grid-area: join; margin-top: 1.8rem; }
  .stage { margin-top: 0.5rem; }
  .pond { max-width: 24rem; }
  .hour-row { grid-template-columns: repeat(3, max-content); } /* rows of a quarter hour */
  .without-list li { font-size: 1.25rem; }
  .lead { font-size: 1.1875rem; }
  .without-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .object-grid { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
}
@media (max-width: 26rem) {
  .join-row { flex-direction: column; border-radius: 1.6rem; padding: 0.35rem; }
  .join input[type="email"] { padding: 0.7rem 0.9rem; }
  .btn { width: 100%; }
  .again .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pebble.tap { animation: none; }
  .ripple { animation: none; display: none; }
  .mark i, .faq-list summary::after { transition: none; }
}
