/* PuhkustLoov: ühine stiil kõigile lehtedele.
   Värvid ja fondid tulevad stiilijuhendist (CLAUDE.md, 1.12.2026). */
@import url("https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;1,9..144,500&family=DM+Sans:wght@400;500;700&display=swap");

:root {
  --sinine: #1F5C8B;
  --kollane: #E8C35A;
  --lubi: #F7F4EC;
  --tume: #1B2A3A;
  --oliiv: #6F7D47;

  --taust: var(--lubi);
  --pind: #FFFFFF;
  --tekst: var(--tume);
  --tekst-pehme: #4A5866;
  --pealkiri: var(--sinine);
  --joon: rgba(27, 42, 58, .12);
  --vari: 0 10px 30px rgba(27, 42, 58, .08);

  --r: 18px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --taust: #12202C;
    --pind: #1A2B3A;
    --tekst: #EEF1EC;
    --tekst-pehme: #B8C3CC;
    --pealkiri: #F7F4EC;
    --joon: rgba(247, 244, 236, .14);
    --vari: 0 10px 30px rgba(0, 0, 0, .3);
  }
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--taust);
  color: var(--tekst);
  font: 400 18px/1.6 "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; color: var(--pealkiri); line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 8vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: .6em; }
h3 { font-size: 1.4rem; margin-bottom: .4em; }
p + p { margin-top: .8em; }
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--oliiv); margin-bottom: .8rem; }
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--kollane); } }

.nupp {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.6em; border-radius: 40px; border: 0;
  font: 700 1rem "DM Sans", sans-serif; text-decoration: none; cursor: pointer;
  background: var(--kollane); color: var(--tume);
  transition: transform .15s ease, box-shadow .15s ease;
}
.nupp:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(232, 195, 90, .45); }
.nupp:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--kollane); outline-offset: 3px; }
.nupp.teine { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }

.tbd {
  display: inline-block; background: #FFF4CC; color: #6B5300; border: 1px dashed #C9A227;
  font-size: .8rem; font-weight: 700; padding: .1em .6em; border-radius: 6px; vertical-align: middle;
}

/* Logo tekstina: Puhkust valge/sinine, Loov kollane */
.logo { font-family: Fraunces, serif; font-weight: 600; font-size: 1.35rem; text-decoration: none; color: var(--pealkiri); white-space: nowrap; }
.logo i { color: var(--kollane); font-weight: 500; }

/* Jalus */
.jalus { padding: 48px 0 60px; border-top: 1px solid var(--joon); font-size: .9rem; color: var(--tekst-pehme); }
.jalus .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }
.jalus a { color: var(--tekst-pehme); }

/* Päis alamlehtedel */
.pais { border-bottom: 1px solid var(--joon); }
.pais .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.pais nav { display: flex; gap: 22px; font-weight: 500; font-size: .95rem; }
.pais nav a { text-decoration: none; }
.pais nav a:hover { color: var(--sinine); }

/* Kitsas lugemisveerg */
.veerg { width: min(680px, 100% - 40px); margin-inline: auto; }
.osa { padding: 72px 0; }
.osa + .osa { border-top: 1px solid var(--joon); }

/* Blogi nimekiri */
.lood { list-style: none; padding: 0; }
.lood li { padding: 22px 0; border-bottom: 1px solid var(--joon); }
.lood li:first-child { padding-top: 0; }
.lood a { text-decoration: none; display: block; }
.lood h3 { margin-bottom: .2em; }
.lood a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lood p { color: var(--tekst-pehme); }
.lood time { font-size: .85rem; color: var(--tekst-pehme); }
.koik { display: inline-block; margin-top: 24px; font-weight: 700; }

/* Artikkel */
.artikkel h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.artikkel .alapealkiri { font-family: Fraunces, serif; font-style: italic; font-size: 1.4rem; color: var(--tekst-pehme); margin-top: .4em; }
.artikkel .meta { font-size: .9rem; color: var(--tekst-pehme); margin: 18px 0 36px; }
.artikkel .tekst p { font-size: 1.12rem; }
.artikkel .tekst p + p { margin-top: 1.1em; }
.allikad { margin-top: 40px; font-size: .9rem; color: var(--tekst-pehme); }
.allikad ul { padding-left: 1.1em; margin-top: .4em; }
.allikad li + li { margin-top: .3em; }

/* Uudiskiri */
.kiri { background: var(--pind); border: 1px solid var(--joon); border-radius: var(--r); padding: 32px; }
.kiri h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .3em; }
.uudiskiri { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.uudiskiri input[type=email] { flex: 1 1 240px; min-height: 52px; border-radius: 40px; border: 2px solid var(--joon); padding: 0 1.2em; font: 500 1rem "DM Sans", sans-serif; background: var(--taust); color: var(--tekst); }
.kiri .nous { font-size: .8rem; margin-top: 12px; color: var(--tekst-pehme); }
.kiri .aitah { font-weight: 700; margin-top: 16px; }
.peidus { position: absolute; left: -9999px; }

/* Artikli alapealkirjad ja loendid */
.artikkel .tekst h2 { font-size: clamp(1.5rem, 4vw, 1.9rem); margin: 1.6em 0 .5em; }
.artikkel .tekst ul, .artikkel .tekst ol { padding-left: 1.3em; margin: 1em 0; font-size: 1.12rem; }
.artikkel .tekst li + li { margin-top: .7em; }
.artikkel .tekst strong { color: var(--pealkiri); }
