/* Mion Hypnose — fact sheet. Tokens mirror the janmion.ch Stitch system. */
@font-face {
  font-family: 'Newsreader';
  src: url('newsreader.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans';
  src: url('noto-sans.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --primary: #006aa3;
  --primary-soft: #e0edf5;
  --gold: #b8901a;
  --bg: #f8fbfc;
  --surface: #ffffff;
  --text: #0c171d;
  --text-2: #4b5563;
  --muted: #3d728e;
  --border: #e5e7eb;
  --border-accent: #d8eaf3;
  --dark: #0f1c23;
  --font-display: 'Newsreader', Georgia, serif;
  --font-sans: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --width: 50rem;
  --gutter: clamp(1rem, 5vw, 2.5rem);
  --radius: 0.75rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #67c1f0;
    --primary-soft: #12303f;
    --gold: #e9c349;
    --bg: #0f1c23;
    --surface: #15252e;
    --text: #e8eef1;
    --text-2: #b4c2ca;
    --muted: #8fb8cc;
    --border: #24363f;
    --border-accent: #24414f;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
}

a { color: var(--primary); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--primary); color: #fff; padding: 0.5rem 1rem; z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 var(--gutter); }

/* Top bar */
.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--text); text-decoration: none;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
}
.brand { white-space: nowrap; }
.brand img { width: 2.25rem; height: 2.25rem; border-radius: 50%; }
.topbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.main-site {
  padding: 0.4rem 0.9rem; border-radius: 999px;
  background: var(--primary); color: #fff; text-decoration: none;
  font-size: 0.875rem; font-weight: 600; white-space: nowrap;
}
.main-site:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { .main-site { color: #0f1c23; } }
@media (max-width: 480px) {
  .topbar .wrap { gap: 0.5rem; }
  .topbar .brand { font-size: 1.05rem; gap: 0.4rem; }
  .topbar-actions { gap: 0.35rem; }
  .lang a, .lang span { padding: 0.3rem 0.45rem; }
  .topbar .brand img { width: 1.75rem; height: 1.75rem; }
  .main-site { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
  .main-site-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.notice .notice-main { margin-bottom: 0.6rem; }
.lang { display: flex; gap: 0.25rem; font-size: 0.875rem; }
.lang a, .lang span {
  padding: 0.3rem 0.65rem; border-radius: 999px; text-decoration: none;
}
.lang span { background: var(--primary-soft); color: var(--text); font-weight: 600; }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 4.5rem) 0 2.5rem; }
.hero-grid {
  display: grid; gap: 2rem; align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .hero-grid { grid-template-columns: 1fr 11rem; }
}
.hero-grid img {
  width: 11rem; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius); order: -1;
}
@media (min-width: 640px) { .hero-grid img { order: 0; } }
.eyebrow {
  margin: 0 0 0.75rem; color: var(--muted);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.55rem, 3.6vw, 2rem); margin: 0 0 1rem; }
h3 { font-size: 1.25rem; margin: 1.75rem 0 0.5rem; }
.lead { font-size: 1.125rem; color: var(--text-2); margin: 0; }

.notice {
  margin-top: 1.75rem; padding: 0.9rem 1.1rem;
  background: var(--primary-soft); border-radius: var(--radius);
  font-size: 0.925rem; color: var(--text);
}
.notice p { margin: 0; }

/* Rating box */
.rating {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem;
  margin-top: 0.75rem; padding: 0.85rem 1.1rem;
  border: 1px solid var(--border-accent); border-radius: var(--radius);
  background: var(--surface); font-size: 0.95rem;
}
.rating-stars { color: var(--gold); font-size: 1.15rem; letter-spacing: 0.08em; }
.rating a { font-weight: 600; }

/* Table of contents */
.toc {
  margin: 0 0 1rem; padding: 1rem 1.25rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.toc strong { display: block; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--muted); }
.toc ol {
  margin: 0; padding-left: 1.25rem; columns: 2 14rem; column-gap: 2rem; font-size: 0.925rem;
}

/* Sections */
section { padding: 2.75rem 0; border-top: 1px solid var(--border); scroll-margin-top: 1rem; }
section:nth-of-type(even) { background: var(--surface); }
section p { margin: 0 0 1rem; }
section ul, section ol { padding-left: 1.25rem; margin: 0 0 1rem; }
section li { margin-bottom: 0.35rem; }

.summary {
  font-size: 1.1rem; border-left: 4px solid var(--primary);
  padding: 0.25rem 0 0.25rem 1.1rem; margin: 0;
}

/* Fact table */
.facts { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.facts th, .facts td {
  text-align: left; vertical-align: top;
  padding: 0.65rem 0.75rem 0.65rem 0; border-bottom: 1px solid var(--border);
}
.facts th { width: 34%; color: var(--muted); font-weight: 600; }
@media (max-width: 520px) {
  .facts th, .facts td { display: block; width: 100%; padding: 0.1rem 0; border: 0; }
  .facts tr { display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
}

/* Cards */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 1rem 0; }
.card {
  padding: 1.1rem 1.2rem; border: 1px solid var(--border-accent);
  border-radius: var(--radius); background: var(--bg);
}
section:nth-of-type(odd) .card { background: var(--surface); }
.card h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.card p { margin: 0; font-size: 0.95rem; color: var(--text-2); }

.stats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); margin: 0 0 1.5rem; }
.stat { padding: 1rem; border-radius: var(--radius); background: var(--primary-soft); }
.stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.1; }
.stat span { font-size: 0.875rem; color: var(--text-2); }

.small { font-size: 0.875rem; color: var(--text-2); }

/* Topic lists */
.topics { display: grid; gap: 0.25rem 2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.topics h3 { margin: 1.25rem 0 0.4rem; font-size: 1.05rem; }
.topics ul { list-style: none; padding: 0; margin: 0; font-size: 0.95rem; }
.topics li { margin: 0 0 0.2rem; }

/* FAQ */
details {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); margin-bottom: 0.6rem;
}
section:nth-of-type(even) details { background: var(--bg); }
summary { cursor: pointer; padding: 0.85rem 1.1rem; font-weight: 600; }
details p { margin: 0; padding: 0 1.1rem 1rem; color: var(--text-2); }

/* AI instructions block */
.ai {
  background: var(--dark); color: #e8eef1;
  border-top: 0;
}
section.ai:nth-of-type(even), section.ai:nth-of-type(odd) { background: var(--dark); }
.ai h2, .ai h3 { color: #fff; }
.ai a { color: #67d3ff; }
.ai .eyebrow { color: #e9c349; }
.ai ul li::marker { color: #e9c349; }
.ai .do-dont { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.ai .box {
  padding: 1.1rem 1.25rem; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
}
.ai .box h3 { margin-top: 0; }
.ai .box ul { margin: 0; }

/* Footer */
footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--text-2); }
footer p { margin: 0 0 0.5rem; }

.btn {
  display: inline-block; margin-top: 0.5rem; padding: 0.7rem 1.3rem;
  background: var(--primary); color: #fff; border-radius: 999px;
  text-decoration: none; font-weight: 600;
}
@media (prefers-color-scheme: dark) { .btn { color: #0f1c23; } }
