/* Tokens copied from website/style.css so this subdomain page stays self-contained. */

@font-face {
  font-family: Figtree;
  src: url(fonts/figtree-var.woff2) format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #14201c;
  --ink-2: #1c2d27;
  --paper: #f6f2ea;
  --paper-2: #fbf8f2;
  --white: #fff;
  --text: #1b2421;
  --muted: #5b6560;
  --line: #e2dccf;
  --gold: #c4623d;
  --gold-hi: #b0522f;
  --gold-text: #a9502f;
  --sage: #6f8f84;
  --hair: rgba(20, 32, 28, .12);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --sans: Figtree, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  height: 100%;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  margin: 0;
  height: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(196, 98, 61, .28); }
:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; }
[hidden] { display: none !important; }
button, textarea { font-family: inherit; }

.scroll {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.sheet {
  max-width: 520px;
  margin: 0 auto;
  min-width: 0;
  padding:
    max(36px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    28px
    max(20px, env(safe-area-inset-left));
}

.brand {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  margin: 0 0 14px;
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: 1.08;
  color: var(--ink);
}
.lede {
  margin: 0 0 44px;
  max-width: 34em;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
}

.q { margin: 0 0 36px; min-width: 0; }
.q-label {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--muted);
}
.q-hint { font-weight: 400; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.chip {
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: inset 0 0 0 1px rgba(20, 32, 28, .08);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: break-word;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .2s var(--ease);
}
.chip:active { opacity: .72; }
.chip[aria-pressed="true"] {
  background: var(--ink);
  box-shadow: none;
  color: var(--paper);
}

.draft-card {
  margin-top: 8px;
  padding: 8px 18px 6px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(20, 32, 28, .04);
  transition: opacity .28s var(--ease);
}
.draft-card.is-fading { opacity: .4; }

.tabs { display: flex; gap: 2px; min-width: 0; }
.tab {
  flex: 1 1 0;
  min-width: 0;
  min-height: 48px;
  padding: 8px 6px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tab[aria-selected="true"] {
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--gold);
}

#draft {
  display: block;
  width: 100%;
  min-height: 140px;
  margin: 6px 0 0;
  padding: 8px 0 4px;
  border: 0;
  resize: none;
  overflow: hidden;
  background: transparent;
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}
#draft::placeholder { color: var(--muted); opacity: 1; }
#draft:focus { outline: none; }
#draft:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }

.draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
  min-width: 0;
}
.quiet {
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(20, 32, 28, .28);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.quiet:disabled { opacity: .35; cursor: not-allowed; }
#update { color: var(--gold-text); text-decoration-color: rgba(169, 80, 47, .45); }

.stars {
  margin: 22px 2px 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

.hint { margin-top: 0; font-size: 15px; line-height: 1.45; color: var(--text); }
.hint p { margin: 0; }
#hint-text:empty { display: none; }
.hint-link { margin-top: 8px !important; }
.hint a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold-text);
  font-weight: 600;
  text-underline-offset: 3px;
}

.dock {
  position: sticky;
  bottom: 0;
  z-index: 2;
  flex: none;
  background: var(--paper);
  border-top: 1px solid rgba(20, 32, 28, .06);
  padding:
    10px
    max(20px, env(safe-area-inset-right))
    calc(10px + env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}
.dock-inner { max-width: 520px; margin: 0 auto; min-width: 0; }
.go {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.go:disabled { opacity: .32; cursor: not-allowed; }
.go:not(:disabled):active { opacity: .86; }

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

@media (max-width: 359px) {
  h1 { font-size: 34px; }
  .sheet {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .draft-card.is-fading { opacity: 1; }
}
