/* DesignScroll: the shared stylesheet for every page except index.html, which
   repeats these tokens in its own <style>. Dark only, because the app is.
   Tokens are the app's (src/theme.ts in the app repo, `ig` and `pin`): white
   on true black, the dim greys at the app's alphas, the 16px pin radius and
   the 4px picker radius. The liked red is the heart only, never chrome.
   Shape copies the Hops site (vert-site/assets/site.css): nav with no bar,
   prose pages, a footer with link columns and the name set huge and cropped. */

:root {
  --ground:   #000000;                    /* app ground, true black, never tinted */
  --text:     #ffffff;                    /* 21:1 */
  --text-2:   rgba(255, 255, 255, 0.7);   /* ig.color.textDim, ~9.9:1 on black */
  --text-3:   rgba(255, 255, 255, 0.6);   /* pin.textDim, ~7.5:1 */
  --hairline: rgba(255, 255, 255, 0.10);  /* theme hairline */
  --fill:     rgba(255, 255, 255, 0.08);  /* pin.fill: an empty surface, never a border */
  --liked:    #fe0034;                    /* the heart only */

  --r:      16px;                         /* pin.radius */
  --r-sm:   4px;                          /* feel.pickerRadius */
  --gutter: 24px;
  --max:    1240px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--ground);
  color-scheme: dark;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
body > main { flex: 1 0 auto; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; text-wrap: balance; }
p, ul { margin: 0; }
p { text-wrap: pretty; }
::selection { background: var(--text); color: var(--ground); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Focus: a double box-shadow, the first fakes the gap. Never animates in. */
:focus-visible { outline: none; transition: none; box-shadow: 0 0 0 2px var(--ground), 0 0 0 4px var(--text); }

/* ---------- nav ---------- */
/* No bar, no line under it. The icon and the name on the left, Apple's badge
   on the right. The badge is the only call to action on the site. */
.nav {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 14px max(var(--gutter), env(safe-area-inset-left));
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; border-radius: var(--r-sm);
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
  text-decoration: none; touch-action: manipulation;
}
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.badge {
  display: inline-flex; align-items: center; flex: none;
  min-height: 44px; border-radius: 8px;
  touch-action: manipulation;
}
.badge img { height: 40px; width: auto; }
@media (hover: hover) {
  .badge:hover img { opacity: .86; }
}
@media (prefers-reduced-motion: no-preference) {
  .badge img { transition: opacity .16s var(--ease-out), transform .12s var(--ease-out); }
  /* ~120px badge: .98 moves each edge ~1.2px. */
  .badge:active img { transform: scale(.98); }
}

/* ---------- footer ---------- */
/* Hops' shape: no card and no rule, link columns, then the name set huge and
   cropped by a wrapper shorter than the line, on the page's bottom edge. */
.foot { margin-top: 120px; }
.foot-grid {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px;
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
}
.foot-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.foot-brand p { color: var(--text-2); font-size: 15px; max-width: 32ch; }
.foot-cols { display: flex; gap: 56px; }
.foot-col h2 { font-size: 15px; font-weight: 600; line-height: 1.3; margin-bottom: 6px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col a {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px;
  color: var(--text-2); text-decoration: none; font-size: 15px;
  border-radius: var(--r-sm); touch-action: manipulation;
}
@media (hover: hover) { .foot-col a:hover { color: var(--text); } }
@media (prefers-reduced-motion: no-preference) { .foot-col a { transition: color .16s ease; } }
.rights { margin: 28px 0 0; padding: 0 var(--gutter); text-align: center; font-size: 13px; color: var(--text-3); }
/* The crop: the wrapper is shorter than the line, overflow clips both the
   bottom of the letters and any width past the viewport, so the page never
   scrolls sideways at 375. */
.wordmark-crop {
  position: relative; overflow: clip;
  height: 10.4vw; margin-top: 24px;
  user-select: none; pointer-events: none;
}
.wordmark {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  font-size: 17.4vw; font-weight: 800; line-height: .8; letter-spacing: -0.04em;
  color: var(--fill); white-space: nowrap;
}

/* ---------- prose pages (privacy, terms, support) ---------- */
.prose {
  width: 100%; max-width: calc(640px + 2 * var(--gutter)); margin: 0 auto;
  padding: 40px max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
}
.prose h1 { font-size: clamp(40px, 8vw, 56px); letter-spacing: -0.02em; margin-bottom: 14px; }
.prose .lead { font-size: 20px; line-height: 1.4; color: var(--text); }
.prose .updated { margin-top: 12px; font-size: 16px; color: var(--text-3); }
.prose h2 { font-size: 24px; line-height: 1.15; margin: 48px 0 12px; }
.prose p, .prose li { color: var(--text-2); }
.prose .lead, .prose strong { color: var(--text); }
.prose strong { font-weight: 600; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 12px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--text); text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.4); border-radius: 2px; }
@media (hover: hover) { .prose a:hover { text-decoration-color: var(--text); } }

/* ---------- forms (support.html, Netlify forms) ---------- */
form { margin-top: 24px; }
.field + .field { margin-top: 20px; }
.field label, .check span { display: block; font-size: 16px; font-weight: 600; color: var(--text); }
.opt { font-weight: 400; color: var(--text-2); }
.prose .help { margin-top: 4px; font-size: 16px; line-height: 1.45; color: var(--text-2); }
input[type="text"], input[type="email"], input[type="url"], select, textarea {
  display: block; width: 100%; min-height: 44px;
  margin-top: 6px; padding: 10px 12px;
  font: 400 16px/1.4 var(--font);          /* 16px: under it iOS zooms on focus */
  color: var(--text);
  background: var(--ground);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  appearance: none; -webkit-appearance: none;
  touch-action: manipulation;
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
select {
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23ffffff' stroke-opacity='.6' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right 14px center;
  background-size: 12px 8px;
  background-repeat: no-repeat;
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--text); }
.check { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; margin-top: 24px; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--text); }
.check span { font-weight: 400; }
button[type="submit"] {
  margin-top: 28px; min-height: 48px; padding: 0 28px;
  font: 600 16px/1 var(--font);
  color: var(--ground); background: var(--text);
  border: 0; border-radius: var(--r-sm);
  cursor: pointer; touch-action: manipulation; user-select: none;
}
@media (hover: hover) { button[type="submit"]:hover { background: rgba(255, 255, 255, 0.86); } }
@media (prefers-reduced-motion: no-preference) {
  button[type="submit"] { transition: background-color .16s ease, transform .12s var(--ease-out); }
  /* ~90px plate: .97 moves each edge ~1.4px. */
  button[type="submit"]:active { transform: scale(.97); }
}
.hidden { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.after { margin-top: 20px; }

/* ---------- mobile ---------- */
@media (max-width: 520px) {
  .foot { margin-top: 96px; }
  .foot-cols { gap: 28px; }
  .prose { padding-top: 24px; }
}
