/* Her Brain, Her Power — site styles
   Night plum, gold light, cream paper. Playfair Display italic for voice, Lato for reading. */

@font-face { font-family: "Playfair"; src: url("assets/fonts/playfair-display-400-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Playfair"; src: url("assets/fonts/playfair-display-600-italic.woff2") format("woff2"); font-style: italic; font-weight: 600; font-display: swap; }
@font-face { font-family: "Playfair"; src: url("assets/fonts/playfair-display-400-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("assets/fonts/lato-400-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("assets/fonts/lato-700-normal.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url("assets/fonts/lato-400-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --plum: #2B1232;
  --plum-deep: #1C0A22;
  --plum-light: #4A2552;
  --plum-mid: #5A3463;
  --cream: #FBF5EA;
  --paper: #FFF9EC;
  --tint: #F6EEF4;
  --gold: #F5C469;
  --gold-deep: #B37D2B;
  --ink: #2A1B2E;
  --muted: #6F6074;
  --line: #DCCFDF;
  --serif: "Playfair", "Didot", "Bodoni MT", Georgia, serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-size: 19px; line-height: 1.6; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-style: italic; font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), calc(100% - 44px)); margin-inline: auto; }
.kicker { font: 700 12.5px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 18px; }
.on-dark .kicker, .kicker.light { color: var(--gold); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--cream); padding: 10px 14px; z-index: 99; border-radius: 6px; }

/* ---------------------------------------------------------------- night sections */
.night { position: relative; color: var(--cream); background: var(--plum-deep); isolation: isolate; overflow: hidden; }
.night::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(120% 90% at 30% 35%, var(--plum-light), var(--plum) 55%, var(--plum-deep)); }
.night.art-sides::before { background: url("assets/neurons-sides.webp") center / cover no-repeat var(--plum-deep); }
.night.art-corners::before { background: url("assets/neurons-corners.webp") center / cover no-repeat var(--plum-deep); }
.night::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.night .shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(62% 78% at 42% 50%, rgba(28,10,34,.80), rgba(28,10,34,.30) 68%, rgba(28,10,34,0)); }

/* ---------------------------------------------------------------- top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0 0; }
.top .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.top .brand img.icon { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 1px var(--gold); }
.top .brand img.name { height: 46px; width: auto; margin-left: -18px; }
.top nav a { font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--cream); opacity: .82; padding: 10px 2px; border-bottom: 1px solid transparent; transition: opacity .2s, border-color .2s; }
.top nav a:hover, .top nav a:focus-visible { opacity: 1; border-color: var(--gold); }

/* ---------------------------------------------------------------- hero */
.hero { padding: 0 0 clamp(70px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(30px, 5vw, 70px); align-items: center; padding-top: clamp(46px, 7vw, 90px); }
.hero h1 { font-size: clamp(46px, 7.2vw, 92px); }
.hero h1.tight { font-size: clamp(38px, 5.3vw, 68px); }
.hero h1 em { font-style: italic; color: var(--gold); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.04em; height: 2px; background: var(--gold); transform-origin: left; animation: draw 1s var(--ease) .9s both; }
.hero .lede { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; max-width: 34em; margin: 28px 0 34px; color: #EFE4EE; }
.rise > * { animation: rise .9s var(--ease) both; }
.rise > *:nth-child(1) { animation-delay: .05s; } .rise > *:nth-child(2) { animation-delay: .18s; } .rise > *:nth-child(3) { animation-delay: .32s; } .rise > *:nth-child(4) { animation-delay: .46s; } .rise > *:nth-child(5) { animation-delay: .6s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* the paper: a page preview that sits like a sheet on a dark table */
.sheet { position: relative; justify-self: center; width: min(430px, 100%); transform: rotate(2.6deg); animation: settle 1.3s var(--ease) .35s both; }
.sheet::before { content: ""; position: absolute; inset: -14% -18%; z-index: -1; background: radial-gradient(closest-side, rgba(245,196,105,.34), rgba(245,196,105,0)); }
.sheet img { border-radius: 4px; box-shadow: 0 2px 0 rgba(255,255,255,.5) inset, 0 34px 70px -18px rgba(0,0,0,.75), 0 10px 22px rgba(0,0,0,.35); }
.sheet .tag { position: absolute; top: -16px; right: -14px; transform: rotate(6deg); background: var(--gold); color: var(--plum); font: 700 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; padding: 11px 14px; border-radius: 3px; box-shadow: 0 8px 18px rgba(0,0,0,.35); }
@keyframes settle { from { opacity: 0; transform: translateY(40px) rotate(7deg); } to { opacity: 1; transform: rotate(2.6deg); } }

/* ---------------------------------------------------------------- sign-up form */
.signup { display: grid; grid-template-columns: 1fr auto; gap: 10px; max-width: 560px; background: rgba(251,245,234,.08); border: 1px solid rgba(245,196,105,.5); border-radius: 14px; padding: 8px; backdrop-filter: blur(6px); }
.signup input { min-width: 0; font: 400 18px var(--sans); color: var(--cream); background: transparent; border: 0; padding: 14px 16px; outline: none; }
.signup input::placeholder { color: #CDBBD0; }
.signup:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245,196,105,.18); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 16px/1 var(--sans); letter-spacing: .04em; color: var(--plum); background: var(--gold); border: 0; border-radius: 10px; padding: 17px 24px; cursor: pointer; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, background .2s; box-shadow: 0 10px 26px -10px rgba(245,196,105,.8); }
.btn:hover, .btn:focus-visible { transform: translateY(-2px); background: #FFD27F; box-shadow: 0 16px 30px -10px rgba(245,196,105,.9); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.big { font-size: 19px; padding: 22px 34px; border-radius: 12px; }
.fine { font-size: 14.5px; line-height: 1.5; color: #CDBBD0; margin: 14px 0 0; max-width: 560px; }
.light-bg .fine, .fine.dark { color: var(--muted); }
.form-note { display: none; margin-top: 14px; padding: 12px 16px; border-radius: 10px; font-size: 15.5px; background: rgba(245,196,105,.14); border: 1px solid rgba(245,196,105,.5); color: var(--cream); max-width: 560px; }
.form-note.show { display: block; }
.light-bg .signup { background: #fff; border-color: var(--line); } .light-bg .signup input { color: var(--ink); } .light-bg .signup input::placeholder { color: #9A8B9E; }
.light-bg .form-note { color: var(--ink); }

/* ---------------------------------------------------------------- paper sections */
section { padding: clamp(64px, 9vw, 120px) 0; }
.paper { background: var(--cream); }
.tinted { background: var(--tint); }
h2 { font-size: clamp(34px, 4.6vw, 58px); color: var(--plum); max-width: 16em; }
.night h2 { color: var(--cream); }
h2 + .sub { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 36em; margin-top: 20px; }
.night h2 + .sub { color: #E4D6E6; }

.triple { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 3vw, 44px); margin-top: clamp(40px, 5vw, 64px); counter-reset: n; }
.triple article { counter-increment: n; border-top: 1px solid var(--plum); padding-top: 22px; }
.triple article::before { content: "0" counter(n); display: block; font: italic 400 54px/1 var(--serif); color: var(--gold-deep); margin-bottom: 14px; }
.triple h3 { font-size: 27px; color: var(--plum); margin-bottom: 10px; }
.triple p { font-size: 17.5px; color: #43354A; margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.quotes { display: grid; gap: 14px; }
.quotes blockquote { margin: 0; background: var(--cream); color: var(--plum); border-radius: 14px; padding: 20px 24px 22px; font: italic 400 clamp(20px, 2vw, 25px)/1.3 var(--serif); box-shadow: 0 16px 34px -18px rgba(0,0,0,.6); }
.quotes blockquote span { display: block; font: 700 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 9px; }
.quotes blockquote:nth-child(2) { margin-left: clamp(0px, 4vw, 46px); } .quotes blockquote:nth-child(3) { margin-left: clamp(0px, 8vw, 92px); }

.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 38px; font-size: 18.5px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .32em; width: 22px; height: 22px; border-radius: 50%; background: var(--plum) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5C469' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.night .checks li::before { background-color: var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B1232' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E"); }
.crosses li::before { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236F6074' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: inset 0 0 0 1px var(--line); }

.source-strip { margin-top: clamp(40px, 5vw, 60px); padding: 22px 26px; border-left: 3px solid var(--gold-deep); background: var(--paper); font-size: 16.5px; color: #43354A; max-width: 52em; }
.source-strip strong { color: var(--plum); }

details { border-top: 1px solid var(--line); padding: 20px 0; max-width: 46em; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; font: italic 400 24px/1.25 var(--serif); color: var(--plum); display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 400 28px/1 var(--sans); color: var(--gold-deep); transition: transform .25s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 14px 0 0; font-size: 18px; color: #43354A; }

/* ---------------------------------------------------------------- toolkit page */
.cover-stack { position: relative; justify-self: center; width: min(400px, 86%); }
.cover-stack img { border-radius: 5px; box-shadow: 0 34px 70px -18px rgba(0,0,0,.8), 0 10px 22px rgba(0,0,0,.4); }
.cover-stack img.back { position: absolute; inset: 0; z-index: -1; }
.cover-stack img.back.b1 { transform: rotate(-5deg) translate(-22px, 10px); filter: brightness(.96); }
.cover-stack img.back.b2 { transform: rotate(5.5deg) translate(26px, 16px); filter: brightness(.93); }
.cover-stack .front { transform: rotate(-1.2deg); animation: settle2 1.3s var(--ease) .3s both; }
@keyframes settle2 { from { opacity: 0; transform: translateY(40px) rotate(-6deg); } to { opacity: 1; transform: rotate(-1.2deg); } }
.price-row { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 8px; }
.price { font: italic 400 58px/1 var(--serif); color: var(--gold); }
.price small { display: block; font: 400 14px/1.3 var(--sans); font-style: normal; color: #CDBBD0; margin-top: 14px; letter-spacing: .02em; }

.pages { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 30px); margin-top: clamp(40px, 5vw, 64px); }
.pages figure { margin: 0; }
.pages img { border-radius: 3px; box-shadow: 0 18px 36px -18px rgba(43,18,50,.55), 0 0 0 1px rgba(43,18,50,.08); transition: transform .35s var(--ease), box-shadow .35s; }
.pages figure:hover img { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 30px 46px -20px rgba(43,18,50,.6), 0 0 0 1px rgba(43,18,50,.08); }
.pages figcaption { margin-top: 14px; font-size: 16px; line-height: 1.4; color: #43354A; }
.pages figcaption b { display: block; font: italic 400 21px/1.2 var(--serif); color: var(--plum); margin-bottom: 3px; }

.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 70px); margin-top: 36px; }
.two-lists h3 { font-size: 28px; color: var(--plum); }
.cta-band { text-align: center; }
.cta-band h2 { margin-inline: auto; }
.cta-band .price { display: inline-block; margin: 26px 0 22px; }

.offer { display: grid; grid-template-columns: 200px 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; max-width: 900px; margin: clamp(46px, 7vw, 80px) auto 0; padding: clamp(24px, 4vw, 44px); border: 1px solid rgba(245,196,105,.45); border-radius: 18px; background: rgba(28,10,34,.72); backdrop-filter: blur(6px); }
.offer img { border-radius: 4px; transform: rotate(-3deg); box-shadow: 0 24px 46px -16px rgba(0,0,0,.8); }
.offer h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 14px; }
.offer p { color: #E4D6E6; font-size: 17.5px; }
.offer .price { font-size: 46px; }

/* ---------------------------------------------------------------- footer */
footer { background: var(--plum-deep); color: #CDBBD0; padding: 54px 0 46px; font-size: 15.5px; }
footer .cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
footer img.name { height: 46px; margin: 0 0 8px -15px; }
footer a { color: var(--cream); text-decoration-color: rgba(245,196,105,.6); text-underline-offset: 3px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; font-weight: 700; letter-spacing: .06em; }
footer .legal { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }

/* plain text pages */
.prose { max-width: 42em; }
.prose h2 { font-size: 30px; margin: 44px 0 12px; }
.prose p, .prose li { font-size: 18px; color: #3B2E40; }
.draft { background: #FFF1CF; border: 1px solid var(--gold-deep); border-radius: 10px; padding: 14px 18px; font-size: 16px; margin-bottom: 30px; }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  body { font-size: 18px; }
  .hero-grid, .split, .two-lists, footer .cols, .offer { grid-template-columns: 1fr; }
  .offer img { width: 150px; }
  .sheet { order: 2; width: min(340px, 82%); margin-top: 10px; }
  .cover-stack { order: -1; width: min(300px, 74%); margin-bottom: 14px; }
  .triple { grid-template-columns: 1fr; }
  .pages { grid-template-columns: repeat(2, 1fr); }
  .signup { grid-template-columns: 1fr; }
  .top nav a.hide-s { display: none; }
  footer nav { justify-content: flex-start; }
  .quotes blockquote:nth-child(2), .quotes blockquote:nth-child(3) { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
