/* Warna dan huruf template ini diatur di blok :root berikut. */
:root {
  --ground: #EEF2EC;
  --ink: #17231B;
  --beam: #14532D;
  --red: #D21F26;
  --panel: #DCE9D6;
  --action: #14532D;
  --action-ink: #FFFFFF;
  --focus: #D21F26;
  --font: 'Archivo', Arial, sans-serif;
  --sign: 'Saira Condensed', 'Arial Narrow', Arial, sans-serif;
}

@font-face { font-family: 'Saira Condensed'; font-weight: 700; font-display: swap; src: url('fonts/saira-condensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 500; font-display: swap; src: url('fonts/archivo-500.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; }
}

body { font-weight: 500; }
.desa { position: relative; min-height: 100vh; min-height: 100svh; padding: 0 16px; }

/* Tiang gapura dicat merah putih di kedua sisi halaman */
.tiang {
  position: absolute; top: 0; bottom: 0; width: 16px;
  background: repeating-linear-gradient(180deg, var(--red) 0 34px, #fff 34px 68px); /* taste-skill-ignore: belang cat tiang gapura, bukan gradasi */
}
.kiri { left: 0; }
.kanan { right: 0; }

.palang {
  position: relative; margin: 0 -16px; padding: 16px 28px 14px;
  background: var(--beam); color: #fff; text-align: center;
  animation: turun .5s cubic-bezier(.2,.9,.3,1) both;
}
@keyframes turun { from { transform: translateY(-16px); } }
h1 { font-family: var(--sign); font-size: 40px; font-weight: 700; line-height: 1; }

.isi { padding: 16px 12px 22px; }
.form { display: grid; gap: 8px; }
label { font-weight: 700; }
#username {
  width: 100%; height: 56px; padding: 0 12px;
  border: 3px solid var(--ink); background: #fff;
  font-family: var(--sign); font-size: 30px; font-weight: 700; letter-spacing: .05em;
}
.action { font-family: var(--sign); font-size: 25px; padding: 11px; transition: background-color .15s ease; }
.action:hover { background: #0E3D21; }
.alert { color: #B3161C; font-size: 16px; line-height: 1.25; }
.more { font-size: 16px; }
.more input { border: 2px solid var(--ink); }

.paket { margin-top: 12px; padding: 14px; background: var(--panel); font-size: 16px; }
h2 { font-family: var(--sign); font-size: 22px; font-weight: 700; line-height: 1.1; }
h2 + ul { margin-top: 4px; }
ul + h2 { margin-top: 12px; }
.harga li { display: flex; justify-content: space-between; gap: 12px; }
.harga b { font-variant-numeric: tabular-nums; }
.kontak { margin-top: 12px; line-height: 1.3; }

@media (min-width: 900px) {
  .desa { padding: 0 max(120px, calc(50vw - 480px)); }
  .tiang { width: 56px; background: repeating-linear-gradient(180deg, var(--red) 0 72px, #fff 72px 144px); } /* taste-skill-ignore: belang cat tiang gapura, bukan gradasi */
  .kiri { left: calc(max(120px, calc(50vw - 480px)) - 92px); }
  .kanan { right: calc(max(120px, calc(50vw - 480px)) - 92px); }
  .palang { margin: 40px -112px 0; padding: 24px 40px 22px; }
  h1 { font-size: 68px; }
  .isi { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 56px 0; }
  .masuk { align-self: center; }
  label { font-size: 21px; }
  #username { height: 72px; font-size: 40px; }
  .action { font-size: 30px; padding: 14px; }
  .paket { margin: 0; padding: 28px; font-size: 18px; }
  h2 { font-size: 28px; }
}

.sheet { padding-left: 32px; padding-right: 32px; }
.page-done, .page-status, .page-out, .page-error { border-inline: 16px solid var(--beam); }
.sheet h1 { font-size: 46px; }
.facts div { padding-bottom: 8px; border-bottom: 3px solid var(--panel); }
.sheet .action { font-size: 23px; }
