@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Merriweather:wght@300;400;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: #000;
  color: #fff;
}

body {
  font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.7;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Abril Fatface', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); margin-bottom: 0.5rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
p { font-size: 1rem; line-height: 1.8; }

hr {
  border: none;
  border-top: 2px solid #fff;
  margin: 1rem 0 1.5rem;
}

/* ===== LAYOUT CONTAINER ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== OVERLAY MENU ===== */
.overlay-menu {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.overlay-menu.is-open {
  opacity: 1;
  pointer-events: all;
}

.overlay-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: 2px solid #fff;
  color: #fff;
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}

.overlay-close:hover {
  background: #fff;
  color: #000;
}

.overlay-aside {
  text-align: center;
}

.overlay-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.overlay-nav a {
  font-family: 'Abril Fatface', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.05em;
  color: #fff;
  position: relative;
  display: inline-block;
  padding: 0.6rem 1rem;
  min-height: 44px;
  line-height: 1.2;
  transition: color 0.2s;
}

.overlay-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.25s ease;
}

.overlay-nav a:hover { color: #ccc; }
.overlay-nav a:hover::after { width: calc(100% - 2rem); }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000;
  border-bottom: 1px solid #333;
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #222;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo { height: 36px; width: auto; }

.brand-name {
  font-family: 'Abril Fatface', Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
}

/* ===== HAMBURGER ===== */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.2s, opacity 0.2s;
}

/* ===== DESKTOP NAV ROW ===== */
.header-nav-row {
  padding: 0 1.5rem;
  overflow-x: auto;
}

.header-aside nav ul {
  display: flex;
  gap: 0;
  flex-wrap: nowrap;
}

.header-aside nav ul li a {
  display: flex;
  align-items: center;
  padding: 0 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  border-right: 1px solid #222;
  transition: color 0.2s, background 0.2s;
  min-height: 48px;
  white-space: nowrap;
}

.header-aside nav ul li:first-child a { border-left: 1px solid #222; }

.header-aside nav ul li a:hover {
  color: #fff;
  background: #111;
}

/* ===== TICKER ===== */
.header-ticker {
  background: #fff;
  color: #000;
  padding: 0.3rem 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}

.ticker-text { display: inline-block; }

/* ===== SCROLL MARGIN ===== */
div[id] { scroll-margin-top: 130px; }

/* ===== HERO ===== */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "aside figure";
  align-items: stretch;
  border-bottom: 2px solid #333;
}

.hero-aside {
  grid-area: aside;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem 1.5rem;
  border-right: 1px solid #333;
}

.hero-figure {
  grid-area: figure;
  overflow: hidden;
  position: relative;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-figure:hover .hero-img { transform: scale(1.03); }

.hero-placeholder {
  width: 100%;
  height: 100%;
  min-height: 60vh;
  background: repeating-linear-gradient(
    45deg,
    #111 0px,
    #111 10px,
    #000 10px,
    #000 20px
  );
}

.hero-h1 {
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero-desc {
  color: #bbb;
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
  max-width: 40ch;
}

.hero-cta {
  border: 2px solid #fff;
  padding: 0 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  font-family: 'Merriweather', serif;
  transition: background 0.2s, color 0.2s;
  align-self: flex-start;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.hero-cta:hover {
  background: #fff;
  color: #000;
}

/* ===== CONTENT SECTION ===== */
.content-section {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  min-height: 60vh;
  border-bottom: 1px solid #222;
}

.content-aside {
  padding: 3rem 2rem;
  border-right: 1px solid #222;
  background: #050505;
  position: sticky;
  top: 130px;
  align-self: start;
}

.aside-heading {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.aside-body {
  font-size: 0.85rem;
  color: #999;
  line-height: 1.7;
}

.content-body {
  padding: 3rem 2.5rem;
  max-width: 860px;
}

/* ===== PAGE CONTENT (injected HTML) ===== */
.content-body h2 {
  margin-top: 3rem;
  margin-bottom: 0.5rem;
}

.content-body h2 + hr,
.content-body h3 + hr {
  border-top-color: #444;
  margin-bottom: 1.5rem;
}

.content-body h3 { margin-top: 2rem; margin-bottom: 0.5rem; }
.content-body p { margin-bottom: 1.25rem; color: #ccc; }
.content-body a { color: #fff; border-bottom: 1px solid #555; transition: border-color 0.2s; }
.content-body a:hover { border-bottom-color: #fff; }
.content-body ul, .content-body ol { margin: 1rem 0 1.25rem 1.5rem; color: #ccc; }
.content-body li { margin-bottom: 0.5rem; }
.content-body div { margin-bottom: 2.5rem; }

/* ===== CARD GLASS ===== */
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.site-footer {
  background: #000;
  border-top: 2px solid #fff;
  padding: 3rem 1.5rem 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #333;
}

.footer-col dt {
  font-family: 'Abril Fatface', Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-col dd {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-col dd a {
  color: #888;
  transition: color 0.2s;
  display: inline-block;
  min-height: 40px;
  line-height: 40px;
}

.footer-col dd a:hover { color: #fff; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-copy, .footer-note {
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 0.05em;
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PARALLAX ===== */
.parallax-img {
  will-change: transform;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .parallax-img { transform: none !important; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "figure"
      "aside";
    min-height: auto;
  }

  .hero-figure { min-height: 50vw; }
  .hero-aside { padding: 2.5rem 1.5rem; border-right: none; border-top: 1px solid #333; }

  .content-section {
    grid-template-columns: 1fr;
  }

  .content-aside {
    position: static;
    border-right: none;
    border-bottom: 1px solid #222;
    padding: 2rem 1.5rem;
  }

  .content-body { padding: 2rem 1.5rem; }

  .header-nav-row { display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .brand-name { font-size: 1.1rem; }
  .header-brand-row { padding: 0.75rem 1rem; }
  .hero-h1 { font-size: 2rem; }
  .hero-aside { padding: 2rem 1rem; }
  .content-body { padding: 1.5rem 1rem; }
  .site-footer { padding: 2rem 1rem 1rem; }
  div[id] { scroll-margin-top: 110px; }
}
