/* Reckless Neue (editorial) + Inter Tight (functional) — editorial premium pair for digital lifestyle brand */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; }

/* tokens */
:root {
  /* Colors — lime + white + graphite, яскрава світла схема */
  --c-lime:       #b8f23c;
  --c-lime-dark:  #96cc24;
  --c-lime-soft:  #e8fca8;
  --c-graphite:   #1a1a1a;
  --c-graphite-2: #2e2e2e;
  --c-mid:        #5c5c5c;
  --c-soft:       #8a8a8a;
  --c-border:     #e0e0e0;
  --c-bg:         #ffffff;
  --c-bg-2:       #f7f7f5;
  --c-bg-3:       #f0f0ec;
  --c-text:       #1a1a1a;
  --c-text-light: #5c5c5c;

  /* Typography */
  --ff-head: 'Reckless Neue', 'Georgia', serif;
  --ff-body: 'Inter Tight', 'system-ui', sans-serif;

  /* Font sizes */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.375rem;
  --fs-xl:   1.75rem;
  --fs-2xl:  2.25rem;
  --fs-3xl:  3rem;
  --fs-4xl:  4rem;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Radius */
  --r-sm:  4px;
  --r-md:  8px;
  --r-lg:  16px;
  --r-xl:  24px;
  --r-full: 9999px;

  /* Shadow */
  --sh-sm:  0 1px 3px rgba(0,0,0,.08);
  --sh-md:  0 4px 12px rgba(0,0,0,.10);
  --sh-lg:  0 8px 32px rgba(0,0,0,.12);

  /* Transitions */
  --tr-fast:  0.15s ease;
  --tr-base:  0.25s ease;
  --tr-slow:  0.4s ease;

  /* Z-index */
  --z-header:      100;
  --z-mobile:      200;
  --z-cookie:      300;
  --z-back-to-top: 150;
  --z-back-top: 150;

  /* Layout */
  --header-h: 64px;
  --max-w:    1160px;
  --logo-w:   140px;
  --logo-h:   40px;
}

/* base */
body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-head);
  line-height: 1.15;
  font-weight: 400;
}

p { line-height: 1.7; }

/* layout */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

main {
  padding-top: var(--header-h);
  min-height: 60vh;
}

/* header */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
  z-index: var(--z-header);
  overflow: hidden;
  transition: box-shadow var(--tr-base);
}

#site-header.scrolled {
  box-shadow: var(--sh-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: var(--sp-8);
}

.yiszr-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.yiszr-logo img {
  max-width: var(--logo-w);
  max-height: var(--logo-h);
  width: auto;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  flex: 1;
  justify-content: flex-end;
}

.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-mid);
  letter-spacing: 0.01em;
  transition: color var(--tr-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--c-graphite);
}

.nav-links a.active {
  border-bottom: 2px solid var(--c-lime);
  padding-bottom: 2px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-graphite);
  transition: transform var(--tr-base), opacity var(--tr-base);
}

/* mobile menu */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-mobile);
  background: var(--c-bg);
  padding: var(--sp-8) var(--sp-6);
  gap: var(--sp-4);
  border-top: 1px solid var(--c-border);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  overflow-y: auto;
}

.mobile-menu.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

.mobile-menu a {
  font-size: var(--fs-lg);
  font-family: var(--ff-head);
  color: var(--c-graphite);
  padding: var(--sp-3) 0;
  border-bottom: 1px solid var(--c-border);
}

.mobile-menu a:last-child { border-bottom: none; }

/* dispatch card */
.dispatch-card {
  display: block;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow var(--tr-base), transform var(--tr-base);
}

.dispatch-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}

.dispatch-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.dispatch-card__body {
  padding: var(--sp-5);
}

.dispatch-card__tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-graphite);
  background: var(--c-lime);
  padding: 2px var(--sp-3);
  border-radius: var(--r-full);
  margin-bottom: var(--sp-3);
}

.dispatch-card__title {
  font-size: var(--fs-lg);
  font-family: var(--ff-head);
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: var(--sp-3);
  color: var(--c-graphite);
}

.dispatch-card__excerpt {
  font-size: var(--fs-sm);
  color: var(--c-text-light);
  line-height: 1.6;
  margin-bottom: var(--sp-4);
}

.dispatch-card__meta {
  font-size: var(--fs-xs);
  color: var(--c-soft);
  display: flex;
  gap: var(--sp-4);
  align-items: center;
}

/* unique component — "Signal Strip" used on homepage and listing */
.signal-strip {
  display: flex;
  gap: 1px;
  background: var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.signal-strip__item {
  display: block;
  flex: 1;
  background: var(--c-bg);
  padding: var(--sp-5) var(--sp-6);
  transition: background var(--tr-fast);
  cursor: pointer;
}

.signal-strip__item:hover,
.signal-strip__item.active {
  background: var(--c-lime-soft);
}

.signal-strip__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-soft);
  margin-bottom: var(--sp-2);
}

.signal-strip__count {
  font-size: var(--fs-2xl);
  font-family: var(--ff-head);
  color: var(--c-graphite);
  line-height: 1;
}

/* breadcrumb */
.breadcrumb {
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--sp-8);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  font-size: var(--fs-sm);
  color: var(--c-soft);
}

.breadcrumb ol a {
  color: var(--c-mid);
  transition: color var(--tr-fast);
}

.breadcrumb ol a:hover { color: var(--c-graphite); }

.breadcrumb ol li:not(:last-child)::after {
  content: '›';
  margin-left: var(--sp-2);
  color: var(--c-border);
}

/* article body styles */
.article-body h2 {
  font-size: var(--fs-xl);
  margin: var(--sp-8) 0 var(--sp-4);
}

.article-body h3 {
  font-size: var(--fs-lg);
  margin: var(--sp-6) 0 var(--sp-3);
}

.article-body p {
  margin-bottom: var(--sp-5);
  color: var(--c-text);
  max-width: 68ch;
}

.article-body ul, .article-body ol {
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-5);
}

.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }

.article-body li {
  margin-bottom: var(--sp-2);
  line-height: 1.7;
}

.article-body a {
  color: var(--c-graphite);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--tr-fast);
}

.article-body a:hover { color: var(--c-lime-dark); }

/* CTA newsletter */
.cta-newsletter {
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  margin: var(--sp-10) 0;
}

.cta-newsletter h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-2);
}

.cta-newsletter p {
  font-size: var(--fs-sm);
  color: var(--c-mid);
  margin-bottom: var(--sp-5);
}

.cta-newsletter form {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.cta-newsletter input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  font: inherit;
  font-size: var(--fs-sm);
  background: var(--c-bg);
  color: var(--c-text);
  transition: border-color var(--tr-fast);
}

.cta-newsletter input[type="email"]:focus {
  outline: none;
  border-color: var(--c-lime-dark);
}

.cta-newsletter .btn {
  padding: var(--sp-3) var(--sp-6);
  background: var(--c-lime);
  color: var(--c-graphite);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: background var(--tr-fast);
}

.cta-newsletter .btn:hover {
  background: var(--c-lime-dark);
}

.cta-success {
  font-size: var(--fs-sm);
  color: var(--c-mid);
  display: none;
}

/* footer */
footer {
  background: var(--c-graphite);
  color: rgba(255,255,255,0.7);
  padding: var(--sp-16) 0 var(--sp-8);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}

.footer-brand .yiszr-logo img {
  filter: brightness(0) invert(1);
  max-width: var(--logo-w);
}

.footer-brand p {
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  line-height: 1.7;
  max-width: 28ch;
}

.footer-col h4 {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: var(--sp-5);
}

.footer-col a {
  display: block;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--sp-3);
  transition: color var(--tr-fast);
}

.footer-col a:hover { color: var(--c-lime); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.35);
}

.footer-legal {
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.footer-legal a {
  color: rgba(255,255,255,0.35);
  transition: color var(--tr-fast);
}

.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* cookie */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-cookie);
  background: var(--c-graphite);
  color: rgba(255,255,255,0.85);
  padding: var(--sp-5) var(--sp-6);
  display: none;
  transform: translateY(100%);
  transition: transform var(--tr-slow);
}

#cookie-banner.visible {
  display: flex;
  transform: translateY(0);
  align-items: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  justify-content: space-between;
}

.cookie-text {
  font-size: var(--fs-sm);
  flex: 1;
  min-width: 200px;
}

.cookie-text a {
  color: var(--c-lime);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--sp-3);
  flex-shrink: 0;
}

.cookie-btn {
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background var(--tr-fast);
}

#cookie-accept {
  background: var(--c-lime);
  color: var(--c-graphite);
}

#cookie-accept:hover { background: var(--c-lime-dark); }

#cookie-decline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.7);
}

#cookie-decline:hover {
  background: rgba(255,255,255,0.08);
}

/* back to top */
#back-to-top {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-6);
  z-index: var(--z-back-top);
  width: 40px;
  height: 40px;
  background: var(--c-lime);
  color: var(--c-graphite);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--tr-base), transform var(--tr-base);
  cursor: pointer;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#back-to-top svg { width: 18px; height: 18px; }

/* reading progress */
#reading-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  height: 2px;
  background: var(--c-border);
  z-index: calc(var(--z-header) - 1);
}

#reading-progress-bar {
  height: 100%;
  background: var(--c-lime);
  width: 0%;
  transition: width 0.1s linear;
}

/* animations */
@keyframes yiszr-reveal {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes yiszr-counter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.yiszr-reveal {
  opacity: 0;
}

.yiszr-reveal.revealed {
  animation: yiszr-reveal 0.5s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  .yiszr-reveal { opacity: 1; animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* responsive */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (min-width: 1025px) {
  .hamburger { display: none; }
  .mobile-menu { display: none !important; }
}

@media (max-width: 768px) {
  :root {
    --fs-3xl: 2.25rem;
    --fs-4xl: 2.75rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .container {
    padding: 0 var(--sp-4);
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .signal-strip {
    flex-wrap: wrap;
  }
}

/* aliases for legal pages */
.yiszr-breadcrumb { /* mirrors .breadcrumb */ }
.yiszr-breadcrumb ol { list-style: none; display: flex; gap: var(--sp-2); flex-wrap: wrap; margin: 0 0 var(--sp-6); padding: 0; font-size: 0.85rem; color: var(--c-muted); }
.yiszr-breadcrumb ol li:not(:last-child)::after { content: "›"; margin-left: var(--sp-2); }
.yiszr-breadcrumb ol a { color: var(--c-muted); text-decoration: none; }
.yiszr-breadcrumb ol a:hover { color: var(--c-graphite); }
.yiszr-footer { /* mirrors footer styles */ background: var(--c-graphite); color: var(--c-white); padding: var(--sp-12) 0 var(--sp-6); margin-top: var(--sp-16); }
.yiszr-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-8); margin-bottom: var(--sp-10); }
.yiszr-footer .footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.875rem; margin-top: var(--sp-3); line-height: 1.6; }
.yiszr-footer .footer-col h4 { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: var(--sp-4); }
.yiszr-footer .footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.yiszr-footer .footer-col a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; transition: color var(--tr-fast); }
.yiszr-footer .footer-col a:hover { color: var(--c-lime); }
.yiszr-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: var(--sp-6); font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.yiszr-footer .yiszr-logo img { filter: brightness(0) invert(1); }
@media (max-width: 768px) { .yiszr-footer .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .yiszr-footer .footer-grid { grid-template-columns: 1fr; } }
