:root {
  --void: #05060a;
  --abyss: #0a0c16;
  --panel: rgba(18, 22, 42, 0.88);
  --line: rgba(140, 160, 220, 0.18);
  --star: #f4f7ff;
  --muted: #8b93b0;
  --ink: #c5cddf;
  --gold: #f0b429;
  --gold-soft: rgba(240, 180, 41, 0.14);
  --ice: #7ed6f7;
  --coral: #ff6b7a;
  --max: 760px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--void);
  color: var(--star);
  font-family: "DM Sans", system-ui, sans-serif;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(240, 180, 41, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(126, 214, 247, 0.08), transparent 50%),
    linear-gradient(180deg, #0a0c16 0%, #05060a 100%);
}

a {
  color: var(--ice);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.top {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: -0.04em;
  text-shadow: 0 0 18px rgba(240, 180, 41, 0.35);
  text-decoration: none;
}

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.92rem;
  font-weight: 500;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
}

.top nav a.on,
.top nav a:hover {
  color: var(--gold);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 24px 64px;
}

.kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice);
}

h1 {
  margin: 0 0 8px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.meta {
  margin: 0 0 20px;
  color: var(--gold);
  font-weight: 500;
  font-size: 0.92rem;
}

.intro {
  margin: 0 0 28px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.65;
}

.card {
  margin: 0 0 16px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
}

.card h3 {
  margin: 16px 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ice);
}

.card p {
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.65;
  font-size: 0.98rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.card ul {
  margin: 0 0 10px;
  padding-left: 1.15rem;
  color: var(--ink);
  line-height: 1.65;
}

.card li {
  margin-bottom: 6px;
}

.card li::marker {
  color: var(--gold);
}

.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 28px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.tile:hover {
  border-color: rgba(240, 180, 41, 0.45);
  background: var(--gold-soft);
  text-decoration: none;
}

.tile strong {
  font-size: 1.05rem;
}

.tile span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.tile.danger:hover {
  border-color: rgba(255, 107, 122, 0.5);
  background: rgba(255, 107, 122, 0.1);
}

.foot {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.foot p {
  margin: 0 0 8px;
}

/* Delete account form (embedded in Privacy Policy) */
#delete-account .panel {
  margin-top: 14px;
}

.panel {
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(5, 6, 10, 0.45);
}

.panel .warn {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 107, 122, 0.35);
  background: rgba(255, 107, 122, 0.1);
  color: var(--ink);
  line-height: 1.55;
  font-size: 0.95rem;
}

label {
  display: block;
  margin: 14px 0 6px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 6, 10, 0.55);
  color: var(--star);
  font: inherit;
  font-size: 1rem;
}

input:focus {
  outline: 2px solid rgba(240, 180, 41, 0.45);
  outline-offset: 1px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
}

.check input {
  margin-top: 3px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--gold);
  color: var(--void);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
}

.btn-danger {
  background: rgba(255, 107, 122, 0.18);
  color: var(--coral);
  border: 1px solid rgba(255, 107, 122, 0.4);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(255, 107, 122, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--ice);
  border: 1px solid var(--line);
}

.status {
  margin-top: 16px;
  min-height: 1.4em;
  font-size: 0.95rem;
  line-height: 1.5;
}

.status.error {
  color: var(--coral);
}

.status.ok {
  color: #7ddea0;
}

.signed {
  margin-bottom: 12px;
  color: var(--ink);
}

@media (max-width: 640px) {
  .top {
    align-items: flex-start;
    flex-direction: column;
  }
}
