/*
Theme Name: Radio Kyiv
Theme URI: https://radiokyiv.com/
Author: Radio Kyiv
Description: Editorial WordPress theme preserving Radio Kyiv's original Kyiv city artwork and visual identity.
Version: 1.0.3
Text Domain: radio-kyiv
*/

:root {
  --paper: #f4f1e8;
  --paper-warm: #f8e9aa;
  --ink: #101010;
  --blue: #0b3698;
  --blue-dark: #071f58;
  --yellow: #f6cc28;
  --muted: #655f54;
  --line: rgba(16, 16, 16, .23);
  --max: 1540px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-shell { max-width: var(--max); margin: 0 auto; }

.site-header {
  display: grid;
  grid-template-columns: minmax(310px, 1.05fr) minmax(330px, 1.55fr) auto;
  align-items: center;
  gap: 30px;
  margin: 0 28px;
  padding: 22px 0 19px;
  border-bottom: 5px solid var(--blue);
}
.wordmark, .footer-brand { font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; letter-spacing: -.045em; white-space: nowrap; }
.wordmark { font-size: clamp(3.7rem, 7vw, 7.6rem); line-height: .78; }
.positioning { margin: 0; padding-left: 30px; border-left: 1px solid var(--line); }
.positioning strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.65rem, 2.7vw, 3.2rem); font-weight: 400; line-height: 1; }
.positioning span { display: block; max-width: 430px; margin-top: 11px; line-height: 1.35; }
.header-cta { font-family: Georgia, serif; font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.header-cta span { display: inline-grid; place-items: center; width: 35px; height: 35px; margin-left: 9px; border-radius: 50%; background: var(--yellow); }

.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr); min-height: 670px; margin: 16px 28px 0; background: var(--blue); color: white; }
.hero-copy { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(36px, 6vw, 84px); }
.eyebrow, .section-kicker { margin: 0 0 17px; color: var(--yellow); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { max-width: 740px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.4rem, 6vw, 7rem); font-weight: 400; letter-spacing: -.055em; line-height: .9; }
.hero-dek { max-width: 620px; margin: 30px 0 0; font-size: clamp(1rem, 1.3vw, 1.22rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; font-size: .82rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.button-primary { background: var(--yellow); color: var(--ink); }
.button-primary:hover { background: #ffdc50; }
.button-secondary { border: 1px solid rgba(255,255,255,.48); }
.button-secondary:hover { background: rgba(255,255,255,.09); }
.hero-art { display: grid; place-items: center; min-width: 0; margin: 0; overflow: hidden; background: #e9dfc6; }
.hero-art img { display: block; width: 100%; height: auto; max-height: 100%; object-fit: contain; }

.coverage { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 28px; border: 1px solid var(--line); border-top: 0; }
.coverage a { padding: 17px 12px; border-right: 1px solid var(--line); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.coverage a:last-child { border-right: 0; }
.coverage a:hover { background: var(--yellow); }

.about { display: grid; grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr); gap: clamp(40px, 8vw, 130px); padding: clamp(74px, 9vw, 135px) 28px; }
.section-label { margin: 10px 0 0; padding-top: 12px; border-top: 5px solid var(--yellow); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.about h2, .newsletter h2, .section-title, .archive-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 5vw, 5.6rem); font-weight: 400; letter-spacing: -.045em; line-height: .95; }
.about div > p { max-width: 790px; margin: 31px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.12rem, 1.7vw, 1.45rem); line-height: 1.62; }

.latest { margin: 0 28px; padding: clamp(60px, 8vw, 110px) 0; border-top: 5px solid var(--blue); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.section-heading .section-kicker { color: var(--blue); }
.all-link { color: var(--blue); font-weight: 800; text-decoration: underline; text-underline-offset: 5px; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.story-card { display: flex; flex-direction: column; min-width: 0; border-top: 1px solid var(--ink); padding-top: 14px; }
.story-thumb { display: block; aspect-ratio: 16 / 10; margin-bottom: 22px; overflow: hidden; background: var(--blue-dark); }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.story-card:hover .story-thumb img { transform: scale(1.025); }
.story-meta { margin: 0 0 12px; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.story-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 2.4vw, 2.5rem); font-weight: 400; line-height: 1.02; }
.story-card .excerpt { margin: 17px 0 0; color: var(--muted); line-height: 1.55; }
.empty-state { grid-column: 1 / -1; padding: 60px 25px; border: 1px solid var(--line); text-align: center; }
.empty-state p { max-width: 620px; margin: 0 auto; font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.5; }

.newsletter { display: grid; grid-template-columns: auto minmax(300px, .95fr) minmax(410px, 1.05fr); align-items: center; gap: clamp(28px, 4vw, 65px); margin: 0 28px 34px; padding: clamp(36px, 5vw, 68px); border-top: 1px solid #d0a817; background: var(--paper-warm); }
.newsletter-mark { display: grid; place-items: center; width: 88px; height: 88px; border: 2px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: 2.2rem; }
.eyebrow-blue { color: var(--blue); }
.newsletter h2 { font-size: clamp(2.4rem, 4.2vw, 4.8rem); }
.newsletter-copy > p:last-child { max-width: 620px; margin: 22px 0 0; line-height: 1.55; }
.signup { min-width: 0; }
.signup iframe { display: block; width: 100%; max-width: 520px; height: 150px; border: 0; background: transparent; }
.signup > p { max-width: 500px; margin: 10px 0 0; color: #564b2d; font-size: .72rem; line-height: 1.45; }
.signup > p a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.archive-wrap { padding: 80px 28px 120px; }
.archive-head { max-width: 1050px; margin-bottom: 65px; padding-bottom: 30px; border-bottom: 5px solid var(--blue); }
.archive-head .section-kicker { color: var(--blue); }
.pagination { margin-top: 55px; font-weight: 700; }
.pagination .nav-links { display: flex; gap: 10px; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 42px; height: 42px; border: 1px solid var(--line); }
.pagination .current { background: var(--blue); color: white; }

.article { max-width: 1320px; margin: 0 auto; padding: 80px 28px 120px; }
.article-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .55fr); gap: 70px; align-items: end; padding-bottom: 45px; border-bottom: 5px solid var(--blue); }
.article-category { color: var(--blue); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.article-title { max-width: 940px; margin: 18px 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6vw, 6.6rem); font-weight: 400; letter-spacing: -.05em; line-height: .94; text-wrap: balance; }
.article-dek { margin: 0; color: #2f2b25; font-family: Georgia, serif; font-size: clamp(1.25rem, 1.85vw, 1.7rem); line-height: 1.48; text-wrap: balance; }
.byline { margin-top: 23px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.article-featured { margin: 38px 0 55px; }
.article-featured img { display: block; width: 100%; max-height: 780px; object-fit: cover; }
.article-body { max-width: 760px; margin: 0 auto; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.12rem, 1.35vw, 1.25rem); line-height: 1.82; text-rendering: optimizeLegibility; }
.article-body > p { margin: 0 0 1.45em; }
.article-body > p:first-child { margin-left: -70px; margin-right: -70px; margin-bottom: 1.55em; color: #26231f; font-size: 1.18em; line-height: 1.68; }
.article-body > p:first-child::first-letter { float: left; margin: .08em .11em 0 0; color: var(--blue); font-family: Georgia, "Times New Roman", serif; font-size: 4.25em; font-weight: 700; line-height: .72; }
.article-body h2, .article-body h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.article-body h2 { position: relative; margin: 3.15em 0 1em; padding-top: 24px; border-top: 1px solid var(--line); font-size: clamp(2rem, 3.25vw, 3.15rem); letter-spacing: -.035em; line-height: 1.08; text-wrap: balance; }
.article-body h2::before { position: absolute; top: -5px; left: 0; width: 92px; height: 9px; background: var(--yellow); content: ""; }
.article-body h3 { margin: 2.5em 0 .75em; font-size: clamp(1.45rem, 2.2vw, 2rem); line-height: 1.18; }
.article-body > p:has(> strong:only-child) { margin: 2.2em -70px; padding: 1.1em 0 1.1em 30px; border-left: 7px solid var(--yellow); color: var(--blue-dark); font-size: clamp(1.35rem, 2.1vw, 1.85rem); line-height: 1.45; }
.article-body > p:last-child { margin-top: 3.5em; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-family: Arial, Helvetica, sans-serif; font-size: .82rem; line-height: 1.65; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote { margin: 2em 0; padding: 8px 0 8px 28px; border-left: 5px solid var(--yellow); font-size: 1.35em; line-height: 1.4; }
.article-body figcaption { color: var(--muted); font-family: Arial, sans-serif; font-size: .75rem; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 28px; padding: 45px 28px 38px; background: var(--ink); color: white; }
.footer-brand { font-size: clamp(2.7rem, 5vw, 5.8rem); line-height: .8; }
.site-footer p { margin: 0; color: #bdbdbd; line-height: 1.5; }
.site-footer nav { display: flex; gap: 25px; font-size: .8rem; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .positioning { grid-column: 1 / -1; grid-row: 2; padding-left: 0; border-left: 0; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 590px; }
  .hero-art { min-height: 520px; }
  .story-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: auto 1fr; }
  .signup { grid-column: 1 / -1; }
  .article-head { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .site-header { grid-template-columns: 1fr; gap: 15px; margin: 0 16px; padding-top: 18px; }
  .wordmark { font-size: 4.2rem; }
  .header-cta { display: none; }
  .positioning { grid-row: auto; }
  .positioning strong { font-size: 1.7rem; }
  .hero { margin: 12px 16px 0; }
  .hero-copy { min-height: 540px; padding: 34px 24px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
  .hero-art { min-height: 360px; }
  .coverage { grid-template-columns: 1fr 1fr; margin: 0 16px; }
  .coverage a { border-bottom: 1px solid var(--line); }
  .coverage a:nth-child(2n) { border-right: 0; }
  .coverage a:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .about { grid-template-columns: 1fr; gap: 35px; padding-left: 16px; padding-right: 16px; }
  .latest { margin: 0 16px; }
  .section-heading { display: block; }
  .all-link { display: inline-block; margin-top: 20px; }
  .story-grid { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; margin: 0 16px 22px; padding: 32px 23px 38px; }
  .newsletter-mark { width: 62px; height: 62px; }
  .signup { grid-column: auto; }
  .archive-wrap, .article { padding-left: 16px; padding-right: 16px; }
  .article { padding-top: 52px; }
  .article-title { font-size: clamp(2.65rem, 13vw, 4.3rem); line-height: .98; }
  .article-body { font-size: 1.08rem; line-height: 1.76; }
  .article-body > p:first-child { margin-left: 0; margin-right: 0; font-size: 1.1em; }
  .article-body > p:has(> strong:only-child) { margin-left: 0; margin-right: 0; padding-left: 20px; }
  .site-footer { grid-template-columns: 1fr; align-items: start; padding: 40px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .story-thumb img { transition: none; }
}
