/* ==========================================================================
   Eden Tools — extra styles for the simple site pages
   (about, contact, privacy, terms, 404). Loaded only by those pages through
   their front matter: "styles": ["/assets/css/pages.css"].
   Builds on site.css: uses its tokens and components.
   ========================================================================== */

/* ---------- Page top: title + lead with a soft glow, like the home hero ---------- */
.page-top { position: relative; isolation: isolate; overflow-x: clip; } /* the glow must never widen the page on phones */
.page-top::before {
  content: ""; position: absolute; inset: -64px 0 -24px; z-index: -2; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 12%, transparent) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 90% at 20% 20%, #000 10%, transparent 70%);
  mask-image: radial-gradient(60% 90% at 20% 20%, #000 10%, transparent 70%);
}
.page-top::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: max(-120px, -10vw); top: -140px; width: min(760px, 100%); height: 380px;
  background: radial-gradient(closest-side, rgb(124 58 237 / .13), rgb(79 70 229 / .08) 50%, transparent 75%);
  filter: blur(8px);
}
.page-top-center::before { -webkit-mask-image: radial-gradient(60% 70% at 50% 25%, #000 10%, transparent 70%); mask-image: radial-gradient(60% 70% at 50% 25%, #000 10%, transparent 70%); }
.page-top-center::after { left: 50%; transform: translateX(-50%); }
:root[data-theme="dark"] .page-top::after { background: radial-gradient(closest-side, rgb(129 140 248 / .18), rgb(167 139 250 / .08) 50%, transparent 75%); }
.page-head { padding: clamp(2rem, 1.4rem + 3vw, 3.5rem) 0 clamp(1.25rem, 1rem + 1vw, 2rem); animation: rise .5s var(--ease) both; }
.page-head h1 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem); }
.page-head p { font-size: clamp(1.02rem, .98rem + .25vw, 1.15rem); }
.page-head .page-date { margin-top: .75rem; font-size: .88rem; color: var(--text-faint); }

/* ---------- Reading column ---------- */
.prose { animation: rise .5s .06s var(--ease) both; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2.4rem; margin-bottom: .6rem; letter-spacing: -.025em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2 + p, .prose h2 + ul { margin-top: 0; }
.prose p, .prose li { color: var(--text-soft); }
.prose strong { color: var(--text); }
.prose ul li::marker, .prose ol li::marker { color: var(--primary); }
.prose a { font-weight: 550; }
.prose .panel { margin: 1.25rem 0; }

/* "The short version" box on the legal pages */
.summary { background: var(--primary-softer); border: 1px solid color-mix(in srgb, var(--primary) 16%, var(--border)); border-radius: var(--radius-lg); padding: 1.15rem 1.25rem; margin: 0 0 1.5rem; }
.summary h2 { margin: 0 0 .6rem !important; font-size: 1.05rem; }
.summary ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.summary li { display: flex; gap: .65rem; align-items: flex-start; margin: 0; color: var(--text); }
.summary li .icon { color: var(--primary); margin-top: .2em; width: 1.1em; height: 1.1em; }

/* Table of contents on the legal pages */
.toc { margin: 0 0 .5rem; }
.toc ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .15rem 1.25rem; margin: 0; padding-left: 1.3rem; }
.toc li { margin: 0; padding: .2rem 0; font-size: .95rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ---------- About ---------- */
.about-tools { padding: .6rem; }
.about-tools ul { padding-left: 0; }
.about-tools li { margin: 0; }
.about-tools .menu-group a { min-height: 48px; color: var(--text); }
@media (hover: hover) { .about-tools .menu-group a:hover { color: var(--text); } }
.about-family { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }
.about-family p { margin: 0; flex: 1 1 280px; }
.about-family .btn { flex: none; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; margin: 0 0 2.5rem; }
.contact-card { display: flex; flex-direction: column; gap: .65rem; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms + 80ms); }
.contact-card h2 { font-size: 1.12rem; margin: .35rem 0 0; }
.contact-card p { margin: 0; color: var(--text-soft); font-size: .93rem; flex: 1 1 auto; }
.contact-card .btn { margin-top: .5rem; }
.contact-email { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; }
.contact-email p { margin: 0; }
.contact-email .mono-ish { font-weight: 650; color: var(--text); font-size: 1.05rem; word-break: break-all; }
.checklist { list-style: none; padding: 0 !important; display: flex; flex-direction: column; gap: .6rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; margin: 0 !important; }
.checklist .num { display: inline-grid; place-items: center; flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: .82rem; font-weight: 700; margin-top: .05em; }

/* ---------- 404 ---------- */
.not-found { padding: clamp(2.5rem, 1.5rem + 5vw, 5rem) 0 clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.not-found .big { animation: pop .6s var(--ease-spring) both; }
.not-found h1 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem); animation: rise .5s .08s var(--ease) both; }
.nf-lead { color: var(--text-soft); font-size: 1.05rem; max-width: 46ch; margin: 0 auto 1.75rem; animation: rise .5s .12s var(--ease) both; }
.nf-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; animation: rise .5s .16s var(--ease) both; }
.nf-tools-title { margin: 3rem 0 1rem; font-size: 1.1rem; color: var(--text); }
.nf-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: .6rem; max-width: 980px; margin: 0 auto; text-align: left; }
.nf-tools .btn { justify-content: flex-start; min-height: 58px; padding: .5rem .85rem .5rem .6rem; gap: .75rem; font-size: .95rem; animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 30ms + 200ms); }
@media (hover: hover) {
  .nf-tools .btn:hover { --btn-border: var(--tool-ring); }
  .nf-tools .btn:hover .tool-icon { transform: rotate(-6deg) scale(1.07); }
}
@media (max-width: 640px) {
  .nf-actions .btn { flex: 1 1 100%; }
  .nf-tools-title { margin-top: 2.25rem; }
  .nf-tools .btn { min-height: 54px; }
  .about-family .btn { width: 100%; }
  .contact-email .btn { width: 100%; }
}
