/* Spoken Decks — navy + coral, layout modelled on polyhaven.com */
:root {
  --bg: #111C2B;
  --bar: #0B1420;
  --panel: #162335;
  --card: #1A2A3F;
  --line: #22344C;
  --line-2: #2B4060;
  --text: #D6DEE8;
  --text-2: #B3C0CF;
  --muted: #8B9BB0;
  --muted-2: #7D8DA3;
  --head: #FFFFFF;
  --accent: #FF7A5C;
  --accent-hover: #FFA28A;
  --accent-ink: #111C2B;
  --blue: #5FC2E8;
  --gold: #E8C35F;
  --wrap: 1440px;
  --font: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  --display: 'Zilla Slab', Rockwell, 'Roboto Slab', Georgia, serif;
  --ipa: 'Noto Sans', 'DejaVu Sans', 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); color: var(--head); letter-spacing: -0.005em; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-weight: 700; }
h2, h3 { font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { background: var(--bar); border-bottom: 1px solid var(--line); position: relative; z-index: 3; }
.site-header .wrap { min-height: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--head); font: 700 20px/1 var(--display); flex: 1 1 auto; }
.logo:hover { color: var(--head); }
.logo svg { flex: 0 0 auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 14px; }
.nav a { color: var(--text); padding: 6px 0; }
.nav a[aria-current="page"] { color: var(--head); box-shadow: 0 2px 0 var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 4px; font-weight: 700; font-size: 15px; border: 0; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { border: 1px solid var(--head); color: var(--head); background: transparent; font-weight: 600; }
.btn-ghost:hover { color: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline { border: 1px solid var(--accent); color: var(--accent); background: transparent; font-weight: 600; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 3px; font-size: 12px; font-weight: 700; }
.tag-accent { background: var(--accent); color: var(--accent-ink); }
.tag-soft { background: rgba(11,20,32,0.82); color: var(--text); border: 1px solid var(--line-2); }

/* Hero slideshow */
.hero { position: relative; height: 640px; overflow: hidden; background: var(--bar); }
.hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; opacity: 0; transition: opacity 1.5s ease-out; }
.hero-slide.is-on { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,20,32,0.9) 0%, rgba(11,20,32,0.55) 38%, rgba(11,20,32,0) 62%); }
.hero-content { position: absolute; inset: 0; display: flex; align-items: center; }
.hero-text { max-width: 520px; display: flex; flex-direction: column; gap: 12px; }
.hero h1 { font-size: 58px; line-height: 1.05; text-shadow: 0 2px 18px rgba(0,0,0,0.6); }
.hero-lead { color: #E3E9F0; font-size: 18px; line-height: 1.5; text-shadow: 0 1px 8px rgba(0,0,0,0.7); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.hero-caption { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 4px; background: rgba(11,20,32,0.75); color: #E3E9F0; font-size: 13px; }
.hero-caption .dot { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); }
.hero-caption strong { color: var(--head); }
.hero-arrow { position: absolute; bottom: 14px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,0.35); border-radius: 50%; background: rgba(11,20,32,0.6); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.hero-arrow.prev { right: 68px; }
.hero-arrow.next { right: 16px; }

/* Roadmap */
.roadmap { background: var(--panel); border-bottom: 1px solid var(--line); }
.roadmap .wrap { padding-block: 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.roadmap-main { flex: 999 1 560px; min-width: 0; text-align: center; }
.roadmap-main h2 { font-size: 20px; margin-bottom: 22px; }
.track-wrap { position: relative; margin: 0 auto; max-width: 860px; padding: 26px 0 40px; }
.track { position: relative; height: 18px; border-radius: 9px; border: 2px solid var(--accent); background: var(--bg); overflow: hidden; }
.track-fill { position: absolute; left: 0; top: 0; bottom: 0; background-color: var(--accent); background-image: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent); background-size: 200px 100%; background-repeat: no-repeat; animation: shine 3s linear infinite; }
@keyframes shine { from { background-position: -200px 0; } to { background-position: calc(100% + 200px) 0; } }
.milestones { position: absolute; left: 0; right: 0; top: 26px; height: 22px; list-style: none; margin: 0; padding: 0; }
.milestones li { position: absolute; top: 0; }
.milestones .dot { position: absolute; top: 4px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; border: 2px solid var(--bg); background: #4A5C78; }
.milestones .now .dot { background: #fff; box-shadow: 0 0 0 3px rgba(255,122,92,0.45); }
.milestones .label { position: absolute; top: 26px; transform: translateX(-50%); white-space: nowrap; font-size: 12px; color: var(--text-2); }
.milestones .up .label { top: -22px; }
.roadmap-status { color: var(--head); font-weight: 700; }
.roadmap-next { font-size: 13px; color: var(--muted); margin-top: 4px; }
.notify { flex: 1 1 300px; max-width: 360px; min-width: 0; background: var(--bg); border: 1px solid var(--line-2); border-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.notify-title { color: var(--head); font-weight: 700; text-align: center; }
.notify label { font-size: 13px; color: var(--muted); }
.notify input[type="email"] { height: 44px; background: var(--card); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 12px; color: var(--text); font: inherit; font-size: 15px; }
.notify small { font-size: 12px; color: var(--muted-2); text-align: center; }
.hp { display: none; }

/* Three spheres */
.sections .wrap { padding-block: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.sphere-item { display: flex; align-items: center; gap: 22px; }
.sphere-item img { flex: 0 0 auto; width: 150px; height: 150px; }
.sphere-item h2 { font-size: 26px; margin-bottom: 6px; }
.sphere-item p { font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
.chip-btn { display: inline-block; padding: 9px 14px; font-size: 14px; font-weight: 600; }
.chip-coral { background: var(--accent); color: var(--accent-ink); }
.chip-blue { background: var(--blue); color: #10202A; }
.chip-gold { background: var(--gold); color: #2A2008; }
.chip-btn:hover { filter: brightness(1.08); color: inherit; }

/* Fixed-background windows */
.window { position: relative; min-height: 460px; display: flex; align-items: center; background-size: cover; background-position: center; background-attachment: fixed; background-color: var(--bar); }
.window-shade { position: absolute; inset: 0; }
.window.left .window-shade { background: linear-gradient(90deg, rgba(11,20,32,0.92) 0%, rgba(11,20,32,0.75) 38%, rgba(11,20,32,0) 70%); }
.window.right .window-shade { background: linear-gradient(270deg, rgba(11,20,32,0.92) 0%, rgba(11,20,32,0.75) 38%, rgba(11,20,32,0) 70%); }
.window .wrap { position: relative; width: 100%; padding-block: 56px; display: flex; }
.window.right .wrap { justify-content: flex-end; }
.window-text { max-width: 440px; display: flex; flex-direction: column; gap: 10px; }
.window-text h2 { font-size: 32px; margin-bottom: 2px; }
.window-text p { line-height: 1.65; }
.w-hungary { background-image: url(../img/wide-hungarian.webp); }
.w-greece { background-image: url(../img/wide-greek-left.webp); }

/* Plain band */
.band .wrap { padding-block: 44px; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; }
.band .wrap > div { flex: 1 1 380px; min-width: 0; }
.band h2 { font-size: 26px; margin-bottom: 10px; }
.band p { font-size: 15px; line-height: 1.65; }

/* Browse with changing background */
.browse { position: relative; min-height: 460px; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; background-attachment: fixed; background-color: var(--bar); transition: background-image 0.4s; }
.browse::before { content: ""; position: absolute; inset: 0; background: rgba(11,20,32,0.45); }
.browse ul { position: relative; list-style: none; margin: 0; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.browse a { display: inline-block; color: #fff; font-size: 24px; font-weight: 700; padding: 4px 12px; text-shadow: 0 2px 14px rgba(0,0,0,0.85); opacity: 0.72; }
.browse li:first-child a { font-size: 34px; }
.browse a.is-on, .browse a:hover, .browse a:focus { opacity: 1; color: #fff; }

/* Deck grid */
.decks .wrap { padding-block: 44px 48px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.section-head h2 { font-size: 22px; }
.section-head span { font-size: 14px; color: var(--muted); }
.deck-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.deck-card { display: flex; flex-direction: column; background: var(--card); border-radius: 6px; overflow: hidden; color: var(--text); height: 100%; }
.deck-card:hover { color: var(--text); outline: 1px solid var(--line-2); }
.deck-card .pic { position: relative; aspect-ratio: 4 / 3; background: var(--bar); }
.deck-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.deck-card .pic .tag { position: absolute; left: 10px; top: 10px; }
.deck-card .meta { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.deck-card .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 8px; }
.deck-card .name { color: var(--head); font-weight: 700; }
.deck-card .native { font-size: 14px; color: var(--text-2); }
.deck-card .sub { font-size: 13px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--bar); border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 32px; display: flex; flex-wrap: wrap; gap: 28px 56px; font-size: 13px; color: var(--muted); }
.site-footer .about { flex: 1 1 260px; min-width: 0; line-height: 1.6; }
.site-footer strong { color: var(--head); display: block; margin-bottom: 6px; }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--text); }
.site-footer .col-title { color: var(--head); font-weight: 600; }

/* Inner pages */
.crumbs { font-size: 13px; color: var(--muted-2); padding-top: 16px; }
.crumbs a { color: var(--text-2); }
.page-cols { padding-block: 16px 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.page-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.page-side { flex: 1 1 320px; max-width: 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.panel { background: var(--card); border-radius: 6px; }
.panel-pad { padding: 16px; }
.panel h2 { font-size: 18px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { text-align: right; }
.word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.word-tile { min-height: 76px; border-radius: 6px; background: #22344C; padding: 10px 12px; display: flex; flex-direction: column; justify-content: space-between; }
.word-tile b { color: #E3E9F0; font-size: 20px; line-height: 1.1; }
.word-tile span { font-size: 12px; color: var(--text-2); }
.word-tile a { color: inherit; }
.size-pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: var(--bg); padding: 4px; border-radius: 5px; }
.size-pills span { min-height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 3px; font-size: 14px; font-weight: 600; color: var(--muted); }
.label-sm { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.status-box { border: 1px dashed var(--line-2); border-radius: 6px; padding: 14px 16px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.status-box strong { color: var(--head); }
.prose { max-width: 70ch; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { font-size: 24px; margin-top: 18px; }
.prose p, .prose li { line-height: 1.7; color: var(--text-2); }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }

/* Word page */
.word-banner { position: relative; height: 240px; overflow: hidden; background: var(--bar); }
.word-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 45%; opacity: 0.7; }
.word-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,28,43,0) 40%, var(--bg) 100%); }
.word-wrap { max-width: 1100px; margin: -120px auto 0; padding: 0 24px 56px; position: relative; display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.word-main { flex: 999 1 560px; min-width: 0; }
.word-main h1 { font-size: 92px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; margin-top: 8px; }
.word-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
.ipa { font-family: var(--ipa); font-size: 17px; color: var(--text-2); }
.pos { font-size: 15px; color: var(--muted); font-style: italic; }
.meaning { margin-top: 28px; font-size: 22px; line-height: 1.5; color: var(--head); }
.meaning span { color: var(--muted); }
.note { margin-top: 24px; padding: 16px 18px; border-radius: 6px; background: var(--card); font-size: 15px; line-height: 1.65; color: var(--text-2); }
.note .label-sm { color: var(--accent); margin-bottom: 4px; display: block; }
.examples { list-style: none; margin: 0; padding: 0; }
.examples li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.examples .pl { color: var(--head); font-size: 17px; }
.examples .en { color: var(--muted); font-size: 14px; }
.related { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.related li { padding: 8px 12px; border-radius: 4px; background: var(--card); font-size: 15px; }
.related b { color: var(--head); font-weight: 600; }
.related span { color: var(--muted); }
.word-side { flex: 1 1 280px; max-width: 340px; min-width: 0; margin-top: 120px; }

@media (max-width: 760px) {
  .hero { height: 460px; }
  .hero h1 { font-size: 38px; }
  .hero-lead { font-size: 16px; }
  .window, .browse { background-attachment: scroll; }
  .window-shade { background: rgba(11,20,32,0.8) !important; }
  .deck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-side { order: -1; max-width: none; }
  .word-main h1 { font-size: 60px; }
  .word-side { margin-top: 0; max-width: none; }
  .nav .hide-m { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .track-fill { animation: none; }
}
