/* Neighbourhood Project Board — "Teadetetahvel": the neighbourhood notice board.
   Navy board with a dot grid, paper notes held by coral push pins, round dot stickers. Font: Lexend. */

@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: 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 {
  --navy: #17324d;
  --navy-2: #24476a;
  --navy-3: #0f2438;
  --mist: #edf1f4;
  --mist-2: #c9d6e2;
  --line: #cdd7df;
  --paper: #ffffff;
  --ink: #17324d;
  --soft: #4a5f73;
  --coral: #e2614f;
  --coral-deep: #bc3f2e;
  --coral-tint: #fbe1dc;
  --sun: #f2b84b;
  --leaf: #2a7f50;
  --radius: 12px;
  --wrap: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; overflow-wrap: anywhere; hyphens: auto; }
h1 { font-size: clamp(2rem, 6.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 4.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; overflow-wrap: break-word; }

a { color: var(--coral-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.kicker { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-deep); margin-bottom: 0.7em; }
.kicker-light { color: var(--sun); }
.lead { font-size: clamp(1.08rem, 2.4vw, 1.25rem); color: var(--soft); max-width: 46em; }
.lead-light { color: var(--mist-2); }
.small { font-size: 0.92rem; color: var(--soft); }

/* ---------- Board (dot grid) ---------- */

.board {
  background-color: var(--navy);
  background-image: radial-gradient(circle, var(--navy-2) 2px, transparent 2.6px);
  background-size: 28px 28px;
  color: #fff;
}

/* ---------- Header ---------- */

.top { background: var(--mist); border-bottom: 1px solid var(--line); }
.top-board { background: var(--navy); border-bottom: 2px solid var(--navy-2); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; line-height: 1.2; min-height: 44px; }
.brand img { border-radius: 10px; flex: none; }
.top-board .brand { color: #fff; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper); color: var(--coral-deep); }
.top-board .nav a { color: var(--mist-2); }
.top-board .nav a:hover { background: var(--navy-2); color: #fff; }

/* ---------- Pins, notes, stickers ---------- */

.pin {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--coral);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.16), 0 3px 4px rgba(6, 18, 30, 0.35);
  z-index: 2;
}
.pin::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #f8b4a8; top: 4px; left: 5px; }

.note {
  position: relative; margin: 0; background: var(--paper); padding: 8px; border-radius: 10px;
  box-shadow: 0 14px 30px rgba(6, 18, 30, 0.28), 0 2px 4px rgba(6, 18, 30, 0.2);
}
.note img { display: block; width: 100%; border-radius: 6px; }

.stickers { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 26px 0 0; color: #fff; font-weight: 600; font-size: 0.98rem; }
.stickers li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; }
.dot-coral { background: var(--coral); }
.dot-sun { background: var(--sun); }
.dot-leaf { background: #3fa36b; }
.dot-mist { background: var(--mist-2); }

/* ---------- Hero ---------- */

.hero { overflow: hidden; padding: 44px 0 64px; }
.hero-inner { display: grid; gap: 40px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 7.4vw, 3.1rem); }
.hl { color: var(--sun); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 8px; }
.ghost-link { color: #fff; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.ghost-link:hover { color: var(--sun); }

.hero-notes { display: flex; justify-content: center; align-items: flex-start; padding: 18px 0 10px; }
.hero-notes .note { width: 44vw; max-width: 250px; flex: none; }
.hero-notes .note-1 { transform: rotate(-4deg); z-index: 1; }
.hero-notes .note-2 { transform: rotate(3deg) translateY(28px); margin-left: -7vw; z-index: 2; }
.hero-notes .note-3 { display: none; }

/* ---------- Play button (paper note) ---------- */

.play {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  background: var(--paper); color: var(--ink); text-decoration: none;
  padding: 12px 22px 12px 16px; border-radius: 10px; min-height: 56px;
  box-shadow: 0 8px 18px rgba(6, 18, 30, 0.3);
}
.play-pin { width: 18px; height: 18px; border-radius: 50%; background: var(--coral); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.16); flex: none; }
.play-text { display: flex; flex-direction: column; line-height: 1.15; }
.play-small { font-size: 0.78rem; color: var(--soft); }
.play-big { font-size: 1.1rem; font-weight: 700; }
a.play:hover { color: var(--coral-deep); }
.play-soon { cursor: default; }
.play-soon .play-pin { background: var(--sun); }

/* ---------- Sections ---------- */

.section { padding: 72px 0; }

.cards { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 26px 20px; grid-template-columns: 1fr; }
.card { position: relative; background: var(--paper); border-radius: var(--radius); padding: 26px 22px 20px; box-shadow: 0 6px 16px rgba(23, 50, 77, 0.1); border: 1px solid var(--line); }
.card-n { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--coral-deep); text-decoration: underline; }
.card p { color: var(--soft); margin: 0; }

.story { border-top: 1px solid var(--line); }
.story-inner { display: grid; gap: 40px; align-items: center; }
.story-copy p { color: var(--soft); }
.note-story { width: min(320px, 78vw); justify-self: center; transform: rotate(-2deg); }
.story-flip .note-story { transform: rotate(2deg); }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.5em; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); }
.ticks li:nth-child(3n + 2)::before { background: var(--sun); }
.ticks li:nth-child(3n)::before { background: var(--leaf); }

.receipt { margin: 20px 0 0; max-width: 340px; background: var(--paper); border: 1.5px dashed var(--line); border-radius: 8px; padding: 12px 16px; font-variant-numeric: tabular-nums; }
.receipt div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.receipt dt { color: var(--soft); }
.receipt dd { margin: 0; font-weight: 600; white-space: nowrap; }
.receipt .total { border-top: 1.5px solid var(--navy); margin-top: 6px; padding-top: 8px; }
.receipt .total dd { color: var(--coral-deep); }

.extras { border-top: 1px solid var(--line); }
.strip { display: grid; gap: 40px 24px; grid-template-columns: 1fr; margin-top: 30px; }
.strip-item { margin: 0; }
.note-small { width: min(280px, 72vw); margin: 0 auto 18px; }
.strip-item:nth-child(odd) .note-small { transform: rotate(-1.5deg); }
.strip-item:nth-child(even) .note-small { transform: rotate(1.5deg); }
.strip-item figcaption { color: var(--soft); max-width: 340px; margin: 0 auto; }
.strip-item strong { color: var(--ink); display: block; font-size: 1.1rem; }
.more { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 10px 26px; grid-template-columns: 1fr; }
.more li { position: relative; padding-left: 26px; }
.more li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 11px; height: 11px; border-radius: 50%; background: var(--navy-2); }

.privacy-band h2.light { color: #fff; }
.pcards { display: grid; gap: 30px 20px; grid-template-columns: 1fr; margin-top: 30px; }
.pcard { position: relative; background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 24px 20px 14px; box-shadow: 0 10px 22px rgba(6, 18, 30, 0.3); }
.pcard p { color: var(--soft); }
.band-link { margin: 30px 0 0; }
.band-link a { color: var(--sun); font-weight: 600; }
.band-link a:hover { color: #fff; }

.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 18px; min-height: 48px; list-style-position: inside; }
.faq details p { padding: 0 18px 14px; margin: 0; color: var(--soft); }

.download { background: var(--paper); border-top: 1px solid var(--line); }
.download-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.download h2 { margin-bottom: 0.3em; }
.download .play { box-shadow: 0 6px 14px rgba(23, 50, 77, 0.18); border: 1px solid var(--line); }

/* ---------- Pages (guide, privacy, 404) ---------- */

.page { padding: 52px 0 80px; }
.page h1 { font-size: clamp(1.8rem, 5.4vw, 2.8rem); }
.page h2 { font-size: clamp(1.3rem, 3.4vw, 1.6rem); margin-top: 1.6em; }
.legal p { color: #2c4459; }
.text-link { font-weight: 600; }

.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 26px 0 10px; }
.toc ol { margin: 0; padding-left: 1.4em; columns: 2 220px; column-gap: 28px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.guide-step { scroll-margin-top: 20px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 46px; border-bottom: 1px dashed var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 30px; height: 30px; border-radius: 50%; background: var(--coral-deep); color: #fff; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.steps li:nth-child(even)::before { background: var(--navy); }

/* ---------- Footer ---------- */

.foot { background: var(--navy); color: var(--mist-2); padding: 40px 0 26px; }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { border-radius: 12px; flex: none; }
.foot-name { color: #fff; font-weight: 700; margin: 0; }
.foot-small { margin: 0; font-size: 0.9rem; }
.foot-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-links a { color: #fff; display: inline-flex; min-height: 44px; align-items: center; overflow-wrap: anywhere; }
.foot-links a:hover { color: var(--sun); }
.foot-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.foot-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.foot-dots span:nth-child(2) { background: var(--sun); }
.foot-dots span:nth-child(3) { background: #3fa36b; }

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  h1, h2, h3 { hyphens: manual; }
  .cards { grid-template-columns: 1fr 1fr; }
  .pcards { grid-template-columns: repeat(3, 1fr); }
  .more { grid-template-columns: 1fr 1fr; }
  .hero-notes .note { width: 30vw; }
  .hero-notes .note-3 { display: block; transform: rotate(-1deg) translateY(8px); margin-left: -5vw; z-index: 3; }
}

@media (min-width: 960px) {
  .hero { padding: 64px 0 90px; }
  .hero-inner { grid-template-columns: 1.02fr 0.98fr; gap: 30px; }
  .hero-notes { padding-top: 30px; }
  .hero-notes .note { width: 250px; }
  .hero-notes .note-2 { margin-left: -70px; }
  .hero-notes .note-3 { margin-left: -60px; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .card:nth-child(odd) { transform: rotate(-1deg); }
  .card:nth-child(even) { transform: rotate(1deg) translateY(10px); }
  .story-inner { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .story-flip .story-copy { order: 2; }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .more { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
