:root {
  --logo-size: 400px;       /* dynamically updated by JS */
  --header-padding: 2.5rem; /* can also be animated if desired */
  --bg-dark: #101317;
  --accent: #c53030;
  --text-main: #1f2933;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f5f5f7;
  color: var(--text-main);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Top wrapper / hero ===== */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    to bottom,
    rgba(16, 19, 23, 0.98),
    rgba(16, 19, 23, 0.92)
  );
  color: #f9fafb;
  border-bottom: 1px solid rgba(229, 231, 235, 0.1);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--header-padding) 1.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  transition: padding 0.25s ease-out;
}

/* ===== Logo area that shrinks ===== */

.logo-block {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  pointer-events: none;
}

.logo-circle {
  width: var(--logo-size);
  height: var(--logo-size);
  border-radius: 999px;
  border: 2px solid rgba(249, 250, 251, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;   /* pure white */
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  transition:
    width 0.2s ease-out,
    height 0.2s ease-out,
    border-radius 0.2s ease-out,
    box-shadow 0.25s ease-out,
    transform 0.2s ease-out;
  overflow: hidden;
}

/* Make the image fit inside the circle */
.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 6px;
}

.logo-circle-inner {
  text-align: center;
  padding: 1.5rem;
}

.logo-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.logo-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: rgba(249, 250, 251, 0.6);
}

.logo-strip {
  margin-top: 1.1rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  padding: 0.4rem 0;
  border-top: 1px solid rgba(229, 231, 235, 0.25);
  border-bottom: 1px solid rgba(229, 231, 235, 0.25);
  color: rgba(249, 250, 251, 0.75);
}

.logo-circle.is-small {
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  transform: translateY(4px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.brand-name {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.6rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.9rem;
  color: rgba(209, 213, 219, 0.85);
  max-width: 18rem;
}

/* ===== Nav ===== */

nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.2rem;
  color: rgba(229, 231, 235, 0.82);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(to right, #facc15, #f97316, #ef4444);
  transition: width 0.2s ease-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  border: 1px solid rgba(248, 250, 252, 0.7);
  color: #f9fafb;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out,
    background 0.2s ease-out;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.nav-cta:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* Search in nav */

.nav-search {
  display: flex;
  align-items: center;
}

.nav-search input {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(156, 163, 175, 0.7);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  font-size: 0.78rem;
  width: 150px;
  outline: none;
}

.nav-search input::placeholder {
  color: rgba(156, 163, 175, 0.9);
}

/* ===== Main layout ===== */

main {
  flex: 1;
}

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr);
  gap: 2.5rem;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.hero-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-title span {
  background-image: linear-gradient(120deg, #f97316, #ef4444, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-alert {
  background: #111827;
  color: #e5e7eb;
  border-radius: 16px;
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.65);
}

.hero-alert-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: rgba(249, 250, 251, 0.7);
  margin-bottom: 0.5rem;
}

.hero-alert-title {
  font-size: 0.98rem;
  margin-bottom: 0.45rem;
}

.hero-alert-meta {
  font-size: 0.78rem;
  color: rgba(209, 213, 219, 0.85);
}

.hero-subscribe {
  background: #f9fafb;
  border-radius: 16px;
  padding: 1.25rem 1.3rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
}

.hero-subscribe h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.hero-subscribe p {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.subscribe-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.subscribe-form input {
  flex: 1 1 160px;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  font-size: 0.85rem;
  outline: none;
}

.subscribe-form button {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: none;
  background: var(--bg-dark);
  color: #f9fafb;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.3);
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}

.subscribe-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.4);
}

.subscribe-form button:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.3);
}

/* ===== Sections (currently commented out in HTML) ===== */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.3rem;
}

.section-link {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.article-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out,
    border-color 0.15s ease-out;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
  border-color: rgba(75, 85, 99, 0.35);
}

.article-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--accent);
}

.article-title {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 0.98rem;
}

.article-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.article-body {
  font-size: 0.86rem;
  color: #4b5563;
  margin-top: 0.2rem;
}

/* ===== Footer ===== */

footer {
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.3rem 1.5rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: #6b7280;
}

/* Current issue PDF area */
.hero.hero-pdf {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: block; /* override the grid layout for this hero */
}

.hero-pdf-header {
  margin-bottom: 1.5rem;
}

.pdf-container {
  width: 100%;
  min-height: 80vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
  background: #111827;
}

.pdf-embed {
  width: 100%;
  height: 90vh; /* adjust for more/less visible height */
  border: none;
  display: block;
}



/* ===== Responsive ===== */

@media (max-width: 900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
  }

  .logo-block {
    gap: 1rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --logo-size: 280px;
  }

  .nav-search {
    display: none;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links {
    display: none; /* simplify on very small screens */
  }

  .hero {
    padding-top: 2rem;
  }

  .articles-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
