/* reevox.id — Kantor Rumah Kaca, dari pagi sampai malam. Token dari DESIGN.md root. */
/* Selawik (OFL, Microsoft) meniru metrik Segoe UI untuk iOS, macOS, dan Android. Lisensi: assets/fonts/OFL.txt */
@font-face { font-family: "Selawik"; src: url("assets/fonts/selawik-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Selawik"; src: url("assets/fonts/selawik-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Selawik"; src: url("assets/fonts/selawik-700.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
:root {
  --ground: #edf3ed;
  --surface: #ffffff;
  --surface-2: #f8faf6;
  --line: #e7eae8;
  --line-sage: #d6e1ce;
  --ink: #202624;
  --ink-strong: #253d35;
  --ink-soft: #526678;
  --meta: #63745a;
  --send: #294d40;
  --send-hover: #203e33;
  --send-ink: #ffffff;
  --lime-deep: #75a644;
  --lime-pale: #edf5e4;
  --lime-ink: #354626;
  --brand-dot: #75a644;
  --built-bg: #f8faf6;
  --built-edge: #d6e1ce;
  --built-ink: #196b51;
  --prog-bg: #fff8e9;
  --prog-edge: #ebd9ac;
  --prog-ink: #806f55;
  --plan-bg: #edf1f5;
  --plan-edge: #dce4ea;
  --plan-ink: #526678;
  --ready-bg: #edf1f5;
  --ready-ink: #526678;
  --cancel-bg: #fff0ed;
  --cancel-ink: #a82c2c;
  --spine: #d6e1ce;
  --select-bg: #c6ef7a;
  --select-ink: #253d35;
  --scroll-thumb: #b6dc7f;
  --float: 0 16px 36px #1024372a, 0 2px 6px #1024371f;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shift: .9s;
  --rail: 232px;
  --rail-gap: 64px;
  --wrap: 1280px;
  --pad: 24px;
  --display: "Segoe UI", "Selawik", Arial, sans-serif;
  --text: "Segoe UI", "Selawik", Arial, sans-serif;
  color-scheme: light;
  scrollbar-color: var(--scroll-thumb) transparent;
}

html[data-phase="night"] {
  --ground: #111b20;
  --surface: #19272c;
  --surface-2: #17252a;
  --line: #2b4046;
  --line-sage: #3b555b;
  --ink: #e0ece9;
  --ink-strong: #e0ece9;
  --ink-soft: #c4d9d4;
  --meta: #9bb0ad;
  --send: #304940;
  --send-hover: #24383e;
  --send-ink: #dcf6c7;
  --lime-pale: #304940;
  --lime-ink: #dcf6c7;
  --built-bg: #304940;
  --built-edge: #3b555b;
  --built-ink: #dcf6c7;
  --prog-bg: #203239;
  --prog-edge: #3b555b;
  --prog-ink: #ebd9ac;
  --plan-bg: #203239;
  --plan-edge: #2b4046;
  --plan-ink: #9bb0ad;
  --ready-bg: #203239;
  --ready-ink: #c4d9d4;
  --spine: #2b4046;
  --select-bg: #304940;
  --select-ink: #dcf6c7;
  --scroll-thumb: #3b555b;
  color-scheme: dark;
}

html[data-lang="id"] [data-l="en"],
html[data-lang="en"] [data-l="id"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body, .sheet, .pill, .lang, .lang button, .btn-send, .who img, .you-mark, .crew img, .facts dl > div, .foot, .hours, .hour::before, .step-ack, .step-approve {
  transition: background-color var(--shift) var(--ease), color var(--shift) var(--ease), border-color var(--shift) var(--ease);
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--select-bg); color: var(--select-ink); }
:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 88px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 10;
  background: var(--send); color: var(--send-ink);
  padding: 10px 16px; border-radius: 9px; font-weight: 650; text-decoration: none;
}
.skip:focus { top: 16px; }

/* Bilah atas */
.bar {
  max-width: var(--wrap); margin: 0 auto; padding: 22px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark {
  font-family: var(--display); font-size: 28px; font-weight: 750; letter-spacing: -.04em; line-height: 1;
  color: var(--ink-strong); text-decoration: none;
}
.wordmark > span { color: var(--brand-dot); }
.wordmark.small { font-size: 20px; }
.bar-actions { display: flex; align-items: center; gap: 18px; }
.lang {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface); border: 1px solid var(--line-sage); border-radius: 9px;
}
.lang button {
  border: 0; background: transparent; color: var(--ink-soft);
  font-size: 13px; font-weight: 650; letter-spacing: .02em;
  padding: 6px 11px; border-radius: 7px; min-width: 44px; min-height: 32px;
}
.lang button[aria-pressed="true"] { background: var(--lime-pale); color: var(--lime-ink); }
.lang button:hover:not([aria-pressed="true"]) { color: var(--ink-strong); }
.bar-mail {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--ink-strong); text-decoration: none; padding: 8px 2px;
}
.bar-mail:hover { text-decoration: underline; }

/* Hero */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(20px, 4vw, 48px) var(--pad) clamp(48px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
h1 {
  font-family: var(--display); font-weight: 650;
  font-size: clamp(2.5rem, 1.5rem + 2.75vw, 3.9rem);
  line-height: 1.04; letter-spacing: -.038em; color: var(--ink-strong);
  text-wrap: balance;
}
.lead { margin-top: 24px; font-size: clamp(18px, 1rem + .35vw, 20px); line-height: 1.6; color: var(--ink-strong); max-width: 34em; }
.status-line {
  margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
  font-size: 15px; color: var(--ink-soft);
}
.actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.btn-send {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--send); color: var(--send-ink); border: 1px solid var(--send);
  padding: 15px 22px; border-radius: 9px; min-height: 52px;
  font-size: 16px; font-weight: 650; text-decoration: none;
}
.btn-send:hover { background: var(--send-hover); border-color: var(--send-hover); }
.btn-send:active { transform: translateY(1px); }
.link-quiet {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--ink-strong);
  text-decoration: underline; text-decoration-color: var(--line-sage);
}
.link-quiet:hover { text-decoration-color: var(--lime-deep); }

.hero-scene { position: relative; margin-bottom: 150px; }
.scene {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 20px; border: 1px solid var(--line-sage); background: #f6f7f9;
}
.report {
  position: absolute; left: clamp(-48px, -3.5vw, -16px); bottom: -150px;
  width: min(356px, 64%);
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px 12px; box-shadow: var(--float);
}
.report-head { display: flex; align-items: center; gap: 12px; }
.report-head img { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); }
.report-head p { display: grid; line-height: 1.3; }
.report-head b { font-size: 15px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.report-head span { font-size: 13px; color: var(--meta); }
.report-say { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }

.rows { list-style: none; margin: 10px 0 0; padding: 0; }
.rows li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink);
}
.rows li > span { min-width: 0; }
.tag, .num { font-style: normal; flex-shrink: 0; }
.tag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--ready-bg); color: var(--ready-ink); }
.tag-cancel { background: var(--cancel-bg); color: var(--cancel-ink); }
.num { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--ink-strong); }
.sample { display: block; margin-top: 8px; font-size: 12px; color: var(--meta); }

/* Pil status */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px 4px 8px; border-radius: 999px; border: 1px solid;
  font-size: 13px; font-weight: 600; line-height: 1.35;
}
.pill .ico { width: 16px; height: 16px; }
.pill-built { background: var(--built-bg); border-color: var(--built-edge); color: var(--built-ink); }
.pill-progress { background: var(--prog-bg); border-color: var(--prog-edge); color: var(--prog-ink); }
.pill-planned { background: var(--plan-bg); border-color: var(--plan-edge); color: var(--plan-ink); }

/* Sehari di toko */
.day { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 4.5vw, 64px) var(--pad) 0; }
.day-intro { padding-left: calc(var(--rail) + var(--rail-gap)); margin-bottom: clamp(56px, 7vw, 88px); }
h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.2rem, 1.45rem + 2.5vw, 3.6rem);
  line-height: 1.08; letter-spacing: -.03em; color: var(--ink-strong); text-wrap: balance;
}
.day-intro > p, .desks > p, .close > p { margin-top: 16px; font-size: 18px; color: var(--ink-soft); max-width: 58ch; }
.legend { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

.timeline { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); column-gap: var(--rail-gap); }
.story { min-width: 0; }
.clock { position: sticky; top: 32px; align-self: start; padding-top: 2px; }
.clock-face { display: flex; align-items: center; gap: 14px; }
.clock-icon { width: 34px; height: 34px; fill: none; stroke: var(--lime-deep); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.clock-time {
  font-family: var(--display); font-size: 64px; font-weight: 400; line-height: 1;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--ink-strong);
}
.clock-time.tick { animation: tick .55s var(--ease); }
@keyframes tick {
  from { opacity: .15; filter: blur(6px); transform: translateY(10px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}
.clock-nav { display: grid; justify-items: start; gap: 2px; margin-top: 26px; }
.clock-nav a {
  font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-soft);
  text-decoration: none; padding: 5px 10px; margin-left: -10px; border-radius: 7px;
}
.clock-nav a:hover { color: var(--ink-strong); }
.clock-nav a[aria-current="true"] { background: var(--lime-pale); color: var(--lime-ink); }

.hours { list-style: none; margin: 0; padding: 0; }
.hour { --dot: 6px; position: relative; padding: 0 0 clamp(80px, 9vw, 128px) 44px; }
.hour:last-child { padding-bottom: 0; }
.hour::after {
  content: ""; position: absolute; left: -1px; width: 1px; background: var(--spine);
  top: calc(var(--dot) + 13px); bottom: calc(-1 * var(--dot));
}
.hour:last-child::after { display: none; }
.hour::before {
  content: ""; position: absolute; z-index: 1; left: -7px; top: var(--dot); width: 13px; height: 13px;
  border-radius: 50%; background: var(--ground); border: 2px solid var(--lime-deep);
}
.hour-time { display: block; font-size: 15px; font-weight: 650; letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--ink-soft); line-height: 1.6; }
.hour-body { display: grid; gap: 18px; margin-top: 14px; max-width: 640px; }
.hour-body > p { max-width: 62ch; }
.who { display: flex; align-items: center; gap: 14px; }
.who img, .you-mark { width: 72px; height: 72px; border-radius: 16px; border: 1px solid var(--line); flex-shrink: 0; }
.who p { display: grid; line-height: 1.35; }
.who b { font-size: 16px; font-weight: 650; color: var(--ink-strong); }
.who span { font-size: 14px; color: var(--ink-soft); }
.you-mark { display: grid; place-items: center; background: var(--surface); color: var(--lime-deep); }
.you-mark .ico { width: 30px; height: 30px; }
h3 {
  font-family: var(--display); font-weight: 650;
  font-size: clamp(1.6rem, 1.25rem + 1.1vw, 2.15rem);
  line-height: 1.15; letter-spacing: -.025em; color: var(--ink-strong); text-wrap: balance;
}
.sheet {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 18px 12px; max-width: 460px;
}
.sheet .rows { margin-top: 0; }
.sheet-title { font-size: 13px; font-weight: 600; color: var(--meta); margin-bottom: 4px; }
.rows code { font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-strong); overflow-wrap: anywhere; }
.rows .t { font-weight: 650; font-variant-numeric: tabular-nums; margin-right: 6px; color: var(--ink-strong); }
.sheet .rows li:first-child { border-top: 0; }
.state { display: flex; flex-wrap: wrap; gap: 8px; }
.empty-note {
  max-width: 460px; padding: 22px 18px; border: 1px dashed var(--line-sage); border-radius: 14px;
  font-size: 15px; color: var(--ink-soft); text-align: center;
}

.proposal { padding: 16px 18px 12px; }
.proposal-from { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--meta); }
.proposal-from img { width: 28px; height: 28px; border-radius: 8px; }
.proposal-ask { margin-top: 8px; font-size: 18px; font-weight: 650; line-height: 1.4; color: var(--ink-strong); }
.proposal-steps { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.step-ack, .step-approve {
  min-height: 44px; padding: 10px 18px; border-radius: 9px; font-size: 15px; font-weight: 650;
}
.step-ack { background: var(--surface-2); color: var(--ink-strong); border: 1px solid var(--line-sage); }
.step-approve { background: var(--send); color: var(--send-ink); border: 1px solid var(--send); }
.step-ack:hover:not(:disabled) { border-color: var(--lime-deep); }
.step-approve:hover:not(:disabled) { background: var(--send-hover); }
.step-ack:disabled, .step-approve:disabled { cursor: default; }
.step-approve:disabled:not(.is-done) { opacity: .45; }
.step-ack.is-done, .step-approve.is-done { background: var(--built-bg); border-color: var(--built-edge); color: var(--built-ink); }
.proposal-done { font-size: 14px; font-weight: 600; color: var(--built-ink); }

/* Meja lain, fakta, penutup */
.desks { padding-top: clamp(96px, 10vw, 136px); padding-bottom: clamp(88px, 10vw, 136px); }
.crew {
  list-style: none; margin: 32px 0 22px; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; max-width: 760px;
}
.crew li { display: grid; gap: 2px; }
.crew img { width: 96px; height: 96px; border-radius: 20px; border: 1px solid var(--line); margin-bottom: 10px; }
.crew b { font-size: 16px; font-weight: 650; color: var(--ink-strong); }
.crew span { font-size: 14px; color: var(--ink-soft); }

.facts { padding-bottom: clamp(96px, 11vw, 152px); }
.facts dl { margin-top: 36px; max-width: 640px; }
.facts dl > div { padding: 26px 0 30px; border-top: 1px solid var(--line); }
.facts dt { font-size: 20px; font-weight: 650; line-height: 1.35; letter-spacing: -.01em; color: var(--ink-strong); }
.facts dd { margin-top: 8px; font-size: 16px; line-height: 1.65; color: var(--ink-soft); max-width: 58ch; }

.close { padding-top: clamp(96px, 11vw, 152px); padding-bottom: clamp(96px, 11vw, 152px); }
.close-sun { width: 44px; height: 44px; fill: none; stroke: var(--lime-deep); stroke-width: 1.5; stroke-linecap: round; margin-bottom: 22px; }
.close h2 { font-size: clamp(2.5rem, 1.55rem + 3.1vw, 4.4rem); }
.close .btn-send { margin-top: 32px; }
.mail-plain { margin-top: 16px; font-size: 15px; color: var(--ink-soft); font-variant-numeric: tabular-nums; user-select: all; }

.foot {
  max-width: var(--wrap); margin: 0 auto; padding: 26px var(--pad) 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-soft);
}
.foot a { color: var(--ink-strong); }

/* Layar lebar: teks kejadian di kiri, bukti tampilannya di kanan */
@media (min-width: 1200px) {
  .hour-body { grid-template-columns: minmax(0, 1fr) minmax(0, 400px); column-gap: 56px; max-width: none; align-items: start; }
  .hour-body > * { grid-column: 1; }
  .hour-body > .sheet, .hour-body > .empty-note { grid-column: 2; grid-row: 1 / span 4; align-self: center; width: 100%; max-width: none; }
}

/* Rel jam sudah menunjukkan matahari 07.00 di penutup; ikon penutup hanya untuk layar tanpa rel */
@media (min-width: 1001px) { .close-sun { display: none; } }

/* Layar sedang: rel jam hilang, jam pindah ke tiap kejadian */
@media (max-width: 1000px) {
  :root { --rail: 0px; --rail-gap: 0px; }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .clock { display: none; }
  .hour { padding-left: 32px; }
  .hour-time { font-family: var(--display); font-size: 40px; font-weight: 400; letter-spacing: -.03em; color: var(--ink-strong); line-height: 1.1; }
  .hour { --dot: 16px; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-scene { margin-bottom: 0; }
  .report { position: relative; left: auto; bottom: auto; width: auto; margin: -40px 16px 0; }
}

@media (max-width: 600px) {
  :root { --pad: 16px; }
  .bar { padding-top: 16px; padding-bottom: 16px; }
  .wordmark { font-size: 26px; }
  .bar-actions { gap: 10px; }
  .bar-mail > span { display: none !important; }
  .bar-mail { padding: 10px; border: 1px solid var(--line-sage); border-radius: 9px; background: var(--surface); }
  .hour { padding-left: 24px; }
  .who img, .you-mark { width: 60px; height: 60px; border-radius: 14px; }
  .crew { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report { margin: -32px 8px 0; padding: 14px 14px 10px; }
  .actions .btn-send { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
