/* Ideals: site-own layer on top of base.css. Light glass, serif quotations, light and dark. */

:root {
  --accent-ink: #34418a;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-line: rgba(17, 24, 39, 0.07);
  --quote: #1f2937;
  --wash-a: #e9ecfb;
  --wash-b: #f3eefb;
  --wash-c: #eaf5f3;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --white: #161922; --ivory: #0e1016; --bg: #0e1016; --bg-soft: #12141b; --bg-band: #12141b;
    --gray-50: #171a23; --gray-100: #1b1e28; --gray-150: #232733; --gray-200: #2b2f3c; --gray-300: #3a3f4d;
    --gray-400: #8b90a0; --gray-500: #a3a8b6; --gray-600: #b9bdc9; --gray-700: #cfd2db; --gray-800: #e3e5eb; --gray-900: #f1f2f5;
    --ink: #f4f5f8;
    --accent: #8f9cf0; --accent-ink: #b4bdf6;
    --accent-soft: color-mix(in srgb, var(--accent) 22%, #0e1016);
    --accent-line: color-mix(in srgb, var(--accent) 45%, #0e1016);
    --accent-wash: color-mix(in srgb, var(--accent) 10%, #0e1016);
    --glass: rgba(26, 29, 40, 0.55); --glass-line: rgba(255, 255, 255, 0.08);
    --quote: #eef0f5;
    --wash-a: #1a1e33; --wash-b: #221a30; --wash-c: #132624;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.4); --shadow-md: 0 6px 20px rgba(0,0,0,.35); --shadow-lg: 0 16px 40px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}

body { background: var(--ivory); }

/* Soft, still colour behind everything. No motion. */
.wash { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 12% 8%, var(--wash-a), transparent 70%),
    radial-gradient(38vw 38vw at 92% 22%, var(--wash-b), transparent 70%),
    radial-gradient(44vw 44vw at 60% 100%, var(--wash-c), transparent 70%),
    var(--ivory); }

.site-header { background: color-mix(in srgb, var(--ivory) 70%, transparent); border-bottom-color: var(--glass-line); }
.brand .mark.logo { width: 28px; height: 28px; border-radius: 50%; background: none; box-shadow: none; }
.nav-cta { background: var(--ink); color: var(--ivory) !important; }
/* Dark buttons stay readable when the theme flips (base.css hard-codes white text). */
.btn-primary, .btn-primary:hover { color: var(--ivory); }

.ic { width: 22px; height: 22px; display: inline-block; flex-shrink: 0; }

/* Hero */
.hero { padding: clamp(80px, 14vw, 160px) 0 clamp(48px, 8vw, 96px); }
.hero::after { display: none; }
.hero h1 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.025em; font-size: clamp(2.5rem, 6.4vw, 4.6rem); line-height: 1.05; }
.hero-logo { display: block; width: 160px; height: 160px; margin: 0 0 28px; border-radius: 50%; box-shadow: 0 12px 40px rgba(0, 140, 150, .25); }
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.hero .lede { color: var(--gray-500); }

/* Index of ideals */
.ideal-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ideal-link { display: flex; align-items: center; gap: 14px; padding: 18px 20px; text-decoration: none;
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--shadow-xs); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.ideal-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ideal-link .n { font-size: .74rem; font-weight: 600; color: var(--gray-400); font-variant-numeric: tabular-nums; width: 18px; }
.ideal-link .ic { color: var(--accent-ink); width: 40px; height: 40px; }
.ideal-link b { color: var(--ink); font-weight: 600; font-size: .98rem; }
.ideal-link .arr { margin-left: auto; width: 16px; height: 16px; color: var(--gray-400); }

/* One ideal */
.ideal { padding: clamp(56px, 9vw, 112px) 0; scroll-margin-top: 64px; }
.ideal + .ideal { border-top: 1px solid var(--glass-line); }
.ideal .head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.ideal .badge { width: 96px; height: 96px; border-radius: 24px; display: grid; place-items: center;
  background: var(--glass); border: 1px solid var(--glass-line); color: var(--accent-ink);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.ideal .badge .ic { width: 68px; height: 68px; }
.ideal h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.4vw, 2.9rem); letter-spacing: -0.02em; }
.ideal .what { font-size: clamp(1.06rem, 2vw, 1.22rem); line-height: 1.65; color: var(--gray-600); max-width: 620px; }
.ideal .what + .what { margin-top: 12px; }

figure.saying { margin: clamp(28px, 4vw, 40px) 0; padding: clamp(24px, 4vw, 36px) clamp(22px, 4vw, 40px);
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius-xl);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: var(--shadow-sm); }
figure.saying blockquote { font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.45;
  color: var(--quote); font-weight: 400; letter-spacing: -0.005em; }
figure.saying blockquote::before { content: "\201C"; display: block; font-size: 2.6em; line-height: .6; height: .42em;
  color: var(--accent-line); }
figure.saying figcaption { margin-top: 18px; font-size: .86rem; color: var(--gray-500); line-height: 1.5; }
figure.saying figcaption b { color: var(--gray-700); font-weight: 600; }
figure.saying figcaption cite { font-style: italic; }

.asks { display: flex; gap: 12px; align-items: flex-start; max-width: 620px; }
.asks .label { flex-shrink: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700;
  color: var(--accent-ink); padding-top: 5px; }
.asks p { font-size: 1.08rem; color: var(--ink); font-weight: 500; line-height: 1.55; }

.viewswap { margin-top: 18px; padding-left: 18px; border-left: 2px solid var(--accent-line); max-width: 560px; }
.viewswap p { font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: var(--gray-700); line-height: 1.5; }
.viewswap span { display: block; margin-top: 6px; font-size: .8rem; font-family: var(--font); font-style: normal; color: var(--gray-400); }

/* Share one ideal: added by the script in index.html, so it never shows without JS. */
.share-ideal { margin-top: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--glass-line); background: transparent; color: var(--gray-500); font: inherit; font-size: .86rem; cursor: pointer; }
.share-ideal:hover, .share-ideal:focus-visible { color: var(--accent-ink); border-color: var(--accent-line); }
.share-ideal .ic { width: 16px; height: 16px; }

/* Seeing straight, disagreement, parents, refused treatment */
.hero .why { margin-top: 18px; font-size: 1.02rem; line-height: 1.6; color: var(--gray-600); max-width: 620px; }
.hero .why a { color: var(--accent-ink); }
.guide { padding: clamp(56px, 9vw, 112px) 0; border-top: 1px solid var(--glass-line); scroll-margin-top: 64px; }
.guide h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.4vw, 2.9rem); letter-spacing: -0.02em; }
.guide .what { font-size: clamp(1.06rem, 2vw, 1.22rem); line-height: 1.65; color: var(--gray-600); max-width: 620px; }
.guide h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.3rem, 2.8vw, 1.6rem); margin-bottom: 10px; color: var(--ink); }
.guide .source, .guide .note { margin-top: 14px; font-size: .86rem; color: var(--gray-500); line-height: 1.5; }
.guide .source a { color: inherit; }
.lesson { margin-top: clamp(36px, 5vw, 56px); }
.lesson .asks { margin-top: 22px; }
.cards { display: grid; gap: 16px; margin-top: clamp(36px, 5vw, 56px); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { padding: 24px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.card > p:first-of-type { color: var(--gray-600); line-height: 1.6; }
.card .asks { margin-top: auto; padding-top: 16px; }
.card .asks p { font-size: 1rem; }
.gorilla, .gorilla-frame { display: grid; place-items: center; align-content: center; gap: 12px; width: 100%; aspect-ratio: 16 / 9; margin-top: 18px;
  border-radius: var(--radius-xl); border: 0; background: #070807; color: #7fe3e8; text-decoration: none; box-shadow: var(--shadow-sm); }
.gorilla .play { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #7fe3e8; transition: transform .2s; }
.gorilla:hover .play, .gorilla:focus-visible .play { transform: scale(1.08); }
.gorilla .cap { font-size: .95rem; color: #e8f9fa; }
.reveal-answer { margin-top: 16px; max-width: 620px; }
.reveal-answer summary { cursor: pointer; color: var(--accent-ink); font-weight: 600; }
.reveal-answer p { margin-top: 10px; color: var(--gray-600); line-height: 1.6; }
.steps, .tips { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 660px; }
.steps { counter-reset: step; }
.steps li, .tips li { position: relative; padding: 16px 18px 16px 56px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius-lg, 16px); line-height: 1.6; color: var(--gray-600); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 16px; top: 15px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--accent-ink); border: 1px solid var(--accent-line); }
.tips li::before { content: ""; position: absolute; left: 24px; top: 25px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); }
.steps b, .tips b { color: var(--ink); font-weight: 600; }

/* Close */
.close { text-align: center; padding: clamp(72px, 11vw, 140px) 0; }
.close h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: -0.02em; }
.close p { max-width: 540px; margin: 16px auto 0; font-size: 1.08rem; color: var(--gray-500); }

.site-footer { background: transparent; border-top-color: var(--glass-line); padding: 36px 0 28px; }
.footer-bottom { border-top: 0; padding-top: 0; }

/* The menu: one button at every width, opening a drawer from the right. */
.menu-btn, .drawer-close { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; padding: 0; background: none; border: 0; border-radius: 12px; color: var(--ink); cursor: pointer; }
.menu-btn:hover, .drawer-close:hover { background: var(--glass-line); }
.menu-btn .ic, .drawer-close .ic { width: 24px; height: 24px; }
.drawer { margin: 0 0 0 auto; padding: 0; width: min(360px, 88vw); height: 100dvh; max-height: none; border: 0; border-left: 1px solid var(--glass-line); background: var(--ivory); color: var(--ink); box-shadow: var(--shadow-lg); }
.drawer::backdrop { background: rgba(10, 12, 20, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.drawer[open] { animation: drawer-in .26s var(--ease); }
@keyframes drawer-in { from { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .drawer[open] { animation: none; } }
body:has(.drawer[open]) { overflow: hidden; }
.drawer-in { padding: 0 12px 32px; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: 62px; padding: 0 12px; }
.drawer-label { margin: 22px 12px 6px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-400); }
.drawer-nav a { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 8px 12px; border-radius: 12px; color: var(--gray-700); font-size: 1rem; font-weight: 500; text-decoration: none; }
.drawer-nav a:hover, .drawer-nav a:focus-visible { background: var(--glass-line); color: var(--ink); }
.drawer-nav a.active { background: var(--accent-wash); color: var(--accent-ink); font-weight: 600; }
.drawer-nav .ic { flex-shrink: 0; width: 26px; height: 26px; color: var(--accent-ink); }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .asks { flex-direction: column; gap: 6px; }
  .asks .label { padding-top: 0; }
}

/* Seven links: the odd one out spans the row on wide screens. */
@media (min-width: 640px) { .ideal-link:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 380px) { .brand .muted { display: none; } }
