/* helinahakkanen.com — shared styles. Design tokens from HANDOVER.md §5. */

:root {
  --ink: #1B2A3A;
  --text-lead: #2E3C4A;
  --text-card: #33414F;
  --muted: #55636F;
  --sep: #6A7783;
  --accent: #955512;
  --ground: #FFFFFF;
  --tint: #F2F5F7;
  --line: #DDE3E8;
  --line-card: #D9E0E6;
  --line-tint: #CBD4DC;
  --line-chip: #B9C4CE;
  --ph-light: #8FA0B0;
  --ph-dark: #6F8194;
  --on-dark-hi: #F0C987;
  --on-dark-text: #DCE3E9;
  --on-dark-small: #C5CED6;
  --on-dark-line: #3A4A5B;

  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Newsreader', Georgia, serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 8vw, 88px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ground);
  line-height: 1.55;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 0.15em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p, blockquote, figure, ul, ol { margin: 0; }
[id] { scroll-margin-top: 16px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 4px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 8px; color: #fff; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap--narrow { max-width: 880px; }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tint { background: var(--tint); }
.section--dark { background: var(--ink); color: #fff; }
.section--rule { border-top: 1px solid var(--line); }
.section--quiet { padding-top: 56px; padding-bottom: 56px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--lg { gap: 32px; }
.stack--xl { gap: 40px; }
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 72px; }
.split--top { align-items: flex-start; }
.split--tight { gap: 40px 64px; }
.split > .grow { flex: 1 1 480px; min-width: 0; }
.split > .grow-sm { flex: 1 1 380px; min-width: 0; }
.split > .side { flex: 0 1 340px; min-width: 240px; }
.split > .side-md { flex: 0 1 420px; min-width: 240px; }
.split > .side-fill { flex: 1 1 300px; min-width: 0; }
.cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.cols > * { flex: 1 1 380px; min-width: 0; }
.aside-heading { display: flex; flex-wrap: wrap; gap: 20px 64px; }
.aside-heading > h2 { flex: 0 1 280px; font-size: clamp(26px, 3.4vw, 30px); line-height: 1.15; }
.aside-heading > p { flex: 1 1 480px; min-width: 0; }

/* ---------- Type ---------- */
.h1 { font-size: clamp(44px, 9vw, 84px); line-height: 1.02; font-weight: 700; letter-spacing: -0.03em; }
.h1--name { font-size: clamp(42px, 7.5vw, 68px); }
.h2, .section h2 { font-size: clamp(30px, 4.2vw, 38px); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
.label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); line-height: 1.4;
}
.label--wide { letter-spacing: 0.14em; }
.section--dark .label { color: var(--on-dark-hi); }
h3.label { font-size: 13px; }
.lead { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.4; max-width: 760px; }
.title-line { font-size: 15.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--accent); }
.body-lg { font-size: clamp(17px, 1.8vw, 18.5px); color: var(--text-lead); }
.body-lg--max { max-width: 820px; }
.section--dark .body-lg { color: var(--on-dark-text); }
.small { font-size: 15px; color: var(--muted); }
.quote {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(22px, 2.6vw, 26px); line-height: 1.35; color: var(--ink);
  margin-top: 10px;
}
.quote--centre { font-size: clamp(25px, 3.6vw, 34px); line-height: 1.3; margin: 0; }
.center { text-align: center; }
.placeholder-text { color: var(--muted); }
.section--dark .placeholder-text { color: var(--on-dark-small); }

/* ---------- Header & navigation ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--ground); position: relative; z-index: 20; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-top: 22px; padding-bottom: 22px;
}
.wordmark { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.nav-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px;
  background: none; border: 1px solid var(--line-chip); border-radius: 22px;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
  display: block; width: 16px; height: 2px; background: currentColor; border-radius: 1px; position: relative;
}
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -5px; }
.nav-toggle__icon::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: 0; transform: rotate(-45deg); }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15.5px; font-weight: 500; }
.site-nav a { text-decoration: none; padding: 10px 0; }
.site-nav .nav-lead { font-weight: 700; }
.site-nav a[aria-current="page"] { font-weight: 700; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.lang { display: flex; gap: 8px; align-items: center; padding-left: 12px; border-left: 1px solid #C9D2DA; font-size: 14px; }
.lang a { padding: 10px 2px; color: var(--muted); }
.lang a[aria-current="true"] { font-weight: 700; color: var(--ink); }
.lang span { color: var(--sep); }

@media (max-width: 900px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ground); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(27, 42, 58, 0.08);
    padding: 8px var(--gutter) 20px; font-size: 18px;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .js .site-nav > a[aria-current="page"] { border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--ink); padding-left: 12px; padding-bottom: 14px; }
  .js .lang { border-left: 0; padding: 14px 0 0; font-size: 16px; }
  .no-js .site-header .wrap { flex-wrap: wrap; }
}

/* ---------- Buttons & links ---------- */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-top: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 26px; border-radius: 4px; font-size: 16px; font-weight: 600; line-height: 1.25;
  text-decoration: none; text-align: center; border: 1.5px solid var(--ink);
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #2A3D52; color: #fff; }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--gold { background: var(--on-dark-hi); border-color: var(--on-dark-hi); color: var(--ink); font-weight: 700; }
.btn--gold:hover { background: #F6D9A8; color: var(--ink); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-size: 16px; font-weight: 600; }
.more { font-size: 15.5px; font-weight: 600; }
.section--dark a { color: var(--on-dark-hi); }
.section--dark a:hover { color: #fff; }
.section--dark .btn--gold, .section--dark .btn--gold:hover { color: var(--ink); }
@media (max-width: 480px) { .btn-row .btn { width: 100%; } }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 16px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-chip); border-radius: 22px; background: #fff;
  font-size: 15px; font-weight: 600; text-decoration: none;
}
a.chip:hover { border-color: var(--ink); }
/* Topic tags (not links): flatter so they do not read as navigation. */
.tag {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border-radius: 18px; background: rgba(27, 42, 58, 0.06);
  font-size: 14.5px; font-weight: 500; color: var(--text-card);
}

/* ---------- Cards ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  flex: 1 1 440px; min-width: 0; background: #fff; border: 1px solid var(--line-card);
  border-radius: 6px; padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; gap: 12px;
}
.cards--3 .card { flex-basis: 280px; padding: clamp(22px, 2.6vw, 28px); gap: 10px; }
.card h3 { font-size: clamp(20px, 2.2vw, 23px); line-height: 1.25; font-weight: 700; }
.card--lg h3 { font-size: clamp(22px, 2.4vw, 26px); line-height: 1.2; }
.card--lg { padding: clamp(24px, 3.2vw, 36px); }
.cards--3 .card h3 { font-size: 21px; }
.card p { font-size: 16.5px; color: var(--text-card); }
.card .muted-inline { font-weight: 500; color: var(--muted); }
.card .more { margin-top: auto; padding-top: 8px; }
.card .tm-logo { width: auto; height: clamp(84px, 10vw, 112px); max-width: 100%; object-fit: contain; align-self: flex-start; margin-bottom: 8px; }
.card--placeholder { border: 1px dashed var(--ph-light); background: transparent; }
.section--tint .card--placeholder { background: rgba(255, 255, 255, 0.5); }
.section--dark .card { background: transparent; border-color: var(--on-dark-line); }
.section--dark .card p { color: var(--on-dark-text); }
.card__num { font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: 0.04em; }

/* ---------- Facts / figures ---------- */
.facts { display: flex; flex-direction: column; }
.facts > div { display: flex; flex-direction: column; gap: 2px; padding: 20px 0; border-top: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts strong { font-size: 22px; font-weight: 700; }
.facts span { font-size: 16px; color: var(--text-card); }
.figures { display: flex; flex-wrap: wrap; gap: 20px 48px; padding-top: 12px; }
.figures > div { display: flex; flex-direction: column; }
.figures strong { font-size: clamp(34px, 4.4vw, 44px); line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; }
.figures span { font-size: 15.5px; color: var(--text-card); }

/* ---------- Timeline ---------- */
.timeline { list-style: none; padding: 0; }
.timeline li { display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 18px; }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .year { flex: 0 0 130px; font-weight: 700; color: var(--accent); }
.timeline .what { flex: 1 1 320px; min-width: 0; }
.timeline .key .what { font-weight: 700; }

/* ---------- Lists with hairlines ---------- */
.ruled { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.ruled > li { padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; color: var(--text-card); }
.ruled > li > strong { display: block; font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.section--tint .ruled > li { border-color: var(--line-tint); }
.section--dark .ruled > li { border-color: var(--on-dark-line); color: var(--on-dark-text); }
.section--dark .ruled > li > strong { color: #fff; }
.pubs > li { font-size: 16px; }

/* ---------- Media: images, covers, placeholders ---------- */
.portrait { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 4px; }
.photo-34 { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.photo { width: 100%; border-radius: 4px; }
figcaption { font-size: 14.5px; color: var(--muted); margin-top: 10px; }
.cover { border-radius: 2px; box-shadow: 0 6px 18px rgba(27, 42, 58, 0.22); }
.cover-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px; }
.cover-row > * { flex: 0 0 clamp(96px, 26vw, 150px); }
.cover-row img { width: 100%; }
.ribboned { position: relative; }
.ribbon {
  position: absolute; top: 10px; left: -8px; background: var(--on-dark-hi); color: var(--ink);
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; padding: 5px 8px; border-radius: 2px;
}
.ribbon--lg { top: 12px; font-size: 12px; padding: 6px 10px; }
.ph-box {
  border: 1px dashed var(--ph-light); border-radius: 6px; display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center; font-size: 15px; color: var(--muted); min-height: 300px; background: #fff;
}
.section--dark .ph-box { border-color: var(--ph-dark); color: var(--on-dark-small); background: transparent; min-height: 320px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #fff; }
.site-footer a { color: var(--on-dark-hi); }
.site-footer a:hover { color: #fff; }
.site-footer .btn--gold, .site-footer .btn--gold:hover { color: var(--ink); }
.footer-contact { padding-top: 72px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 48px; }
.footer-contact__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px 48px; }
.footer-contact__top > div { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-contact p { font-size: 18px; color: var(--on-dark-text); }
.footer-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px;
  font-size: 14.5px; color: var(--on-dark-small);
}
.footer-contact .footer-bar { border-top: 1px solid var(--on-dark-line); padding-top: 24px; }
.footer-slim { padding-top: 32px; padding-bottom: 32px; }
.footer-bar nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bar a { color: var(--on-dark-text); padding: 6px 0; display: inline-block; }

/* ---------- Page-specific bits ---------- */
.book { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.book > .book__cover { flex: 0 0 clamp(120px, 30vw, 170px); }
.book > .book__text { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.book-sm { display: flex; gap: 20px; align-items: flex-start; }
.book-sm > .book__cover { flex: 0 0 96px; }
.book-sm > .book__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.book-sm h3 { font-size: 19px; }
.book-sm p { font-size: 15.5px; }
.cards--books .card { flex-basis: 440px; }
.list-rows { list-style: none; padding: 0; }
.list-rows li {
  display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 18px 0; border-top: 1px solid var(--line-tint); font-size: 17px;
}
.list-rows li:last-child { border-bottom: 1px solid var(--line-tint); }
.list-rows .who { flex: 0 0 220px; font-weight: 700; }
.list-rows .what { flex: 1 1 320px; min-width: 0; color: var(--text-card); }
.section--white .list-rows li { border-color: var(--line); }
.bio-box { background: var(--tint); border-radius: 6px; padding: clamp(20px, 3vw, 28px); font-size: 16.5px; color: var(--text-card); }
.notice { font-size: 15.5px; color: var(--muted); padding-top: 8px; }
.notice strong { color: var(--ink); }
.emph { font-weight: 700; font-size: clamp(18px, 2vw, 20px); color: var(--ink); }

/* forensic page */
.h1--long { font-size: clamp(34px, 8.5vw, 76px); }
.card--soft { background: var(--tint); border-color: transparent; }

/* media page */
.list-rows--outlets li { align-items: baseline; }
.list-rows--outlets .who {
  flex: 0 0 190px; font-size: 14.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
}
.list-rows--outlets .who--ph { color: var(--muted); }
.list-rows--outlets a.what { font-size: 18px; font-weight: 600; color: var(--ink); }
.list-rows--outlets a.what:hover { color: var(--accent); }
.cards--tv .card { flex-basis: 300px; padding: clamp(22px, 2.6vw, 28px); gap: 10px; }
.cards--tv .card h3, .cards--pods .card h3 { font-size: clamp(20px, 2.2vw, 22px); }
.cards--tv .card p, .cards--pods .card p { font-size: 16px; }
.cards--pods .card { padding: clamp(22px, 2.6vw, 28px); gap: 10px; }
.card--placeholder h3 { color: var(--muted); }
.channels { display: flex; flex-wrap: wrap; gap: 20px; }
.channel {
  flex: 1 1 280px; min-width: 0; border: 1px solid var(--on-dark-line); border-radius: 6px; padding: 24px;
  display: flex; flex-direction: column; gap: 4px;
}
a.channel { text-decoration: none; transition: border-color .15s; }
a.channel:hover, a.channel:focus-visible { border-color: #fff; }
.episode-links { list-style: none; padding: 0; margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.episode-links a { font-size: 15.5px; font-weight: 600; }
.channel__handle { font-size: 22px; font-weight: 700; color: #fff; }
.channel__desc { font-size: 15px; color: var(--on-dark-text); }
.channel .placeholder-text { font-size: 14px; }
.card .placeholder-text { color: var(--muted); }
.section--dark .channel__desc.placeholder-text { color: var(--on-dark-small); }

/* author page */
.book-card { flex: 1 1 460px; min-width: 0; border: 1px solid var(--line-card); border-radius: 6px; padding: clamp(22px, 2.6vw, 28px); display: flex; flex-wrap: wrap; gap: 24px 28px; }
.book-card > .book__cover { flex: 0 0 clamp(130px, 34vw, 190px); }
.book-card > .book__text { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.book-card h3 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; }
.book-card p { font-size: 16.5px; color: var(--text-card); }
.book-card .book__link { margin-top: auto; padding-top: 6px; font-size: 15.5px; font-weight: 600; }
.shelf { display: flex; flex-wrap: wrap; gap: 24px; }
.shelf > article { flex: 1 1 230px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.shelf__frame { height: 250px; background: var(--tint); border-radius: 6px; display: flex; align-items: center; justify-content: center; padding: 20px; }
.shelf__frame img { width: auto; max-width: 100%; max-height: 100%; border-radius: 2px; box-shadow: 0 4px 14px rgba(27, 42, 58, 0.2); }
.shelf h3 { margin-top: 6px; font-size: 20px; line-height: 1.25; }
.shelf .meta { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.shelf p { font-size: 15.5px; color: var(--text-card); }
.ph-cover { flex: 0 1 220px; min-width: 180px; aspect-ratio: 5 / 8; min-height: 0; border-radius: 4px; }
.novel-photo { flex: 0 1 300px; min-width: 200px; margin: 0; }
.figures--hero strong { font-size: 30px; }
.figures--hero span { font-size: 15px; }
.figures--accent strong { font-size: 34px; color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.btn--placeholder { border: 1.5px dashed var(--ph-light); color: var(--muted); cursor: default; }
.contact-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.contact-row > div { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.contact-row h2 { font-size: clamp(24px, 3vw, 28px); line-height: 1.15; letter-spacing: -0.01em; }
.contact-row p { font-size: 17px; color: var(--text-card); }
.section--tint .ruled.pubs > li:last-child { padding-bottom: 14px; border-bottom: 1px solid var(--line-tint); }
.pubs { gap: 0; }
.pubs > li { padding-bottom: 14px; }

/* EMDR Apps (brand assets from emdrapps.com) */
.app-icon { width: 56px; height: 56px; border-radius: 12px; }
.app-logo { flex: 0 1 260px; min-width: 180px; max-width: 260px; }
.app-logo img { width: 100%; border-radius: 22%; }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 6px; }
.store-badges a { display: inline-flex; }
.store-badges img { height: 44px; width: auto; }
