/* ==========================================================================
   Variabel brand: ganti bagian ini saja untuk menyesuaikan warna & font.
   Font ada di folder fonts/ (huruf Latin saja, ketebalan sesuai @font-face di bawah).
   Kalau font diganti, ubah juga <link rel="preload"> di index.html.
   ========================================================================== */
@font-face {
  font-family: "Shippori Mincho";
  src: url("fonts/shippori-mincho-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("fonts/zen-kaku-gothic-new-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("fonts/zen-kaku-gothic-new-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
/* Font cadangan selebar font asli, supaya teks tidak pindah baris saat font selesai dimuat.
   Angkanya hanya cocok untuk font di atas: kalau font diganti, hapus blok ini. */
@font-face {
  font-family: "Shippori Mincho Fallback";
  src: local("Georgia"), local("Noto Serif");
  font-weight: 500;
  size-adjust: 109.40%;
  ascent-override: 106.03%;
  descent-override: 26.32%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Zen Kaku Gothic New Fallback";
  src: local("Arial"), local("Roboto");
  font-weight: 400;
  size-adjust: 98.10%;
  ascent-override: 118.25%;
  descent-override: 29.36%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Zen Kaku Gothic New Fallback";
  src: local("Arial"), local("Roboto");
  font-weight: 500;
  size-adjust: 97.66%;
  ascent-override: 118.78%;
  descent-override: 29.49%;
  line-gap-override: 0%;
}

:root {
  --font-display: "Shippori Mincho", "Shippori Mincho Fallback", Georgia, "Times New Roman", serif;
  --font-body: "Zen Kaku Gothic New", "Zen Kaku Gothic New Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bg: #0f0e0d;
  --ink: #efe7da;
  --muted: #a89f92;
  --line: #322e2a;
  --accent: #c23b2a;
  --accent-ink: #fff7f0;
  --moon: #e9d9a6;

  --gutter: clamp(1.25rem, 4vw, 3rem);
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--moon); outline-offset: 3px; }
section[id] { scroll-margin-top: 1rem; }
.label { color: var(--moon); font-size: .8125rem; letter-spacing: .28em; text-transform: uppercase; }

/* ---------- Tombol: garis tipis, tanpa sudut membulat ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.5rem;
  border: 1px solid var(--muted);
  font: 500 .9375rem/1.2 var(--font-body); letter-spacing: .06em; text-decoration: none; text-align: center;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn-small { min-height: 44px; padding: .5rem 1.1rem; font-size: .875rem; }
.btn-primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { border-color: #a52f20; background: #a52f20; color: var(--accent-ink); }

/* ---------- Header: mengambang di atas foto ---------- */
.top {
  position: absolute; inset: 0 0 auto; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gutter);
}
.brand { font: 500 1.25rem/1 var(--font-display); letter-spacing: .06em; text-decoration: none; }

/* ---------- 1. Hero: foto penuh satu layar, teks di ruang gelap bagian atas ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; justify-items: center; align-content: start;
  min-height: 100vh; min-height: 100svh;
  padding: clamp(5.5rem, 13vh, 7.5rem) var(--gutter) 2rem;
  background: #000; text-align: center;
}
/* Foto hanya mengisi bagian bawah supaya mangkuk tidak tertutup teks; tepi atasnya memudar ke latar hitam. */
.hero img {
  position: absolute; inset: auto 0 0; z-index: -1; width: 100%; height: 82%; object-fit: cover; object-position: 22% bottom;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%); mask-image: linear-gradient(to bottom, transparent, #000 14%);
}
.hero-copy { display: grid; justify-items: center; max-width: 42rem; }
.hero h1 { margin-top: 1rem; font: 500 clamp(2.25rem, 9vw, 4.5rem)/1.2 var(--font-display); letter-spacing: .01em; text-wrap: balance; }
.lead { max-width: 30rem; margin-top: 1rem; color: var(--ink); opacity: .82; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }
.side { display: none; }

/* ---------- 2. Menu: daftar bergaris titik seperti buku menu, tanpa kartu ---------- */
.menu { width: min(100% - 2 * var(--gutter), 66rem); margin-inline: auto; padding-block: clamp(4rem, 11vw, 7.5rem); }
.menu-head { display: grid; justify-items: center; gap: .6rem; margin-bottom: clamp(3rem, 8vw, 5rem); text-align: center; }
.menu-head h2, .cta h2 { font: 500 clamp(2rem, 7vw, 3.25rem)/1.25 var(--font-display); letter-spacing: .01em; }
.menu-head p:last-child { max-width: 28rem; color: var(--muted); }
.course { display: grid; gap: 2rem; align-items: center; }
.course + .course { margin-top: clamp(3.5rem, 9vw, 6rem); }
.course img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.course h3 { padding-bottom: .6rem; border-bottom: 1px solid var(--accent); font: 500 1.5rem/1.3 var(--font-display); }
.lines li { padding-top: 1.25rem; }
.line { display: flex; align-items: baseline; gap: .6rem; }
.line h4 { font: 500 1.0625rem/1.4 var(--font-body); }
.dots { flex: 1; min-width: 1rem; border-bottom: 1px dotted var(--muted); transform: translateY(-.2em); }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines p { margin-top: .1rem; color: var(--muted); font-size: .9375rem; }

/* ---------- 3. Ajakan WhatsApp: bulan purnama samar di belakang teks ---------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; justify-items: center; gap: .9rem;
  padding: clamp(5rem, 14vw, 9rem) var(--gutter); text-align: center;
}
.cta::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(78vw, 25rem); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, var(--moon), #a8935a 72%); opacity: .13;
}
.cta p { max-width: 26rem; color: var(--muted); }
.cta .btn { margin-top: .6rem; }

/* ---------- Blok penutup ---------- */
.more {
  width: min(100% - 2 * var(--gutter), 66rem); margin: 0 auto 3rem; padding: 1.1rem 1rem;
  border-block: 1px solid var(--line); color: var(--muted); text-align: center; text-wrap: balance;
}

/* ---------- Footer tipis ---------- */
.foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem;
  width: min(100% - 2 * var(--gutter), 66rem); margin-inline: auto; padding-block: 0 2rem;
  color: var(--muted); font-size: .875rem;
}
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.foot-link { padding-block: .6rem; }
.foot-link:hover { color: var(--ink); }

/* ---------- Layar lebar ---------- */
@media (min-width: 800px) {
  .course { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 5.5rem); }
  .course + .course img { order: -1; }
}
/* Layar mendatar: mangkuk di kiri, teks di ruang gelap sebelah kanan. Syaratnya sama dengan <source> di index.html. */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  .hero { justify-items: end; align-content: center; padding: 5rem calc(var(--gutter) + 2.5rem) 3rem var(--gutter); text-align: left; }
  .hero img { inset: 0 auto 0 -14%; width: 114%; height: 100%; object-position: center bottom; -webkit-mask-image: none; mask-image: none; }
  .hero-copy { justify-items: start; width: 36%; min-width: 23rem; }
  .hero h1 { font-size: clamp(2.5rem, 4.4vw, 4rem); }
  .actions { justify-content: flex-start; }
  .side {
    display: block; position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
    writing-mode: vertical-rl; color: var(--muted); font-size: .75rem; letter-spacing: .4em; text-transform: uppercase;
  }
}
