@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;900&display=swap');

:root {
  --bg: #f5f0d5;
  --paper: #fff9e6;
  --ink: #111111;
  --muted: #635f52;
  --black: #0b0b0b;
  --yellow: #ffd100;
  --yellow-soft: #ffe889;
  --green: #135c3a;
  --green-dark: #0b3825;
  --red: #b5282f;
  --line: #d9c782;
  --white: #ffffff;
  --shadow: 0 18px 50px rgb(17 17 17 / 14%);
  --transition: 0.18s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  background: rgb(11 11 11 / 94%);
  border-bottom: 4px solid var(--yellow);
  color: var(--white);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--white);
  border: 2px solid var(--yellow);
  border-radius: 50%;
  display: inline-flex;
  height: 50px;
  justify-content: center;
  overflow: hidden;
  width: 50px;
}

.brand-mark img {
  display: block;
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.brand small {
  color: var(--yellow-soft);
  display: block;
  font-size: 13px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 18px;
}

.site-nav a {
  color: rgb(255 255 255 / 84%);
  font-weight: 800;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--yellow);
}

.nav-toggle {
  display: none;
}

.hero,
.page-hero {
  background:
    linear-gradient(120deg, rgb(11 11 11 / 95%), rgb(11 11 11 / 78)),
    radial-gradient(circle at 82% 18%, rgb(242 196 0 / 36), transparent 34%),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 8%) 0 1px, transparent 1px 78px),
    linear-gradient(0deg, var(--green-dark), var(--green));
  color: var(--white);
  padding: clamp(54px, 8vw, 108px) clamp(18px, 6vw, 88px);
}

.hero {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) 380px;
  min-height: 620px;
}

.page-hero {
  min-height: 320px;
}

.compact-hero {
  min-height: 260px;
  padding-bottom: 44px;
  padding-top: 54px;
}

.hero-copy,
.page-hero > div {
  max-width: 820px;
}

.eyebrow {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.98;
  margin-bottom: 22px;
}

h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06;
  margin-bottom: 12px;
}

h3 {
  font-size: 24px;
  line-height: 1.15;
}

.hero-copy p,
.page-hero p {
  color: rgb(255 255 255 / 82%);
  font-size: 19px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  padding: 13px 18px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.button.primary {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 8px 22px rgb(242 196 0 / 20%);
}

.button.secondary {
  border-color: rgb(255 255 255 / 40%);
  color: var(--white);
}

.button.dark {
  background: var(--black);
  color: var(--yellow);
}

.button.ghost {
  border-color: var(--black);
  color: var(--black);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgb(17 17 17 / 18%);
}

.button.primary:hover {
  background: #ffe033;
}

.info-panel,
.card,
.contact-form,
.event-list article,
.feature-panel,
.notice,
.table-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgb(17 17 17 / 8%);
}

.info-panel {
  align-self: end;
  color: var(--ink);
  padding: 24px;
}

.info-panel span,
.card > span,
.notice > span {
  color: var(--red);
  display: block;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.info-panel strong {
  display: block;
  font-size: 25px;
  line-height: 1.15;
  margin: 8px 0;
}

.section {
  padding: clamp(46px, 7vw, 86px) clamp(18px, 6vw, 88px);
}

.newspaper-reader {
  padding-top: 28px;
}

.section.dark {
  background: var(--black);
  color: var(--white);
}

.section.dark p,
.section.dark li {
  color: rgb(255 255 255 / 78%);
}

.section-heading {
  max-width: 780px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  min-height: 180px;
  padding: 22px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgb(17 17 17 / 14%);
}

.card h3 {
  margin-bottom: 10px;
}

.card p,
.card li {
  color: var(--muted);
}

.card.featured {
  border-top: 6px solid var(--yellow);
}

.card.accent {
  border-top: 6px solid var(--green);
}

.split {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
}

.feature-panel {
  background:
    linear-gradient(135deg, rgb(242 196 0 / 92%), rgb(255 230 129 / 92)),
    repeating-linear-gradient(45deg, transparent, transparent 12px, rgb(11 11 11 / 10%) 12px, rgb(11 11 11 / 10%) 14px);
  min-height: 280px;
  padding: 28px;
}

.feature-panel strong {
  display: block;
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chips span {
  background: var(--black);
  border-radius: 999px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 900;
  padding: 9px 12px;
}

.contact-form {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
  max-width: 920px;
  padding: 24px;
}

.contact-form label {
  color: var(--muted);
  display: grid;
  font-weight: 900;
  gap: 6px;
}

.contact-form .wide,
.form-note {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
  width: 100%;
}

.contact-form button {
  cursor: pointer;
  width: max-content;
}

.form-note {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

.event-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.event-list article {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 120px minmax(0, 1fr);
  padding: 18px;
}

.event-list time {
  background: var(--black);
  border-radius: 8px;
  color: var(--yellow);
  font-weight: 900;
  padding: 14px;
  text-align: center;
}

.table-card {
  margin-top: 28px;
  overflow-x: auto;
  padding: 0;
}

.bfv-area {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.bfv-slot {
  border: 1px dashed var(--line);
  border-radius: 8px;
  min-height: 120px;
  padding: 18px;
}

table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
}

th {
  background: var(--black);
  color: var(--yellow);
}

.notice {
  border-left: 8px solid var(--yellow);
  margin-top: 24px;
  padding: 20px;
}

.flipbook-demo {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 34px 0;
  min-height: 310px;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.flipbook-page {
  background:
    linear-gradient(135deg, var(--paper), #fff3b8),
    repeating-linear-gradient(90deg, transparent 0 32px, rgb(11 11 11 / 5%) 32px 33px);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 40px rgb(11 11 11 / 12%);
  display: none;
  min-height: 220px;
  padding: 26px;
  transform-origin: left center;
}

.flipbook-page.is-active {
  animation: pageTurn 420ms ease;
  display: block;
}

.flipbook-page span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.flipbook-controls {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.pdf-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.sticky-reader-tools {
  background: rgb(245 240 213 / 94%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(17 17 17 / 8%);
  padding: 12px;
  position: sticky;
  top: 86px;
  z-index: 10;
}

.pdf-page-info,
.pdf-status {
  color: var(--muted);
  font-weight: 900;
}

.pdf-flipbook {
  margin: 0 auto;
  max-width: 100%;
  min-height: min(82vh, 820px);
}

.pdf-page {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.pdf-page canvas {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

@keyframes pageTurn {
  from {
    opacity: 0;
    transform: perspective(900px) rotateY(-18deg);
  }
  to {
    opacity: 1;
    transform: perspective(900px) rotateY(0deg);
  }
}

.stat-row {
  background: var(--black);
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
}

.stat-item {
  border-right: 1px solid rgb(255 255 255 / 8%);
  flex: 1;
  min-width: 160px;
  padding: 28px 36px;
  text-align: center;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item strong {
  color: var(--yellow);
  display: block;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-item span {
  color: rgb(255 255 255 / 55%);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge {
  background: var(--yellow);
  border-radius: 999px;
  color: var(--black);
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeUp 0.5s ease both;
}

.contact-options {
  display: grid;
  gap: 10px;
}

.contact-options a {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--black);
  font-weight: 900;
  padding: 14px;
  text-decoration: none;
}

.chat-widget {
  bottom: 18px;
  position: fixed;
  right: 18px;
  z-index: 30;
}

.chat-toggle,
.chat-panel button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.chat-toggle {
  background: var(--yellow);
  box-shadow: var(--shadow);
  color: var(--black);
  padding: 13px 18px;
}

.chat-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 56px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  max-width: 330px;
  padding: 16px;
  position: absolute;
  right: 0;
  width: calc(100vw - 36px);
}

.chat-panel button {
  background: var(--black);
  color: var(--yellow);
  padding: 10px;
  text-align: left;
}

.chat-answer {
  color: var(--muted);
  margin: 0;
}

.site-footer {
  align-items: center;
  background: var(--black);
  border-top: 4px solid var(--yellow);
  color: rgb(255 255 255 / 78%);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 24px clamp(18px, 6vw, 88px);
}

.site-footer a {
  color: var(--yellow);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    background: var(--yellow);
    border: 0;
    border-radius: 8px;
    color: var(--black);
    display: inline-flex;
    font-weight: 900;
    padding: 10px 13px;
  }

  .site-nav {
    background: var(--black);
    border: 1px solid var(--yellow);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    min-width: 220px;
    padding: 16px;
    position: absolute;
    right: 18px;
    top: 78px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .split,
  .contact-form,
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .contact-form .wide,
  .form-note {
    grid-column: auto;
  }

  .event-list article {
    grid-template-columns: 1fr;
  }
}
