/* Warna dan huruf template ini diatur di blok :root berikut. */
:root {
  --ground: #241812;
  --ink: #FFFFFF;
  --caramel: #E8A95B;
  --dark: #241812;
  --action: #241812;
  --action-ink: #FFFFFF;
  --focus: #241812;
  --font: 'Hanken Grotesk', 'Segoe UI', Arial, sans-serif;
  --menu: 'Young Serif', Georgia, serif;
}

@font-face { font-family: 'Young Serif'; font-weight: 400; font-display: swap; src: url('fonts/young-serif-400.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url('fonts/hanken-grotesk-400.woff2') format('woff2'); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh; min-height: 100svh;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
}
h1, h2, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
input, button { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; }
[hidden] { display: none; }
:focus-visible { outline: 3px solid var(--focus, currentColor); outline-offset: 2px; }

.alert { font-weight: 600; }
.trial { display: inline-block; padding: 10px 0; }
.more summary { cursor: pointer; padding: 10px 0; }
.more label { display: block; }
.more input { width: 100%; padding: 10px 12px; margin-top: 4px; }

/* Halaman setelah login: alogin, status, logout, error */
.sheet {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  min-height: 100vh; min-height: 100svh;
  width: 100%;
  max-width: 30rem;
  margin: 0 auto;
  padding: 32px 20px;
}
.sheet h1 { font-size: 44px; line-height: 1.02; }
.facts { display: grid; gap: 10px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; }
.facts dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.action {
  display: block;
  width: 100%;
  padding: 16px;
  border: 0;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  background: var(--action);
  color: var(--action-ink);
  transition: transform .15s ease;
}
.action:active { transform: translateY(1px); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.kafe { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.menu { flex: 1; padding: 22px 20px 20px; animation: seduh .6s ease both; }
@keyframes seduh { from { opacity: 0; } }
h1 { font-family: var(--menu); font-size: 40px; font-weight: 400; line-height: 1.04; letter-spacing: -.01em; }
.menu ul { margin-top: 18px; display: grid; gap: 7px; font-family: var(--menu); font-size: 20px; }
.menu li { display: flex; align-items: baseline; gap: 8px; }
/* Titik penghubung nama menu dan harga, seperti di kartu menu */
.menu i { flex: 1; border-bottom: 2px dotted #8C7566; }
.menu b { font-weight: 400; }
.wifi { color: var(--caramel); }
.wifi i { border-color: var(--caramel); }

.masuk { padding: 18px 20px 22px; background: var(--caramel); color: var(--dark); }
.form { display: grid; gap: 8px; }
label { font-weight: 700; font-size: 16px; }
#username {
  width: 100%; height: 56px; padding: 0 14px;
  border: 0; border-radius: 8px; background: #fff; color: var(--dark);
  font-family: var(--menu); font-size: 26px; letter-spacing: .03em;
}
.action { border-radius: 8px; font-size: 18px; padding: 14px; transition: transform .15s ease; }
.alert { color: #6E0F12; font-size: 16px; line-height: 1.25; font-weight: 700; }
.more { font-size: 16px; }
.more input { border: 0; border-radius: 8px; color: var(--dark); background: #fff; }
.more label { color: var(--dark); }

@media (min-width: 900px) {
  .kafe { flex-direction: row; }
  .menu, .masuk { flex: 1; padding: 64px; display: flex; flex-direction: column; justify-content: center; }
  h1 { font-size: min(6vw, 84px); line-height: 1; }
  .menu ul { margin-top: 40px; gap: 12px; font-size: 28px; }
  label { font-size: 26px; font-family: var(--menu); font-weight: 400; line-height: 1.15; }
  .form { gap: 14px; }
  #username { height: 76px; font-size: 38px; }
  .action { font-size: 21px; padding: 20px; }
  .more label { font-size: 17px; font-family: var(--font); font-weight: 700; }
}

.sheet h1 { font-size: 44px; }
.facts div { padding-bottom: 8px; border-bottom: 2px dotted #8C7566; }
.sheet .action { background: var(--caramel); color: var(--dark); }
