/* Palette from src/lernposter/aquarell/__init__.py: plain tokens are inks, -l tokens washes. */
@font-face { font-family: "Andika"; font-weight: 400; font-display: swap;
  src: url("fonts/andika-regular.woff2") format("woff2"); }
@font-face { font-family: "Andika"; font-weight: 700; font-display: swap;
  src: url("fonts/andika-bold.woff2") format("woff2"); }

:root {
  --ink: #2b2a28; --muted: #69645b; --line: #d8d2c6; --paper: #fbf8f2;
  --blue: #34437a; --blue-l: #e1e5f2;
  --orange: #965812; --orange-l: #f7e7cf;
  --green: #4b6a2a; --green-l: #e6efd8;
  --red: #9a3d20; --red-l: #f6e0d5;
  --purple: #7a4a7e; --purple-l: #efe3f0;
  --teal: #1f6464; --teal-l: #dcedeb;
  --max: 70rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font: 400 1.125rem/1.6 "Andika", system-ui, sans-serif;
  /* soft paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .35 0 0 0 0 .25 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .2em; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px;
  border-radius: .4rem; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 10; }

/* Painted wash: a coloured layer with a torn edge behind the content. */
.wash { position: relative; isolation: isolate; }
.wash::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 1.6rem;
  background: var(--w, var(--orange-l)); filter: url(#wash); }

/* Header */
.top { padding: 1rem 0; }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.6rem; margin-right: auto; }
.brand img { width: 2.6rem; }
.top nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.top nav a:hover { color: var(--orange); }

.btn { display: inline-block; padding: .8rem 1.5rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; color: #fff; background: var(--orange); transition: transform .15s; }
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn.ghost { color: var(--blue); background: transparent; box-shadow: inset 0 0 0 2px var(--blue); }

/* Hero */
.hero { padding: 2rem 0 4rem; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.4rem); }
.hero h1 em { font-style: normal; color: var(--orange); }
.lead { font-size: 1.3rem; color: var(--muted); max-width: 32rem; }
.actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; padding: 0; margin: 1.5rem 0 0;
  list-style: none; }
.chips li { padding: .2rem .8rem; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); font-size: 1rem; }
.stage { --w: var(--teal-l); aspect-ratio: 1; display: grid; place-items: center; }
.stage::before { border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; }
.stage .owl { width: 62%; animation: bob 5s ease-in-out infinite; }
.stage .float { position: absolute; width: 22%; }
.f1 { top: 2%; left: 4%; rotate: -14deg; }
.f2 { top: 8%; right: 2%; rotate: 10deg; }
.f3 { bottom: 4%; left: 0; }
.f4 { bottom: 0; right: 6%; rotate: 8deg; }
@keyframes bob { 50% { translate: 0 -10px; rotate: 2deg; } }

/* Sections */
section { padding: 4rem 0; }
.intro { max-width: 40rem; margin-bottom: 2.5rem; }
.intro p { color: var(--muted); font-size: 1.2rem; }

.subjects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.subject { padding: 1.75rem 1.5rem; }
.subject img { width: 5.5rem; height: 5.5rem; object-fit: contain; margin-bottom: .75rem; }
.subject h3 { color: var(--c); }
.subject p { margin: 0; color: var(--muted); font-size: 1rem; }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.gallery figure { margin: 0; }
.gallery img { border-radius: .4rem; box-shadow: 0 1px 2px #0001, 0 10px 24px -10px #4a3a2240;
  transition: transform .25s; }
.gallery figure:nth-child(odd) img { rotate: -1.5deg; }
.gallery figure:nth-child(even) img { rotate: 1.5deg; margin-top: 1.5rem; }
.gallery figure:hover img { transform: scale(1.04); rotate: 0deg; }
.gallery figcaption { font-size: .95rem; text-align: center; margin-top: .6rem; color: var(--muted); }

.editions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.editions div { padding: 1.5rem; }
.editions p { margin: 0; color: var(--muted); font-size: 1rem; }

.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.way { padding: 2.25rem 2rem; }
.way ul { margin: 0; padding-left: 1.2rem; }
.way li { margin-bottom: .35rem; }
.way .tag { font-weight: 700; color: var(--c); letter-spacing: .04em; text-transform: uppercase;
  font-size: .9rem; }

.where { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.25rem; }
.where > * { padding: 1.5rem; border-radius: 1.2rem; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; }
.where a { box-shadow: inset 0 0 0 2px var(--orange); transition: transform .15s; }
.where a:hover { transform: translateY(-3px); }
.where strong { display: block; font-size: 1.2rem; }
.where span { color: var(--muted); font-size: 1rem; }
.where .soon { opacity: .75; }

.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 1.2rem; }
.faq details p { margin: .75rem 0 0; color: var(--muted); }

/* Footer */
footer { padding: 3rem 0 2rem; margin-top: 2rem; }
footer .wrap { display: flex; gap: 2rem; flex-wrap: wrap; align-items: end;
  justify-content: space-between; }
footer .owl { width: 7rem; }
footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer small { color: var(--muted); display: block; }

/* Legal pages */
.legal { max-width: 46rem; padding: 2rem 0 4rem; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2rem; }

@media (max-width: 60rem) {
  .hero .wrap, .ways { grid-template-columns: 1fr; }
  .stage { max-width: 26rem; margin-inline: auto; }
  .subjects { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .editions { grid-template-columns: 1fr; }
}
@media (max-width: 34rem) {
  .subjects { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .top nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
