/* ============================================================
   Design tokens — "papan pengumuman resmi" (official notice board)
   Palette grounded in formal Indonesian institutional documents:
   aged letterhead paper, deep navy ink, a brass seal accent used
   for the signature medallion, a muted stamp-red used sparingly.
   ============================================================ */
:root {
  --paper: #f6f1e4;
  --paper-2: #efe8d6;
  --ink: #20242b;
  --ink-soft: #4a4f58;
  --navy-900: #151f2e;
  --navy-700: #24374f;
  --brass: #96701f;
  --brass-strong: #7a5a17;
  --stamp: #8c3a32;
  --line: #d9cfb4;
  --line-dark: rgba(246, 241, 228, 0.18);

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: reveal-in 0.6s ease-out both;
  }
  .reveal-delay-1 { animation-delay: 0.08s; }
  .reveal-delay-2 { animation-delay: 0.16s; }
}

@keyframes reveal-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
}

a {
  color: var(--navy-700);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus,
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
  box-shadow: none;
}

/* ---------------- Letterhead header ---------------- */
.site-header {
  background: var(--navy-900);
  color: var(--paper);
  border-bottom: 3px solid var(--brass);
}

.site-header .brand-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
}

.site-header .brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--paper);
  text-decoration: none;
}

/* ---------------- Hero band ---------------- */
.hero {
  background: var(--navy-900);
  color: var(--paper);
  padding: 3.5rem 0 4.5rem;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.12;
  max-width: 18ch;
  margin-bottom: 1rem;
}

.hero p.lede {
  font-size: 1.05rem;
  color: rgba(246, 241, 228, 0.82);
  max-width: 52ch;
  line-height: 1.6;
}

.hero-rule {
  width: 64px;
  height: 3px;
  background: var(--brass);
  margin: 1.4rem 0 0;
}

/* ---------------- Section headers ---------------- */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-strong);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--navy-900);
  margin: 0.4rem 0 1.6rem;
}

/* ---------------- Event seal (signature element) ---------------- */
.seal {
  --seal-size: 4.6rem;
  width: var(--seal-size);
  height: var(--seal-size);
  border-radius: 50%;
  border: 2px dashed var(--brass);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: var(--navy-900);
  color: var(--paper);
}

.seal .seal-day {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1;
}

.seal .seal-month {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: 0.15rem;
}

/* ---------------- Upcoming event cards ---------------- */
.event-card {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  gap: 1.1rem;
  height: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px -14px rgba(21, 31, 46, 0.35);
  }
}

.event-card .event-jenis {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-700);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  display: inline-block;
}

.event-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy-900);
  margin: 0.5rem 0 0.3rem;
}

.event-card .event-meta {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 0.2rem;
}

.event-card .event-cost {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brass-strong);
  margin-top: 0.6rem;
}

.event-card .btn-flyer {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  border: 1px solid var(--navy-900);
  color: var(--navy-900);
  background: transparent;
  padding: 0.35rem 0.85rem;
  border-radius: 3px;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.9rem;
}

.event-card .btn-flyer:hover {
  background: var(--navy-900);
  color: var(--paper);
}

/* ---------------- Empty state ---------------- */
.empty-panel {
  border: 1px dashed var(--line);
  border-radius: 4px;
  padding: 2.2rem 1.5rem;
  text-align: center;
  background: var(--paper-2);
  color: var(--ink-soft);
}

.empty-panel .empty-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy-900);
  margin-bottom: 0.3rem;
}

/* ---------------- History (quiet list) ---------------- */
.history-list {
  border-top: 1px solid var(--line);
}

.history-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.history-row .history-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  flex: 0 0 9ch;
}

.history-row .history-name {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  flex: 1;
}

.history-row .history-jenis {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(246, 241, 228, 0.65);
  font-size: 0.85rem;
  padding: 1.5rem 0;
  margin-top: 4rem;
}

.site-footer a {
  color: var(--paper);
}
