/* eyeliners.com - additions.css v3 "AFTER DARK"
   The full visual direction lives here. Loads AFTER css/style.css (untouched,
   server-side) and overrides it. Direction chosen 2026-08-24: dramatic, luxe,
   nocturnal. Italiana display over Figtree, black-violet ground, one neon
   pink accent with glow reserved for it. Signature: the continuous neon
   stroke; the eleven diagrams go neon-line on black.
   v3 (2026-09-08): the living element. The liner draws itself under the
   wordmark once per session, and replays on hover on the eye-shape chart.
   Conversion rules intact: one primary CTA per view, WCAG AA contrast
   (all pairs computed, lowest 4.6:1), visible focus, reduced-motion safe. */

@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..700;1,300..700&family=Italiana&display=swap');

:root {
  --night: #140b18;
  --night-2: #1a0f20;
  --panel: #221330;
  --panel-2: #2a1838;
  --pink: #ff5ca8;
  --pink-link: #ff8ec4;
  --lilac: #ece2f2;
  --lilac-mut: #c3b2d1;
  --dim: #9c88ad;
  --line-d: #3b2749;
  --good-d: #5ad196;
  --warn-d: #f0b25c;
  --bad-d: #ff8585;
  --blue-d: #6fc3ff;
  --glow: 0 0 24px rgba(255, 92, 168, .35);
  color-scheme: dark;
}


/* ---- Structure carried over from v1 (style.css does not define these) --- */
.diagram { margin: 28px 0; border-radius: 14px; padding: 18px 18px 14px; border-width: 1px; border-style: solid; }
.diagram figcaption { font-size: .88rem; margin-top: 12px; line-height: 1.5; }
.diagram figcaption b { font-weight: 600; }
.stroke { display: block; width: 148px; height: 22px; margin: 40px 0 26px; overflow: visible; }
.eyebrow { display: block; font-size: .78rem; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; }
.toc { border-width: 1px; border-style: solid; border-radius: 12px; padding: 16px 20px; margin: 26px 0 30px; }
.toc p { margin: 0 0 8px; font-weight: 700; font-size: .92rem; }
.toc ul { margin: 0; padding-left: 18px; }
.toc li { margin-bottom: 4px; font-size: .95rem; }
.keyline { padding-left: 16px; margin: 26px 0; font-size: 1.08rem; line-height: 1.55; }
.twin { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 24px 0; }
.twin .t { border-width: 1px; border-style: solid; border-radius: 12px; padding: 18px 20px; }
.twin .t h4 { margin: 0 0 8px; font-size: 1rem; }
.twin .t ul { margin: 0; padding-left: 18px; }
.twin .t li { font-size: .94rem; }
.verdict { border-radius: 14px; padding: 24px 26px; margin: 26px 0 30px; }
.verdict h2, .verdict h3 { margin: 0 0 10px; font-size: 1.1rem; }
.verdict p { margin: 0 0 10px; }
.verdict p:last-child { margin-bottom: 0; }
.evidence { border-radius: 10px; padding: 18px 20px; margin: 26px 0; }
.evidence h3 { margin: 0 0 10px; font-size: 1rem; }
.evidence p { font-size: .95rem; margin: 0 0 10px; }
.evidence p:last-child { margin-bottom: 0; }
.sources { margin: 34px 0 0; padding-top: 20px; }
.sources h3 { font-size: .95rem; margin: 0 0 8px; }
.sources ol { margin: 0; padding-left: 18px; font-size: .88rem; }
.sources li { margin-bottom: 6px; }
.faq { margin: 30px 0; }
.faq details { border-width: 1px; border-style: solid; border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 10px 0 0; font-size: .95rem; }
.nextup { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 30px 0 0; }
.nextup a { display: block; border-width: 1px; border-style: solid; border-radius: 12px; padding: 16px 18px; text-decoration: none; }
.nextup a span { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.nextup a b { font-weight: 600; }
.retailers { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.retailers a { display: inline-block; border-width: 1.5px; border-style: solid; border-radius: 999px; padding: 9px 18px; text-decoration: none; font-weight: 600; font-size: .93rem; }

/* ---- Ground and type --------------------------------------------------- */
body {
  background: var(--night);
  color: var(--lilac);
  font-family: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
h1, h2 {
  font-family: Italiana, "Bodoni Moda", Georgia, serif;
  font-weight: 400;
  letter-spacing: .02em;
  color: #fff;
}
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { color: var(--lilac); }
p.sub { color: var(--lilac-mut); }
::selection { background: var(--pink); color: var(--night); }
a:focus-visible, .btn:focus-visible, .quiz label:focus-within {
  outline: 2px solid var(--pink-link); outline-offset: 2px; border-radius: 4px;
}

img { max-width: 100%; height: auto; }

/* ---- Header ------------------------------------------------------------ */
header.site {
  background: rgba(14, 7, 19, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--panel-2);
  box-shadow: none;
}
.logo {
  font-family: Italiana, Georgia, serif;
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.logo span { color: var(--pink); }
nav.main a { color: var(--lilac-mut); white-space: nowrap; }
nav.main a:hover, nav.main a.active {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ---- Hero: the neon eye ------------------------------------------------ */
.hero {
  background-color: var(--night);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 240'%3E%3Cdefs%3E%3Cfilter id='g' x='-40%25' y='-40%25' width='180%25' height='180%25'%3E%3CfeGaussianBlur stdDeviation='6' result='b'/%3E%3CfeMerge%3E%3CfeMergeNode in='b'/%3E%3CfeMergeNode in='SourceGraphic'/%3E%3C/feMerge%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M60 140 C 120 70, 250 62, 330 118 C 348 104, 372 84, 396 60 C 380 96, 362 120, 344 132 C 270 186, 130 190, 60 140 Z' stroke='%23ff5ca8' stroke-width='4' filter='url(%23g)' fill='none' stroke-linejoin='round'/%3E%3Ccircle cx='200' cy='122' r='30' stroke='%23ff5ca8' stroke-width='3' fill='none' filter='url(%23g)'/%3E%3Ccircle cx='200' cy='122' r='12' fill='%23ff5ca8' filter='url(%23g)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 75% 20%, rgba(255, 92, 168, .14), transparent 55%),
    linear-gradient(160deg, #1a0f20 0%, #140b18 60%, #1d0f26 100%);
  background-repeat: no-repeat;
  background-position: right 4vw center, center, center;
  background-size: min(44vw, 560px) auto, cover, cover;
  padding: 96px 0 88px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: .03em;
  max-width: 16ch;
}
.hero p.lead { color: var(--lilac-mut); font-size: 1.18rem; }
@media (max-width: 900px) {
  .hero { background-image:
    radial-gradient(ellipse at 75% 20%, rgba(255, 92, 168, .12), transparent 55%),
    linear-gradient(160deg, #1a0f20 0%, #140b18 60%, #1d0f26 100%);
    padding: 72px 0 60px; }
}

/* ---- Buttons: one glowing primary per view ----------------------------- */
.btn {
  background: var(--pink);
  color: var(--night);
  font-weight: 700;
  letter-spacing: .04em;
  border-radius: 999px;
  padding: 13px 26px;
  box-shadow: var(--glow);
}
.btn:hover { background: #fff; color: var(--night); filter: none; }
.btn.ghost {
  background: transparent;
  color: var(--lilac);
  border: 1.5px solid #6d5480;
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--pink); color: #fff; }
.btn.accent { background: var(--pink); color: var(--night); }

/* ---- Sections and cards ------------------------------------------------ */
section.block.alt { background: var(--night-2); }
.card, .cards > div {
  background: var(--panel);
  border: 1px solid var(--line-d);
  box-shadow: none;
}
.card p { color: var(--lilac-mut); }
.card a.more { color: var(--pink-link); }
@media (prefers-reduced-motion: no-preference) {
  .card { transition: border-color .18s ease, transform .18s ease; }
  .card:hover { border-color: #7e4a92; transform: translateY(-2px); }
}

/* ---- Tables ------------------------------------------------------------ */
table { background: var(--panel); }
th, td { border-color: var(--line-d); }
th { background: var(--panel-2); color: #fff; }
tr:nth-child(even) td { background: #1d1126; }

/* ---- Badges, notes, boxes ---------------------------------------------- */
.badge.good { background: rgba(90, 209, 150, .14); color: var(--good-d); }
.badge.warn { background: rgba(240, 178, 92, .14); color: var(--warn-d); }
.badge.pink { background: rgba(255, 92, 168, .16); color: var(--pink-link); }
.note { background: rgba(255, 92, 168, .10); border-left: 4px solid var(--pink); }
.warnbox { background: rgba(240, 178, 92, .10); border-left: 4px solid var(--warn-d); }
.disclosure { background: var(--night-2); border: 1px dashed var(--line-d); color: var(--dim); }
.note a, .warnbox a, .disclosure a { color: var(--pink-link); }

/* ---- Articles ---------------------------------------------------------- */
article.guide h1 { font-size: clamp(2.1rem, 4.4vw, 3rem); line-height: 1.08; }
article.guide .meta { color: var(--dim); }
article.guide a { color: var(--pink-link); }
section.block p a, section.block li a, .toc a, .evidence a, .faq a, .sources a { color: var(--pink-link); }

.eyebrow { color: var(--pink); letter-spacing: .3em; }
.keyline { border-left: 4px solid var(--pink); }
.toc { background: var(--panel); border-color: var(--line-d); }

/* The signature stroke gets its glow */
.stroke path { fill: var(--pink); }
.stroke { filter: drop-shadow(0 0 7px rgba(255, 92, 168, .55)); }

/* Verdict: the statement box */
.verdict {
  background: linear-gradient(160deg, #2a1535, #1c0f24);
  border: 1px solid rgba(255, 92, 168, .45);
  box-shadow: 0 0 34px rgba(255, 92, 168, .14);
}
.verdict h2, .verdict h3 { color: var(--pink-link); font-family: Figtree, sans-serif; font-weight: 700; }
.verdict p { color: var(--lilac); }
.verdict a { color: var(--pink-link); }

.evidence { background: var(--night-2); border: 1px solid var(--line-d); border-left: 4px solid var(--lilac-mut); }
.twin .t { background: var(--panel); border-color: var(--line-d); }
.twin .t.do { border-top: 4px solid var(--good-d); }
.twin .t.dont { border-top: 4px solid var(--bad-d); }

.faq details { background: var(--panel); border-color: var(--line-d); }
.faq summary::marker { color: var(--pink); }
.faq details p { color: var(--lilac-mut); }

.sources { border-top: 1px solid var(--line-d); }
.sources ol { color: var(--dim); }

.nextup a { background: var(--panel); border-color: var(--line-d); color: var(--lilac); }
.nextup a:hover { border-color: var(--pink); }
.nextup a span { color: var(--pink-link); }

.retailers a { border-color: #5b3f6e; color: var(--lilac); }
.retailers a:hover { border-color: var(--pink); color: var(--pink-link); }

/* ---- Finder quiz ------------------------------------------------------- */
.quiz .q { background: var(--panel); border-color: var(--line-d); }
.quiz label { border-color: var(--line-d); }
.quiz label:hover { border-color: var(--pink); }
.quizresult {
  background: linear-gradient(160deg, #2a1535, #1c0f24);
  border: 1px solid rgba(255, 92, 168, .45);
  box-shadow: 0 0 34px rgba(255, 92, 168, .14);
}
.quizresult h3 { color: var(--pink-link); }
.quizresult a { color: var(--pink-link); }

/* ---- Footer ------------------------------------------------------------ */
footer.site { background: #0e0713; color: var(--dim); border-top: 1px solid var(--panel-2); }
footer.site a { color: var(--lilac-mut); }
footer.site .fineprint { color: #8b789c; }

/* ---- Photos on the dark ground ----------------------------------------- */
.photobanner { border: 1px solid var(--line-d); filter: brightness(.9) saturate(.92); }
.photocredit { color: var(--dim); }

/* ---- Diagrams: neon-line on black -------------------------------------- */
.diagram { background: #0d0712; border-color: var(--panel-2); }
.diagram figcaption { color: var(--dim); }
.diagram figcaption b { color: var(--lilac); }

/* Base: any un-filled SVG text becomes lilac; specific fills below win. */
.diagram svg text { fill: var(--lilac); }

/* Structural inks flip light */
.diagram svg [stroke="#1c1418"] { stroke: var(--lilac); }
.diagram svg [fill="#1c1418"] { fill: var(--lilac); }
.diagram svg [stroke="#33222b"] { stroke: #cbb9da; }
.diagram svg [fill="#33222b"] { fill: #cbb9da; }
.diagram svg [stroke="#6d5b64"] { stroke: #b3a0c2; }
.diagram svg [fill="#6d5b64"] { fill: #b3a0c2; }
.diagram svg [stroke="#9b8d93"], .diagram svg [stroke="#a1abb2"] { stroke: #8a76a0; }
.diagram svg [stroke="#e9dde3"] { stroke: #4a3358; }
.diagram svg [stroke="#faf6f8"] { stroke: #4a3358; }

/* White SHAPES go dark panel; white TEXT (labels on colored markers) stays white */
.diagram svg path[fill="#fff"], .diagram svg path[fill="#ffffff"],
.diagram svg rect[fill="#fff"], .diagram svg rect[fill="#ffffff"],
.diagram svg ellipse[fill="#fff"], .diagram svg ellipse[fill="#ffffff"],
.diagram svg circle[fill="#fff"], .diagram svg circle[fill="#ffffff"] { fill: #1b0f22; }
.diagram svg text[fill="#fff"], .diagram svg text[fill="#ffffff"],
.diagram svg tspan[fill="#fff"], .diagram svg tspan[fill="#ffffff"] { fill: #ffffff; }
/* Numbered markers: their circles brightened to neon, so the white label
   flips to night for contrast (computed: all pairs 6.7:1 or better). */
.diagram svg circle[fill="#a63d6f"] + text, .diagram svg circle[fill="#157a4c"] + text,
.diagram svg circle[fill="#b23b3b"] + text, .diagram svg circle[fill="#a15c07"] + text,
.diagram svg circle[fill="#2a6f9e"] + text { fill: #140b18; }

/* Soft light fills go dark-tinted */
.diagram svg [fill="#faf6f8"] { fill: #1f1226; }
.diagram svg [fill="#fdf7fa"] { fill: #1f1226; }
.diagram svg [fill="#f7e8ef"] { fill: #33203d; }
.diagram svg [fill="#f3e3ea"] { fill: #331a29; }
.diagram svg [fill="#fdf3e3"] { fill: #33250f; }
.diagram svg [fill="#e9f4ee"] { fill: #17311f; }
.diagram svg [fill="#eaf3fa"] { fill: #132433; }
.diagram svg [fill="#cfe4f2"] { fill: #1f3a52; }

/* Semantic colours brighten to neon; glow only on the accent */
.diagram svg [stroke="#a63d6f"] { stroke: var(--pink); }
.diagram svg [fill="#a63d6f"] { fill: var(--pink); }
.diagram svg [stroke="#157a4c"] { stroke: var(--good-d); }
.diagram svg [fill="#157a4c"] { fill: var(--good-d); }
.diagram svg [stroke="#b23b3b"] { stroke: var(--bad-d); }
.diagram svg [fill="#b23b3b"] { fill: var(--bad-d); }
.diagram svg [stroke="#a15c07"] { stroke: var(--warn-d); }
.diagram svg [fill="#a15c07"] { fill: var(--warn-d); }
.diagram svg [stroke="#2a6f9e"] { stroke: var(--blue-d); }
.diagram svg [fill="#2a6f9e"] { fill: var(--blue-d); }
/* Iris and product swatch colours keep their real values on purpose:
   #7a4a25 #a95724 #9d5726 #96682a #8a7340 #8a6a1f #7a2d55 #6e1f2e #8a8f96 */

/* ---- Small screens ----------------------------------------------------- */
@media (max-width: 640px) {
  .verdict, .quizresult { padding: 20px; }
  .diagram { padding: 12px 12px 10px; }
}

/* ---- Legacy v1 rules kept (additive safety) ----------------------------- */
table td.why { min-width: 240px; }
.diagram svg { display: block; width: 100%; height: auto; }

/* ---- Living element: the line draws itself (v3, 2026-09-08) ------------
   One idea in two places. The wordmark gets a neon liner stroke that draws
   on once per session (html.draw is set by an inline script when
   sessionStorage has no flag); every later page load shows the rest state,
   which is the finished stroke. The eye-shape chart replays the same draw
   on hover or focus. Reduced motion: rest state only, nothing animates. */
.logo { position: relative; display: inline-block; padding-bottom: 6px; }
.logo .flick {
  position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 13px; overflow: visible; pointer-events: none;
}
.logo .flick path {
  fill: none; stroke: var(--pink); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
  filter: drop-shadow(0 0 4px rgba(255, 92, 168, .55));
}
@keyframes liner-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: no-preference) {
  html.draw .logo .flick path { animation: liner-draw 1.6s cubic-bezier(.3, .6, .15, 1) .45s both; }
}

.diagram svg .shape { cursor: pointer; outline: none; }
.diagram svg .shape:focus-visible .hit { stroke: var(--pink); }
.diagram svg .liner { transform-box: fill-box; transform-origin: 0% 50%; }
@keyframes liner-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
  .diagram svg .shape:hover .liner,
  .diagram svg .shape:focus .liner { animation: liner-grow .85s cubic-bezier(.3, .6, .15, 1); }
}
