/* Velvet Almanac — Settings. Tokens are the Tarot room's (_tarot-room/room.css), the type the
   house families (Cormorant Garamond for the heading, Inter for the words, IBM Plex Mono for the
   small labels, all self-hosted). One column, phone first; every control at least 44px tall.
   Only opacity and colour move, and not at all under reduced motion. */
:root {
  color-scheme: dark;
  --ink: #0a1018;
  --ink-soft: #111c29;
  --ink-raised: #172433;
  --ivory: #eee9da;
  --body: #c0c8c8;
  --muted: #87969a;
  --gold: #c4ab78;
  --gold-dim: #947f59;
  --gold-lit: #f0d69d;
  --hair: rgba(194, 180, 147, .24);
  --out: #d69b8a;
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --t-fast: 180ms;
}
* { box-sizing: border-box; }
html { background: var(--ink); }
body.va-settings { margin: 0; background: var(--ink); color: var(--body); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
.skip { position: absolute; left: 16px; top: 0; transform: translateY(-150%); background: var(--gold); color: #111; padding: 8px 12px; font: 500 13px var(--sans); z-index: 99; }
.skip:focus { transform: none; top: 8px; }
a { color: var(--ivory); text-decoration: underline; text-decoration-color: var(--gold-dim); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--gold); }
:is(a, button, input, summary):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 1px; }

.st { width: min(680px, 100% - 32px); margin: 0 auto; padding: 28px 0 72px; }
.st:focus { outline: none; }
.st-head { padding: 8px 0 24px; border-bottom: 1px solid var(--hair); }
.st-eyebrow { margin: 0 0 14px; color: var(--gold); font-family: var(--mono); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; }
.st-title { margin: 0; color: #f4eddf; font-family: var(--display); font-weight: 500; font-size: clamp(44px, 9vw, 64px); line-height: .98; letter-spacing: -.03em; }
.st-lede { max-width: 48ch; margin: 18px 0 0; color: var(--body); font-size: 17px; line-height: 1.6; }
.st-jump { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 18px; }
.st-jump a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid transparent; transition: color var(--t-fast) ease; }
.st-jump a:hover { color: var(--ivory); border-bottom-color: var(--gold-dim); }

.st-notice { margin: 18px 0 0; padding: 12px 16px; border-left: 2px solid var(--gold); background: rgba(196, 171, 120, .07); color: var(--ivory); }

.st-sec { padding: 30px 0 26px; border-bottom: 1px solid var(--hair); scroll-margin-top: 24px; }
.st-sec:last-child { border-bottom: 0; }
.st-h { margin: 0 0 14px; color: var(--ivory); font-family: var(--display); font-weight: 500; font-size: clamp(30px, 6vw, 38px); line-height: 1.1; }
.st-p { max-width: 60ch; margin: 0 0 12px; }
.st-p:last-child { margin-bottom: 0; }
.st-ink { color: var(--ivory); font-weight: 500; }
.st-muted { color: var(--muted); }
.spam-line { display: block; margin-top: 4px; font-size: 13px; }
.st-small { font-size: 13px; line-height: 1.5; }
.st-addr { color: var(--ivory); font-family: var(--mono); font-size: 14px; letter-spacing: .02em; user-select: all; }
.st-always { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--hair); }

.st-form { margin: 0; }
.st-label { display: block; margin: 0 0 6px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.st-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; }
.st-input {
  flex: 1 1 220px; min-height: 47px; padding: 10px 14px;
  border: 1px solid rgba(205, 190, 158, .38); background: rgba(12, 20, 30, .5); color: var(--ivory);
  font: 400 17px/1.4 var(--sans); border-radius: 0;
}
.st-input:focus { border-color: var(--gold); }
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 47px; padding: 11px 18px; border: 1px solid rgba(201, 176, 128, .55); border-radius: 0; background: rgba(12, 20, 30, .4);
  color: var(--ivory); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease, color var(--t-fast) ease;
}
.st-btn:hover:not(:disabled) { border-color: var(--gold); background: rgba(196, 171, 120, .08); }
.st-btn:disabled { color: var(--muted); border-color: var(--hair); cursor: not-allowed; }
.st-btn--primary { background: var(--gold); border-color: var(--gold); color: #141516; font-weight: 500; }
.st-btn--primary:hover:not(:disabled) { background: var(--gold-lit); border-color: var(--gold-lit); }
.st-btn--danger { color: var(--out); border-color: rgba(214, 155, 138, .5); }
.st-btn--danger:hover:not(:disabled) { border-color: var(--out); background: rgba(214, 155, 138, .08); }
.st-btn[aria-busy="true"] { opacity: .6; cursor: progress; }
/* 12 Oct 2026: Sign in with Google, the secondary button above the email form; the G keeps Google's colours */
.st-google { margin: 14px 0 0; }
.st-btn--google { text-transform: none; letter-spacing: .04em; font-size: 13px; }
.st-btn--google .g-mark { flex: none; width: 18px; height: 18px; }
.st-or { display: flex; align-items: center; gap: 12px; max-width: 60ch; margin: 16px 0 6px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.st-or::before, .st-or::after { content: ""; flex: 1 1 0; height: 1px; background: var(--hair); }

.st-check, .st-radio { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 6px 0; max-width: 60ch; cursor: pointer; }
.st-check input, .st-radio input { flex: none; width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--gold); cursor: pointer; }
.st-check input:disabled + span { color: var(--muted); }
.st-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.st-fieldset legend { padding: 0; margin-bottom: 4px; }

.st-delete { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--hair); }
.st-confirm { margin-top: 14px; padding: 16px 18px; border-left: 2px solid var(--out); background: rgba(214, 155, 138, .05); }

.st-device { list-style: none; margin: 0; padding: 0; }
.st-device li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 18px; padding: 12px 0; border-top: 1px solid var(--hair); }
.st-device li:last-child { border-bottom: 1px solid var(--hair); }
.st-device .st-room { flex: 1 1 260px; min-width: 0; }
.st-device .st-room b { display: block; color: var(--ivory); font-weight: 500; }
.st-device .st-room span { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }
.st-device .st-btn { flex: none; min-height: 44px; padding: 8px 14px; }
.st-device li[data-empty] .st-room span { color: var(--gold-dim); }

.st-links { list-style: none; margin: 0; padding: 0; }
.st-links li { display: flex; align-items: center; gap: 0 6px; min-height: 44px; }
.st-links a { display: inline-flex; align-items: center; min-height: 44px; }

@media (min-width: 900px) {
  .st { width: min(760px, 100% - 64px); padding-top: 40px; }
  .st-sec { padding: 36px 0 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-btn, .st-jump a { transition: none; }
}
@media (forced-colors: active) {
  .st-btn, .st-input { border-color: CanvasText; }
  .st-btn--primary { forced-color-adjust: none; background: Highlight; color: HighlightText; }
}
