/* ── VUOSIKELLO ────────────────────────────────────────────────────────────
   Direction B. Same warmth as Orava, opposite structure.
   Orava is a brochure with a calendar in it; Vuosikello is a calendar with a
   brochure around it — the year drawn as a wheel, the way a lippukunta plans
   one, and everything else hung off the month you are standing in.

   Type flips too: Newsreader carries the display voice (a reading serif with
   real italics, and — unlike the Klim trials — a complete ä ö å), Jost does
   the labels and the numerals. Paper goes a shade further towards oat, and
   the loud colour is the same oravanpunainen so the two directions are
   recognisably one client.

   Photographs are mounted, not bled: a white card, a real shadow, a half
   degree of rotation. The group's own record rather than a campaign.
   ─────────────────────────────────────────────────────────────────────── */

:root {
  --paper:   #F6F2E8;
  --card:    #FFFDF8;
  --oat:     #E8E0CD;
  --oat-2:   #DCD1B8;
  --ink:     #23241D;
  --ink-60:  #63645A;
  --ink-30:  #A29F92;
  --line:    #D6CDB6;

  --orava:   #C04F2A;
  --orava-dk:#8E3A1D;
  --orava-lt:#F3E2D8;
  --metsa:   #33502F;
  --sun:     #E5B23A;
  --blue:    #1D3F6B;

  --pad: clamp(18px, 4.5vw, 64px);
  --shell: 1320px;
  --shadow: 0 1px 1px rgba(60,48,30,.05), 0 8px 22px -10px rgba(60,48,30,.28);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Jost', system-ui, sans-serif;
  font-size: clamp(15.5px, 1vw, 17px);
  font-weight: 400;
  line-height: 1.6;
}
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }

/* ── type ─────────────────────────────────────────────────────────────── */
.serif { font-family: 'Newsreader', Georgia, serif; }
.d1 { font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: clamp(34px, 4.7vw, 64px); line-height: .98; letter-spacing: -0.025em; }
.d2 { font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: clamp(28px, 4vw, 54px); line-height: 1.05; letter-spacing: -0.02em; }
.d3 { font-family: 'Newsreader', Georgia, serif; font-weight: 400; font-size: clamp(21px, 2.1vw, 30px); line-height: 1.15; letter-spacing: -0.015em; }
.d4 { font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.25; }
.it { font-style: italic; font-weight: 300; }
.lede { font-family: 'Newsreader', Georgia, serif; font-weight: 300; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.45; }
.small { font-size: 13.5px; line-height: 1.55; }
.muted { color: var(--ink-60); }
.lbl {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-60);
}
.lbl.hot { color: var(--orava); }
.num { font-variant-numeric: tabular-nums; }

/* ── chrome ───────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 22px;
  padding: 11px var(--pad);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }

.mark b { font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 18px; letter-spacing: -0.01em; display: block; line-height: 1.05; }
.mark i { font-style: normal; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-60); display: block; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { text-decoration: none; font-size: 14px; color: var(--ink-60); transition: color .2s; }
.top nav a:hover, .top nav a[aria-current] { color: var(--orava); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: var(--orava); color: #FFF6F1; padding: 9px 18px;
  font-size: 13.5px; letter-spacing: .02em; text-decoration: none;
  border-radius: 3px; transition: background .2s;
}
.btn:hover { background: var(--orava-dk); }
.btn.line { background: none; color: var(--ink); border: 1px solid var(--line); }
.btn.line:hover { background: var(--oat); }
.mini { display: none; }

/* ── the wheel ────────────────────────────────────────────────────────── */
.wheel-sec { padding-block: clamp(24px, 3vw, 40px) clamp(40px, 5vw, 76px); }
.wheel-grid {
  display: grid; grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 64px); align-items: start;
}
/* the ring is square, so an uncapped column would run taller than the fold */
.wheel-wrap { position: relative; width: 100%; max-width: clamp(280px, 46vh, 470px); margin-inline: auto; position: sticky; top: 84px; }
.wheel-col { min-width: 0; }
.wheel-col .wheel-side { margin-top: clamp(24px, 3vw, 38px); padding-top: clamp(20px, 2.5vw, 30px); border-top: 1px solid var(--line); }
.wheel { display: block; width: 100%; height: auto; overflow: visible; }

.wk-ring { fill: none; stroke: var(--oat); }
.wk-spoke { stroke: var(--line); stroke-width: .5; }
.wk-name { font-family: 'Jost', sans-serif; font-size: 3.6px; letter-spacing: .18em; text-transform: uppercase; fill: var(--ink-60); }
.wk-name.on { fill: var(--orava); font-weight: 500; }
.wk-seg { cursor: pointer; }
.wk-seg:hover .wk-name { fill: var(--ink); }
.wk-dot { fill: var(--ink-30); transition: fill .25s, r .25s; }
.wk-dot.past { fill: var(--orava); }
.wk-dot.here { fill: var(--orava); }
.wk-mid { text-anchor: middle; }
.wk-mid .m1 { font-family: 'Newsreader', serif; font-size: 8px; fill: var(--ink); }
.wk-mid .m2 { font-family: 'Jost', sans-serif; font-size: 3.4px; letter-spacing: .2em; text-transform: uppercase; fill: var(--ink-60); }
.wk-mid .m3 { font-family: 'Jost', sans-serif; font-size: 3px; fill: var(--orava); letter-spacing: .1em; }
.wk-now { stroke: var(--orava); stroke-width: .7; stroke-dasharray: 1.4 1.4; }
.wk-arc { fill: none; stroke: var(--orava); stroke-width: 1.4; stroke-linecap: round; opacity: .28; }

.wheel-side { display: grid; gap: 20px; align-content: start; }
.ws-when { display: flex; align-items: baseline; gap: 10px; }
.ws-when .num { font-family: 'Newsreader', serif; font-size: clamp(30px, 3vw, 42px); line-height: 1; }
.ws-photo { border-radius: 2px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--oat); box-shadow: var(--shadow); }
.ws-photo img { width: 100%; height: 100%; object-fit: cover; }
.ws-meta { display: grid; gap: 4px; font-size: 14px; color: var(--ink-60); }
.ws-meta b { color: var(--ink); font-weight: 500; }

/* ── plain sections ───────────────────────────────────────────────────── */
section { padding-block: clamp(50px, 7vw, 108px); }
section.oat { background: var(--oat); }
.head { max-width: 62ch; display: grid; gap: 16px; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── two-column reading spread ────────────────────────────────────────── */
/* start-aligned: a portrait mount next to a landscape one must not stretch
   the landscape card into a slab of empty board */
.spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 72px); margin-top: clamp(30px, 4vw, 54px); align-items: start; }
.spread p + p { margin-top: 14px; }
@media (max-width: 820px) { .spread { grid-template-columns: 1fr; } }

/* ── mounted photograph ───────────────────────────────────────────────── */
.mount { background: var(--card); padding: 9px 9px 0; box-shadow: var(--shadow); }
.mount img { width: 100%; height: auto; display: block; }
.mount figcaption {
  font-size: 11.5px; color: var(--ink-60); line-height: 1.4;
  padding: 9px 2px 11px; display: flex; gap: 8px; align-items: baseline;
}
.mount figcaption b { color: var(--orava); font-weight: 500; flex: none; }
.tilt-a { transform: rotate(-.7deg); }
.tilt-b { transform: rotate(.55deg); }
.tilt-c { transform: rotate(-.35deg); }

/* ── nine method cards ────────────────────────────────────────────────── */
/* nine cards, so three across leaves no orphan cell */
.method { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 1px; margin-top: clamp(32px, 4vw, 54px); background: var(--line); border: 1px solid var(--line); }
@media (min-width: 880px) { .method { grid-template-columns: repeat(3, 1fr); } }
.m-card { background: var(--paper); padding: 24px 22px 28px; display: grid; gap: 10px; align-content: start; }
section.oat .m-card { background: var(--oat); }
.m-n { font-size: 11px; letter-spacing: .2em; color: var(--orava); }
.m-gen { font-family: 'Newsreader', serif; font-style: italic; font-weight: 300; font-size: 15.5px; color: var(--ink-60); line-height: 1.4; }
.m-card p:last-child { font-size: 14px; color: var(--ink-60); }

/* ── ages ─────────────────────────────────────────────────────────────── */
.ages { display: grid; grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); gap: clamp(18px, 2.4vw, 34px); margin-top: clamp(30px, 4vw, 52px); }
.age-h { display: flex; align-items: baseline; gap: 9px; border-bottom: 1px solid var(--line); padding-bottom: 9px; }
.age-h .n { font-family: 'Newsreader', serif; font-size: 40px; line-height: .9; color: var(--orava); }
.age p { margin-top: 12px; font-size: 14.5px; color: var(--ink-60); }
.age ul { margin-top: 12px; display: grid; gap: 4px; }
.age li { font-size: 13px; padding-left: 14px; position: relative; }
.age li::before { content: '·'; position: absolute; left: 3px; color: var(--orava); }

/* ── rota ─────────────────────────────────────────────────────────────── */
.rota { width: 100%; margin-top: clamp(28px, 3.5vw, 46px); font-size: 14.5px; }
.rota th { text-align: left; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-60); font-weight: 500; padding-bottom: 11px; border-bottom: 1px solid var(--ink); }
.rota td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.rota td:first-child { font-family: 'Newsreader', serif; font-size: 17px; }
.rota .dim { color: var(--ink-60); }
.rota .turn { color: var(--orava); font-variant-numeric: tabular-nums; font-size: 13px; }

/* ── list-style blocks ────────────────────────────────────────────────── */
.dl { margin-top: clamp(28px, 3.5vw, 46px); border-top: 1px solid var(--ink); }
.dl > div { display: grid; grid-template-columns: minmax(140px, 15rem) minmax(0, 1fr); gap: 12px 34px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.dl h3 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 18px; }
.dl p { color: var(--ink-60); font-size: 14.5px; max-width: 62ch; }
@media (max-width: 700px) { .dl > div { grid-template-columns: 1fr; gap: 6px; } }

/* ── huuto plate ──────────────────────────────────────────────────────── */
.plate { background: var(--metsa); color: var(--paper); }
.plate .d1 { color: var(--paper); }
.plate .d1 span { display: block; }
.plate .d1 span:nth-child(2) { color: var(--sun); font-style: italic; font-weight: 300; }
.plate .d1 span:nth-child(3) { color: #E9A784; }

/* ── links ────────────────────────────────────────────────────────────── */
.links { margin-top: clamp(28px, 3.5vw, 46px); border-top: 1px solid var(--ink); }
.links a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 22px;
  padding-block: 20px; border-bottom: 1px solid var(--line); text-decoration: none;
  transition: padding-left .25s, background .25s;
}
.links a:hover { padding-left: 10px; background: linear-gradient(90deg, var(--orava-lt), transparent 60%); }
.links h3 { font-family: 'Newsreader', serif; font-weight: 500; font-size: 19px; }
.links p { grid-column: 1; font-size: 14px; color: var(--ink-60); max-width: 66ch; }
.links span { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--ink-30); font-size: 20px; }

/* ── footer ───────────────────────────────────────────────────────────── */
footer { background: var(--oat); padding-block: clamp(42px, 5vw, 70px) 30px; }
.foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); gap: 32px; }
.foot h4 { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-60); font-weight: 500; margin-bottom: 11px; }
.foot li { padding: 3px 0; font-size: 14.5px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.colophon { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--oat-2); display: flex; flex-wrap: wrap; gap: 11px 28px; font-size: 12px; color: var(--ink-60); }
.colophon a { color: var(--ink-60); }
.colophon .wide { flex-basis: 100%; line-height: 1.6; }

.creds { flex-basis: 100%; font-size: 12px; color: var(--ink-60); }
.creds summary { cursor: pointer; list-style: none; display: inline-flex; gap: 8px; align-items: center; }
.creds summary::-webkit-details-marker { display: none; }
.creds summary::before { content: '+'; }
.creds[open] summary::before { content: '–'; }
.creds ul { margin-top: 11px; columns: 2; column-gap: 38px; }
.creds li { break-inside: avoid; padding: 2px 0; line-height: 1.45; }
@media (max-width: 760px) { .creds ul { columns: 1; } }

/* ── lightbox ─────────────────────────────────────────────────────────── */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(20,18,12,.95); display: grid; place-items: center; padding: clamp(16px, 4vw, 56px); }
.lb[hidden] { display: none; }
.lb-fig { max-width: min(1400px, 92vw); max-height: 88svh; display: grid; gap: 14px; }
.lb-fig img { max-width: 100%; max-height: 78svh; width: auto; height: auto; object-fit: contain; margin-inline: auto; }
.lb figcaption { color: rgba(246,242,232,.7); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; text-align: center; }
.lb figcaption a { color: rgba(246,242,232,.48); }
.lb button { position: absolute; color: #F6F2E8; opacity: .6; transition: opacity .2s; line-height: 1; }
.lb button:hover { opacity: 1; }
.lb-close { top: 16px; right: 20px; font-size: 32px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 48px; padding: 10px 18px; }
.lb-prev { left: 4px; } .lb-next { right: 4px; }


/* ── borrowed marks — see the note in orava/style.css ─────────────────── */
.crest { display: block; flex: none; line-height: 0; }
.crest img { height: 34px; width: auto; display: block; }

.kattojarjesto { display: grid; gap: 12px; align-content: start; }
.sp-mark { display: block; color: var(--blue); width: 148px; max-width: 100%; }
.sp-mark svg { width: 100%; height: auto; display: block; transition: color .2s; }
.sp-mark:hover { color: var(--orava); }

/* ── reveal ───────────────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.3,1); }
.rv.in { opacity: 1; transform: none; }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .wheel-grid { grid-template-columns: 1fr; }
  .wheel-wrap { max-width: 440px; margin-inline: auto; position: static; }
  .top nav { display: none; }
  .top nav.open {
    display: grid; position: fixed; inset: 53px 0 auto 0; gap: 0;
    background: var(--paper); padding: 4px var(--pad) 18px; border-bottom: 1px solid var(--line);
  }
  .top nav.open a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
  .mini { display: block; margin-left: auto; padding: 8px; }
  .mini i { display: block; width: 21px; height: 1.5px; background: currentColor; margin: 4.5px 0; }
  .top .btn { display: none; }
}
