@font-face {
  font-family: "Arvo-Bold";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Arvo-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Avenir-Regular";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Avenir-Regular1.ttf") format("truetype");
}

:root {
  --accent: #431850;
  --bg: #ffffff;
  --bg-mute: #f6f6f6;
  --bg-bar: #e7e7e7;
  --text: #000000;
  --max: 1140px;
  --font-body: "Avenir-Regular", "Segoe UI", sans-serif;
  --font-display: "Arvo-Bold", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-bar);
  padding: 0.65rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
}

.brand img {
  width: min(280px, 70vw);
}

/* Journal sections */
.journal-section {
  padding: 3.2rem 0;
  background: var(--bg);
}

.journal-section.is-alt {
  background: var(--bg-mute);
}

.journal-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
}

.cover-frame {
  border: 3px solid var(--accent);
  padding: 0.65rem 0;
  border-radius: 4px;
  background: #fff;
}

.cover-frame img {
  width: 90%;
  margin-inline: auto;
}

.journal-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  paint-order: stroke fill;
}

.journal-subtitle {
  margin: 0 0 1rem;
  max-width: 28rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}

.journal-badge {
  margin: 0.25rem 0 0.75rem;
}

.journal-badge img {
  width: min(120px, 21%);
}

.journal-about,
.journal-scope {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.95;
  text-align: justify;
}

.journal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.5rem;
}

.text-link {
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-link:hover {
  color: var(--accent);
}

/* Footer */
.site-footer {
  background: var(--bg-bar);
  padding: 2rem 0 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-size: 1.8rem;
  font-weight: 400;
}

.footer-heading + .footer-address,
.system-list + .footer-heading {
  margin-top: 1.5rem;
}

.system-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.system-list li {
  margin: 0;
  line-height: 1.95;
  font-size: 1rem;
}

.system-list a {
  text-decoration: none;
}

.system-list a:hover {
  text-decoration: underline;
  color: var(--accent);
}

.footer-address {
  margin: 0;
  font-size: 1rem;
  line-height: 1.95;
}

.footer-map iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-anim="slide-left"] {
  transform: translateX(-28px);
}

.reveal[data-anim="fade-right"] {
  transform: translateX(28px);
}

.reveal[data-anim="slide-up"] {
  transform: translateY(24px);
}

.reveal[data-anim="fade-up"] {
  transform: translateY(16px);
}

.reveal[data-anim="slide-left"].is-visible,
.reveal[data-anim="fade-right"].is-visible,
.reveal[data-anim="slide-up"].is-visible,
.reveal[data-anim="fade-up"].is-visible {
  transform: none;
}

@media (max-width: 900px) {
  .journal-row {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .cover-frame {
    max-width: 280px;
    margin-inline: auto;
    padding: 1.1rem 0;
  }

  .journal-title,
  .journal-subtitle {
    text-align: center;
  }

  .journal-subtitle {
    max-width: none;
    margin-inline: 1rem;
  }

  .journal-badge {
    display: flex;
    justify-content: center;
  }

  .journal-badge img {
    width: 64%;
    max-width: 180px;
  }

  .journal-about,
  .journal-scope {
    padding-inline: 0.5rem;
    font-size: 0.75rem;
  }

  .journal-actions {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-map iframe {
    height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
