/* Curious Minds — brand site. All fonts are free (Google Fonts, OFL): Amatic SC for display, Rubik for text.
   Shared by /index.html (he, RTL) and /en/index.html (en, LTR).
   Layout uses logical properties (inline-start/end) so one stylesheet serves both directions. */

:root {
  --paper: #f4f0e8;
  --paper-2: #ebe5d9;
  --ink: #2a2723;
  --ink-soft: #5d5750;
  --line: #ddd5c6;
  --red: #e5473a;
  --red-dark: #c4372b;
  --white: #fffdf9;

  /* per-artist pad colours, sampled from the covers */
  --vg: #dbe7ef;  --vg-ink: #2c3d73;
  --hm: #f8e2c6;  --hm-ink: #d4582f;
  --fk: #f3c9cb;  --fk-ink: #b8235a;
  --pg: #dadfc0;  --pg-ink: #3d4a2c;

  --display: "Amatic SC", "Rubik", sans-serif;
  --body: "Rubik", system-ui, sans-serif;
  --radius: 22px;
  --wrap: 1160px;
  --shadow: 0 1px 2px rgba(42, 39, 35, .06), 0 12px 32px -12px rgba(42, 39, 35, .22);
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; }
p { margin: 0; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  color: var(--red);
  margin-block-end: 14px;
}
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { max-width: 720px; margin-block-end: clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(46px, 6.4vw, 76px); }
.section-head p { margin-block-start: 18px; color: var(--ink-soft); font-size: 19px; }
.center { text-align: center; margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font: 600 17px/1 var(--body); text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px -6px rgba(229, 71, 58, .7); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: 16px; color: var(--ink-soft); font-weight: 500; }
.nav a:hover { color: var(--ink); }
.lang {
  font: 600 14px/1 var(--body); text-decoration: none;
  border: 1.5px solid var(--ink); border-radius: 999px; padding: 8px 14px;
}
.lang:hover { background: var(--ink); color: var(--paper); }
.hero { overflow-x: clip; }
@media (max-width: 860px) {
  .nav { display: none; }
  .lang { margin-inline-start: auto; }
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 110px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(56px, 7.4vw, 100px); }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lead { margin-block-start: 24px; font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 34ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 34px; }

.covers { position: relative; aspect-ratio: 1 / 1; }
.covers img {
  position: absolute; width: 48%;
  filter: drop-shadow(0 18px 28px rgba(42, 39, 35, .22));
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.covers img:nth-child(1) { inset-inline-start: 0;   top: 14%; transform: rotate(-9deg); }
.covers img:nth-child(2) { inset-inline-start: 19%; top: 3%;  transform: rotate(-3deg); }
.covers img:nth-child(3) { inset-inline-start: 36%; top: 6%;  transform: rotate(4deg); }
.covers img:nth-child(4) { inset-inline-start: 52%; top: 17%; transform: rotate(10deg); }
.covers:hover img:nth-child(1) { transform: rotate(-12deg) translate(-4%, 2%); }
.covers:hover img:nth-child(2) { transform: rotate(-4deg) translateY(-3%); }
.covers:hover img:nth-child(3) { transform: rotate(5deg) translateY(-3%); }
.covers:hover img:nth-child(4) { transform: rotate(13deg) translate(4%, 2%); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .covers { max-width: 520px; width: 100%; margin-inline: auto; aspect-ratio: 1.15 / 1; }
}

/* ---------- values ---------- */
.values { background: var(--white); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.value .pic { aspect-ratio: 1 / 1.05; overflow: hidden; }
.value img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.value:hover img { transform: scale(1.04); }
.value .txt { padding: 20px 22px 26px; }
.value h3 { font-size: 44px; color: var(--red); }
.value p { font-size: 15.5px; line-height: 1.6; margin-block-start: 8px; color: var(--ink-soft); }
@media (max-width: 960px) { .value-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .value-grid { grid-template-columns: 1fr; } .value .pic { aspect-ratio: 4 / 3; } }

/* ---------- manifesto ---------- */
.manifesto { background: var(--red); color: #fff; text-align: center; }
.manifesto blockquote { margin: 0 auto; max-width: 900px; font-family: var(--display); font-weight: 700; font-size: clamp(42px, 6vw, 74px); line-height: 1.1; }
.manifesto cite { display: block; margin-block-start: 22px; font: 500 16px var(--body); font-style: normal; opacity: .85; }

/* ---------- series intro ---------- */
.series-intro .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.series-intro .badge {
  display: inline-block; background: var(--ink); color: var(--paper);
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; margin-block-end: 18px;
}
.series-intro h2 { font-size: clamp(48px, 6.6vw, 80px); }
.series-intro p { margin-block-start: 20px; color: var(--ink-soft); font-size: 19px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-block-start: 32px; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.fact b { display: block; font-family: var(--display); font-weight: 700; font-size: 42px; line-height: 1; color: var(--red); }
.fact span { font-size: 15px; color: var(--ink-soft); }
.series-intro .facts { margin-block-start: 0; }
.series-photo { grid-column: 1 / -1; margin-block-start: clamp(16px, 3vw, 32px); }
.series-photo img { width: 100%; border-radius: var(--radius); }
@media (max-width: 860px) { .series-intro .wrap { grid-template-columns: 1fr; } }

/* ---------- inside the booklet ---------- */
.inside { background: var(--paper-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { counter-increment: step; }
.step button.thumb {
  all: unset; cursor: zoom-in; display: block; border-radius: 10px;
  transition: transform .25s ease;
}
.step button.thumb:hover { transform: translateY(-4px) rotate(-.6deg); }
.step img { width: 100%; filter: drop-shadow(0 12px 20px rgba(42, 39, 35, .18)); }
.step h3 { font-size: 34px; margin-block-start: 22px; display: flex; gap: 10px; align-items: baseline; }
.step h3::before {
  content: counter(step);
  font: 700 14px/1 var(--body); color: #fff; background: var(--red);
  width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  transform: translateY(-3px);
}
.step p { margin-block-start: 8px; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } .step img { max-width: 320px; } }

/* ---------- original → coloring page ---------- */
.compare .pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 40px); align-items: center; max-width: 900px; margin-inline: auto; }
.compare figure { margin: 0; text-align: center; }
.compare figure img { background: #fff; padding: 12px; box-shadow: var(--shadow); width: 100%; }
.compare figure:first-child img { transform: rotate(-2deg); }
.compare figure:last-child img { transform: rotate(2deg); }
.compare figcaption { font-family: var(--display); font-weight: 700; font-size: 38px; margin-block-start: 22px; }
.compare figure:first-child figcaption { color: var(--hm-ink); }
.compare figure:last-child figcaption { color: var(--ink); }
.compare .arrow { width: clamp(44px, 7vw, 80px); }
html[dir="ltr"] .compare .arrow { transform: scaleX(-1); }
@media (max-width: 640px) {
  .compare .pair { grid-template-columns: 1fr; }
  .compare .arrow { transform: rotate(-90deg) !important; margin-inline: auto; }
  .compare figure { max-width: 340px; margin-inline: auto; }
}

/* ---------- artists ---------- */
.artists { transition: background-color .45s ease; background: var(--a-bg, var(--vg)); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: 40px; }
.tab {
  font: 600 16px/1 var(--body); padding: 12px 20px; border-radius: 999px;
  border: 1.5px solid currentColor; background: transparent; color: var(--ink); cursor: pointer;
  transition: background .2s, color .2s;
}
.tab[aria-selected="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.tab:not([aria-selected="true"]):hover { background: rgba(255, 255, 255, .55); }

.artist { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.artist[hidden] { display: none; }
.artist .cover img { width: 100%; max-width: 440px; filter: drop-shadow(0 22px 32px rgba(42, 39, 35, .22)); }
.artist h3 { font-size: clamp(56px, 8vw, 94px); color: var(--a-ink); }
.artist .years { font-size: 16px; color: var(--ink-soft); margin-block-start: 6px; }
.artist .bio { font-size: 19px; margin-block-start: 20px; max-width: 46ch; }
.artist h4 { font: 600 14px var(--body); margin: 30px 0 12px; color: var(--ink-soft); }
html[lang="en"] .artist h4 { text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 7px 15px; font-size: 15.5px; font-weight: 500; }
.peek { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.peek button { all: unset; cursor: zoom-in; border-radius: 6px; transition: transform .2s; }
.peek button:hover { transform: translateY(-3px); }
.peek img { width: 100%; filter: drop-shadow(0 8px 12px rgba(42, 39, 35, .18)); }
@media (max-width: 860px) {
  .artist { grid-template-columns: 1fr; }
  .artist .cover img { max-width: 300px; }
}
@media (max-width: 480px) { .peek { grid-template-columns: repeat(2, 1fr); } }

/* ---------- audiences ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.aud { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.aud .dot { width: 14px; height: 14px; border-radius: 50%; margin-block-end: 18px; }
.aud h3 { font-size: 36px; }
.aud p { margin-block-start: 10px; color: var(--ink-soft); font-size: 16px; }
@media (max-width: 960px) { .aud-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .aud-grid { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.qa-list { display: grid; gap: 12px; max-width: 860px; }
.qa { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 22px; }
.qa summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 18px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--red); line-height: 1; flex: none; }
.qa[open] summary::after { content: "–"; }
.qa p { padding-block-end: 20px; color: var(--ink-soft); font-size: 16.5px; }

/* ---------- people ---------- */
.people { background: var(--white); }
.people .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.people-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; }
.people-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.credits { display: grid; gap: 14px; margin-block-start: 30px; }
.credit { display: flex; gap: 16px; align-items: center; padding-block: 14px; border-block-start: 1px solid var(--line); }
.credit .role { font-size: 14px; color: var(--ink-soft); min-width: 92px; }
.credit .name { font-family: var(--display); font-weight: 700; font-size: 38px; line-height: 1.1; }
@media (max-width: 860px) { .people .wrap { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact-card {
  background: var(--ink); color: var(--paper); border-radius: 32px;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.contact-card h2 { font-size: clamp(48px, 6.6vw, 80px); }
.contact-card p { margin: 18px auto 0; max-width: 52ch; opacity: .8; }
.contact-card .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-block-start: 34px; }
.contact-card .btn-ghost { border-color: var(--paper); color: var(--paper); }
.contact-card .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.contact-card .blob { position: absolute; width: 220px; height: 220px; border-radius: 50%; opacity: .9; z-index: 0; }
.contact-card > *:not(.blob) { position: relative; z-index: 1; }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: 640px; margin: 36px auto 0; text-align: start;
}
.contact-form .full { grid-column: 1 / -1; }
.contact-form .hp { position: absolute; inset-inline-start: -9999px; }
.field span { display: block; font-size: 14px; font-weight: 500; opacity: .8; margin-block-end: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: 16px/1.4 var(--body); color: var(--ink);
  background: var(--white); border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field :focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 71, 58, .35); }
.contact-form button { border: 0; cursor: pointer; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 500; }
.form-status.ok { color: #a8e6a1; }
.form-status.err { color: #ffb3a9; }
@media (max-width: 560px) { .contact-form { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { padding-block: 40px 56px; color: var(--ink-soft); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
.site-footer img { height: 36px; width: auto; }
.site-footer .spacer { flex: 1; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.note { font-size: 13.5px; color: var(--ink-soft); margin-block-start: 22px; }

/* ---------- lightbox ---------- */
dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(92vw, 760px); max-height: 92vh; overflow: visible;
}
dialog.lightbox::backdrop { background: rgba(30, 26, 22, .78); backdrop-filter: blur(3px); }
dialog.lightbox img { max-height: 88vh; width: auto; margin-inline: auto; }
dialog.lightbox button {
  position: absolute; top: -18px; inset-inline-end: -18px;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--white); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
}
@media (max-width: 600px) { dialog.lightbox button { top: 8px; inset-inline-end: 8px; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .covers img, .value img { transition: none; }
}
