/*
Theme Name: Lesves 2026
Theme URI: https://new.lesves.cz/
Author: Lesves
Description: Lehké vlastní téma pro ZŠ Turnov a Komunitní školu Malá Skála.
Version: 0.1.1
Text Domain: lesves2026
*/

@font-face {
  font-family: "Waldorf";
  src: url("/wp-content/uploads/useanyfont/4285Waldorf.woff2") format("woff2"),
       url("/wp-content/uploads/useanyfont/4285Waldorf.woff") format("woff");
  font-display: swap;
}

:root {
  --ink: #22322b;
  --muted: #667069;
  --paper: #fffdf8;
  --cream: #f6f1e6;
  --line: rgba(35, 57, 46, .14);
  --forest: #2c654b;
  --forest-dark: #194535;
  --moss: #7d9a55;
  --ochre: #d38a42;
  --ochre-dark: #a9582f;
  --rose: #c66c63;
  --sky: #7eb6b5;
  --shadow: 0 20px 60px rgba(39, 52, 42, .12);
  --radius: 30px;
  --display: "Waldorf", "Trebuchet MS", sans-serif;
  --body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: var(--forest-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 9999; padding: 10px 16px; background: #fff; }
.skip-link:focus { top: 12px; }

.site-topbar { background: var(--forest-dark); color: #fff; font-size: 14px; }
.site-topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 42px; }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-topbar a { color: #fff; text-decoration: none; }
.school-shortcuts { display: flex; gap: 8px; }
.school-shortcuts a { padding: 4px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,253,248,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 96px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 168px; text-decoration: none; }
.brand img { width: 82px; height: 82px; object-fit: contain; }
.brand-name { font-family: var(--display); font-size: 28px; line-height: 1; color: var(--forest-dark); }
.brand-sub { display: block; margin-top: 5px; font-family: var(--body); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; padding: 0; margin: 0; }
.site-nav > ul { display: flex; align-items: center; gap: 3px; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding: 12px 11px; border-radius: 12px; color: var(--ink); font-size: 14px; font-weight: 750; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav .current-menu-item > a { background: var(--cream); color: var(--forest-dark); }
.site-nav .sub-menu { position: absolute; left: 0; top: calc(100% + 8px); width: 260px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s ease; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { padding: 9px 12px; font-weight: 650; }
.nav-toggle { display: none; margin-left: auto; width: 50px; height: 50px; border: 0; border-radius: 16px; background: var(--cream); color: var(--forest-dark); cursor: pointer; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 23px; height: 2px; margin: 5px auto; background: currentColor; transition: .2s; }

.hero { position: relative; overflow: hidden; padding: clamp(58px, 8vw, 104px) 0 74px; background: linear-gradient(155deg, #fffdf8 8%, #f8f2e4 52%, #eef5ec 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; pointer-events: none; }
.hero::before { width: 560px; height: 380px; right: -170px; top: -130px; background: radial-gradient(circle at 35% 50%, rgba(126,182,181,.65), rgba(125,154,85,.12) 55%, transparent 70%); transform: rotate(-12deg); }
.hero::after { width: 420px; height: 300px; left: -160px; bottom: -130px; background: radial-gradient(circle at 60% 40%, rgba(211,138,66,.42), rgba(198,108,99,.12) 58%, transparent 72%); transform: rotate(18deg); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); align-items: center; gap: clamp(38px, 7vw, 96px); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; font-size: 13px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; color: var(--forest); }
.eyebrow::before { content: ""; width: 32px; height: 3px; border-radius: 4px; background: linear-gradient(90deg, var(--ochre), var(--rose)); }
.hero h1, .section-title, .entry-title { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(48px, 7.2vw, 88px); line-height: .98; color: var(--forest-dark); }
.hero-lead { max-width: 700px; margin: 28px 0 0; font-size: clamp(18px, 2vw, 23px); line-height: 1.6; }
.hero-note { margin: 16px 0 0; color: var(--muted); }
.hero-mark { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-mark::before, .hero-mark::after { content: ""; position: absolute; inset: 7%; border-radius: 44% 56% 52% 48% / 53% 40% 60% 47%; background: linear-gradient(145deg, rgba(126,182,181,.55), rgba(125,154,85,.34), rgba(211,138,66,.42), rgba(198,108,99,.28)); transform: rotate(9deg); }
.hero-mark::after { inset: 16%; background: rgba(255,253,248,.8); transform: rotate(-6deg); }
.hero-mark img { position: relative; z-index: 2; width: 65%; max-height: 310px; object-fit: contain; }

.school-gateway { position: relative; z-index: 5; margin-top: -28px; padding-bottom: 88px; }
.school-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.school-card { position: relative; overflow: hidden; min-height: 330px; padding: clamp(30px, 5vw, 52px); border-radius: 38px 26px 42px 22px; color: #fff; box-shadow: var(--shadow); text-decoration: none; isolation: isolate; transition: transform .25s ease, box-shadow .25s ease; }
.school-card:hover { transform: translateY(-5px) rotate(-.25deg); box-shadow: 0 26px 70px rgba(39,52,42,.2); }
.school-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--card-bg); }
.school-card::after { content: ""; position: absolute; width: 330px; height: 330px; right: -110px; bottom: -170px; z-index: -1; border-radius: 46% 54% 65% 35%; background: rgba(255,255,255,.12); }
.school-card.turnov { --card-bg: linear-gradient(140deg, #bd6a35, #d9944c 58%, #e8ad67); }
.school-card.skala { --card-bg: linear-gradient(140deg, #1f5942, #3d7652 58%, #6f965c); border-radius: 24px 40px 25px 42px; }
.school-kicker { font-size: 13px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; opacity: .86; }
.school-card h2 { margin: 12px 0 18px; max-width: 490px; font-family: var(--display); font-size: clamp(38px, 5vw, 62px); font-weight: 400; line-height: 1; }
.school-card p { max-width: 520px; margin: 0 0 28px; font-size: 18px; }
.school-link { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; }
.school-link::after { content: "→"; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: rgba(255,255,255,.18); }

.section { padding: 84px 0; }
.section-soft { background: var(--cream); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.section-title { margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: 1.05; color: var(--forest-dark); }
.section-copy { max-width: 570px; margin: 12px 0 0; color: var(--muted); }
.text-link { white-space: nowrap; font-weight: 800; text-decoration: none; }
.text-link::after { content: " →"; }

.event-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.event-card { position: relative; display: grid; grid-template-columns: 1fr; gap: 10px; min-height: 160px; padding: 28px 25px 25px 32px; border: 1px solid var(--line); border-radius: 24px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .2s, border-color .2s; }
.event-card:hover { transform: translateY(-4px); border-color: var(--moss); }
.event-card::before { content: ""; position: absolute; left: 0; top: 25px; bottom: 25px; width: 7px; border-radius: 0 8px 8px 0; background: linear-gradient(var(--ochre), var(--rose)); }
.event-school, .post-school { display: inline-flex; width: fit-content; margin-bottom: 9px; padding: 4px 9px; border-radius: 999px; background: #edf4ed; color: var(--forest-dark); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.event-card h3 { margin: 0; font-size: 18px; line-height: 1.35; }

.streams { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 48px; }
.stream-title { display: flex; align-items: center; gap: 13px; margin: 0 0 22px; font-family: var(--display); font-size: 36px; font-weight: 400; }
.stream-title::before { content: ""; width: 14px; height: 42px; border-radius: 12px 5px 12px 5px; background: var(--ochre); transform: rotate(5deg); }
.stream.skala .stream-title::before { background: var(--forest); transform: rotate(-4deg); }
.post-grid { display: grid; gap: 18px; }
.post-card { display: grid; grid-template-columns: 150px 1fr; min-height: 145px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 16px 35px rgba(39,52,42,.09); }
.post-media { min-height: 145px; background: linear-gradient(145deg, rgba(211,138,66,.8), rgba(198,108,99,.58)); }
.stream.skala .post-media { background: linear-gradient(145deg, rgba(44,101,75,.86), rgba(126,182,181,.62)); }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-fallback { height: 100%; display: grid; place-items: center; padding: 20px; color: rgba(255,255,255,.94); font-family: var(--display); font-size: 25px; line-height: 1.05; text-align: center; }
.post-body { align-self: center; padding: 22px; }
.post-date { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.post-card h3 { margin: 0; font-size: 19px; line-height: 1.35; }
.stream-more { display: inline-flex; margin-top: 20px; font-weight: 800; text-decoration: none; }

.waldorf-band { position: relative; overflow: hidden; background: var(--forest-dark); color: #fff; }
.waldorf-band::before { content: ""; position: absolute; inset: -80% 45% -100% -15%; border-radius: 50%; background: radial-gradient(circle, rgba(211,138,66,.4), transparent 66%); }
.waldorf-grid { position: relative; display: grid; grid-template-columns: 1fr .75fr; gap: 60px; align-items: center; }
.waldorf-band .section-title { color: #fff; }
.waldorf-band p { max-width: 720px; font-size: 20px; color: rgba(255,255,255,.84); }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 20px; border-radius: 999px; background: #fff; color: var(--forest-dark); font-weight: 850; text-decoration: none; }
.waldorf-symbol { display: grid; place-items: center; min-height: 280px; }
.waldorf-symbol span { width: 230px; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.35); border-radius: 48% 52% 58% 42%; font-family: var(--display); font-size: 44px; transform: rotate(8deg); }

.site-main { min-height: 55vh; }
.content-shell { padding: 68px 0 96px; }
.entry-header { max-width: 900px; margin-bottom: 34px; }
.entry-title { margin: 0; font-size: clamp(42px, 6vw, 72px); line-height: 1.05; color: var(--forest-dark); }
.entry-meta { margin-top: 12px; color: var(--muted); font-size: 14px; }
.entry-content { font-size: 17px; }
.entry-content > * { max-width: 900px; margin-inline: auto; }
.entry-content > .alignwide { max-width: 1180px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3 { color: var(--forest-dark); line-height: 1.2; }
.archive-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.archive-grid .post-card { grid-template-columns: 1fr; }
.archive-grid .post-media { aspect-ratio: 16/10; }
.pagination { margin-top: 40px; }

.site-footer { padding: 58px 0 28px; background: #183a2e; color: rgba(255,255,255,.82); }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 54px; }
.footer-brand { font-family: var(--display); font-size: 38px; color: #fff; }
.footer-title { margin: 0 0 16px; color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.footer-menu { list-style: none; padding: 0; margin: 0; columns: 2; }
.site-footer a { color: #fff; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; }

@media (max-width: 1040px) {
  .site-topbar { display: none; }
  .site-header { top: 0; }
  .header-inner { min-height: 82px; }
  .brand img { width: 64px; height: 64px; }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 82px 0 0; z-index: 120; margin: 0; padding: 24px 20px 40px; overflow-y: auto; background: var(--paper); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .2s ease; }
  .menu-open .site-nav { opacity: 1; visibility: visible; transform: none; }
  .site-nav > ul { display: block; }
  .site-nav a { padding: 13px 12px; font-size: 17px; }
  .site-nav .sub-menu { position: static; width: auto; padding: 2px 0 8px 18px; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
  .hero-grid { grid-template-columns: 1fr .55fr; gap: 30px; }
  .event-list { grid-template-columns: 1fr; }
  .event-card { min-height: auto; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .header-inner { min-height: 76px; }
  .brand img { width: 56px; height: 56px; }
  .brand-name { font-size: 24px; }
  .site-nav { inset-block-start: 76px; }
  .hero { padding-top: 48px; padding-bottom: 54px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .hero h1 { font-size: clamp(45px, 14vw, 67px); }
  .hero-lead { font-size: 18px; }
  .school-gateway { margin-top: -16px; padding-bottom: 58px; }
  .school-grid { grid-template-columns: 1fr; gap: 14px; }
  .school-card { min-height: 280px; border-radius: 30px 20px 34px 18px; }
  .school-card.skala { border-radius: 20px 32px 20px 34px; }
  .section { padding: 62px 0; }
  .section-head { display: block; }
  .section-head .text-link { display: inline-block; margin-top: 14px; }
  .streams, .waldorf-grid, .footer-grid { grid-template-columns: 1fr; gap: 42px; }
  .post-card { grid-template-columns: 112px 1fr; }
  .post-body { padding: 17px; }
  .post-card h3 { font-size: 17px; }
  .waldorf-symbol { min-height: 180px; }
  .waldorf-symbol span { width: 170px; font-size: 34px; }
  .archive-grid { grid-template-columns: 1fr; }
  .footer-menu { columns: 1; }
  .footer-bottom { display: block; }
}

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

