/* services/yipwatch/style.css
 *
 * ── THE HOUSE, IN ONE FILE ──────────────────────────────────────────────────
 *
 * The tokens below are copies of real values from ~/Desktop/neonburro/src/theme.
 * They are duplicated on purpose and the duplication is documented here rather
 * than solved with a shared package, which is the same decision the studio made
 * for its layout geometry. If a value moves in the studio theme it moves here
 * in the same commit, and the studio file is named beside each one.
 *
 *   --lime     #C5D957   colors.js, accent.signal, Topo Lime
 *   --rail     20 / 40   layout.js, RAIL
 *   --measure  660px     layout.js, MEASURE
 *   --ease     cubic-bezier(0.16, 1, 0.3, 1)   layout.js, EASE
 *
 * ── ONE LIME, SPENT ONCE ────────────────────────────────────────────────────
 * The only element that may carry --lime as a fill on this page is the mark in
 * the header. Everything else that looks accented is the solid button, which is
 * warm white at rest and turns lime on hover, exactly as the studio's does.
 * Adding a second lime fill anywhere is the most common way this page gets
 * quietly wrong.
 *
 * ── NO CONTAINERS ON A PHONE ────────────────────────────────────────────────
 * House rule. Under 48em nothing wraps content in a bordered box. The cards in
 * the grid lose their borders and become stacked text separated by a hairline.
 *
 * No oxford commas, no em dashes.
 */

:root {
  --lime: #C5D957;
  --ground: #0A0B0A;
  --tile: #121412;
  --line: #22251F;
  --ink: #F4F5F0;
  --ink-dim: #9BA094;
  --measure: 660px;
  --sheet: 1680px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The sheet is left aligned and never centred, which is the studio's rule and
 * the single most recognisable thing about its layout. */
.rail {
  max-width: var(--sheet);
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 48em) {
  .rail { padding-left: 40px; padding-right: 40px; }
}

a { color: inherit; }

.kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 14px;
}

.muted { color: var(--ink-dim); }

/* ── header ───────────────────────────────────────────────────────────────── */

.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  padding-bottom: 26px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  text-decoration: none;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.035em;
}

/* The mark is the studio's full stop, mid-call. The disc is the period, the two
 * arcs are the sound leaving it. Sized against the wordmark the way the
 * studio's lime disc is, 0.16em wide sitting on the baseline. */
.mark { width: 20px; height: 20px; margin-bottom: 1px; overflow: visible; }
.mark circle { fill: var(--lime); }
.mark path { stroke: var(--lime); stroke-width: 2.4; fill: none; stroke-linecap: round; }

.by {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.by:hover { color: var(--ink); }

/* ── hero ─────────────────────────────────────────────────────────────────── */

.hero { padding-top: 56px; padding-bottom: 72px; }

h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 9vw, 76px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lede {
  margin: 0 0 28px;
  max-width: var(--measure);
  font-size: 18px;
  color: var(--ink-dim);
}
.lede.small { font-size: 16px; }

/* ── buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn:hover { border-color: var(--ink-dim); }

/* The studio's solid button. Warm white at rest, lime on hover. This is the one
 * place lime appears outside the mark and it is a state, not a spend. */
.btn.solid {
  background: #F4F5F0;
  color: #0A0B0A;
  border-color: #F4F5F0;
  cursor: pointer;
  font-family: var(--sans);
}
.btn.solid:hover:not(:disabled) { background: var(--lime); border-color: var(--lime); }
.btn.solid:disabled { opacity: 0.45; cursor: progress; }

/* ── bands ────────────────────────────────────────────────────────────────── */

.band { padding-top: 56px; padding-bottom: 56px; border-top: 1px solid var(--line); }

.grid { display: grid; gap: 0; }
.grid article { padding: 24px 0; border-top: 1px solid var(--line); }
.grid article:first-child { border-top: 0; padding-top: 8px; }
.grid p { margin: 0; color: var(--ink-dim); max-width: var(--measure); }

@media (min-width: 48em) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .grid article {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--tile);
  }
  .grid article:first-child { padding: 24px; }
}

/* ── the live board ───────────────────────────────────────────────────────── */

.board { margin-top: 22px; }

.find {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  flex-wrap: wrap;
}
.find:hover .title { color: var(--ink); }
.find .title { font-weight: 500; color: var(--ink); flex: 1 1 320px; min-width: 0; }
.find .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  white-space: nowrap;
}

.watching {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
}

/* ── the form ─────────────────────────────────────────────────────────────── */

.form { margin-top: 26px; max-width: var(--measure); }

.row { margin-bottom: 20px; }

label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 500;
}
.opt { color: var(--ink-dim); font-weight: 400; }

input, textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--tile);
  border: 1px solid var(--line);
  /* The one sharp corner. Upper left, three rounded. It means entry, which is
   * exactly what a form is, and it is never decoration elsewhere. */
  border-radius: 0 12px 12px 12px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  transition: border-color 0.3s var(--ease);
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--ink-dim); }
input::placeholder, textarea::placeholder { color: #5E6359; }

.hint { margin: 8px 0 0; font-family: var(--mono); font-size: 12px; color: var(--ink-dim); }

/* Hidden from people and from assistive tech, reachable by a bot that fills
 * every field it finds. Not display:none, which some bots skip. */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.status { margin: 14px 0 0; font-size: 14px; min-height: 1.4em; color: var(--ink-dim); }
.status.bad { color: #E08A72; }
.status.good { color: var(--ink); }

/* ── footer ───────────────────────────────────────────────────────────────── */

.foot { padding-top: 40px; padding-bottom: 60px; border-top: 1px solid var(--line); }
.foot p { margin: 0 0 8px; font-size: 14px; color: var(--ink-dim); max-width: var(--measure); }
.foot a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot a:hover { border-color: var(--ink-dim); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}
