:root {
  color-scheme: light;
  --bg-top: #2c241c;
  --bg-bottom: #6b5344;
  --paper: #f4f2eb;
  --ink: #1a1a1a;
  --muted: rgba(244, 242, 235, 0.82);
  --accent: #a8ddd2;
  --accent-ink: #14352f;
  --line: rgba(244, 242, 235, 0.22);
  --soft: rgba(0, 0, 0, 0.28);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(ellipse 120% 80% at 50% -10%, rgba(168, 221, 210, 0.22), transparent 55%),
    linear-gradient(165deg, var(--bg-top), var(--bg-bottom));
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 24px 40px;
}

.shell {
  width: min(420px, 100%);
  margin: 0 auto;
}

.brand {
  margin: 0 0 28px;
  font-size: clamp(2.4rem, 9vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.headline {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 5.5vw, 1.9rem);
  line-height: 1.2;
  font-weight: 650;
}

.support {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.actions {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 16px 18px;
  text-align: center;
  text-decoration: none;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary[aria-disabled="true"],
.button-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.button-secondary {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line);
}

.instruction {
  margin: 0 0 28px;
  padding: 16px 16px 16px 18px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  border-radius: 0 12px 12px 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--paper);
}

.open-fallback {
  margin: 0;
  text-align: center;
}

.open-fallback a {
  color: rgba(244, 242, 235, 0.78);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hint {
  margin: 14px 0 0;
  min-height: 1.3em;
  text-align: center;
  color: rgba(240, 201, 168, 0.95);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
}

.footer {
  margin-top: 36px;
  color: rgba(244, 242, 235, 0.55);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  line-height: 1.4;
}

.home-note {
  margin-top: 18px;
  color: var(--muted);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
}
