/* Eventide · the website.
 *
 * The brand is the app's: docs/brand/ (02-COLOR, 03-TYPE, 06-ART-SYSTEM).
 * Ember on paper, slate and navy water, one family (Eventide Round). The
 * printed scenes on the home page are drawn by assets/scene.*.js with the
 * same engine the app uses; the gradients below are what shows while they
 * load and when scripts are off.
 *
 * Light only, like the app (Theme.swift: the dark column is unreviewed).
 * Button fills are ember deep, #B84A16: white on #E2622A is 3.49:1 and fails
 * AA, white on #B84A16 passes (docs/brand/02-COLOR.md).
 *
 * Nothing here fetches anything. The typeface is served from assets/fonts/,
 * copied from docs/design/fonts/eventide/out/ (OFL) at build time.
 */

/* ---------------------------------------------------------------- fonts -- */

@font-face {
  font-family: "Eventide Round";
  src: url("fonts/EventideRound-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Eventide Round";
  src: url("fonts/EventideRound-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Eventide Round";
  src: url("fonts/EventideRound-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------- tokens -- */

:root {
  color-scheme: light;

  --paper: #f4eee3;          /* the print's paper, sliver on the sun */
  --bg: #f8f4ed;
  --surface: #fffdf9;
  --ink: #1a1a1a;            /* BrandTextPrimary */
  --text: #1a1a1a;
  --text-secondary: #57524c;
  --text-tertiary: #6b655e;
  --separator: #e3dccf;
  --ember: #e2622a;          /* BrandPrimary: the sun */
  --ember-deep: #b84a16;     /* BrandPrimaryDeep: button fills */
  --link: #a1400f;           /* ember deep, darkened for body-size text on paper */
  --slate: #4a7196;          /* BrandAccent */
  --navy: #1c2a40;
  --night: #141c26;
  --on-primary: #ffffff;
  --quote-bg: #efe6d8;
  --quote-bar: #e2622a;
  --quote-text: #3a352f;
  --shadow: rgba(40, 20, 10, 0.1);

  --measure: 38rem;
  --wide: 72rem;
  --font: "Eventide Round", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
}

/* ----------------------------------------------------------------- base -- */

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

html {
  -webkit-text-size-adjust: 100%;
  /* No rubber-band past the ends. On a phone the bounce under the footer
     showed a screen of cream below the navy footer, which read as a broken
     page (founder, 2026-09-22). */
  overscroll-behavior-y: none;
}

/* Where the page ends on the night footer, whatever still shows past the end
   (older iOS ignores overscroll-behavior on the page) is night, not cream. */
html:has(body.has-scene) {
  background: var(--night);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 20px;
}

.site-header .wrap,
.site-footer .wrap,
.marketing .wrap {
  max-width: var(--wide);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--ember);
  outline-offset: 2px;
}

/* ---------------------------------------------------------------- chrome -- */

.site-header {
  padding: 18px 0 14px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--separator);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--ink);
  text-decoration: none;
}

.wordmark::before {
  content: "";
  width: 30px;
  height: 30px;
  margin: -6px 0;
  border-radius: 7px;
  background: url("icon-sand-96.png") center / contain no-repeat;
}

.site-nav {
  font-size: 15px;
}

.site-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-left: 18px;
  display: inline-block;
  padding: 8px 0;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* On the home page the header lies over the printed sky. */
.has-scene .site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  border: 0;
  margin: 0;
  padding-top: 22px;
}

.site-footer {
  border-top: 1px solid var(--separator);
  margin-top: 72px;
  padding: 28px 0 48px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.has-scene .site-footer {
  margin-top: 0;
  background: var(--night);
  color: #a9b3c1;
  border-color: #243142;
}

.site-footer a {
  color: var(--link);
}

.has-scene .site-footer a {
  color: #f4eee3;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a[aria-current="page"] {
  font-weight: 600;
}

/* -------------------------------------------------------------- document -- */

main {
  padding-bottom: 8px;
}

h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.6px;
  font-weight: 700;
  margin: 0 0 24px;
}

h2 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  font-weight: 700;
  margin: 48px 0 12px;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
  font-weight: 600;
  margin: 32px 0 8px;
}

h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 24px 0 8px;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--link);
}

strong {
  font-weight: 600;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

li {
  margin-bottom: 6px;
}

li > ul,
li > ol {
  margin-top: 6px;
}

hr {
  border: 0;
  border-top: 1px solid var(--separator);
  margin: 40px 0;
}

blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--quote-bar);
  border-radius: 0 14px 14px 0;
  background: var(--quote-bg);
  color: var(--quote-text);
  font-size: 15px;
  line-height: 1.6;
}

blockquote > :last-child {
  margin-bottom: 0;
}

blockquote a {
  color: inherit;
}

/* A code chip inside a blockquote shares the quote's own fill and would
   vanish into it; lift it onto the card surface instead. */
blockquote code {
  background: var(--surface);
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  background: var(--quote-bg);
  color: var(--quote-text);
  padding: 1px 5px;
  border-radius: 5px;
  /* A long identifier — `startMonitoringSignificantLocationChanges` — is one
     unbreakable word and overflows a 390pt phone. Let it wrap. */
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Tables are wide; let them scroll rather than squash the page on a phone. */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 20px;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  background: var(--surface);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px var(--shadow);
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--separator);
}

th {
  font-weight: 600;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

/* --------------------------------------------------------------- anchors -- */

.anchor {
  float: left;
  margin-left: -0.75em;
  padding-right: 0.25em;
  color: var(--text-tertiary);
  text-decoration: none;
  opacity: 0;
  font-weight: 400;
}

h2:hover .anchor,
h3:hover .anchor,
.anchor:focus-visible {
  opacity: 1;
}

/* Never hide a heading under the header when a #fragment lands on it. */
:target {
  scroll-margin-top: 16px;
}

/* ------------------------------------------------------------------ toc -- */

.toc {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: 18px;
  padding: 18px 22px;
  margin: 0 0 40px;
  font-size: 15px;
}

.toc h2 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin: 0 0 10px;
}

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

.toc li {
  margin-bottom: 4px;
}

.toc a {
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

/* ---------------------------------------------------- statutory notices -- */

/*
 * Notices a statute prints at a size.
 *
 * New Jersey (N.J.S.A. 56:8-171), Illinois (815 ILCS 615) and Texas
 * (§106.004) require the no-screening sentence in bold capitals of at least
 * 12 points. Minnesota §325G.25 subd. 1 wants 14 for its three contract
 * blocks; Minnesota members are excluded at sign-up so that one no longer
 * binds, but one size serves both and 14 clears 12, so the larger stands.
 *
 * The unit is `pt` deliberately. The statutes are written in points and CSS
 * defines 1pt as 4/3 px, so 14pt is 18.67px — larger than the 17px body, and
 * larger still than the 16px body a phone gets, which is exactly 12pt and
 * would leave the New Jersey sentence sitting on its floor with nothing to
 * spare. `build.mjs` decides which paragraphs get the class and fails if one
 * of them is no longer in the document as written.
 */
.statutory-notice {
  font-size: 14pt;
  font-weight: 700;
  line-height: 1.55;
}

/* ------------------------------------------------------------ pre blocks -- */

pre {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.55;
  /* The OFL text is hard-wrapped at ~72 columns, which overflows a phone.
     Let it re-wrap rather than introducing a horizontal scroll. */
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

pre code {
  background: none;
  color: var(--text-secondary);
  padding: 0;
  font-size: inherit;
}

/* ------------------------------------------------ tables on a phone ------ */
/*
 * A three-column table squeezed into 390pt turns every cell into a column of
 * single words. Below 560px each row becomes a small stacked block instead,
 * with the column header printed above its value in the app's uppercase
 * `label` style. The build writes the header onto each cell as `data-label`.
 */

@media (max-width: 560px) {
  .table-scroll {
    overflow-x: visible;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  thead {
    display: none;
  }

  table {
    box-shadow: none;
    background: none;
    border-radius: 0;
  }

  tr {
    background: var(--surface);
    border: 1px solid var(--separator);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 10px;
  }

  td {
    border-bottom: 0;
    padding: 0 0 10px;
  }

  tr td:last-child {
    padding-bottom: 0;
  }

  td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 1px;
  }

  /* An empty cell should not leave a floating label. */
  td:empty {
    display: none;
  }
}

.footer-contact {
  margin: 0;
}

.support-legal {
  padding-top: 8px;
}

.joined {
  padding-bottom: 40px;
}

/* ------------------------------------------------------------- marketing -- */

.marketing h1,
.marketing h2 {
  text-wrap: balance;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ember-deep);
  margin: 0 0 12px;
}

.lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.button,
.waitlist-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ember-deep);
  color: var(--on-primary);
  font: 600 17px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(184, 74, 22, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
}

.button:hover,
.waitlist-form button:hover {
  background: #9d3d10;
  transform: translateY(-1px);
}

.waitlist-form button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/* Scenes: a painted fallback, then the canvas on top once it prints. */
.scene {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.scene-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.scene.is-printed .scene-canvas {
  opacity: 1;
}

/* The paper tooth over a printed scene: drawn once, composited by the
   browser in overlay, so no animation frame pays for it. */
.scene-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.scene.is-printed .scene-grain {
  opacity: 0.32;
}

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

.hero {
  min-height: max(640px, min(100svh, 940px));
  display: flex;
  align-items: flex-start;
  background: linear-gradient(
    180deg,
    #f1ece4 0%,
    #e9d6c2 38%,
    #e2946e 58%,
    #c9684b 79.9%,
    #3e506c 80%,
    #1c2a40 100%
  );
  transition: color 0.8s ease;
}

.hero-inner {
  position: relative;
  width: 100%;
  padding-top: clamp(112px, 16vh, 168px);
  padding-bottom: 48px;
}

.hero-inner > * {
  max-width: 34rem;
}

.hero-inner > h1 {
  max-width: 11em;
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.02;
  letter-spacing: -1.6px;
  font-weight: 700;
  margin: 0 0 18px;
  color: var(--ink);
}

.hero .lede {
  color: #3a342e;
  margin: 0 0 28px;
  max-width: 30rem;
}

.hero .eyebrow {
  color: var(--ember-deep);
}

.hero.is-night h1,
.hero.is-night .lede,
.hero.is-night .eyebrow,
.hero.is-night .form-note,
.hero.is-night .form-status {
  color: var(--paper);
}

.has-scene .hero.is-night ~ * {
  /* nothing: the rest of the page keeps its own colours */
}

/* ---- the form ---- */

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 30rem;
}

.waitlist-form input {
  flex: 1 1 15rem;
  min-height: 52px;
  padding: 0 20px;
  border: 1.5px solid rgba(26, 26, 26, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--ink);
  font: 400 17px var(--font);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.waitlist-form input::placeholder {
  color: #7a736b;
}

.waitlist-form button {
  flex: 0 0 auto;
}

.form-status {
  flex-basis: 100%;
  margin: 2px 0 0 6px;
  min-height: 1.4em;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.waitlist-form.is-joined input,
.waitlist-form.is-joined button {
  display: none;
}

.waitlist-form.is-joined .form-status {
  font-size: 18px;
  margin-left: 0;
}

.form-after {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin: 4px 0 0 6px;
  max-width: 30rem;
}

.form-note {
  font-size: 14px;
  line-height: 1.5;
  color: #4a443d;
  margin: 0;
}

/* The leave page's own button, reached from the link in our emails. */
.leave-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-size: 14px;
  font-weight: 600;
  color: #4a443d;
  text-decoration: none;
}

.leave-link:hover {
  color: var(--ink);
}

.closing .leave-link {
  color: #c9cfd8;
}

.hero.is-night .leave-link {
  color: var(--paper);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button-quiet {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.button-quiet:hover {
  background: rgba(26, 26, 26, 0.06);
}

.leave-form {
  margin-top: 8px;
}

.leave-form input {
  background: var(--surface);
}

/* ---- bands ---- */

.band {
  padding: clamp(72px, 10vw, 128px) 0;
}

.band h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0 0 20px;
}

.band p {
  max-width: 38rem;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 64px;
  align-items: start;
}

.steps {
  background: var(--bg);
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step-list li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: 24px;
  padding: 28px 26px 26px;
  margin: 0;
}

.step-list li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ember);
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 2px -2px 0 0 var(--slate);
}

.step-list h3 {
  font-size: 20px;
  margin: 0 0 8px;
}

.step-list p {
  margin: 0;
  color: var(--text-secondary);
}

.sabbath {
  background: var(--night);
  color: var(--paper);
}

.sabbath .eyebrow {
  color: #f0a57c;
}

.sabbath p {
  color: #c9cfd8;
}

.sabbath-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 32px 64px;
  align-items: center;
}

.sabbath-scene {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: linear-gradient(180deg, #19222d 0%, #3a5673 45%, #e09a70 57.9%, #34465c 58%, #121c28 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.verse-line {
  margin-top: 32px;
  padding-left: 16px;
  border-left: 3px solid var(--ember);
  font-size: 16px;
  font-style: italic;
}

.verse-line cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.6px;
  margin-top: 6px;
  opacity: 0.75;
}

.goal {
  background: var(--paper);
}

.safety {
  background: var(--bg);
}

.safety a,
.goal a {
  color: var(--link);
}

.closing {
  min-height: 640px;
  display: flex;
  align-items: flex-start;
  color: var(--paper);
  background: linear-gradient(180deg, #10161e 0%, #1d293a 45%, #5a4e58 69.9%, #1e2b3b 70%, #0d131b 100%);
}

.closing-inner {
  width: 100%;
  padding-top: clamp(80px, 12vw, 140px);
  padding-bottom: 200px;
}

.hero-inner {
  box-sizing: border-box;
}

main.marketing {
  padding-bottom: 0;
}

.closing h2 {
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -1.2px;
  margin: 0 0 28px;
  max-width: 30rem;
}

.closing .form-note,
.closing .form-status {
  color: #c9cfd8;
}

/* ---- support and joined ---- */

.support-head .wrap,
.faq .wrap,
.support-legal .wrap {
  max-width: 46rem;
}

.support-head {
  padding: 16px 0 8px;
}

.support-head h1 {
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -1px;
  line-height: 1.05;
}

.support-address {
  font-size: 22px;
  font-weight: 600;
}

.faq-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}

.faq-list li {
  background: var(--surface);
  border: 1px solid var(--separator);
  border-radius: 20px;
  padding: 20px 22px 6px;
}

.faq-list h3 {
  margin: 0 0 6px;
}

.fine {
  font-size: 14px;
  color: var(--text-tertiary);
}

/* --------------------------------------------------------------- phones -- */

@media (max-width: 880px) {
  .two-col,
  .sabbath-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: max(760px, 100svh);
  }

  .sabbath-scene {
    max-width: 26rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 21px;
  }

  h3 {
    font-size: 18px;
  }

  .lede {
    font-size: 18px;
  }

  .site-nav a {
    margin-left: 14px;
  }

  .waitlist-form button {
    flex: 1 1 100%;
  }

  .anchor {
    display: none; /* no hover on a phone; the id still works */
  }

  /* Not .statutory-notice: a statutory floor is a floor on every screen. */
}

@media (prefers-reduced-motion: reduce) {
  .scene-canvas,
  .hero,
  .button,
  .waitlist-form button {
    transition: none;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  /* On paper the statutes' unit is literal; 14pt is 14pt. */
  .statutory-notice {
    font-size: 14pt;
    font-weight: 700;
  }

  .site-nav,
  .toc,
  .site-footer {
    display: none;
  }
}

/* ---- suggest an event (2026-10-06) ---- */

.suggest-form {
  display: grid;
  gap: 6px;
  max-width: 34rem;
  margin: 18px 0 8px;
}

.suggest-form fieldset {
  border: 0;
  margin: 0 0 8px;
  padding: 0;
}

.suggest-form legend,
.suggest-form label {
  font-weight: 600;
  margin-top: 10px;
}

.suggest-form .choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  font-weight: 400;
}

.suggest-form .optional {
  font-weight: 400;
  color: var(--text-tertiary);
}

.suggest-form input:not([type="radio"]),
.suggest-form select,
.suggest-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--separator);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: 400 17px var(--font);
}

.suggest-form textarea {
  min-height: 110px;
  resize: vertical;
}

.suggest-form .pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.suggest-form .pair > div {
  display: grid;
  gap: 6px;
}

.suggest-form button {
  justify-self: start;
  margin-top: 16px;
}

.form-alert {
  display: none;
  border: 1.5px solid var(--ember);
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 34rem;
}

.form-alert:target {
  display: block;
}

@media (max-width: 520px) {
  .suggest-form .pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- log in and the sign-in pages (2026-10-19) ---- */

/* The nav sits against the button, so the three header items read as two. */
.site-header .site-nav {
  margin-left: auto;
}

.login-menu {
  position: relative;
  margin-left: 18px;
  align-self: center;
  font-size: 15px;
}

.login-button {
  min-height: 40px;
  padding: 0 18px;
  border: 1.5px solid rgba(26, 26, 26, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--ink);
  font: 600 15px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
}

.login-button:hover {
  border-color: var(--ink);
}

.login-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  display: grid;
  min-width: 10rem;
  padding: 6px;
  border: 1px solid var(--separator);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 30px var(--shadow);
}

.login-panel[hidden] {
  display: none;
}

.login-panel a {
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.login-panel a:hover {
  background: var(--quote-bg);
}

.who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 18px;
  font-size: 15px;
  font-weight: 600;
}

.who,
.site-header .site-nav {
  white-space: nowrap;
}

.who img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.app-card {
  max-width: 26rem;
  margin: 0 auto;
}

.app-card h1 {
  margin-bottom: 20px;
}

.app-form {
  display: grid;
  gap: 16px;
  margin: 20px 0;
}

.app-form[hidden],
.app-card [hidden] {
  display: none;
}

.app-field {
  display: grid;
  gap: 6px;
}

.app-field label {
  font-weight: 600;
  font-size: 15px;
}

.app-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border: 1.5px solid rgba(26, 26, 26, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--ink);
  font: 400 17px var(--font);
}

.app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ember-deep);
  color: var(--on-primary);
  font: 600 17px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
}

.app-button:hover {
  background: #9d3d10;
}

.app-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.app-button-quiet {
  background: transparent;
  color: var(--link);
  box-shadow: none;
}

.app-button-quiet:hover {
  background: transparent;
  text-decoration: underline;
}

.app-message {
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1.5px solid var(--ember);
  border-radius: 12px;
}

.app-links {
  margin: 12px 0;
  font-size: 15px;
}

.app-note,
.app-lede {
  color: var(--text-secondary);
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Apple's button: black, a white mark, "Sign in with Apple". */
.apple-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font: 600 17px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;
  text-decoration: none;
}

/* Apple's logo image brings its own padding, so no gap; it hangs left of the text. */
.apple-mark {
  display: block;
  flex: 0 0 auto;
  margin-left: -8px;
}

.apple-button:focus-visible {
  outline-offset: 3px;
}

.wait-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.spinner {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid var(--separator);
  border-top-color: var(--text-tertiary);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
  }
}

@media (max-width: 520px) {
  .site-header .wrap {
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
  }

  .login-menu {
    margin-left: 10px;
  }

  .login-button {
    min-height: 36px;
    padding: 0 14px;
  }

  /* Signed in, the name, photo and Log out take the room the site links had
   * (they are in the footer too). Found by the browser walk at 390 wide. */
  .signed-in .site-header .site-nav {
    display: none;
  }

  .who {
    min-width: 0;
    margin-left: auto;
  }

  /* A long first name gives way before Log out does. */
  .who > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 360px) {
  .site-header .wordmark {
    font-size: 20px;
  }

  .site-header .site-nav {
    font-size: 14px;
  }

  .site-header .site-nav a {
    margin-left: 8px;
  }

  .login-menu {
    margin-left: 8px;
  }

  .login-button {
    padding: 0 12px;
    font-size: 14px;
  }
}

/* ---- the member pages: /events, /event, /my-events ---- */

.member-nav {
  display: flex;
  gap: 22px;
  max-width: 44rem;
  margin: -12px auto 20px;
  border-bottom: 1px solid var(--separator);
}

.member-nav a {
  padding: 8px 0 10px;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
}

.member-nav a:hover {
  color: var(--ink);
}

.member-nav a[aria-current="page"] {
  border-bottom-color: var(--ember-deep);
  color: var(--ink);
}

.app-page {
  max-width: 44rem;
  margin: 0 auto;
}

.app-page [hidden] {
  display: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid rgba(26, 26, 26, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.chip[aria-current="true"] {
  border-color: var(--ember-deep);
  background: var(--ember-deep);
  color: var(--on-primary);
}

.event-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 2px 14px var(--shadow);
  color: var(--ink);
  text-decoration: none;
}

.event-card-photo {
  width: 112px;
  height: 112px;
  border-radius: 12px;
  object-fit: cover;
}

.event-card-body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.event-card-title {
  font-weight: 700;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.event-card-line {
  color: var(--text-secondary);
  font-size: 15px;
}

/* The sundown print, for an event with no photo of its own. */
.event-art {
  background:
    radial-gradient(circle at 50% 78%, var(--ember) 0 22%, transparent 23%),
    linear-gradient(180deg, var(--slate) 0%, #e8a574 62%, var(--paper) 100%);
}

.event-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  object-fit: cover;
  margin-bottom: 20px;
}

.event-title {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.event-when,
.event-where,
.event-host {
  margin: 2px 0;
  color: var(--text-secondary);
}

.event-when {
  color: var(--ink);
  font-weight: 600;
}

.event-fact-label {
  font-weight: 600;
}

.event-address,
.event-fact {
  margin: 8px 0;
  overflow-wrap: anywhere;
}

.event-actions,
.event-invite {
  display: grid;
  gap: 12px;
  justify-items: start;
  margin: 24px 0 0;
}

.event-caption {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.event-status {
  margin: 0;
  font-weight: 700;
}

.event-link-line {
  margin: 0;
  overflow-wrap: anywhere;
}

.event-quiet {
  margin-top: 32px;
  font-size: 15px;
}

.event-group h2 {
  margin: 28px 0 12px;
}

@media (max-width: 480px) {
  .event-card {
    grid-template-columns: 88px 1fr;
    gap: 12px;
  }

  .event-card-photo {
    width: 88px;
    height: 88px;
  }

  .event-actions .app-button {
    width: 100%;
  }
}

/* ---- the host pages: /host, /host/event, /host/event/edit, /host/settings ---- */

.host-form {
  margin-top: 8px;
}

.app-field textarea {
  width: 100%;
  padding: 14px 20px;
  border: 1.5px solid rgba(26, 26, 26, 0.18);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.92);
  color: var(--ink);
  font: 400 17px/1.4 var(--font);
  resize: vertical;
}

.app-field input[type="checkbox"],
.app-field input[type="radio"] {
  width: 22px;
  min-height: 22px;
  padding: 0;
  accent-color: var(--ember-deep);
}

.host-kinds {
  margin: 0;
  padding: 0;
  border: 0;
}

.host-kinds legend,
.host-label {
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 15px;
}

.host-choice,
.host-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.host-note {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.host-error {
  color: var(--ember-deep);
}

.host-photo {
  display: block;
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 4 / 3;
  margin: 12px 0;
  border-radius: 16px;
  object-fit: cover;
}

.host-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.host-file {
  position: relative;
  cursor: pointer;
}

.host-file input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.host-card {
  margin: 24px 0;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
}

.host-card h2 {
  margin: 0 0 8px;
}

.host-list {
  display: grid;
  gap: 14px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.host-guests li,
.host-session {
  display: flex;
  align-items: center;
  gap: 12px;
}

.host-session {
  justify-content: space-between;
}

.host-session-body {
  display: grid;
  gap: 2px;
}

.host-face {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.host-face-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ember-deep);
  color: var(--on-primary);
  font-weight: 600;
}

.host-announcement {
  margin: 0;
  white-space: pre-line;
}

.event-description {
  white-space: pre-line;
}

.host-confirm {
  margin: 24px 0;
  padding: 16px;
  border: 1.5px solid var(--ember);
  border-radius: 16px;
}

.host-confirm-title {
  margin: 0 0 6px;
  font-weight: 600;
}

.host-cancel {
  margin: 24px 0;
}
