:root {
  --green: #49aa29;
  --green-soft: #5db83a;
  --green-hover: #3d9122;
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f7f8f9;
  --dark: #1a1f24;
  --dark-2: #242b33;
  --container: 1180px;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a {
  color: var(--green);
  text-decoration: none;
}

a:hover {
  color: var(--green-hover);
}

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", "DM Sans", sans-serif;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  margin: 0 0 0.45em;
  letter-spacing: -0.02em;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: var(--bg);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.brand:hover {
  color: inherit;
  opacity: 0.9;
}

.brand-logo {
  width: 170px;
  max-width: min(48vw, 170px);
  height: auto;
}

.brand-footer .brand-logo {
  width: 140px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

.nav-main ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a,
.nav-main span,
.footer-nav a,
.footer-nav span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.55rem 0.85rem;
  position: relative;
  display: inline-block;
}

.nav-main a.active::before,
.nav-main a:hover::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  top: 0.15rem;
  height: 2px;
  background: var(--green);
}

.nav-main span.is-disabled,
.footer-nav span.is-disabled,
.footer-meta .is-disabled,
.btn.is-disabled {
  cursor: default;
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
}

.btn.is-disabled:hover {
  background: var(--green);
  border-color: var(--green);
  transform: none;
}

.btn-outline.is-disabled:hover {
  background: transparent;
  border-color: #d1d5db;
  color: var(--ink) !important;
}

.nav-extra {
  display: none;
}

.social {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.social a {
  color: var(--ink);
  display: inline-flex;
  opacity: 0.8;
}

.social a:hover {
  color: var(--green);
  opacity: 1;
}

.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--green);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 2px solid var(--green);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn:hover {
  background: var(--green-hover);
  border-color: var(--green-hover);
}

.btn-outline {
  background: transparent;
  color: var(--ink) !important;
  border-color: #d1d5db;
}

.btn-outline:hover {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink) !important;
}

/* Hero */
.hero {
  padding: 2.5rem 0 3.5rem;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(73, 170, 41, 0.08), transparent 60%),
    linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.5rem;
  align-items: center;
  min-height: min(70vh, 640px);
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-editie {
  display: block;
}

.hero-editie em {
  font-style: normal;
  color: var(--green);
}

.hero-text {
  max-width: 28rem;
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.magazine {
  display: flex;
  align-items: stretch;
  perspective: 1200px;
  filter: drop-shadow(0 28px 50px rgba(17, 24, 39, 0.22));
  transition: transform 0.35s ease;
}

.magazine:hover {
  transform: translateY(-6px);
}

.magazine-page {
  display: block;
  width: min(42vw, 280px);
  aspect-ratio: 210 / 300;
  overflow: hidden;
  background: #fff;
}

.magazine-page img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.magazine-page--left {
  transform: rotateY(8deg);
  border-radius: 4px 0 0 4px;
  box-shadow: inset -8px 0 16px rgba(0, 0, 0, 0.08);
}

.magazine-page--right {
  transform: rotateY(-8deg);
  border-radius: 0 4px 4px 0;
  margin-left: -1px;
}

.magazine-page--right img {
  object-position: right center;
  filter: saturate(0.92) brightness(1.02);
}

.reader-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(26, 31, 36, 0.92);
  color: #fff;
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  font-size: 0.78rem;
  min-width: min(100%, 360px);
  box-shadow: var(--shadow);
}

.reader-ico svg {
  width: 16px;
  height: 16px;
  stroke: #fff;
}

.reader-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  position: relative;
}

.reader-thumb {
  position: absolute;
  left: 8%;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.reader-tools {
  opacity: 0.7;
  letter-spacing: 0.2em;
}

/* Archive preview */
.archive-preview {
  padding: 4rem 0 4.5rem;
  background: var(--bg);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
  margin: 0;
}

.carousel-nav {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1.35rem;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.carousel-btn:hover {
  border-color: var(--green);
  color: var(--green);
}

.cover-carousel {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 1.5rem 0.25rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.cover-carousel::-webkit-scrollbar {
  display: none;
}

.cover-card {
  position: relative;
  flex: 0 0 auto;
  width: 160px;
  scroll-snap-align: center;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 12px 24px rgba(17, 24, 39, 0.14));
}

.cover-card:hover {
  transform: translateY(-4px);
  z-index: 2;
}

.cover-card img {
  width: 160px;
  height: 228px;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 6px;
  background: #eee;
}

/* CTA band */
.cta-band {
  background: var(--dark);
  color: #fff;
  margin-top: 1rem;
  clip-path: ellipse(120% 100% at 50% 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.cta-band-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.cta-dots {
  width: 88px;
  height: 64px;
  margin-bottom: 1.25rem;
  background-image: radial-gradient(var(--green) 1.5px, transparent 1.6px);
  background-size: 12px 12px;
  opacity: 0.85;
}

.cta-copy h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  text-transform: uppercase;
  max-width: 14ch;
}

.cta-copy p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 32rem;
  margin: 0 0 1.5rem;
}

.cta-visual {
  display: flex;
  justify-content: end;
}

.cta-mag {
  width: min(100%, 340px);
  transform: rotate(8deg) translateY(10px);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

.cta-mag img {
  border-radius: 4px;
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.footer-nav ul {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.footer-nav a,
.footer-nav span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-nav a:hover {
  color: var(--green);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-meta a {
  color: var(--muted);
}

.footer-meta a:hover {
  color: var(--green);
}

/* Inner pages */
.page-hero {
  padding: 3rem 0 1.5rem;
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(73, 170, 41, 0.08), transparent 55%),
    var(--bg-soft);
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-transform: uppercase;
}

.page-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
}

.page-content {
  padding: 2.5rem 0 4rem;
}

.prose {
  max-width: 42rem;
}

.prose p,
.prose li {
  margin: 0 0 1rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose h2 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
  text-transform: none;
}

.year-block {
  margin-bottom: 2.5rem;
}

.year-block h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--green);
  display: inline-block;
  text-transform: none;
}

.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.25rem;
}

.cover-grid img {
  width: 100%;
  aspect-ratio: 210 / 300;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.cover-grid a:hover img {
  transform: translateY(-4px);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: var(--bg-soft);
  padding: 1.5rem;
  border-radius: var(--radius);
}

.contact-card h2 {
  font-size: 1.15rem;
  text-transform: none;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(73, 170, 41, 0.25);
  border-color: var(--green);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: #e8f6e1;
  color: var(--ink);
}

.alert-error {
  background: #fde8e8;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .cta-band-inner,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
  }

  .hero-visual {
    order: -1;
  }

  .magazine-page {
    width: min(42vw, 180px);
  }

  .cta-band {
    clip-path: none;
    border-radius: 2rem 2rem 0 0;
    margin-top: 2rem;
  }

  .cta-visual {
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 1.25rem;
  }

  .footer-meta {
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .header-right .social {
    display: none;
  }

  .nav-main {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.25rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  }

  .nav-main.open {
    display: block;
  }

  .nav-main ul {
    flex-direction: column;
  }

  .nav-extra {
    display: list-item;
  }

  .site-header {
    position: sticky;
  }
}

@media (max-width: 544px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .hero {
    padding-top: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cover-card {
    width: 132px;
  }

  .cover-card img {
    width: 132px;
    height: 188px;
  }
}
