/* Volunteer Shift Planner — "Rukkilill" landing: mist ground, cornflower blue, rye gold and rowan red,
   the woven belt band of rhombi as the signature motif. Lexend, self-hosted (SIL OFL 1.1). */

@font-face { font-family: "Lexend"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/lexend-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/lexend-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/lexend-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/lexend-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/lexend-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/lexend-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/lexend-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lexend"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/lexend-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --mist: #f2f4f8;
  --card: #ffffff;
  --sunk: #e6eaf2;
  --ink: #1b2033;
  --soft: #4a5168;
  --faint: #6e7489;
  --line: #d6dae6;
  --blue: #2e4bb0;
  --blue-dark: #22388a;
  --blue-tint: #dfe6fb;
  --rye: #e2a93b;
  --rye-tint: #fbefd3;
  --rowan: #c23b2b;
  --radius: 16px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--rye); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; overflow-wrap: anywhere; hyphens: manual; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3.6vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }
code { font-family: inherit; font-weight: 600; background: var(--sunk); padding: 0.05em 0.35em; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

.label { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.dot { flex: none; width: 11px; height: 11px; background: var(--rye); transform: rotate(45deg); }
.lead { font-size: 1.2rem; color: var(--soft); max-width: 40em; }
.muted { color: var(--faint); font-size: 0.95rem; }

/* Header */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; min-height: 72px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.1rem; }
.brand img { border-radius: 10px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-block; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--blue-tint); color: var(--blue-dark); }

/* Belt band */
.belt {
  height: 46px;
  background-color: var(--blue-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='112' height='46'%3E%3Cpath d='M14 12L25 23L14 34L3 23Z' fill='%23E2A93B'/%3E%3Cpath d='M42 16L49 23L42 30L35 23Z' fill='%238FA4EC'/%3E%3Cpath d='M70 16L77 23L70 30L63 23Z' fill='%238FA4EC'/%3E%3Cpath d='M98 16L105 23L98 30L91 23Z' fill='%238FA4EC'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: left center;
}

/* Hero */
.hero { padding: 56px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; }
.hero h1 { max-width: 14em; }
.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin: 28px 0 24px; }
.text-link { font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 10px; list-style: none; margin: 0; padding: 0; }
.facts li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px; font-size: 0.92rem; font-weight: 500; }
.hero-shots { position: relative; min-height: 520px; }
.shot { display: block; background: var(--blue); padding: 8px; border-radius: 30px; }
.shot img { border-radius: 23px; background: var(--card); }
.shot-main { position: relative; z-index: 2; width: min(330px, 70%); margin-left: auto; margin-right: 12%; box-shadow: 0 10px 0 #c9d0e2; }
.shot-back { position: absolute; z-index: 1; width: min(290px, 60%); left: 0; top: 70px; background: var(--rye); opacity: 0.98; }

/* Play badge */
.play { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 16px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; }
.play:hover { color: #fff; background: #000; }
.play-mark { width: 18px; height: 18px; background: var(--rye); transform: rotate(45deg); flex: none; }
.play-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-small { font-size: 0.78rem; opacity: 0.85; }
.play-big { font-size: 1.15rem; font-weight: 600; }
.play-soon { background: var(--sunk); color: var(--soft); border: 1px dashed var(--faint); cursor: default; }
.play-soon .play-mark { background: var(--faint); }

/* Steps */
.steps { padding: 72px 0; }
.step-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step-list li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; position: relative; }
.step-list li::after { content: ""; position: absolute; top: 46px; right: -16px; width: 12px; height: 2px; background: var(--line); }
.step-list li:last-child::after { display: none; }
.step-list p { color: var(--soft); margin: 0; font-size: 0.98rem; }
.step-no { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin: 0 0 18px 6px; background: var(--blue); transform: rotate(45deg); border-radius: 8px; }
.step-no span { transform: rotate(-45deg); color: #fff; font-weight: 700; font-size: 1.1rem; }

/* Stories */
.stories { padding: 24px 0 40px; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 56px; align-items: center; padding: 48px 0; border-top: 1px solid var(--line); }
.story:first-of-type { border-top: 0; }
.story-flip .story-text { order: 2; }
.story-flip .story-shot { order: 1; }
.story-text h3 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.story-text p { color: var(--soft); }
.story-shot .shot { width: min(340px, 100%); margin: 0 auto; }
.story:nth-of-type(3n+2) .story-shot .shot { background: var(--rye); }
.story:nth-of-type(3n) .story-shot .shot { background: var(--blue-dark); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 28px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 9px; height: 9px; background: var(--blue); transform: rotate(45deg); }

/* Gallery */
.gallery { padding: 56px 0 72px; background: var(--card); border-top: 1px solid var(--line); }
.gallery-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.gallery-list .shot { padding: 6px; border-radius: 24px; }
.gallery-list .shot img { border-radius: 19px; }
.gallery-list p { margin: 12px 0 0; font-weight: 600; text-align: center; }

/* Privacy band */
.privacy-band { background: var(--blue); color: #fff; padding: 64px 0; }
.privacy-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.privacy-band h2 { color: #fff; margin: 0; }
.privacy-band p { color: #e3e9fd; }
.privacy-band a { color: #fff; font-weight: 600; }

/* FAQ */
.faq { padding: 72px 0; }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: 40px; }
.faq-list { display: grid; gap: 12px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; gap: 12px; align-items: baseline; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--rye); transform: rotate(45deg); position: relative; top: -2px; transition: transform 0.2s; }
details[open] summary::before { background: var(--blue); }
details p { color: var(--soft); margin: 0 0 16px; }

/* Final CTA */
.final { padding: 0 0 72px; }
.final-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 20px 28px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; }
.final-inner > div { flex: 1 1 280px; }
.final-inner h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin-bottom: 6px; }
.final-inner p { margin: 0; color: var(--soft); }
.final-inner img { border-radius: 16px; }

/* Text pages */
.page { padding: 56px 0 80px; }
.page section { margin-top: 40px; }
.page h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; margin-top: 28px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2; column-gap: 32px; }
.toc li { padding: 3px 0; break-inside: avoid; }
.howto { padding-left: 1.3em; }
.howto li { padding: 4px 0 8px; }

/* Footer */
.foot { background: var(--ink); color: #cfd5e6; padding: 36px 0; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { border-radius: 10px; }
.foot-name { margin: 0; color: #fff; font-weight: 600; }
.foot-small { margin: 0; font-size: 0.9rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.foot-links a { color: #fff; display: inline-block; padding: 8px 0; overflow-wrap: anywhere; }

@media (max-width: 960px) {
  .hero-grid, .story, .privacy-grid, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-shots { min-height: 0; padding-top: 8px; }
  .shot-main { margin: 0 auto 0 30%; width: min(300px, 62%); }
  .shot-back { width: min(250px, 50%); top: 48px; left: 4%; }
  .story { gap: 28px; }
  .story-flip .story-text, .story-flip .story-shot { order: 0; }
  .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-list li::after { display: none; }
  .gallery-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  h1, h2, h3 { hyphens: auto; }
  .hero { padding: 36px 0 44px; }
  .lead { font-size: 1.08rem; }
  .step-list { grid-template-columns: minmax(0, 1fr); }
  .gallery-list { gap: 14px; }
  .toc ol { columns: 1; }
  .final-inner { padding: 24px 20px; }
  .brand { font-size: 1rem; }
  .nav a { padding: 10px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
