/* ============================================================
   Nook — Delete account page
   Warm, friendly, minimal. Subtle neo-brutalist: thick ink
   borders + hard offset shadows, rounded cards, lots of space.
   ============================================================ */

:root {
  --bg: #fff6e6; /* warm cream canvas */
  --surface: #fffdf8; /* near-white card */
  --ink: #16130f; /* text / border / shadow */
  --muted: #7a6b58; /* secondary text */
  --coral: #f2766a; /* primary / brand */
  --yellow: #ffc93c;
  --sage: #7ab59d;
  --line: #f1e7d2; /* subtle divider */

  --border: 2.5px solid var(--ink);
  --radius: 22px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-hover: 6px 6px 0 var(--ink);
  --shadow-press: 2px 2px 0 var(--ink);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* --- skip link --- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 20;
  padding: 10px 18px;
  background: var(--coral);
  color: var(--ink);
  border: var(--border);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-press);
  transition: top 0.16s var(--ease);
}
.skip-link:focus {
  top: 16px;
}

/* --- page shell --- */
.page {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 44px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.site-header {
  display: flex;
  justify-content: center;
}
.logo-mark {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

main {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* --- hero --- */
.hero {
  text-align: center;
  padding: 4px 2px 2px;
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.subtitle {
  margin: 0 auto;
  max-width: 44ch;
  color: var(--muted);
  font-size: 17px;
}

/* --- cards --- */
.card {
  background: var(--surface);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 24px;
}
.card h2 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
}

/* --- numbered steps --- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.steps li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 14px;
}
.steps li::before {
  content: counter(step);
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--coral);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* --- deletion checklist --- */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 13px;
}
.checklist li::before {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  background: var(--sage);
  border: 2px solid var(--ink);
  border-radius: 5px;
}

/* --- small note --- */
.note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 2px solid var(--line);
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- contact CTA button --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  min-height: 48px;
  padding: 13px 24px;
  background: var(--coral);
  color: var(--ink);
  border: var(--border);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-press);
}

/* --- links --- */
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--coral);
  text-decoration-thickness: 3px;
}
.button {
  text-decoration: none;
}

/* --- footer --- */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding-top: 6px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.footer-links a {
  font-size: 15px;
  font-weight: 500;
}
.copyright {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* --- shared focus ring --- */
a:focus-visible,
.button:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

/* --- larger screens --- */
@media (min-width: 560px) {
  .page {
    padding: 60px 24px 72px;
  }
  .card {
    padding: 30px 30px;
  }
}

/* --- micro-animations: subtle fade / rise on load --- */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-header,
main > *,
.site-footer {
  animation: rise-in 0.55s var(--ease) both;
}
.site-header {
  animation-delay: 0s;
}
main > *:nth-child(1) {
  animation-delay: 0.08s;
}
main > *:nth-child(2) {
  animation-delay: 0.16s;
}
main > *:nth-child(3) {
  animation-delay: 0.24s;
}
main > *:nth-child(4) {
  animation-delay: 0.32s;
}
.site-footer {
  animation-delay: 0.4s;
}

/* --- honor reduced-motion preferences --- */
@media (prefers-reduced-motion: reduce) {
  .site-header,
  main > *,
  .site-footer {
    animation: none;
  }
  .button {
    transition: none;
  }
  .button:hover,
  .button:focus-visible {
    transform: none;
  }
  .skip-link {
    transition: none;
  }
}
