/* Hestia public site: one stylesheet, no build step, no framework.
   Palette lifted by hand from design/hestia-design-system/tokens/colors.css
   (docs/DESIGN-LOCK.md section 1: tokens/type per the design system readme).
   Same subset backend/src/api/legal-page.js already uses for the API-served
   legal and delete-account pages, so the two surfaces read as one product. */

:root {
  color-scheme: light dark;
  --bg: oklch(98.3% .005 95);
  --surface: oklch(99.6% .002 95);
  --ink: oklch(24% .02 160);
  --ink-2: oklch(46% .018 155);
  --line: oklch(92.5% .01 110);
  --accent: oklch(53% .15 45);
  --danger: oklch(56% .19 27);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: oklch(16.5% .014 165);
    --surface: oklch(21% .016 165);
    --ink: oklch(95.5% .008 110);
    --ink-2: oklch(74% .02 140);
    --line: oklch(29% .02 160);
    --accent: oklch(80% .14 62);
    --danger: oklch(70% .17 25);
  }
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 "Schibsted Grotesk", "Noto Sans Devanagari", ui-sans-serif, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.brand {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0;
}

h1 {
  font-size: 1.875rem;
  line-height: 1.2;
  margin: 1rem 0 .5rem;
  font-weight: 600;
}

h2 {
  font-size: 1.375rem;
  line-height: 1.3;
  margin: 2rem 0 .75rem;
}

main :first-child {
  margin-top: 0;
}

p,
li {
  color: var(--ink);
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.0625rem;
  color: var(--ink-2);
}

a {
  color: var(--accent);
}

a:focus-visible,
[href]:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* The landing page's four links, each a full-width, thumb-sized row. */
.links {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
  overflow: hidden;
}

.links li {
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.links li:last-child {
  border-bottom: 0;
}

.links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .875rem 1rem;
  text-decoration: none;
  font-weight: 600;
}

.links a:hover,
.links a:focus-visible {
  background: var(--surface);
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .8125rem;
  color: var(--ink-2);
}

/* ---- the deletion form ---- */

form {
  margin: 0;
}

fieldset {
  border: 0;
  margin: 0 0 1.5rem;
  padding: 0;
}

legend {
  font-weight: 600;
  margin: 0 0 .5rem;
  padding: 0;
  font-size: 1rem;
}

label {
  display: block;
  font-size: .9375rem;
  color: var(--ink-2);
  margin: 0 0 .375rem;
}

input,
select {
  width: 100%;
  padding: .625rem .75rem;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .5rem;
}

button {
  font: inherit;
  font-weight: 600;
  padding: .6875rem 1.25rem;
  border-radius: .5rem;
  min-height: 44px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  cursor: pointer;
}

button.ghost {
  background: none;
  color: var(--accent);
  border-color: var(--line);
  font-weight: 600;
}

button[disabled] {
  opacity: .55;
  cursor: not-allowed;
}

.row {
  display: flex;
  gap: .75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.row > div {
  flex: 1 1 14rem;
}

.clocks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: .75rem;
}

.clocks li {
  display: flex;
  justify-content: space-between;
  gap: .25rem 1rem;
  margin: 0;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.clocks li:last-child {
  border-bottom: 0;
}

.clocks .when {
  color: var(--ink-2);
}

.who {
  font-size: 1rem;
  color: var(--ink-2);
}

.hint {
  font-size: .9375rem;
  color: var(--ink-2);
  margin: 0 0 .75rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin: 0 0 1rem;
}

.cancel {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem .75rem;
  margin-left: -.75rem;
  color: var(--accent);
}

.notice {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: .75rem 1rem;
  margin: 0 0 1.5rem;
  color: var(--ink-2);
  font-size: .9375rem;
  border-radius: .25rem;
}

.notice.error {
  border-left-color: var(--danger);
}

.said {
  margin: 1.5rem 0 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: .5rem;
}

.said code {
  font-family: "Spline Sans Mono", ui-monospace, monospace;
}

.fallback {
  font-size: .9375rem;
  color: var(--ink-2);
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
