/* ==========================================================
   Lotta-Sofia Saahko — vintage · cottagecore · Lappi
   ========================================================== */

:root {
  --paper: #eee4cf;
  --paper-2: #ebdfc6;
  --paper-3: #e2d2b2;
  --ink: #2c261f;
  --ink-soft: #5b5045;
  --forest: #33503f;
  --forest-dk: #233a2e;
  --moss: #6f7f4f;
  --lingon: #9e3328;
  --cloudberry: #d38b33;
  --birch: #fbf7ee;
  --night: #16213a;
  --night-2: #1f2f4d;
  --aurora-1: #5fd0a6;
  --aurora-2: #6aa7d8;
  --aurora-3: #b48ad6;
  --rule: #c9b48e;
  --kraft: #c9ad85;
  /* Linen weave: warp + weft threads + fine grain + soft light */
  --tex:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='w'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .9' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38  0 0 0 0 .30  0 0 0 0 .19  0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23w)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .012' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .38  0 0 0 0 .30  0 0 0 0 .19  0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),
    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='.75' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35  0 0 0 0 .27  0 0 0 0 .16  0 0 0 .10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 30% 0%, rgba(255, 255, 255, .35), transparent 65%);

  --f-display: "IM Fell English", "Cormorant Garamond", Georgia, serif;
  --f-sc: "IM Fell English SC", "IM Fell English", Georgia, serif;
  --f-body: "EB Garamond", Georgia, "Times New Roman", serif;
  --f-hand: "Caveat", "Segoe Print", cursive;

  --wrap: 1180px;
  --radius: 4px;
  --shadow: 0 1px 0 rgba(44, 38, 31, .08), 0 10px 30px -12px rgba(44, 38, 31, .35);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image: var(--tex);
  background-size: 300px 300px, 300px 300px, 240px 240px, auto;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.18rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--lingon); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--forest); }
:focus-visible { outline: 2px dashed var(--lingon); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

.hand { font-family: var(--f-hand); font-weight: 600; line-height: 1.1; }
.eyebrow {
  font-family: var(--f-hand);
  font-size: 1.7rem;
  color: var(--lingon);
  display: inline-block;
  transform: rotate(-2deg);
  margin-bottom: .25em;
}
.sc { font-family: var(--f-sc); letter-spacing: .06em; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--birch); padding: 8px 14px; }

/* ---------- Ornamental rule ---------- */
.flourish {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  color: var(--rule); margin: 0 auto 1.4rem; max-width: 420px;
}
.flourish::before, .flourish::after {
  content: ""; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--rule), transparent);
}
.flourish svg { width: 34px; height: 34px; color: var(--moss); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--forest);
  --fg: var(--birch);
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-sc);
  font-size: 1.05rem;
  letter-spacing: .05em;
  padding: .7em 1.35em .62em;
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--bg);
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
  cursor: pointer;
}
.btn:hover { color: var(--fg); transform: translateY(-2px) rotate(-1deg); box-shadow: 0 6px 0 rgba(0, 0, 0, .15); }
.btn.lingon { --bg: var(--lingon); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.light { --bg: var(--birch); --fg: var(--night); }
.btn.small { font-size: .92rem; padding: .5em 1em .44em; }
.btn svg { width: 1em; height: 1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 228, 207, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201, 180, 142, .6);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 74px;
}
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.brand svg { width: 42px; height: 42px; color: var(--forest); transition: transform .5s; }
.brand:hover svg { transform: rotate(-12deg) scale(1.08); }
.brand b { font-family: var(--f-display); font-weight: 400; font-size: 1.55rem; line-height: 1; display: block; }
.brand small { font-family: var(--f-hand); font-size: 1.1rem; color: var(--lingon); display: block; line-height: 1; margin-top: 2px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a, .nav button.drop {
  font-family: var(--f-sc);
  font-size: 1.02rem;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 999px;
  background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.nav a:hover, .nav button.drop:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] {
  background: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 20 2, 40 9, 60 5 S 90 3, 98 6' stroke='%239e3328' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 80% 8px; background-position: 50% 92%;
}
.nav .cta { background: var(--lingon); color: var(--birch); margin-left: 6px; }
.nav .cta:hover { background: var(--forest); color: var(--birch); }
.nav .has-sub { position: relative; }
.nav .sub {
  position: absolute; top: calc(100% + 6px); left: 0;
  display: none; flex-direction: column; align-items: stretch; gap: 0;
  background: var(--birch); border: 1px solid var(--rule);
  border-radius: 6px; padding: 8px; min-width: 210px; box-shadow: var(--shadow);
}
.nav .sub a { border-radius: 4px; }
.nav .has-sub.open .sub,
.nav .has-sub:focus-within .sub { display: flex; }
@media (hover: hover) { .nav .has-sub:hover .sub { display: flex; } }
.nav .sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.chev { width: 12px; height: 12px; }

.menu-toggle {
  display: none;
  background: none; border: 1.5px solid var(--ink); border-radius: 999px;
  font-family: var(--f-sc); font-size: 1rem; padding: 6px 14px; cursor: pointer; color: var(--ink);
}

@media (max-width: 1260px) {
  .menu-toggle { display: inline-block; }
  .nav {
    position: fixed; inset: 74px 0 0 0; background: var(--paper);
    display: none; overflow-y: auto; padding: 20px 16px 40px;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav a, .nav button.drop { font-size: 1.3rem; padding: 12px 14px; width: 100%; justify-content: flex-start; }
  .nav .sub { position: static; display: flex; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 18px; }
  .nav .has-sub > button { display: none; }
  .nav .cta { margin: 10px 0 0; justify-content: center; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.pad { padding: clamp(64px, 9vw, 120px) 0; }
.pad-sm { padding: clamp(40px, 6vw, 72px) 0; }
.home .pad { padding: clamp(44px, 5.5vw, 76px) 0; }
.home .pad-sm { padding: clamp(32px, 4vw, 56px) 0; }
.home .section-head { margin-bottom: clamp(24px, 3.5vw, 40px); }
.home .hero { padding-bottom: clamp(70px, 8vw, 110px); }
.band { background-color: var(--paper-2); background-image: var(--tex); background-size: 300px 300px, 300px 300px, 240px 240px, auto; }
.kraft { background-color: var(--kraft); background-image: var(--tex); background-size: 300px 300px, 300px 300px, 240px 240px, auto; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.section-head p { color: var(--ink-soft); }

/* Torn paper edges */
.torn-top::before, .torn-bottom::after {
  content: ""; position: absolute; left: 0; right: 0; height: 22px;
  background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22 L0 12 L30 8 L55 14 L90 6 L120 11 L160 4 L200 12 L235 7 L270 13 L310 5 L350 10 L390 3 L430 12 L470 8 L510 14 L550 6 L600 11 L640 4 L680 13 L720 7 L760 12 L800 5 L845 11 L880 6 L920 14 L960 7 L1000 12 L1040 4 L1080 10 L1120 6 L1160 13 L1200 8 L1200 22 Z'/%3E%3C/svg%3E") 0 0 / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 22' preserveAspectRatio='none'%3E%3Cpath d='M0 22 L0 12 L30 8 L55 14 L90 6 L120 11 L160 4 L200 12 L235 7 L270 13 L310 5 L350 10 L390 3 L430 12 L470 8 L510 14 L550 6 L600 11 L640 4 L680 13 L720 7 L760 12 L800 5 L845 11 L880 6 L920 14 L960 7 L1000 12 L1040 4 L1080 10 L1120 6 L1160 13 L1200 8 L1200 22 Z'/%3E%3C/svg%3E") 0 0 / 100% 100%;
}
.torn-top::before { top: -21px; }
.torn-bottom::after { bottom: -21px; transform: scaleY(-1); }

/* ---------- Doodles ---------- */
.doodle { position: absolute; pointer-events: none; color: var(--moss); opacity: .85; }
.doodle.lingon { color: var(--lingon); }
.sway { animation: sway 6s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(6deg); } }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(90px, 10vw, 140px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--forest); }
.hero .lead { font-size: 1.3rem; color: var(--ink-soft); max-width: 36em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.hero .roles { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 1.3em; padding: 0; list-style: none; font-family: var(--f-sc); font-size: 1rem; letter-spacing: .05em; color: var(--forest); }
.hero .roles li::before { content: "✦ "; color: var(--cloudberry); }

.portrait { position: relative; justify-self: center; width: min(420px, 100%); }
.portrait .frame {
  position: relative;
  background: var(--birch);
  padding: 16px 16px 64px;
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
  transition: transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.portrait .frame:hover { transform: rotate(-1deg) scale(1.02); }
.portrait .frame img { aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 20%; }
.portrait .caption {
  position: absolute; left: 0; right: 0; bottom: 14px; text-align: center;
  font-family: var(--f-hand); font-size: 1.7rem; color: var(--ink);
}
.tape {
  position: absolute; width: 120px; height: 32px;
  background: rgba(214, 196, 150, .7);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  -webkit-mask: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent 0);
}
.tape.tl { top: -14px; left: -26px; transform: rotate(-32deg); }
.tape.tr { top: -12px; right: -24px; transform: rotate(28deg); }
.portrait .note {
  position: absolute; left: -64px; bottom: 120px; width: 150px;
  font-family: var(--f-hand); font-size: 1.45rem; color: var(--lingon); transform: rotate(-8deg); z-index: 3;
}
.portrait .note svg { width: 80px; height: 44px; margin-left: 60px; color: var(--lingon); }
.hero .fells { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: clamp(70px, 10vw, 130px); color: var(--paper-2); }
.hero .fells .far { color: var(--paper-3); }
.hero .trees { color: var(--forest); }

.snow-btn {
  position: absolute; right: 16px; top: 16px; z-index: 3;
  font-family: var(--f-hand); font-size: 1.2rem; color: var(--ink-soft);
  background: rgba(251, 247, 238, .7); border: 1px dashed var(--rule); border-radius: 999px;
  padding: 4px 14px; cursor: pointer;
}
.snow-btn:hover { color: var(--forest); border-style: solid; }
canvas.snow { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait { order: -1; width: min(330px, 86%); }
  .portrait .note { display: none; }
}

/* ---------- Aurora night (Ystäväni susi) ---------- */
.night {
  background: radial-gradient(ellipse at 50% 120%, var(--night-2), var(--night) 70%);
  color: #e9eef6;
  overflow: hidden;
  isolation: isolate;
}
.night h2, .night h3 { color: #f6f2e8; }
.night .eyebrow { color: var(--aurora-1); }
.night a:not(.btn) { color: #cfe8ff; }
.aurora {
  position: absolute; inset: -20% -10% 30%; z-index: -1; filter: blur(40px); opacity: .55;
  background:
    radial-gradient(40% 50% at 20% 40%, var(--aurora-1), transparent 70%),
    radial-gradient(35% 40% at 55% 30%, var(--aurora-2), transparent 70%),
    radial-gradient(30% 45% at 85% 45%, var(--aurora-3), transparent 70%);
  animation: aurora 16s ease-in-out infinite alternate;
}
@keyframes aurora {
  0% { transform: translateX(-6%) skewX(-8deg) scaleY(1); }
  50% { transform: translateX(4%) skewX(6deg) scaleY(1.2); }
  100% { transform: translateX(8%) skewX(-4deg) scaleY(.9); }
}
.stars { position: absolute; inset: 0; z-index: -1; }
.stars i { position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.night .forest-edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 120px; color: #0d1528; z-index: -1; }
.night .snowfield { position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; background: #0d1528; z-index: -1; }

.feature { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.feature .cover-wrap { position: relative; justify-self: center; }
.feature .cover-wrap img {
  width: min(340px, 72vw); border-radius: 3px 8px 8px 3px;
  box-shadow: -8px 0 0 -3px rgba(255, 255, 255, .08), 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 80px rgba(95, 208, 166, .25);
  transform: rotate(-3deg); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1);
}
.feature .cover-wrap:hover img { transform: rotate(0) translateY(-6px); }
.badge {
  position: absolute; top: -18px; right: -24px; z-index: 2;
  width: 108px; height: 108px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  background: var(--cloudberry); color: var(--night);
  font-family: var(--f-hand); font-size: 1.35rem; line-height: 1; font-weight: 700;
  transform: rotate(12deg); box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  animation: wobble 5s ease-in-out infinite;
}
@keyframes wobble { 0%, 100% { transform: rotate(12deg); } 50% { transform: rotate(4deg) scale(1.05); } }
.feature .meta { font-family: var(--f-sc); letter-spacing: .05em; color: #a9c4dd; margin-bottom: 1em; }
.feature .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }
.feature blockquote { margin: 1.6em 0 0; padding-left: 18px; border-left: 2px solid var(--aurora-1); font-style: italic; color: #cdd8e6; }
.feature blockquote cite { display: block; font-style: normal; font-family: var(--f-sc); font-size: .95rem; margin-top: 4px; color: #93a7bf; }

.eyes {
  position: absolute; bottom: 52px; right: 8%; display: flex; gap: 16px; cursor: pointer;
  background: none; border: 0; padding: 10px;
}
.eyes span { width: 10px; height: 6px; background: #f8e36a; border-radius: 50%; box-shadow: 0 0 10px #f8e36a; animation: blink 5s infinite; }
.eyes span:nth-child(2) { transform: rotate(8deg); }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.howl {
  position: absolute; bottom: 84px; right: calc(8% + 30px);
  font-family: var(--f-hand); font-size: 1.9rem; color: #f8e36a;
  opacity: 0; transform: translateY(10px) rotate(-6deg); transition: .4s; pointer-events: none;
}
.howl.show { opacity: 1; transform: translateY(0) rotate(-6deg); }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .eyes { right: 12px; bottom: 30px; }
  .howl { right: 30px; bottom: 60px; }
}

/* ---------- Books / shelf ---------- */
.shelf {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 42px 28px; align-items: start;
  padding-bottom: 8px;
}
.book-card { text-align: center; position: relative; }
.book-card a.cover {
  display: flex; align-items: flex-end; justify-content: center;
  height: 250px; position: relative; perspective: 800px;
}
.book-card a.cover img {
  width: auto; max-width: 100%; max-height: 100%;
  border-radius: 2px 6px 6px 2px;
  box-shadow: inset 4px 0 6px rgba(0, 0, 0, .15), 0 14px 22px -10px rgba(44, 38, 31, .55);
  transform-origin: 0 50%;
  transition: transform .45s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s;
  background: var(--paper-3);
}
.book-card a.cover:hover img { transform: rotateY(-18deg) translateY(-6px); box-shadow: 0 24px 30px -12px rgba(44, 38, 31, .6); }
.book-card h3 { font-size: 1.25rem; margin: 22px 0 2px; }
.book-card .tag { font-family: var(--f-hand); color: var(--lingon); font-size: 1.15rem; }
.ribbon {
  position: absolute; top: 10px; left: -10px; z-index: 2;
  background: var(--lingon); color: var(--birch);
  font-family: var(--f-hand); font-size: 1.15rem; padding: 2px 12px 2px 10px;
  transform: rotate(-6deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.ribbon.amber { background: var(--cloudberry); color: var(--ink); }
.shelf .book-card a.cover::after {
  content: ""; position: absolute; left: -14px; right: -14px; bottom: -14px; height: 14px; border-radius: 2px;
  background: linear-gradient(#8a6a46, #6d5034); box-shadow: 0 8px 14px -6px rgba(44, 38, 31, .5); z-index: -1;
}
.shelf .book-card a.cover { z-index: 0; }
.plank {
  display: none;
  height: 16px; margin-top: -8px; border-radius: 2px;
  background: linear-gradient(#8a6a46, #6d5034);
  box-shadow: 0 10px 18px -6px rgba(44, 38, 31, .5);
}

/* Full book list rows */
.book-row {
  display: grid; grid-template-columns: 200px 1fr; gap: clamp(20px, 4vw, 48px);
  padding: 38px 0; border-bottom: 1px dashed var(--rule); align-items: start;
}
.book-row:last-child { border-bottom: 0; }
.book-row .cover { position: relative; }
.book-row .cover.square { padding-top: 10px; }
.book-row .cover img {
  width: 100%; border-radius: 2px 6px 6px 2px;
  box-shadow: inset 4px 0 6px rgba(0, 0, 0, .15), 0 14px 22px -10px rgba(44, 38, 31, .55);
  transform: rotate(-1.5deg); transition: transform .4s cubic-bezier(.3, 1.5, .5, 1);
}
.book-row:nth-child(even) .cover img { transform: rotate(1.5deg); }
.book-row .cover:hover img { transform: rotate(0) scale(1.03); }
.book-row h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .2em; }
.book-row .meta { font-family: var(--f-sc); letter-spacing: .04em; color: var(--moss); font-size: 1rem; margin-bottom: .8em; }
.book-row .buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 1em; }
.book-row .note { font-family: var(--f-hand); font-size: 1.25rem; color: var(--ink-soft); }
@media (max-width: 640px) {
  .book-row { grid-template-columns: 110px 1fr; gap: 18px; }
  .book-row p { font-size: 1.05rem; }
}

.series-head {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin: 70px 0 8px;
}
.series-head h2 { margin: 0; }
.series-head .hand { font-size: 1.5rem; color: var(--lingon); }

.toc { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 20px; padding: 0; list-style: none; }
.toc a {
  display: inline-block; font-family: var(--f-sc); font-size: 1rem; letter-spacing: .04em;
  border: 1px solid var(--rule); padding: 6px 14px; border-radius: 999px; text-decoration: none; color: var(--ink);
  background: var(--birch);
}
.toc a:hover { background: var(--forest); color: var(--birch); border-color: var(--forest); }

/* Discount ticket */
.ticket {
  position: relative; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center;
  background: var(--birch); border: 2px dashed var(--lingon); border-radius: 10px;
  padding: 18px 28px; max-width: 760px; margin: 0 auto; text-align: center;
}
.ticket .code {
  font-family: var(--f-body); font-weight: 500; font-variant-numeric: lining-nums; font-size: 1.6rem; letter-spacing: .12em; color: var(--lingon);
  border: 1.5px solid var(--lingon); padding: 2px 14px; border-radius: 4px; transform: rotate(-2deg);
}

/* ---------- Theme cards (index cards) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 26px; }
.card {
  position: relative; background: var(--birch);
  padding: 34px 24px 26px;
  box-shadow: var(--shadow);
  background-image: repeating-linear-gradient(transparent 0 31px, rgba(106, 167, 216, .25) 31px 32px);
  background-position: 0 58px;
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
  text-decoration: none; color: var(--ink);
}
.card::before { content: ""; position: absolute; top: 0; bottom: 0; left: 22px; width: 1px; background: rgba(158, 51, 40, .3); }
.card:nth-child(odd) { transform: rotate(-1.4deg); }
.card:nth-child(even) { transform: rotate(1.2deg); }
.card:hover { transform: rotate(0) translateY(-6px); color: var(--ink); }
.card svg.icon { width: 54px; height: 54px; color: var(--forest); margin-bottom: 8px; }
.card h3 { font-size: 1.5rem; }
.card p { font-size: 1.05rem; color: var(--ink-soft); margin: 0; }
.card .more { font-family: var(--f-hand); font-size: 1.3rem; color: var(--lingon); margin-top: 10px; display: inline-block; }
.pin { position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e66a5a, var(--lingon) 60%, #6b1d15); box-shadow: 0 3px 4px rgba(0, 0, 0, .3); transform: translateX(-50%); }

/* ---------- Journey stamps ---------- */
.journey { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 20px; position: relative; margin-top: 10px; }
.stamp {
  --c: var(--forest);
  width: 132px; padding: 6px;
  background: var(--birch);
  border: 6px dotted var(--paper);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .2));
  transition: transform .35s cubic-bezier(.3, 1.8, .5, 1);
  text-align: center;
}
.stamp:nth-child(odd) { transform: rotate(-4deg); }
.stamp:nth-child(even) { transform: rotate(3deg) translateY(10px); }
.stamp:hover { transform: rotate(0) scale(1.1); }
.stamp .inner { background: var(--birch); border: 1.5px solid var(--c); padding: 10px 6px 8px; color: var(--c); }
.stamp svg { width: 56px; height: 56px; margin: 0 auto 4px; }
.stamp b { display: block; font-family: var(--f-sc); font-weight: 400; font-size: 1.1rem; letter-spacing: .06em; }
.stamp small { font-family: var(--f-hand); font-size: 1.05rem; }
.journey-note { text-align: center; font-family: var(--f-hand); font-size: 1.6rem; color: var(--ink-soft); margin-top: 34px; }

/* ---------- Split / polaroid ---------- */
.hero .wrap > *, .feature > *, .split > * { min-width: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.polaroid {
  background: var(--birch); padding: 14px 14px 56px; box-shadow: var(--shadow);
  transform: rotate(-2deg); position: relative; max-width: 520px; justify-self: center;
  transition: transform .4s cubic-bezier(.3, 1.6, .5, 1);
}
.polaroid:hover { transform: rotate(0); }
.polaroid img { filter: none; }
.polaroid figcaption { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-family: var(--f-hand); font-size: 1.5rem; }
.polaroid.right { transform: rotate(2deg); }

/* ---------- Press clippings ---------- */
.clips { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; align-items: start; }
.clip {
  background: #f8f3e6; padding: 26px 26px 20px; margin: 0;
  box-shadow: var(--shadow);
  font-family: var(--f-display); font-size: 1.28rem; line-height: 1.45;
  clip-path: polygon(0 2%, 4% 0, 12% 1.5%, 22% 0, 35% 1%, 50% 0, 63% 1.5%, 76% 0, 88% 1%, 100% 0, 99% 25%, 100% 50%, 98.5% 75%, 100% 100%, 85% 98.5%, 70% 100%, 55% 98%, 40% 100%, 25% 98.5%, 10% 100%, 0 98%, 1% 70%, 0 40%);
}
.clip:nth-child(1) { transform: rotate(-1.5deg); }
.clip:nth-child(2) { transform: rotate(1deg) translateY(20px); }
.clip:nth-child(3) { transform: rotate(-.6deg); }
.clip cite { display: block; margin-top: 14px; font-family: var(--f-sc); font-style: normal; font-size: 1rem; color: var(--lingon); letter-spacing: .05em; }
.clip::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--rule); }

/* ---------- Letters (invite) ---------- */
.letters { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 34px; }
.letter {
  position: relative; display: block; text-decoration: none; color: var(--ink);
  background: var(--birch); padding: 36px 30px 30px; box-shadow: var(--shadow);
  border-top: 10px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--lingon) 0 12px, var(--birch) 12px 20px, var(--night-2) 20px 32px, var(--birch) 32px 40px) 10;
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.letter:hover { transform: translateY(-6px) rotate(-.6deg); color: var(--ink); }
.letter .postmark {
  position: absolute; top: 16px; right: 18px; width: 82px; height: 82px; border-radius: 50%;
  border: 2px solid rgba(158, 51, 40, .55); color: rgba(158, 51, 40, .7);
  display: grid; place-items: center; text-align: center;
  font-family: var(--f-sc); font-size: .74rem; line-height: 1.15; transform: rotate(14deg);
}
.letter h3 { font-size: 1.8rem; padding-right: 90px; }
.letter p { color: var(--ink-soft); font-size: 1.08rem; }
.letter .more { font-family: var(--f-hand); font-size: 1.4rem; color: var(--lingon); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: clamp(50px, 8vw, 100px) 0 clamp(40px, 6vw, 70px); text-align: center; overflow: hidden; }
.page-hero p.lead { font-size: 1.28rem; color: var(--ink-soft); max-width: 640px; margin: 0 auto; }

/* ---------- Prose ---------- */
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--lingon); }
.dropcap::first-letter {
  float: left; font-family: var(--f-display); font-size: 4.6em; line-height: .8;
  padding: 6px 10px 0 0; color: var(--lingon);
}
.pullquote {
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.3;
  text-align: center; color: var(--forest); margin: 1.6em auto; max-width: 640px;
}

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 34px 26px; }
.fact { background: var(--birch); padding: 20px 22px; box-shadow: var(--shadow); border-radius: 2px; }
.fact b { display: block; font-family: var(--f-sc); font-weight: 400; color: var(--lingon); letter-spacing: .05em; font-size: 1rem; }
.fact span { font-family: var(--f-hand); font-size: 1.45rem; line-height: 1.2; }

.topic { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 34px 0; border-bottom: 1px dashed var(--rule); }
.topic:last-child { border-bottom: 0; }
.topic .num { font-family: var(--f-display); font-size: 3.4rem; color: var(--cloudberry); line-height: 1; }
@media (max-width: 600px) { .topic { grid-template-columns: 1fr; gap: 4px; } }

.awards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.awards li { display: flex; gap: 16px; align-items: flex-start; background: var(--birch); padding: 16px 20px; box-shadow: var(--shadow); }
.awards svg { width: 34px; height: 34px; flex: none; color: var(--cloudberry); }

.links-list { list-style: none; padding: 0; margin: 0; }
.links-list li { padding: 16px 0; border-bottom: 1px dashed var(--rule); }
.links-list b { font-family: var(--f-sc); font-weight: 400; color: var(--moss); letter-spacing: .04em; display: block; font-size: 1rem; }

.faq details { background: var(--birch); margin-bottom: 14px; box-shadow: var(--shadow); padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-family: var(--f-display); font-size: 1.35rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-family: var(--f-hand); font-size: 1.8rem; color: var(--lingon); line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 18px; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  border: 1px solid currentColor; border-radius: 999px; padding: 6px 14px; font-family: var(--f-sc); font-size: .98rem;
}
.socials svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-dk); color: #e7e1d1; position: relative; margin-top: 120px; }
.site-footer .trees-top { position: absolute; left: 0; right: 0; top: -99px; width: 100%; height: 100px; color: var(--forest-dk); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding: 40px 0 30px; }
.site-footer h4 { font-family: var(--f-sc); font-size: 1.1rem; letter-spacing: .08em; color: var(--cloudberry); margin-bottom: .8em; }
.site-footer a { color: #e7e1d1; }
.site-footer a:hover { color: var(--cloudberry); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .sign { font-family: var(--f-hand); font-size: 2rem; color: #fff; }
.site-footer .socials a { color: #e7e1d1; }
.site-footer .bottom { border-top: 1px solid rgba(231, 225, 209, .15); padding: 18px 0 26px; font-size: .95rem; color: #b9b29f; text-align: center; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* reveal */
.reveal { opacity: 0; translate: 0 18px; transition: opacity .8s ease, translate .8s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.reveal.in { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; translate: none; } }

/* ==========================================================
   Scrapbook kit
   ========================================================== */
.washi {
  position: absolute; z-index: 3; width: 110px; height: 28px;
  top: -13px; left: 50%; transform: translateX(-50%) rotate(-4deg);
  opacity: .88; box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
  background: repeating-linear-gradient(45deg, rgba(158, 51, 40, .75) 0 6px, rgba(251, 247, 238, .8) 6px 12px);
}
.washi.w2 { background: radial-gradient(circle, rgba(51, 80, 63, .8) 2px, transparent 2.5px) 0 0 / 9px 9px, rgba(220, 230, 210, .85); transform: translateX(-50%) rotate(3deg); }
.washi.w3 { background: repeating-linear-gradient(90deg, rgba(211, 139, 51, .75) 0 8px, rgba(251, 240, 210, .85) 8px 16px); transform: translateX(-50%) rotate(-2deg); }
.washi.w4 { background: linear-gradient(90deg, rgba(31, 47, 77, .12) 50%, transparent 0) 0 0 / 10px 10px, linear-gradient(rgba(31, 47, 77, .12) 50%, transparent 0) 0 0 / 10px 10px, rgba(200, 216, 232, .9); transform: translateX(-50%) rotate(5deg); }
.washi.left { left: 18%; } .washi.right { left: 82%; }

.corners { position: relative; }
.corners > .c { position: absolute; width: 26px; height: 26px; z-index: 2; background: linear-gradient(135deg, #3a3129 50%, transparent 50%); opacity: .9; }
.corners > .c:nth-of-type(1) { top: -4px; left: -4px; }
.corners > .c:nth-of-type(2) { top: -4px; right: -4px; transform: rotate(90deg); }
.corners > .c:nth-of-type(3) { bottom: -4px; right: -4px; transform: rotate(180deg); }
.corners > .c:nth-of-type(4) { bottom: -4px; left: -4px; transform: rotate(270deg); }

.clipper { position: absolute; top: -22px; right: 26px; width: 22px; height: 58px; z-index: 3; color: #8b8f94; transform: rotate(8deg); }

.sticker {
  display: inline-block; font-family: var(--f-sc); letter-spacing: .05em; font-size: .9rem;
  background: var(--birch); color: var(--ink); padding: 3px 12px 2px; border-radius: 3px;
  border: 1px solid var(--rule); box-shadow: 0 2px 3px rgba(0, 0, 0, .12);
}
.sticker.round {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  padding: 8px; background: var(--cloudberry); border: 2px dashed rgba(255, 255, 255, .7); line-height: 1.15;
}

.torn-note {
  position: relative; background: var(--birch); padding: 26px 24px 30px; box-shadow: var(--shadow);
  clip-path: polygon(0 -40px, 100% -40px, 100% 94%, 94% 97%, 88% 94.5%, 80% 98%, 72% 95%, 63% 98.5%, 55% 95%, 46% 98%, 38% 95.5%, 29% 98.5%, 20% 95%, 11% 98%, 4% 95%, 0 97%);
}
.torn-note.grid { background-image: linear-gradient(rgba(106, 167, 216, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(106, 167, 216, .18) 1px, transparent 1px); background-size: 18px 18px; }
.torn-note.sage { background-color: #dfe3cf; }
.torn-note.blush { background-color: #f1dcd2; }
.torn-note.sky { background-color: #dbe5ea; }
.tilt-l { transform: rotate(-2deg); } .tilt-r { transform: rotate(1.8deg); } .tilt-s { transform: rotate(-.8deg); }

/* Scrapbook board: things pinned on kraft paper */
.board { padding: clamp(50px, 7vw, 90px) 0; }
.board .section-head .eyebrow { color: #7a2219; }
.board .section-head p { color: #3c3228; }

/* Press clippings (lehdistö) */
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 46px 34px; align-items: start; }
.press-item {
  display: block; position: relative; margin: 0;
  background: var(--birch); padding: 14px 14px 20px; text-decoration: none; color: var(--ink);
  box-shadow: 0 2px 0 rgba(44, 38, 31, .06), 0 14px 26px -12px rgba(44, 38, 31, .55);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.press-item:nth-child(3n+1) { transform: rotate(-1.6deg); }
.press-item:nth-child(3n+2) { transform: rotate(1.2deg); }
.press-item:nth-child(3n) { transform: rotate(-.5deg); }
.press-item:hover { transform: rotate(0) translateY(-6px) scale(1.01); color: var(--ink); z-index: 2; }
.press-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.press-item .src { position: absolute; top: 24px; left: -10px; transform: rotate(-4deg); background: var(--ink); color: var(--birch); border: 0; }
.press-item h3 { font-size: 1.32rem; line-height: 1.25; margin: 14px 4px 6px; }
.press-item .date { font-family: var(--f-hand); font-size: 1.2rem; color: var(--lingon); margin: 0 4px; }
.press-item.no-img { background-image: repeating-linear-gradient(transparent 0 27px, rgba(106, 167, 216, .25) 27px 28px); padding-top: 50px; }
.press-item.no-img .src { top: 14px; }
.press-item .en { font-family: var(--f-hand); color: var(--moss); font-size: 1.1rem; margin-left: 4px; }

/* Award ribbons */
.award-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 40px 28px; }
.award {
  position: relative; background: var(--birch); padding: 46px 20px 22px; text-align: center; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.award:nth-child(odd) { transform: rotate(-1.5deg); } .award:nth-child(even) { transform: rotate(1.3deg); }
.award:hover { transform: rotate(0) scale(1.03); }
.award .rosette { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); width: 56px; height: 72px; }
.award b { display: block; font-family: var(--f-sc); font-weight: 400; color: var(--lingon); font-size: 1.05rem; letter-spacing: .05em; margin-bottom: 4px; }
.award span { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.3; display: block; }

/* About collage */
.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.collage .polaroid { max-width: none; }
.collage .polaroid:nth-child(2) { margin-top: 70px; }
@media (max-width: 860px) { .collage { grid-template-columns: 1fr 1fr; gap: 14px; } .collage .polaroid { padding: 8px 8px 40px; } .collage .polaroid figcaption { font-size: 1.15rem; } }
.facts .torn-note b { display: block; font-family: var(--f-sc); font-weight: 400; color: var(--lingon); letter-spacing: .05em; font-size: 1rem; }
.facts .torn-note span { font-family: var(--f-hand); font-size: 1.5rem; line-height: 1.2; }

/* ---------- Wooden plank hero ---------- */
.hero.wood {
  --wood: #cfa877;
  background-color: var(--wood);
  background-image:
    /* plank seams */
    repeating-linear-gradient(180deg, transparent 0 128px, rgba(70, 40, 18, .45) 128px 130px, rgba(255, 236, 200, .22) 130px 131px, transparent 131px 132px),
    /* alternating plank tones */
    repeating-linear-gradient(180deg, rgba(120, 72, 30, .10) 0 132px, transparent 132px 264px, rgba(255, 230, 190, .10) 264px 396px),
    /* grain */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='396'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0035 0.11' numOctaves='4' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .40 0 0 0 0 .24 0 0 0 0 .10 0 0 0 1.9 -.62'/%3E%3C/filter%3E%3Cfilter id='f'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.0015 0.55' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .33 0 0 0 0 .19 0 0 0 0 .08 0 0 0 1.4 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E"),
    /* soft vignette */
    radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(60, 34, 14, .28));
  background-size: auto, auto, 900px 396px, auto;
  box-shadow: inset 0 -10px 18px -10px rgba(40, 22, 8, .5), inset 0 8px 14px -10px rgba(40, 22, 8, .35);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.home .hero.wood { padding-bottom: clamp(56px, 7vw, 96px); }
.hero.wood .lead { color: #3a2f24; }
.hero.wood .roles { color: #24402f; }
.hero.wood .eyebrow { color: #7a2418; }
.hero.wood h1 em { color: #24402f; }
.hero.wood .doodle { color: #3f5a3a; opacity: .7; }
.hero.wood .btn.ghost { background: rgba(251, 247, 238, .35); }
.hero.wood .portrait .note { color: #7a2418; }
.hero.wood .portrait .note svg { color: #7a2418; }

/* Photo hung on a push pin */
.portrait .frame { transform-origin: 50% 0; transform: rotate(2.5deg); box-shadow: 0 18px 30px -12px rgba(40, 22, 8, .6), 0 2px 4px rgba(40, 22, 8, .25); }
.portrait .frame:hover { transform: rotate(-1.5deg); animation: none; }
.pin.big {
  top: -6px; width: 30px; height: 30px; z-index: 3;
  background: radial-gradient(circle at 34% 30%, #f3a294 0 8%, #d4513f 22%, var(--lingon) 58%, #5e1810);
  box-shadow: 4px 7px 6px -2px rgba(40, 22, 8, .45), inset -2px -3px 4px rgba(0, 0, 0, .25);
}
.pin.big::after { /* little dimple where the photo is pierced */
  content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 14px; transform: translate(-50%, 4px);
  background: radial-gradient(ellipse, rgba(0, 0, 0, .12), transparent 70%); z-index: -1;
}

/* Ribbons sit on the cover itself (square covers are shorter) */
.book-card a.cover .cv { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.book-card a.cover .cv img { max-height: 250px; }
.book-card .cv .ribbon { line-height: 1.4; top: 12px; }

/* ---------- Front page: tighter, more distinct sections ---------- */
.home .pad { padding: clamp(34px, 4.2vw, 58px) 0; }
.home .pad-sm { padding: clamp(28px, 3.4vw, 44px) 0; }
.home .section-head { margin-bottom: clamp(20px, 2.8vw, 32px); }
.home .hero.wood { padding-top: clamp(30px, 4.5vw, 60px); padding-bottom: clamp(44px, 5.5vw, 72px); }
.home .shelf { gap: 34px 26px; }
.home .shelf + .plank + p.center { margin-top: 26px !important; }
.home .torn-top::before, .home .torn-bottom::after { filter: drop-shadow(0 -2px 1px rgba(60, 40, 20, .12)); }

/* Cork board */
.cork {
  background-color: #c79a68;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .2 0 0 0 0 .08 0 0 0 3.2 -1.55'/%3E%3C/filter%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.38' numOctaves='1' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .8 0 0 0 0 .62 0 0 0 3 -1.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23l)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(70, 40, 15, .22));
  background-size: 220px 220px, auto;
  box-shadow: inset 0 0 0 10px #8a6440, inset 0 0 0 12px #6d4c2f, inset 0 0 30px rgba(50, 28, 10, .35);
}
.cork.torn-top::before, .cork.torn-bottom::after { background: #c79a68; }
.cork .section-head h2 { color: #2c1d10; }
.cork .eyebrow { color: #7a2418; }
.cork .card { box-shadow: 3px 8px 14px -4px rgba(50, 28, 10, .45); }

/* Pale lichen-green paper */
.sage { background-color: #dfe2cb; background-image: var(--tex); background-size: 300px 300px, 300px 300px, 240px 240px, auto; }

/* Kraft section */
.home .kraft .eyebrow { color: #7a2418; }
.home .kraft p { color: #2c261f; }

/* Pale winter-sky paper for the letters */
.sky { background-color: #dfe5e3; background-image: var(--tex); background-size: 300px 300px, 300px 300px, 240px 240px, auto; }

/* Shelf: centre the books */
.shelf { display: flex; flex-wrap: wrap; justify-content: center; }
.shelf .book-card { flex: 0 1 190px; }
@media (max-width: 860px) {
  .hero.wood .snow-btn { top: auto; bottom: 12px; right: 12px; }
  .hero.wood { padding-bottom: 64px; }
}

/* Puhekeikat → Kouluvierailut submenu */
.nav .sub-link > a { display: inline-flex; align-items: center; gap: 4px; }
.nav .sub-link > a .chev { width: 12px; height: 12px; }
.nav .sub-link.in > a { position: relative; }
.nav .sub-link.in > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--lingon); border-radius: 2px; opacity: .5; }
@media (max-width: 860px) {
  .nav .sub-link > a .chev { display: none; }
  .nav .sub-link.in > a::after { display: none; }
}

/* ---------- Hero v2: weathered planks + paper card ---------- */
.hero.wood {
  background-color: #6e573c;
  background-image:
    radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(30, 18, 8, .35)),
    url("/img/textures/planks.jpg");
  background-size: auto, 1800px 560px;
  background-position: center, center top;
  box-shadow: inset 0 10px 16px -10px rgba(0, 0, 0, .5), inset 0 -12px 18px -12px rgba(0, 0, 0, .55);
}
.hero-card {
  position: relative;
  background-color: #f4ead0;
  background-image: var(--tex);
  background-size: 300px 300px, 300px 300px, 240px 240px, auto;
  padding: clamp(26px, 3.6vw, 46px) clamp(22px, 3.6vw, 48px) clamp(28px, 3.6vw, 44px);
  box-shadow: 0 2px 3px rgba(0, 0, 0, .25), 0 22px 40px -14px rgba(20, 10, 2, .65);
  transform: rotate(-.6deg);
  border-radius: 2px;
}
.hero-card .washi { top: -14px; }
.hero-card h1 { margin-top: .15em; }
.hero.wood .hero-card .lead { color: var(--ink-soft); }
.hero.wood .hero-card .btn.ghost { background: transparent; }
.hero.wood .doodle { color: #e9dcbc; opacity: .55; }
.hero.wood .portrait .note { color: #f6ecd2; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
.hero.wood .portrait .note svg { color: #f6ecd2; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .4)); }
.hero.wood .snow-btn { background: rgba(244, 234, 208, .9); }
@media (max-width: 860px) {
  .hero-card { transform: none; }
  .hero.wood { background-size: auto, 1260px 392px; }
}

.collage .polaroid img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }
.collage .polaroid { justify-self: stretch; }
@media (max-width: 1260px) {
  .nav .sub-link > a .chev { display: none; }
  .nav .sub-link.in > a::after { display: none; }
}

/* Photos without captions: even white border all round */
.polaroid { padding: 12px; }
.portrait .frame { padding: 14px; }

/* Minusta: one big photo with a small one overlapping */
.split:has(.collage.big) { grid-template-columns: 1.1fr 1fr; align-items: start; }
.collage.big { display: block; position: relative; padding: 0 0 90px 0; }
.collage.big .polaroid { position: relative; max-width: none; margin: 0; }
.collage.big .main { width: 82%; margin-left: auto; transform: rotate(2deg); }
.collage.big .main img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
.collage.big .inset { position: absolute; left: 0; bottom: 0; width: 46%; transform: rotate(-4deg); z-index: 2; }
.collage.big .inset img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 35%; }
.collage.big .polaroid:hover { transform: rotate(0); }
@media (max-width: 860px) {
  .collage.big { padding-bottom: 60px; }
  .collage.big .main { width: 86%; }
  .collage.big .inset { width: 48%; }
}
/* bigger skating photo */
.split.rev .polaroid { max-width: 470px; width: 100%; }

/* six books on one shelf */
.shelf { gap: 34px 22px; }
.shelf .book-card { flex: 1 1 150px; max-width: 200px; }
.shelf .book-card a.cover { height: 230px; }
.shelf .book-card a.cover .cv img { max-height: 230px; }
@media (max-width: 860px) { .shelf .book-card { flex: 0 1 150px; } .shelf .book-card a.cover { height: 210px; } .shelf .book-card a.cover .cv img { max-height: 210px; } }

/* Minusta: tighter section spacing */
.about .page-hero { padding-bottom: clamp(20px, 3vw, 36px); }
.about .pad { padding: clamp(34px, 4.2vw, 58px) 0; }
.about .pad-sm { padding: clamp(24px, 3vw, 40px) 0; }
.about .pad-sm .split { align-items: start; }
.about .narrow.reveal[style] { margin: 6px auto 10px !important; }
.about .section-head { margin-bottom: clamp(20px, 2.8vw, 32px); }

/* Hero backdrop: photo of weathered boards (Pexels #168452, free licence) */
.hero.wood {
  background-color: #7a6450;
  background-image:
    radial-gradient(ellipse at 50% 45%, transparent 45%, rgba(30, 18, 8, .35)),
    url("/img/textures/wood-boards.jpg");
  background-size: auto, cover;
  background-position: center, center;
}

/* Cork board backdrop: photo (Pexels #5640940, free licence) */
.cork {
  background-color: #c98d5c;
  background-image:
    radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(70, 40, 15, .25)),
    url("/img/textures/cork-board.jpg");
  background-size: auto, cover;
  background-position: center, center;
  box-shadow: inset 0 0 0 12px #d8b48a, inset 0 0 0 14px #b8915f, inset 0 0 26px rgba(50, 28, 10, .35);
}

/* ---------- Realistic push pins ---------- */
.pin, .pin.big, .pin.green, .pin.yellow {
  --c1: #e2604b; --c2: #b2392a; --c3: #6a1a11;
  width: 20px; height: 20px; background: none; box-shadow: none; border-radius: 50%;
}
.pin.big { width: 28px; height: 28px; }
.pin.green  { --c1: #6aa77a; --c2: #3c6e4b; --c3: #1d3a26; }
.pin.yellow { --c1: #f2c45a; --c2: #cf9a2c; --c3: #7f5812; }
/* cast shadow: offset down-right, softer further away */
.pin::before {
  content: ""; position: absolute; left: 22%; top: 30%; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 12, 4, .5) 0 40%, rgba(25, 12, 4, .22) 60%, transparent 72%);
  filter: blur(1.6px);
}
/* glossy domed head with a rim */
.pin::after, .pin.big::after {
  content: ""; position: absolute; inset: 0; width: auto; height: auto; transform: none; z-index: auto; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, .95) 0 6%, rgba(255, 255, 255, .35) 13%, transparent 22%),
    radial-gradient(circle at 62% 70%, rgba(255, 255, 255, .18) 0 8%, transparent 16%),
    radial-gradient(circle at 45% 42%, var(--c1) 0 30%, var(--c2) 62%, var(--c3) 100%);
  box-shadow: inset -2px -3px 3px rgba(0, 0, 0, .35), inset 1px 1px 2px rgba(255, 255, 255, .3), 0 1px 1px rgba(0, 0, 0, .45);
}
.cork .section-head.label {
  position: relative; width: fit-content; max-width: 100%; padding: 18px 34px 16px;
  background: #f7efdc; box-shadow: 0 2px 3px rgba(0, 0, 0, .18), 0 12px 18px -10px rgba(40, 20, 5, .55);
  transform: rotate(-1deg);
}
.cork .section-head.label h2 { margin: 0; }
.cork .section-head.label > .pin { top: -8px; }

/* ---------- Puhekeikat: scrapbook ---------- */
.talk-hero { text-align: left; }
.talk-hero .split { align-items: center; }
.talk-hero h1 { margin-top: .1em; }
.langs { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 1.2em 0 1.4em; }
.langs li { font-family: var(--f-hand); font-size: 1.25rem; background: var(--birch); padding: 2px 14px; border-radius: 3px; box-shadow: 0 2px 4px rgba(0, 0, 0, .12); transform: rotate(-2deg); }
.langs li:nth-child(2) { transform: rotate(1.5deg); background: #dbe5ea; }
.langs li:nth-child(3) { transform: rotate(-1deg); background: #f1dcd2; }
.talk-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.talk-photo { position: relative; justify-self: center; width: min(400px, 92%); }
.talk-photo .polaroid { max-width: none; transform: rotate(2.5deg); }
.talk-photo .polaroid img { aspect-ratio: 4 / 4.6; object-fit: cover; object-position: 50% 25%; }
.award-badge {
  position: absolute; left: -46px; bottom: -18px; z-index: 3; width: 150px; padding: 46px 12px 14px; text-align: center;
  background: #fbf2dc; box-shadow: 0 10px 18px -8px rgba(40, 20, 5, .5); transform: rotate(-6deg);
}
.award-badge .rosette { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); width: 58px; height: 74px; }
.award-badge b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.15rem; line-height: 1.15; }
.award-badge span { font-family: var(--f-hand); color: var(--lingon); font-size: 1.5rem; }
.talk-intro { padding: 34px 34px 40px; }
.talk-intro p { margin: 0 0 .8em; }
.talk-intro .hand { font-family: var(--f-hand); font-size: 1.35rem; color: var(--lingon); margin: 0; }
.talks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px 34px; align-items: start; }
.torn-note.talk { padding: 30px 28px 40px; }
.torn-note.talk .talk-icon { width: 46px; height: 46px; color: var(--forest); display: block; margin-bottom: 8px; }
.torn-note.talk h3 { margin: 0 0 .4em; font-size: 1.45rem; line-height: 1.2; }
.torn-note.talk p { margin: 0 0 .7em; }
.torn-note.talk ul { margin: 0; padding-left: 1.1em; }
.torn-note.talk li { margin-bottom: .35em; }
.torn-note.talk li::marker { color: var(--lingon); }
@media (max-width: 860px) {
  .talks { grid-template-columns: 1fr; }
  .talk-photo { order: -1; width: min(320px, 82%); margin-bottom: 30px; }
  .award-badge { left: -20px; width: 128px; }
}
.talk-photo .polaroid { transform: rotate(2deg); }
.talk-photo .polaroid img { aspect-ratio: auto; object-fit: contain; filter: none; }
.talk-hero .lead { margin-bottom: 1.4em; }
.talk-photo { width: min(440px, 92%); }
.talk-hero .actions { margin-top: 1.6em; }

/* Kirjani: compact top so the books show sooner */
.books .page-hero { padding: clamp(22px, 3vw, 40px) 0 clamp(10px, 1.5vw, 18px); }
.books .page-hero h1 { margin-bottom: .2em; font-size: clamp(2.4rem, 4.5vw, 3.4rem); }
.books .page-hero .lead { margin: 0 auto; font-size: 1.12rem; }
.ticket.slim {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px;
  max-width: 720px; margin: 0 auto; padding: 10px 18px; font-size: 1rem; text-align: center;
}
.ticket.slim .code { font-size: 1.15rem; padding: 2px 12px; margin: 0; transform: rotate(-2deg); }
.books > section:nth-of-type(2) { padding-bottom: 6px; }
.books .series-head:first-child { margin-top: 10px; }
.books .series-head:first-child { margin-top: 34px; }
.press-item img[src*="mtv2"] { object-position: 50% 12%; }

/* ---------- Some page ---------- */
.some-hero { position: relative; }
.follow-stamp {
  display: inline-grid; place-items: center; margin-top: 22px; padding: 12px 22px; transform: rotate(-3deg);
  border: 2px solid var(--lingon); outline: 2px dashed rgba(158, 51, 40, .45); outline-offset: 4px; color: var(--lingon); background: rgba(251, 247, 238, .6);
}
.follow-stamp b { font-family: var(--f-display); font-weight: 400; font-size: 2rem; line-height: 1; }
.follow-stamp span { font-family: var(--f-sc); letter-spacing: .08em; font-size: .95rem; }
.channels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 46px 40px; align-items: start; }
.channel { position: relative; background: #fbf7ee; padding: 26px 30px 32px; box-shadow: 0 2px 3px rgba(0,0,0,.15), 0 18px 30px -16px rgba(40, 20, 5, .55); transform: rotate(-.6deg); }
.channel.sky { background: #e6ecee; transform: rotate(.6deg); }
.channel .polaroid { max-width: none; margin: -60px auto 18px; width: 78%; transform: rotate(2deg); }
.channel.sky .polaroid { transform: rotate(-2deg); }
.channel .polaroid img { aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 35%; }
.channel h2 { margin: 0 0 .4em; }
.theme-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 1em 0 1.4em; }
.theme-tags li { font-family: var(--f-hand); font-size: 1.15rem; padding: 1px 12px; background: #efe3c6; border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.theme-tags li:nth-child(3n+2) { background: #dfe3cf; transform: rotate(1.5deg); }
.theme-tags li:nth-child(3n) { background: #f1dcd2; transform: rotate(-1.5deg); }
.chan-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.chan-links a {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px; text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--rule); border-radius: 999px; transition: transform .2s, background .2s, color .2s;
}
.chan-links a:hover { background: var(--forest); color: var(--birch); transform: translateY(-2px); }
.chan-links svg { width: 22px; height: 22px; flex: none; }
.chan-links span { display: flex; flex-direction: column; line-height: 1.15; font-size: 1rem; }
.chan-links b { font-family: var(--f-sc); font-weight: 400; font-size: .8rem; letter-spacing: .06em; color: var(--moss); }
.chan-links a:hover b { color: #cfe0cf; }
.some-hero + .board { padding-top: clamp(80px, 9vw, 110px); }
@media (max-width: 860px) {
  .channels { grid-template-columns: 1fr; gap: 90px; }
  .channel { transform: none !important; }
}

/* Markdown-generated content: keep the earlier look */
.faq details > div > p { margin: 0 0 .6em; }
.faq details > div > p:last-child { margin-bottom: 0; }
.codes p b { font-family: var(--f-sc); font-weight: 400; letter-spacing: .06em; }

/* ---------- Kirjani: moving line of covers ---------- */
.cover-marquee { overflow: hidden; padding: 14px 0 26px; margin-bottom: 18px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.cover-marquee .track { display: flex; gap: 14px; width: max-content; animation: marquee 70s linear infinite; }
.cover-marquee:hover .track { animation-play-state: paused; }
.cover-marquee a { flex: none; display: block; transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); }
.cover-marquee a:hover { transform: translateY(-6px) rotate(-1deg); }
.cover-marquee img { height: 230px; width: auto; display: block; border-radius: 2px 5px 5px 2px;
  box-shadow: inset 4px 0 6px rgba(0, 0, 0, .15), 0 12px 18px -10px rgba(44, 38, 31, .55); }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
@media (max-width: 860px) { .cover-marquee img { height: 170px; } .cover-marquee .track { animation-duration: 55s; } }
@media (prefers-reduced-motion: reduce) { .cover-marquee { overflow-x: auto; } .cover-marquee .track { animation: none; } }

/* Minusta: photo + quote between the two text blocks */
.photo-quote { padding: clamp(20px, 3vw, 40px) 0; }
.photo-quote .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); align-items: center; gap: 0; max-width: 980px; }
.photo-quote .polaroid { max-width: 420px; width: 100%; justify-self: end; transform: rotate(-3deg); z-index: 1; }
.photo-quote .polaroid .washi { top: -12px; }
.photo-quote .torn-note { margin-left: -40px; padding: 44px 34px 50px; z-index: 2; position: relative; }
.photo-quote .pullquote { margin: 0; }
@media (max-width: 760px) {
  .photo-quote .wrap { grid-template-columns: 1fr; }
  .photo-quote .polaroid { justify-self: center; width: 84%; }
  .photo-quote .torn-note { margin: -30px 16px 0; }
}
.press-item img { filter: sepia(.18) saturate(.82) contrast(.96); }

/* Muted cork backdrop */
.cork {
  background-color: #c9ab8a;
  background-image:
    linear-gradient(rgba(214, 198, 176, .55), rgba(214, 198, 176, .55)),
    radial-gradient(ellipse at 50% 50%, transparent 60%, rgba(70, 45, 20, .18)),
    url("/img/textures/cork-board.jpg");
  background-size: auto, auto, 640px auto;
  background-position: center;
}
.talk-photo .polaroid { padding: 12px 12px 54px; }
.talk-photo .polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-family: var(--f-hand); font-size: 1.6rem; color: var(--ink); }

/* Minusta: tighter gaps between sections */
.about .pad-sm { padding: clamp(12px, 1.6vw, 22px) 0; }
.about .pad { padding: clamp(20px, 2.6vw, 36px) 0; }
.about .photo-quote { padding: 0; }
.about .collage.big { padding-bottom: 60px; }
.about .page-hero { padding-bottom: clamp(14px, 2vw, 24px); }
.about .page-hero h1 { margin-bottom: .1em; }
.about .page-hero .lead { margin-top: 0; }
.about .page-hero { padding-bottom: clamp(34px, 4vw, 52px); }
/* Minusta: tuck the snow photo up into the empty space under the collage */
@media (min-width: 861px) {
  .about .photo-quote { margin-top: -110px; }
  .about .photo-quote .wrap { align-items: end; }
  .about .photo-quote .torn-note { margin-bottom: 60px; }
}

/* Lotta ja pappa page */
.lp-facts .lp-title { display: block; font-family: var(--f-display); font-size: 1.35rem; line-height: 1.2; margin: 4px 0 6px; }
.lp-facts .torn-note p { margin: 0; font-size: 1rem; }
.lp .chan-links { max-width: 640px; margin: 18px auto 0; text-align: left; }
.lp .talk-photo .polaroid img { aspect-ratio: 3 / 2.4; object-fit: cover; }
.nav a, .nav button.drop { white-space: nowrap; }
@media (min-width: 1261px) { .nav a, .nav button.drop { padding: 8px 9px; font-size: .98rem; } .nav ul { gap: 0; } }
.lp .shelf { gap: 30px 16px; flex-wrap: nowrap; }
.lp .shelf .book-card { flex: 1 1 0; min-width: 0; max-width: 170px; }
.lp .shelf .book-card a.cover { height: 200px; }
.lp .shelf .book-card a.cover .cv img { max-height: 200px; }
.lp .page-hero { padding-bottom: clamp(10px, 2vw, 24px); }
@media (max-width: 860px) { .lp .shelf { flex-wrap: wrap; } .lp .shelf .book-card { flex: 0 1 140px; } }

/* ---------- Lotta ja pappa: extra cosy ---------- */
.lp { background:
  radial-gradient(ellipse at 50% 0%, rgba(255, 214, 150, .28), transparent 60%),
  radial-gradient(ellipse at 50% 100%, rgba(160, 100, 50, .10), transparent 60%); }
.lp .page-hero { background: radial-gradient(ellipse at 70% 40%, rgba(255, 200, 130, .22), transparent 60%); }
.lp .page-hero h1 { color: #4a2c1a; }
.lp .talk-photo .polaroid img { aspect-ratio: 4 / 4.6; object-position: 50% 35%; }
.lp .talk-photo .polaroid { padding: 12px; }
.lp-story .split { align-items: center; gap: clamp(30px, 5vw, 70px); }
.lp-story .polaroid { max-width: 400px; justify-self: center; transform: rotate(-2.5deg); }
.lp-story .polaroid img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; }
.lp-quote { font-family: var(--f-hand); font-size: 1.7rem; line-height: 1.25; color: #7a3a22; margin-top: 1em; transform: rotate(-1.5deg); }
.lp-album { background: #efe1c4; background-image: var(--tex); background-size: 300px 300px, 300px 300px, 240px 240px, auto;
  box-shadow: inset 0 14px 22px -16px rgba(90, 55, 20, .35), inset 0 -14px 22px -16px rgba(90, 55, 20, .35); }
.snaps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; align-items: start; }
.snaps .polaroid { max-width: none; padding: 10px; }
.snaps .polaroid img { aspect-ratio: 4 / 5; object-fit: cover; }
.snaps .polaroid:nth-child(1) { transform: rotate(-3deg); }
.snaps .polaroid:nth-child(2) { transform: rotate(2deg) translateY(18px); }
.snaps .polaroid:nth-child(3) { transform: rotate(-1.5deg); }
.snaps .polaroid:nth-child(4) { transform: rotate(3deg) translateY(12px); }
.snaps .polaroid:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.credit { text-align: right; font-size: .85rem; color: var(--ink-soft); margin: 34px 0 0; font-style: italic; }
@media (max-width: 860px) { .snaps { grid-template-columns: 1fr 1fr; gap: 18px; } }
.snaps .polaroid { width: 100%; justify-self: stretch; }
/* Lotta ja pappa: bigger photos */
.lp .talk-hero .split { grid-template-columns: .85fr 1.15fr; }
.lp .talk-photo { width: min(640px, 100%); }
.lp .talk-photo .polaroid img { aspect-ratio: 3 / 2; object-position: 50% 30%; }
.lp-story .split { grid-template-columns: 1fr 1fr; }
.lp-story .polaroid { max-width: 520px; width: 100%; }
.snaps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; max-width: 1120px; margin: 0 auto; }
.snaps .polaroid { padding: 12px; }
@media (max-width: 860px) { .snaps { grid-template-columns: 1fr; max-width: 420px; } .lp .talk-hero .split { grid-template-columns: 1fr; } }
.lp .talk-hero .split { grid-template-columns: 1.1fr .9fr; }
.lp .talk-photo { width: min(500px, 100%); }
.lp .talk-photo .polaroid img { aspect-ratio: 4 / 5; object-position: 50% 62%; }
.lp .talk-hero .split { grid-template-columns: 1fr 1fr; }
.lp .talk-photo { width: min(560px, 100%); }
.lp .talk-photo .polaroid img { aspect-ratio: 4 / 5; object-position: 50% 78%; }
.lp .talk-photo .polaroid img { aspect-ratio: auto; object-position: 50% 50%; }

.lp .pad { padding: clamp(30px, 4vw, 54px) 0; }
.lp-follow { padding-top: 0 !important; padding-bottom: clamp(40px, 5vw, 64px) !important; }
.lp-follow h2 { margin-top: 0; }
.lp .chan-links { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
.lp .page-hero { padding-top: clamp(30px, 4vw, 56px); padding-bottom: 0; }
.lp-story { padding-top: clamp(20px, 2.5vw, 34px); padding-bottom: clamp(30px, 4vw, 50px); }
.lp-follow { padding-top: clamp(44px, 5vw, 70px) !important; padding-bottom: clamp(50px, 6vw, 80px) !important; margin-top: 30px; }
@media (max-width: 1200px) { .lp .shelf { flex-wrap: wrap; } .lp .shelf .book-card { flex: 0 1 150px; } }
.lp-follow.band, .lp-follow.band.torn-top::before { background-color: #dfe2c8; }

/* Lotta ja pappa: latest YouTube videos */
.video-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
.video-head { text-align: center; font-size: 1.5rem; margin: 0 0 22px; }
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.video.polaroid { display: block; max-width: none; padding: 10px 10px 16px; text-decoration: none; color: var(--ink); }
.video:nth-child(odd) { transform: rotate(-1.5deg); } .video:nth-child(even) { transform: rotate(1.5deg); }
.video:hover { transform: rotate(0) translateY(-4px); }
.video .thumb { position: relative; display: block; }
.video .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.video .play { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(158, 51, 40, .9); box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.video .play::after { content: ""; position: absolute; left: 19px; top: 14px; border-left: 15px solid #fbf7ee; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.video b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.1rem; line-height: 1.25; margin: 10px 2px 2px; }
.video small { font-family: var(--f-hand); font-size: 1.1rem; color: var(--lingon); margin: 0 2px; }
@media (max-width: 960px) { .video-cols { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .videos { grid-template-columns: 1fr; } }
.lp-videos { margin: 30px 0; }
.lp-follow { margin-top: 0; }

/* ---------- Mobile menu (fixed) ---------- */
/* backdrop-filter on the header trapped the fixed menu inside the header bar; move the blur to a pseudo-element */
.site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@media (max-width: 1260px) {
  .nav {
    position: fixed; inset: 75px 0 0 0; z-index: 60;
    background-color: var(--paper); background-image: var(--tex); background-size: 300px 300px, 300px 300px, 240px 240px, auto;
    padding: 18px 24px 40px; overflow-y: auto; overscroll-behavior: contain;
    border-top: 1px solid rgba(201, 180, 142, .6);
  }
  .nav.open { display: block; animation: menuIn .25s ease; }
  @keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav > ul { max-width: 520px; margin: 0 auto; gap: 0; }
  .nav > ul > li { border-bottom: 1px dashed var(--rule); }
  .nav > ul > li:last-child, .nav > ul > li:nth-last-child(2) { border-bottom: 0; }
  .nav a, .nav button.drop {
    font-family: var(--f-display); font-size: 1.55rem; letter-spacing: 0; padding: 12px 4px; border-radius: 0; background: none;
  }
  .nav a:hover { background: none; color: var(--lingon); }
  .nav a[aria-current="page"] { color: var(--lingon); background-position: 4px 90%; background-size: 90px 8px; }
  /* sub-pages (Kouluvierailut, Some, Palkinnot) */
  .nav .sub { flex-direction: column; padding: 0 0 10px 22px; gap: 0; }
  .nav .sub a { font-size: 1.2rem; padding: 6px 4px; color: var(--ink-soft); }
  .nav .sub a::before { content: "– "; color: var(--cloudberry); }
  /* "Muuta" becomes a small label above its links */
  .nav .has-sub:not(.sub-link)::before { content: "Muuta"; display: block; font-family: var(--f-sc); letter-spacing: .08em; font-size: .9rem; color: var(--moss); padding: 14px 4px 2px; }
  .nav .has-sub:not(.sub-link) .sub { padding-left: 4px; }
  .nav .has-sub:not(.sub-link) .sub a { font-family: var(--f-display); font-size: 1.4rem; color: var(--ink); padding: 8px 4px; }
  .nav .has-sub:not(.sub-link) .sub a::before { content: none; }
  .nav a[lang="en"] { font-size: 1.2rem; color: var(--ink-soft); }
  .nav .cta { display: flex; justify-content: center; font-family: var(--f-sc); font-size: 1.15rem; padding: 14px 20px; margin-top: 18px; border-radius: 999px; background: var(--lingon); color: var(--birch); }
  .nav .cta:hover { color: var(--birch); background: var(--forest); }
}
@media (max-width: 1260px) {
  /* flat list: sub-pages look like every other item, no "Muuta" label */
  .nav .has-sub:not(.sub-link)::before { content: none; }
  .nav > ul > li.has-sub { border-bottom: 0; }
  .nav .sub, .nav .has-sub:not(.sub-link) .sub { padding: 0; }
  .nav .sub li { border-top: 1px dashed var(--rule); }
  .nav > ul > li.has-sub:not(.sub-link) { border-bottom: 1px dashed var(--rule); }
  .nav .sub a, .nav .has-sub:not(.sub-link) .sub a { font-family: var(--f-display); font-size: 1.55rem; color: var(--ink); padding: 12px 4px; }
  .nav .sub a::before { content: none; }
  .nav .sub a[aria-current="page"] { color: var(--lingon); }
  /* keep "Ota yhteyttä" a red button even on its own page */
  .nav .cta[aria-current="page"] { background-image: none; background-color: var(--lingon); color: var(--birch); }
}
@media (max-width: 1260px) { .nav > ul > li.has-sub.sub-link { border-bottom: 1px dashed var(--rule); } }
@media (min-width: 1000px) { .yht-letters, main .letters:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Lumi tour notice */
.notice { position: relative; max-width: 560px; margin: 22px auto 6px; padding: 18px 22px 16px; text-align: left;
  background: #f1dcd2; font-size: 1.05rem; line-height: 1.5; transform: rotate(-.8deg);
  box-shadow: 0 2px 3px rgba(0,0,0,.12), 0 12px 18px -10px rgba(40, 20, 5, .45); }
.notice b { font-family: var(--f-hand); font-size: 1.35rem; font-weight: 700; color: var(--lingon); margin-right: 4px; }
.notice > .pin { top: -9px; }
.talk-hero .notice { margin: 0 0 22px; }
/* contact button stays red on its own page (desktop too) */
.nav .cta[aria-current="page"] { background-image: none; background-color: var(--lingon); color: var(--birch); }
.talk-hero .notice { margin: 28px 0 24px; }
.lp-story .split { align-items: start; }
.lp-story .polaroid { position: sticky; top: 110px; }
.lp-daily .polaroid { transform: rotate(2.5deg); }
.lp-daily .polaroid img { aspect-ratio: 4 / 4.4; object-position: 45% 30%; }
@media (max-width: 860px) { .lp-story .polaroid { position: relative; top: 0; } }
/* timeline photos */
.lp-facts .tl-photo { position: relative; display: block; margin: 2px -6px 12px; background: #fff; padding: 6px; box-shadow: 0 3px 6px rgba(0,0,0,.18); transform: rotate(-1deg); }
.lp-facts .torn-note:nth-child(even) .tl-photo { transform: rotate(1.2deg); }
.lp-facts .tl-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lp-facts .tl-photo .play { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(158, 51, 40, .88); }
.lp-facts .tl-photo .play::after { content: ""; position: absolute; left: 14px; top: 10px; border-left: 11px solid #fbf7ee; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.lp-facts .tl-photo:hover { transform: rotate(0) scale(1.02); }
.lp-facts { align-items: start; }

/* ---------- Yhteinen matkamme: winding timeline ---------- */
.timeline { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 40px; --tl: rgba(74, 44, 20, .5); }
.tl-row { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; align-items: center; padding: 34px 0; }
.tl-row.rev { direction: rtl; }
.tl-row.rev > * { direction: ltr; }
/* the path running through each row */
.tl-row::before { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; border-top: 3px dashed var(--tl); z-index: 0; }
/* the curve that turns down to the next row */
.tl-row:not(.last)::after {
  content: ""; position: absolute; top: 50%; height: 100%; width: 70px; z-index: 0;
  right: -34px; border: 3px dashed var(--tl); border-left: 0; border-radius: 0 90px 90px 0;
}
.tl-row.rev:not(.last)::after { right: auto; left: -34px; border: 3px dashed var(--tl); border-right: 0; border-radius: 90px 0 0 90px; }
.tl-row > .torn-note { position: relative; z-index: 1; }
/* little arrow on each row showing direction */
.tl-row > .torn-note::after { content: none; }
@media (max-width: 900px) {
  .timeline { padding: 0 0 0 26px; }
  .timeline::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 20px; border-left: 3px dashed var(--tl); }
  .tl-row, .tl-row.rev { display: block; direction: ltr; padding: 0; }
  .tl-row::before, .tl-row::after { display: none; }
  .tl-row > .torn-note { margin: 0 0 30px; }
}
.timeline .torn-note { padding: 22px 20px 28px; }
.timeline .torn-note b { display: block; font-family: var(--f-sc); font-weight: 400; color: var(--lingon); letter-spacing: .05em; font-size: .95rem; }
.timeline .lp-title { display: block; font-family: var(--f-hand); font-size: 1.45rem; line-height: 1.15; margin: 2px 0 6px; }
.timeline .torn-note p { margin: 0; font-size: .98rem; line-height: 1.45; }
.timeline .tl-watch { display: inline-block; margin-top: 8px; font-family: var(--f-hand); font-size: 1.15rem; color: var(--lingon); text-decoration: none; }
.timeline .tl-watch:hover { text-decoration: underline; }

/* ---------- Contact form: a letter ---------- */
.letter-form {
  position: relative; display: grid; gap: 18px; padding: clamp(28px, 4vw, 48px);
  background-color: #fbf7ee;
  background-image: repeating-linear-gradient(transparent 0 33px, rgba(106, 167, 216, .18) 33px 34px);
  box-shadow: 0 2px 3px rgba(0,0,0,.12), 0 20px 34px -18px rgba(40, 20, 5, .5); transform: rotate(-.4deg);
}
.letter-form::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px;
  background: repeating-linear-gradient(135deg, var(--lingon) 0 12px, #fbf7ee 12px 20px, var(--night-2) 20px 32px, #fbf7ee 32px 40px); }
.letter-form .washi { top: -12px; }
.letter-form h2 { margin: 0; }
.letter-form .muted { margin: -8px 0 4px; }
.lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.letter-form label { display: grid; gap: 4px; font-family: var(--f-sc); letter-spacing: .05em; font-size: .95rem; color: var(--moss); }
.letter-form input, .letter-form select, .letter-form textarea {
  font: inherit; font-family: var(--f-body); font-size: 1.1rem; letter-spacing: 0; color: var(--ink);
  background: rgba(255, 255, 255, .55); border: 0; border-bottom: 1.5px solid var(--rule); border-radius: 2px; padding: 8px 10px;
}
.letter-form textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.letter-form input:focus, .letter-form select:focus, .letter-form textarea:focus { outline: 2px solid rgba(158, 51, 40, .35); outline-offset: 1px; border-bottom-color: var(--lingon); }
.letter-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.letter-form button { justify-self: start; }
.lf-status { margin: 0; min-height: 1.4em; font-family: var(--f-hand); font-size: 1.4rem; }
.lf-status.ok { color: var(--forest); }
.lf-status.err { color: var(--lingon); }
@media (max-width: 640px) { .lf-row { grid-template-columns: 1fr; } .letter-form { transform: none; } }

/* "Ilmestyy" flag on unpublished books */
.release {
  position: absolute; z-index: 3; right: -14px; bottom: 18px; transform: rotate(5deg);
  display: grid; text-align: center; padding: 7px 14px 6px; line-height: 1.05;
  background: #fbf2dc; color: var(--lingon); font-family: var(--f-hand); font-size: 1.35rem; font-weight: 700;
  box-shadow: 0 2px 3px rgba(0,0,0,.2), 0 8px 14px -6px rgba(40, 20, 5, .45);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%);
  padding-left: 20px;
}
.release small { font-family: var(--f-sc); font-weight: 400; font-size: .72rem; letter-spacing: .08em; color: var(--moss); }
.release::before { content: ""; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #c9b48e; box-shadow: inset 0 1px 1px rgba(0,0,0,.3); }
.book-card .cv .release { line-height: 1.05; right: -16px; bottom: 14px; font-size: 1.15rem; padding: 5px 10px 4px 18px; }
/* nominations on the awards board */
.award-tag { position: absolute; top: 10px; right: -8px; z-index: 3; transform: rotate(6deg); padding: 2px 12px; background: var(--forest); color: #fbf7ee; font-family: var(--f-sc); letter-spacing: .08em; font-size: .8rem; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.award.nominee .rosette { filter: grayscale(.25) brightness(1.05); opacity: .85; }
.award-link { display: inline-block; margin-top: 10px; font-family: var(--f-hand); font-size: 1.2rem; color: var(--lingon); }
/* Lehdistö: full colour on hover */
.press-item img { transition: filter .35s ease; }
.press-item:hover img, .press-item:focus-visible img { filter: none; }

/* ---------- Phones: always one column (overrides the desktop layouts above) ---------- */
@media (max-width: 860px) {
  .split, .split.rev, .split:has(.collage.big), .talk-hero .split, .lp .talk-hero .split, .lp-story .split,
  .photo-quote .wrap, .channels, .talks, .video-cols, .hero .wrap, .hero.wood .wrap, .feature { grid-template-columns: 1fr !important; }
  .split > *, .lp-story .polaroid, .talk-photo { justify-self: center; max-width: 100%; }
  .collage.big { max-width: 440px; margin: 0 auto; width: 100%; }
  .lp-story .polaroid { position: relative; top: 0; width: 88%; }
  .talk-photo { width: min(420px, 92%) !important; order: -1; }
  .about .photo-quote { margin-top: 0; }
  .photo-quote .torn-note { margin: -24px 12px 0 !important; }
}
@media (max-width: 520px) {
  .brand b { font-size: 1.25rem; white-space: nowrap; }
  .brand small { font-size: .95rem; white-space: nowrap; }
  .brand svg { width: 34px; height: 34px; }
  .site-header .wrap { min-height: 64px; gap: 10px; }
  .menu-toggle { padding: 5px 12px; font-size: .9rem; }
  .nav { inset: 65px 0 0 0 !important; }
}

/* Night sky: gentle twinkling stars */
.stars i { background: #fdf8e8; opacity: var(--lo, .3); animation: twinkle-soft 5s ease-in-out infinite; will-change: opacity; }
.stars i.bright { box-shadow: 0 0 6px 1px rgba(255, 244, 210, .55); }
@keyframes twinkle-soft {
  0%, 100% { opacity: var(--lo, .25); transform: scale(.85); }
  50% { opacity: var(--hi, .9); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .stars i { animation: none; opacity: .7; } }

/* Release tag: top-left corner, dark red with beige lettering */
.release, .book-card .cv .release {
  right: auto; bottom: auto; left: -14px; top: 14px; transform: rotate(-6deg);
  background: #7a2219; color: #f3e6c8;
  padding: 6px 14px 5px 22px; font-size: 1.3rem;
  box-shadow: 0 2px 3px rgba(0,0,0,.25), 0 8px 14px -6px rgba(40, 20, 5, .5);
}
.release small { color: #e3cfa6; }
.release::before { background: #f3e6c8; box-shadow: inset 0 1px 1px rgba(0,0,0,.35); }
.book-card .cv .release { left: -12px; top: 10px; font-size: 1.1rem; padding: 4px 10px 3px 18px; }
.audio-note { text-align: center; max-width: 720px; margin: 14px auto 0; font-family: var(--f-hand); font-size: 1.35rem; line-height: 1.3; color: var(--lingon); }
.home .letters:has(> :only-child) { grid-template-columns: minmax(0, 560px); justify-content: center; }
