:root {
  --paper: #F3EEE1;
  --card: #FFFDF7;
  --ink: #211D18;
  --ink-soft: #6B6255;
  --red: #AE2B22;
  --red-dark: #7E1E17;
  --amber: #A8701A;
  --amber-bg: #F3E4C8;
  --line: #DCD3BC;
  --focus: #1B6FB0;
  --wa: #1FA855;
  --max-width: 720px;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: var(--card);
  padding: 0.5rem 1rem;
  z-index: 10;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

a { color: var(--red-dark); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ===== Masthead ===== */
.masthead {
  background: var(--red);
  color: var(--paper);
  padding: 2.25rem 0 2.75rem;
}
.masthead-inner {
  text-align: center;
}
.stamp {
  display: inline-block;
  border: 3px solid var(--paper);
  border-radius: 50%;
  width: 8.5rem;
  height: 8.5rem;
  padding-top: 1.7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
  transform: rotate(-8deg);
  margin-bottom: 0.75rem;
}
@media (prefers-reduced-motion: no-preference) {
  .stamp {
    animation: stamp-in 0.5s cubic-bezier(.34,1.56,.64,1) both;
    animation-delay: 0.1s;
  }
}
@keyframes stamp-in {
  from { transform: rotate(-8deg) scale(1.6); opacity: 0; }
  to { transform: rotate(-8deg) scale(1); opacity: 1; }
}
.masthead h1 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  margin: 0.1rem 0;
}
.masthead-sub {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  opacity: 0.95;
}

/* ===== Counter ticket ===== */
.counter-ticket {
  background: var(--card);
  border: 1px dashed var(--ink);
  border-radius: 10px;
  max-width: 320px;
  margin: 1.5rem auto 0;
  padding: 1rem 1.25rem 1.1rem;
  text-align: center;
  box-shadow: 0 6px 16px rgba(33, 29, 24, 0.18);
  color: var(--ink);
}
.counter-eyebrow {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.counter-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 2.5rem;
  color: var(--red);
  line-height: 1.1;
}
.counter-unit {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1rem;
  margin-left: 0.35rem;
}

main {
  padding: 2.5rem 1.25rem 3rem;
}

section {
  margin-bottom: 2.75rem;
}

h2 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 1.35rem;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

/* ===== Photo gallery ===== */
.galeri-foto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  max-width: 560px;
  margin: 0 auto;
}
figure {
  margin: 0;
}
.galeri-foto img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
}

/* ===== Identity card ===== */
.id-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.id-card-label {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  padding: 0.55rem 1.25rem;
}
.fakta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 2rem;
  margin: 0;
  padding: 1.25rem 1.5rem 1.5rem;
}
.fakta-grid dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 0.2rem;
}
.fakta-grid dd {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ===== Timeline ===== */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.4rem;
  border-left: 2px dashed var(--line);
}
.timeline li {
  position: relative;
  padding-bottom: 1.5rem;
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -1.53rem;
  top: 0.3rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--red);
}
.timeline-date {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--red-dark);
  margin-bottom: 0.3rem;
}
.timeline p {
  margin: 0;
}

/* ===== Petunjuk & rute ===== */
.tag-list {
  list-style: none;
  margin: 0.75rem 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  display: inline-block;
  background: var(--amber-bg);
  color: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.rute-steps {
  list-style: none;
  margin: 1.25rem 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.25rem;
}
.rute-steps li {
  flex: 1;
  text-align: center;
  position: relative;
}
.rute-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 1.4rem;
  left: 55%;
  width: 90%;
  border-top: 2px dashed var(--line);
}
.rute-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  margin: 0 auto 0.5rem;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.rute-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}
.rute-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.catatan {
  background: var(--amber-bg);
  border: 1px solid var(--amber);
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  font-size: 0.92rem;
  margin-top: 1.25rem;
}

/* ===== Status laporan (seal) ===== */
.seal-card {
  position: relative;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 1.5rem;
}
.seal-badge {
  position: absolute;
  top: -0.75rem;
  right: 1.25rem;
  background: var(--red);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
}
.seal-card h2 {
  border-bottom: none;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
}
.seal-card p {
  margin: 0;
}

/* ===== Keluarga (quote) ===== */
.quote-block {
  margin: 0;
  background: var(--card);
  border-left: 4px solid var(--red);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
}
.quote-block p {
  margin: 0 0 0.9rem;
}
.quote-block p:last-child {
  margin-bottom: 0;
}

/* ===== Kontak ===== */
.kontak-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}
.btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
}
.btn-wa {
  background: var(--wa);
  color: #fff;
}
.btn-outline {
  background: var(--card);
  border-color: var(--ink);
  color: var(--ink);
}
.kontak-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.site-footer {
  padding: 1.5rem 1.25rem 2.5rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  text-align: center;
}

/* ===== Kontak form page ===== */
.kontak-form {
  display: grid;
  gap: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
}
.form-row {
  display: grid;
  gap: 0.4rem;
}
.form-row label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.form-row input[type="text"],
.form-row textarea {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  width: 100%;
}
.form-row textarea {
  resize: vertical;
}
.btn-form {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}
.kontak-cta {
  margin-top: 1.25rem;
}

/* ===== Responsive ===== */
@media (max-width: 520px) {
  .galeri-foto {
    grid-template-columns: 1fr 1fr;
  }
  .rute-steps {
    flex-wrap: wrap;
    row-gap: 1.5rem;
  }
  .rute-steps li {
    flex: 0 0 45%;
  }
  .rute-steps li::after {
    display: none;
  }
  .btn {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
