/* Serbahitung design system
   Wall-calendar palette: navy ink, tanggal-merah red, highlighter yellow on cool paper.
   One typeface: Plus Jakarta Sans (Tokotype, Jakarta), self-hosted variable font. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #16233f;
  --ink-2: #4a5873;
  --ink-3: #7b879c;
  --paper: #f3f5f9;
  --surface: #ffffff;
  --line: #dfe4ec;
  --line-2: #c9d1de;
  --red: #d9363e;
  --red-soft: #fde9ea;
  --hi: #ffd84d;
  --hi-soft: #fff5c7;
  --hi-ink: #16233f;
  --ok: #157a5b;
  --shadow: 0 1px 2px rgba(22, 35, 63, .06), 0 12px 32px -12px rgba(22, 35, 63, .18);
  --r-cell: 8px;
  --r-ctl: 12px;
  --r-panel: 20px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #edf1f8;
    --ink-2: #b4bed0;
    --ink-3: #8592aa;
    --paper: #0e1526;
    --surface: #17213a;
    --line: #26324e;
    --line-2: #34425f;
    --red: #ff6b70;
    --red-soft: #3a1f2a;
    --hi: #ffd84d;
    --hi-soft: #3b3518;
    --hi-ink: #16233f;
    --ok: #5fd3a8;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #edf1f8;
  --ink-2: #b4bed0;
  --ink-3: #8592aa;
  --paper: #0e1526;
  --surface: #17213a;
  --line: #26324e;
  --line-2: #34425f;
  --red: #ff6b70;
  --red-soft: #3a1f2a;
  --hi: #ffd84d;
  --hi-soft: #3b3518;
  --hi-ink: #16233f;
  --ok: #5fd3a8;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--font);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--hi); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(2rem, 5.6vw, 3.25rem); font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(1.4rem, 3.2vw, 1.85rem); font-weight: 750; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--ink-2); max-width: 36em; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 11; background: var(--surface); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; flex: none; }
.logo svg { width: 28px; height: 28px; }
@media (prefers-color-scheme: dark) { .logo .logo-bg { fill: #2a3a5f; } }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; white-space: nowrap; font-weight: 600; font-size: .92rem; color: var(--ink-2); padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--paper); }
.nav a[aria-current] { color: var(--ink); background: var(--hi-soft); }
@media (max-width: 640px) {
  .site-header .wrap { flex-wrap: wrap; gap: 0; padding-top: 8px; }
  .nav { margin: 0 -16px; padding: 4px 12px 8px; width: calc(100% + 32px); }
}

main.wrap { padding-top: 32px; padding-bottom: 80px; }
main.wrap > * + section { margin-top: 64px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-ctl);
  font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); background: var(--ink); color: var(--surface);
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.secondary:hover { border-color: var(--ink); }
.btn.wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- Home hero ---------- */
.hero { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) { .hero { grid-template-columns: 1.05fr .95fr; gap: 56px; padding: 24px 0 8px; } }
.hero h1 { max-width: 13em; }
.hero .lead { margin-top: 16px; }
.hero-note { margin-top: 14px; font-size: .9rem; color: var(--ink-2); }

/* Wall-calendar sheet (hero demo) */
figure.sheet { margin: 0; }
.sheet {
  background: var(--surface); border-radius: var(--r-panel); box-shadow: var(--shadow);
  padding: 20px 18px 18px; position: relative;
}
.sheet::before { /* binder rings, like a wall calendar */
  content: ""; position: absolute; top: -7px; left: 22%; right: 22%; height: 14px;
  background: radial-gradient(circle at 7px 7px, var(--ink-3) 0 4px, transparent 5px) 0 0 / calc(100% / 6) 14px repeat-x;
  opacity: .55;
}
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.sheet-head strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.sheet-head span { font-size: .85rem; color: var(--ink-2); }

/* ---------- Calendar grid (hero + results) ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { font-size: .72rem; font-weight: 700; color: var(--ink-3); text-align: center; padding-bottom: 2px; }
.cal .dow.sun { color: var(--red); }
.cal .d {
  aspect-ratio: 1 / .86; display: grid; place-items: center; position: relative;
  border-radius: var(--r-cell); font-weight: 650; font-size: .95rem; font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.cal .d.pad { visibility: hidden; }
.cal .d.out { opacity: .35; }
.cal .d.weekend { color: var(--ink-3); }
.cal .d.sun, .cal .d.libur { color: var(--red); }
.cal .d.in { background: var(--paper); color: var(--ink); }
.cal .d.in.libur { background: var(--red-soft); color: var(--red); }
.cal .d.in.cutibersama { background: var(--red-soft); color: var(--red); box-shadow: inset 0 0 0 1.5px var(--red); }
.cal .d.in.akhirpekan.sun, .cal .d.in.akhirpekan { color: var(--ink); }
.cal .d.in.sun { color: var(--red); }
.cal .d.cuti { background: var(--hi); color: var(--hi-ink); font-weight: 800; }
.cal-cap { font-size: .8rem; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }

/* Hero sweep: one orchestrated moment, the break lights up day by day */
@media (prefers-reduced-motion: no-preference) {
  .sheet .cal .d.in, .sheet .cal .d.cuti { animation: light .5s ease both; animation-delay: calc(var(--i, 0) * 70ms + 500ms); }
  @keyframes light { from { background: transparent; } }
  .sheet .cal .d.i0 { --i: 0; }
  .sheet .cal .d.i1 { --i: 1; }
  .sheet .cal .d.i2 { --i: 2; }
  .sheet .cal .d.i3 { --i: 3; }
  .sheet .cal .d.i4 { --i: 4; }
  .sheet .cal .d.i5 { --i: 5; }
  .sheet .cal .d.i6 { --i: 6; }
  .sheet .cal .d.i7 { --i: 7; }
  .sheet .cal .d.i8 { --i: 8; }
  .sheet .cal .d.i9 { --i: 9; }
  .sheet .cal .d.i10 { --i: 10; }
  .sheet .cal .d.i11 { --i: 11; }
  .sheet .cal .d.i12 { --i: 12; }
  .sheet .cal .d.i13 { --i: 13; }
  .sheet .cal .d.i14 { --i: 14; }
  .sheet .cal .d.i15 { --i: 15; }
  .sheet .cal .d.i16 { --i: 16; }
  .sheet .cal .d.i17 { --i: 17; }
  .sheet .cal .d.i18 { --i: 18; }
  .sheet .cal .d.i19 { --i: 19; }
}

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: .8rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend .k-cuti { background: var(--hi); }
.legend .k-libur { background: var(--red-soft); box-shadow: inset 0 0 0 1.5px var(--red); }
.legend .k-off { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- Tool list on home ---------- */
.tools { display: grid; gap: 12px; margin-top: 20px; }
.tool-row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel);
  padding: 20px; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.tool-row:hover { border-color: var(--ink); transform: translateY(-1px); }
.tool-row h3 { font-size: 1.2rem; }
.tool-row p { color: var(--ink-2); margin-top: 4px; font-size: .95rem; }
.tool-row .go { font-weight: 700; margin-top: 10px; display: inline-block; font-size: .92rem; text-decoration: underline; text-decoration-color: var(--hi); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.preview { width: 120px; flex: none; }
@media (max-width: 520px) { .preview { width: 88px; } .tool-row { padding: 16px; } }
.pv-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.pv-strip b { aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; font-size: .78rem; background: var(--paper); }
.pv-strip .r { background: var(--red-soft); color: var(--red); }
.pv-strip .y { background: var(--hi); color: var(--hi-ink); }
.pv-receipt { background: var(--paper); border-radius: 10px; padding: 10px; text-align: right; font-variant-numeric: tabular-nums; border-top: 3px dashed var(--line-2); }
.pv-receipt small { display: block; color: var(--ink-2); font-size: .72rem; }
.pv-receipt strong { font-size: 1.05rem; font-weight: 800; white-space: nowrap; }
@media (max-width: 520px) { .pv-receipt strong { font-size: .9rem; } }
.pv-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; transform: perspective(240px) rotateX(28deg); }
.pv-tiles b { aspect-ratio: 1; background: var(--paper); border: 1px solid var(--line-2); border-radius: 3px; }
.pv-tiles b:nth-child(6) { background: var(--hi); border-color: var(--hi); }

.trust { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.trust h3 { font-size: 1.02rem; }
.trust p { color: var(--ink-2); margin-top: 6px; font-size: .95rem; }
.trust svg { width: 28px; height: 28px; margin-bottom: 10px; }

/* ---------- Tool pages ---------- */
.page-head { max-width: 760px; }
.page-head .lead { margin-top: 12px; }
.steps { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: s; max-width: 760px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: var(--ink-2); }
.steps li::before {
  content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: .85rem;
  background: var(--hi); color: var(--hi-ink);
}

.layout { display: grid; gap: 24px; margin-top: 28px; align-items: start; }
@media (min-width: 960px) { .layout { grid-template-columns: 380px 1fr; gap: 32px; } .layout .panel { position: sticky; top: 84px; } }

.panel { background: var(--surface); border-radius: var(--r-panel); box-shadow: var(--shadow); padding: 20px; }
.field + .field { margin-top: 18px; }
.field > .label, .field > label.label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 8px; }
.field .help { font-size: .82rem; color: var(--ink-2); margin-top: 6px; }

input[type=number], input[type=text], select {
  width: 100%; min-height: 50px; padding: 0 14px;
  font: 600 1.05rem/1 var(--font); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-ctl);
  font-variant-numeric: tabular-nums; appearance: none; -webkit-appearance: none;
}
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; font-size: 1rem;
}
input:focus, select:focus { outline: none; border-color: var(--ink); background-color: var(--surface); }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
.unit { position: relative; }
.unit input { padding-right: 56px; }
.unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 600; pointer-events: none; }
.unit.pre input { padding-left: 44px; padding-right: 14px; }
.unit.pre span { left: 14px; right: auto; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field { margin-top: 18px; }
legend { padding: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg.grid3 { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); }

/* Stepper */
.stepper { display: grid; grid-template-columns: 54px 1fr 54px; gap: 8px; }
.stepper input { text-align: center; font-size: 1.4rem; font-weight: 800; }
.stepper button {
  min-height: 50px; border-radius: var(--r-ctl); border: 1.5px solid var(--line); background: var(--surface);
  font: 700 1.5rem/1 var(--font); color: var(--ink); cursor: pointer;
}
.stepper button:hover { border-color: var(--ink); }

/* Segmented control (radio group) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--paper); border-radius: var(--r-ctl); border: 1.5px solid var(--line); }
.seg.stack { grid-auto-flow: row; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 10px 8px; border-radius: 9px; font-weight: 650; font-size: .92rem; color: var(--ink-2); line-height: 1.25; }
.seg.stack span { text-align: left; padding: 10px 12px; }
.seg span small { display: block; font-weight: 500; font-size: .78rem; color: var(--ink-3); margin-top: 2px; }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(22, 35, 63, .14); }
.seg input:focus-visible + span { outline: 3px solid var(--hi); outline-offset: 1px; }

/* Chips (quick picks) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 12px; font: 650 .88rem/1 var(--font); cursor: pointer; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--surface); }

/* Switch (checkbox) */
.switch { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .93rem; }
.switch + .switch { margin-top: 12px; }
.switch input { appearance: none; -webkit-appearance: none; flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line-2); position: relative; cursor: pointer; transition: background .15s ease; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s ease; }
.switch input:checked { background: var(--ink); }
@media (prefers-color-scheme: dark) { .switch input:checked { background: var(--hi); } }
.switch input:checked::after { transform: translateX(18px); }
.switch input:disabled { opacity: .4; }
.switch small { display: block; color: var(--ink-2); font-size: .8rem; margin-top: 2px; }

/* ---------- Results ---------- */
.results { min-width: 0; }
.result-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.big { font-size: clamp(2.2rem, 7vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.big .arrow { color: var(--ink-3); font-weight: 500; margin: 0 .15em; }
.big mark { background: linear-gradient(transparent 55%, var(--hi) 55%); color: inherit; padding: 0 .05em; }
.result-sub { color: var(--ink-2); margin-top: 10px; max-width: 40em; }
.notice { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--hi-soft); font-size: .9rem; }
.notice.warn { background: var(--red-soft); color: var(--ink); }

.breaks { display: grid; gap: 14px; margin-top: 22px; }
.break { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 16px; display: grid; gap: 14px; }
@media (min-width: 640px) { .break { grid-template-columns: 1fr 250px; align-items: start; padding: 18px 20px; } }
.break h3 { font-size: 1.05rem; }
.break .ratio { display: inline-block; margin-top: 6px; font-weight: 700; font-size: .88rem; background: var(--hi-soft); border-radius: 999px; padding: 3px 10px; }
.break .ratio.free { background: var(--red-soft); color: var(--red); }
.break .take { margin-top: 10px; font-size: .95rem; }
.break .take strong { background: linear-gradient(transparent 60%, var(--hi) 60%); }
.break ul { list-style: none; padding: 0; margin: 10px 0 0; font-size: .86rem; color: var(--ink-2); display: grid; gap: 3px; }
.break ul li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--red); margin-right: 8px; vertical-align: 1px; }
.break .cal .d { font-size: .8rem; aspect-ratio: 1 / .9; }
.note-shift { color: var(--ink-3); }

/* Token receipt */
.receipt {
  background: var(--surface); border-radius: 16px; padding: 22px 20px 18px; box-shadow: var(--shadow);
  max-width: 420px; position: relative; font-variant-numeric: tabular-nums;
  -webkit-mask: radial-gradient(circle 7px at 50% 0, transparent 98%, #000) 50% 0 / 22px 100%;
          mask: radial-gradient(circle 7px at 50% 0, transparent 98%, #000) 50% 0 / 22px 100%;
}
.receipt .big { margin: 6px 0 14px; }
.receipt dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: .92rem; border-top: 2px dashed var(--line-2); padding-top: 14px; }
.receipt dt { color: var(--ink-2); }
.receipt dd { margin: 0; font-weight: 650; text-align: right; }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); margin-top: 16px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-2); font-weight: 700; white-space: nowrap; font-size: .85rem; }
tbody tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; white-space: nowrap; }
tr.hl td { background: var(--red-soft); }

/* Check note (weekly tariff check) */
.check-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--surface); border: 1px solid var(--line); font-size: .9rem; max-width: 760px; }
.check-note svg { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: 1px; }
.warning { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--red-soft); font-size: .92rem; font-weight: 600; max-width: 760px; }

/* Share */
.share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; font-weight: 500; color: var(--ink-2); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; color: var(--ink-2); }

.links { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.links a { display: inline-block; text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.links a:hover { border-color: var(--ink); }
.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }

.source, .disclaimer { font-size: .84rem; color: var(--ink-2); max-width: 760px; }
.source { margin-top: 28px; }
.disclaimer { margin-top: 10px; }
.source a { word-break: break-word; }

/* Prose pages */
.prose { max-width: 680px; }
.prose p + p, .prose h1 + p { margin-top: 14px; }

/* ---------- Footer ---------- */
.foot-about { margin-top: 10px; max-width: 34em; }
.foot-copy { margin-top: 6px; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 36px; font-size: .9rem; color: var(--ink-2); }
.site-footer .wrap { display: grid; gap: 12px; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer .logo { font-size: 1rem; color: var(--ink); }

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