/* ZAK – Japan Art Zine */

@font-face {
  font-family: NeueMontreal;
  font-weight: 400;
  font-style: normal;
  src: url("/fonts/NeueMontreal-Regular.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: NeueMontreal;
  font-weight: 700;
  font-style: normal;
  src: url("/fonts/NeueMontreal-Bold.otf") format("opentype");
  font-display: swap;
}

:root {
  --zak-bg: #ffffff;
  --zak-paper: #ffffff;
  --zak-ink: #000000;
  --zak-muted: #666666;
  --zak-line: #dddddd;
  --zak-accent: #000000;
  --zak-max: 720px;
  --zak-side: 2rem;
  --zak-font: NeueMontreal, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--zak-font);
  font-size: 2.4rem;
  line-height: 1.45;
  color: var(--zak-ink);
  background-color: var(--zak-bg);
  background-image:
    linear-gradient(180deg, #fff 0%, #fafafa 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 11px,
      rgba(0, 0, 0, 0.015) 11px,
      rgba(0, 0, 0, 0.015) 12px
    );
  background-blend-mode: multiply;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--zak-ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  opacity: 0.6;
}

a.menu {
  text-decoration: none;
}

a.menu:hover {
  opacity: 0.55;
}

/* ===== Header / Nav ===== */

.site-header {
  position: relative;
  z-index: 20;
  padding: 1.6rem var(--zak-side) 0;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: 1920px;
  margin: 0 auto;
}

.site-logo {
  flex: 0 0 auto;
  animation: zak-fade-in 0.7s ease both;
}

.site-logo img {
  width: min(160px, 28vw);
  height: auto;
}

.site-brand {
  flex: 1 1 auto;
  text-align: center;
  pointer-events: none;
  animation: zak-fade-in 0.8s ease 0.08s both;
}

.site-brand h1 {
  margin: 0;
  font-size: clamp(1.8rem, 2.4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nav-issues {
  flex: 0 1 42%;
  text-align: right;
  font-size: clamp(1.2rem, 1.35vw, 1.8rem);
  line-height: 1.5;
  animation: zak-fade-in 0.8s ease 0.16s both;
}

.nav-issues .label {
  font-weight: 700;
}

.nav-issues a.is-current {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.nav-extra {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  font-size: clamp(1.2rem, 1.3vw, 1.6rem);
  margin-top: -0.4rem;
}

.nav-extra a {
  text-decoration: none;
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--zak-ink);
  font-family: inherit;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

/* ===== Main ===== */

.site-main {
  flex: 1 0 auto;
  padding: 3rem var(--zak-side) 4rem;
  animation: zak-rise 0.85s ease 0.12s both;
}

.container {
  width: 100%;
  max-width: var(--zak-max);
  margin: 0 auto;
}

.page-content {
  text-align: center;
}

.page-content p {
  margin: 0 0 0.6em;
}

.page-content h1:empty {
  display: none;
}

.page-content h2 {
  margin: 2rem 0 0.3rem;
  font-size: 1.05em;
}

.impressumcontent {
  font-weight: 400;
}

.impressumcontent a {
  display: block;
}

#kde {
  scroll-margin-top: 6rem;
}

/* Slider – only rendered when local images exist */

.issue-slider {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto 2em;
  aspect-ratio: 3 / 4;
  background: var(--zak-paper);
  overflow: hidden;
}

.issue-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.issue-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.issue-slider__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.issue-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Subscribe form */

form.subscribe {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
  margin: 1.5rem auto 0;
  max-width: 100%;
}

.subscribe1,
.subscribe2,
form.subscribe select {
  width: 100%;
  font-family: inherit;
  font-size: 1.6rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--zak-ink);
  background: var(--zak-paper);
  color: var(--zak-ink);
  border-radius: 0;
}

.subscribe2 {
  cursor: pointer;
  background: var(--zak-ink);
  color: var(--zak-paper);
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease;
}

.subscribe2:hover {
  background: var(--zak-accent);
  border-color: var(--zak-accent);
}

.subscribe3 {
  font-size: 1.2rem;
  color: var(--zak-muted);
  line-height: 1.4;
}

/* Blog / NOVINKY */

.page-header {
  margin-bottom: 2rem;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  letter-spacing: 0.06em;
}

.blog-container {
  width: 100%;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-card {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--zak-line);
}

.blog-title {
  margin: 0 0 0.5rem;
  font-size: 1.1em;
}

.blog-title a {
  text-decoration: none;
}

.blog-preview p {
  margin: 0;
  font-size: 0.85em;
  color: var(--zak-muted);
}

.romlicontainer {
  text-align: left;
  max-width: var(--zak-max);
  margin: 0 auto;
}

/* ===== Footer ===== */

.site-footer {
  margin-top: auto;
  padding: 2rem var(--zak-side) 2.5rem;
  border-top: 1px solid var(--zak-line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: 1920px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: clamp(1.2rem, 1.3vw, 1.6rem);
}

.footer-copy {
  flex: 1 1 auto;
  text-align: center;
  font-size: 1.2rem;
  color: var(--zak-muted);
}

.footer-side {
  min-width: 4rem;
  text-align: right;
  font-size: clamp(1.2rem, 1.3vw, 1.6rem);
}

.mobile-nav {
  display: none;
}

.romlifooter {
  margin-top: 1.5rem;
  font-size: 1.4rem;
}

.romlifooter img {
  max-width: 160px;
  object-fit: contain;
}

.romlidata {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--zak-line);
}

/* Animations */

@keyframes zak-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zak-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  body {
    font-size: 2rem;
  }

  .nav-issues,
  .nav-extra,
  .footer-links,
  .footer-side {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    align-items: center;
  }

  .site-brand {
    order: 3;
    flex: 1 1 100%;
    margin-top: 0.5rem;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem var(--zak-side) 0;
    font-size: clamp(1.6rem, 5.5vw, 2.4rem);
  }

  .mobile-nav[hidden] {
    display: none !important;
  }

  .mobile-nav a {
    text-decoration: none;
  }

  .site-main {
    padding-top: 2rem;
  }

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

  .footer-copy {
    order: -1;
    width: 100%;
  }
}

@media (max-width: 550px) {
  :root {
    --zak-side: 1.2rem;
  }

  body {
    font-size: 1.8rem;
  }

  .site-logo img {
    width: min(120px, 40vw);
    margin: 0 auto;
  }

  .site-logo {
    width: 100%;
    text-align: center;
  }

  .nav-toggle {
    position: absolute;
    top: 1.6rem;
    right: var(--zak-side);
  }

  .issue-slider {
    aspect-ratio: 1;
    max-width: 100%;
  }
}
