/* 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: 8px; background: none; box-shadow: none; }
.nav-cta { background: var(--ink); color: var(--ivory) !important; }

.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 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); }
.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: 46px; height: 46px; border-radius: 14px; 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: 24px; height: 24px; }
.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); }

/* 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; }

/* Phones: the seven ideals open from a menu button, in the same glass as the header. */
@media (max-width: 860px) {
  .nav { background: var(--ivory); border-bottom-color: var(--glass-line); }
  .nav a { font-size: 1rem; }
  .nav-toggle { display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; color: var(--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; } }
