/* ============================================================
   VYRO KODAS
   Design tokens: graphite/charcoal "workshop" background, burnt-rust
   "signal" accent, muted olive as the secondary tone. Dark is the
   default look (distinct from Moters-Kodas's light "editorial calm"
   and from AI-Signalas's cold-tech dark) — a user-toggleable light
   variant is included from the start, see :root[data-theme="light"]
   below (same mechanism as the other two projects).
   ============================================================ */

:root{
  --bg: #1E2023;
  --surface: #262A2E;
  --surface-2: #2F3338;
  --border: #3A3F45;
  --border-soft: #33373C;

  --ink: #EDEEF0;
  --ink-muted: #A9AFB6;
  --ink-faint: #767C83;

  --accent: #C4622D;        /* burnt rust — the "worth reading" signal */
  --accent-soft: #D98452;
  --accent-2: #7C8858;      /* muted olive — secondary */
  --danger: #C4574F;
  --on-accent: #FFFFFF;     /* text color to use ON TOP of an --accent-colored surface (e.g. buttons) */

  --font-display: 'Barlow Condensed', 'Oswald', Impact, sans-serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1080px;
}

/* Light variant: same rust/olive identity, darkened so it still reads
   against a light stone background instead of the dark graphite one. */
:root[data-theme="light"]{
  --bg: #F1EEE8;
  --surface: #FFFFFF;
  --surface-2: #E7E2D8;
  --border: #D9D2C4;
  --border-soft: #E3DDD0;

  --ink: #201D1A;
  --ink-muted: #5C5750;
  --ink-faint: #8C8578;

  --accent: #A34E20;
  --accent-soft: #C4622D;
  --accent-2: #5C6640;
  --danger: #A3392F;
  --on-accent: #FFFFFF;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{ max-width: 100%; display: block; }

.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

a{ color: inherit; text-decoration: none; }

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.eyebrow{
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}

.site-header__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand{
  display: flex;
  align-items: baseline;
}

.brand__text{
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.brand__accent{ color: var(--accent); }

.site-header__right{
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header__date{
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

@media (max-width: 620px){
  .site-header__date{ display: none; }
}

.theme-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  line-height: 1;
  color: var(--ink-faint);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}

.theme-toggle:hover{
  color: var(--accent);
  border-color: var(--accent-soft);
}

.lang-switcher{
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  letter-spacing: 0.03em;
}

.lang-switcher__btn{
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--ink-faint);
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  padding: 0 0 2px;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}

.lang-switcher__btn:hover{ color: var(--ink); }

.lang-switcher__btn--active{
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--border);
}

.hero__grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 56px;
  align-items: end;
}

.hero__title{
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 12px 0 0;
  text-wrap: balance;
  max-width: 15ch;
}

.hero__title em{
  color: var(--accent);
  font-style: normal;
}

.hero__side{
  border-left: 1px solid var(--border);
  padding-left: 32px;
}

.hero__subtitle{
  font-size: 16px;
  color: var(--ink);
  max-width: 36ch;
  margin: 0 0 22px;
}

.hero__stats{
  display: flex;
  gap: 28px;
}

.hero__stat-value{
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.hero__stat-label{
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 760px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__side{ border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 20px; }
}

/* ============================================================
   TOPICS
   ============================================================ */
.topics{
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.topics__head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.topics-list{
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
}

.topic-pill{
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  user-select: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color .15s ease, border-color .15s ease;
}

.topic-pill:hover{ color: var(--ink); }

.topic-pill--active{
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.topic-pill__count{
  color: var(--ink-faint);
  font-size: 12px;
  margin-left: 3px;
}

.section-hint{
  font-size: 12px;
  color: var(--ink-faint);
}

.state-msg{
  color: var(--ink-faint);
  font-size: 13.5px;
}
.state-msg--error{ color: var(--danger); }

/* ============================================================
   FEATURED
   ============================================================ */
.featured{
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.featured-block{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  cursor: pointer;
}

.featured-block__media{
  aspect-ratio: 4/3;
  position: relative;
}

.featured-block__body{ min-width: 0; }

.card__category{
  font-size: 11.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.featured-block__title{
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  line-height: 1.15;
  margin: 10px 0 14px;
  text-wrap: balance;
}

.featured-block__summary{
  color: var(--ink);
  font-size: 16.5px;
  max-width: 46ch;
  margin: 0 0 16px;
}

.card__meta{
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.card__meta .dot{ opacity: .5; }

.card__sources{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card__source{
  color: var(--ink-faint);
}

@media (max-width: 760px){
  .featured-block{ grid-template-columns: 1fr; }
}

/* ============================================================
   NEWS GRID / CARDS
   ============================================================ */
.news{ padding: 48px 0 64px; }

.news__head{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.news__heading{
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
}

.news-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px 30px;
}

@media (max-width: 860px){
  .news-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .news-grid{ grid-template-columns: 1fr; }
}

.card{ cursor: pointer; }

.card__media{
  aspect-ratio: 4/3;
  margin-bottom: 14px;
  position: relative;
}

.card__title{
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin: 8px 0 8px;
}

.card__summary{
  font-size: 14.5px;
  color: var(--ink);
  margin: 0 0 10px;
}

/* gradient media backdrops (rust/olive/charcoal palette family) —
   used whenever an article has no real photo yet */
.g0{ background: linear-gradient(140deg, #C4622D, #33373C); }
.g1{ background: linear-gradient(140deg, #7C8858, #262A2E); }
.g2{ background: linear-gradient(140deg, #A9793D, #2F3338); }
.g3{ background: linear-gradient(140deg, #5C6670, #1E2023); }
.g4{ background: linear-gradient(140deg, #8A4A2E, #7C8858); }
.g5{ background: linear-gradient(140deg, #6B6459, #C4622D); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 30px 0 56px;
}

.site-footer__inner{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

.site-footer__inner .accent{ color: var(--accent); }

.site-footer__links{
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}

.site-footer__links-label{
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.site-footer__links-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.site-footer__link-card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 16px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 4px;
  background: var(--surface-2);
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.site-footer__link-card:hover{
  background: var(--surface);
  transform: translateY(-2px);
}

/* Each card is tinted with the LINKED project's own brand color (not this
   site's), so the badge visually identifies which project it leads to. */
.site-footer__link-card--ai{
  border-color: rgba(255,180,84,0.4);
  border-left-color: #FFB454;
  background-image: linear-gradient(135deg, rgba(255,180,84,0.26), rgba(255,180,84,0.1));
}
.site-footer__link-card--ai:hover{ border-color: #FFB454; }
.site-footer__link-card--ai .site-footer__link-card-arrow{ color: #FFB454; }

.site-footer__link-card--moters{
  border-color: rgba(212,140,166,0.4);
  border-left-color: #D48CA6;
  background-image: linear-gradient(135deg, rgba(212,140,166,0.26), rgba(212,140,166,0.1));
}
.site-footer__link-card--moters:hover{ border-color: #D48CA6; }
.site-footer__link-card--moters .site-footer__link-card-arrow{ color: #D48CA6; }

.site-footer__link-card--vyro{
  border-color: rgba(196,98,45,0.4);
  border-left-color: #C4622D;
  background-image: linear-gradient(135deg, rgba(196,98,45,0.26), rgba(196,98,45,0.1));
}
.site-footer__link-card--vyro:hover{ border-color: #C4622D; }
.site-footer__link-card--vyro .site-footer__link-card-arrow{ color: #C4622D; }

.site-footer__link-card-text{
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.site-footer__link-card-name{
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  text-transform: none;
  letter-spacing: normal;
}

.site-footer__link-card-desc{
  font-size: 12px;
  color: var(--ink-muted);
  text-transform: none;
  letter-spacing: normal;
}

.site-footer__link-card-arrow{
  flex-shrink: 0;
  font-size: 18px;
  color: var(--accent);
  transition: transform .15s ease;
}

.site-footer__link-card:hover .site-footer__link-card-arrow{
  transform: translateX(4px);
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-page{ padding: 20px 0 56px; }

.article-page__wrap{ max-width: 720px; }

.article-hero{
  position: relative;
  min-height: 220px;
  margin-bottom: 26px;
}

@media (min-width: 640px){
  .article-hero{ min-height: 320px; }
}

/* Fixed dark scrim regardless of theme (mirrors AI-Signalas's own
   photo-overlay badges) — both --accent values above (rust, dark/mid
   toned in both themes) stay readable against it, so no separate
   "fixed" accent variable is needed here, unlike Moters-Kodas's
   fixed-LIGHT scrim which did need one. */
.article-hero__badge{
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: rgba(20,17,15,.6);
  color: var(--accent);
}

.article-content{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.article-content--empty{ align-items: flex-start; padding-top: 20px; }

.article-tags{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.article-tag{
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

.article-tag--muted{
  color: var(--ink-faint);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.article-title{
  font-family: var(--font-display);
  font-size: clamp(32px, 4.8vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}

.article-meta{
  font-size: 12.5px;
  color: var(--ink-faint);
}

.article-lead{
  font-size: 19px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  margin: 4px 0 0;
  font-family: var(--font-body);
}

.article-body__p{
  font-size: 18.5px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink);
  margin: 0;
}

.article-divider{
  border: none;
  border-top: 1px solid var(--border);
  margin: 10px 0;
}

.article-sources{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.article-sources__label{
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}

.article-cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: flex-start;
  margin-top: 8px;
  padding: 14px 26px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: background .15s ease, transform .15s ease;
}

.article-cta:hover{
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.article-cta__arrow{ transition: transform .15s ease; }
.article-cta:hover .article-cta__arrow{ transform: translateX(3px); }
