/*
  Porto Ipul. Arah: catatan lab yang gelap dan tenang.
  Dial: ENERGY 2 / RHYTHM 2 / MOTION 2.
  Motif: penomoran heksadesimal (0x01, +0x10, 0x9f3a12bc) seperti offset di disassembler,
  karena bidang utama pemilik adalah membaca software dari dalam.
*/

:root {
  --bg: #121110;
  --surface: #1c1a17;
  --raise: #24221e;
  --line: #2e2b26;
  --line-strong: #75705f;
  --text: #ece7db;
  --muted: #a8a296;
  --accent: #e8a23a;
  --accent-hover: #f0b357;
  --error: #f2836f;
  --ok: #8fcb8a;

  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-cond: "IBM Plex Sans Condensed", "Arial Narrow", "IBM Plex Sans", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --radius: 4px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 64px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; font-family: var(--font-cond); font-weight: 600; line-height: 1.08; }

p { margin: 0; }

a { color: inherit; }

code { font-family: var(--font-mono); font-size: 0.9em; }

/* Pointer di satu tempat, sesudah reset apa pun. */
a[href], button, summary, select, label[for],
label:has(> input[type="checkbox"], > input[type="radio"]),
input[type="checkbox"], input[type="radio"], input[type="file"], input[type="submit"] {
  cursor: pointer;
}
:disabled, [aria-disabled="true"] { cursor: not-allowed; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

main:focus { outline: none; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted { color: var(--muted); }

.addr, .section-addr, .skill-offset, .skill-count, .filter-count, .hero-meta, .work-meta, .contact-label {
  font-family: var(--font-mono);
}

/* ---------- Buttons & links ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.625rem 1.125rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--bg);
  font: 600 1rem/1.2 var(--font-sans);
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: 0.55; transform: none; }

.button-quiet {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.button-quiet:hover { background: var(--raise); border-color: var(--text); }

.button-danger {
  background: transparent;
  border-color: var(--error);
  color: var(--error);
}
.button-danger:hover { background: var(--error); border-color: var(--error); color: var(--bg); }

.button-small { min-height: 44px; padding: 0.4rem 0.85rem; font-size: 0.9375rem; }

.text-link {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: text-decoration-color 0.15s;
}
.text-link:hover { text-decoration-color: var(--accent); }
.text-link:active { color: var(--accent); }

.link-button {
  min-height: 44px;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.link-button:hover { color: var(--text); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header[data-scrolled] { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.wordmark {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.wordmark-dot { color: var(--accent); }
.wordmark-sub {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius);
  transition: color 0.15s;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current] { color: var(--text); }
.site-nav a[aria-current]::before {
  content: "";
  width: 6px; height: 6px;
  margin-right: 0.5rem;
  background: var(--text);
  border-radius: 1px;
}

.menu-toggle {
  display: none;
  min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font: 500 1rem var(--font-sans);
}
.menu-toggle:hover { background: var(--raise); }
.menu-toggle[aria-expanded="true"] { background: var(--raise); border-color: var(--text); }

@media (max-width: 639px) {
  .js .menu-toggle { display: inline-flex; align-items: center; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    display: none;
    padding: 0.5rem var(--gutter) 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .js .site-nav[data-open] { display: block; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav a { width: 100%; padding-inline: 0; font-size: 1.125rem; }
  .site-nav a { padding-inline: 0.5rem; }
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3.5rem, 11vh, 7.5rem) clamp(3.5rem, 9vh, 6rem);
}

.hero-title {
  font-size: clamp(2.5rem, 7.4vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.012em;
  max-width: 13ch;
}
[data-decode] .scramble { color: var(--muted); }

.hero-intro {
  margin-top: 1.5rem;
  max-width: 46ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-meta {
  margin: 0;
  font-size: 0.875rem;
  border-top: 1px solid var(--line);
}
.hero-meta div {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.hero-meta dt { color: var(--muted); }
.hero-meta dd { margin: 0; }
.hero-meta a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 0.22em; display: inline-flex; align-items: center; min-height: 44px; margin-block: -0.7rem; }
.hero-meta a:hover { text-decoration-color: var(--accent); }

@media (min-width: 920px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: end;
    column-gap: 4rem;
  }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 9vw, 7rem); border-top: 1px solid var(--line); }

.section-head { margin-bottom: 2rem; }
.section-addr { font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.6rem; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
.section-head h2:focus { outline: none; }
.section-intro { margin-top: 1rem; max-width: 40ch; color: var(--muted); }

.section-head-row { display: grid; gap: 1.5rem; }

@media (min-width: 920px) {
  .skills-layout {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: 4rem;
  }
  .skills-layout .section-head { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}

/* ---------- Skills ---------- */

.skill-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.skill { border-bottom: 1px solid var(--line); }

.skill summary {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) auto 28px;
  grid-template-areas: "offset name count toggle";
  align-items: center;
  column-gap: 1rem;
  min-height: 72px;
  padding: 0.9rem 0.5rem;
  list-style: none;
  transition: background-color 0.15s;
}
.skill summary::-webkit-details-marker { display: none; }
.skill summary:hover { background: var(--surface); }

.skill-offset { grid-area: offset; font-size: 0.8125rem; color: var(--muted); }
.skill-name { grid-area: name; font-family: var(--font-cond); font-weight: 500; font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.15; }
.skill-count { grid-area: count; font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }

.skill-toggle { grid-area: toggle; position: relative; width: 28px; height: 28px; }
.skill-toggle::before, .skill-toggle::after {
  content: "";
  position: absolute;
  left: 7px; top: 13px;
  width: 14px; height: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease-out);
}
.skill-toggle::after { transform: rotate(90deg); }
.skill details[open] .skill-toggle::after { transform: rotate(0deg); }
.skill details[open] .skill-name { color: var(--text); }
.skill details[open] summary { background: var(--surface); }

.skill-body {
  display: grid;
  gap: 1rem;
  padding: 0.25rem 0.5rem 1.75rem calc(4.25rem + 1rem + 0.5rem);
  background: var(--surface);
}
.skill-body p:first-child { color: var(--text); max-width: 56ch; }
.skill-body .text-link { justify-self: start; min-height: 44px; display: inline-flex; align-items: center; }

@media (prefers-reduced-motion: no-preference) {
  .skill details[open] .skill-body { animation: unfold 0.35s var(--ease-out); }
}
@keyframes unfold {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 559px) {
  .skill summary {
    grid-template-columns: minmax(0, 1fr) 28px;
    grid-template-areas: "offset toggle" "name toggle" "count toggle";
    row-gap: 0.2rem;
  }
  .skill-body { padding-left: 0.5rem; }
}

.skill-points { display: grid; gap: 0.9rem; margin: 0.25rem 0 0; max-width: 60ch; }
.skill-points div { display: grid; gap: 0.15rem; padding-left: 0.9rem; border-left: 1px solid var(--line-strong); }
.skill-points dt { font-weight: 600; }
.skill-points dd { margin: 0; color: var(--muted); font-size: 0.975rem; }

/* ---------- Pemahaman teknis ---------- */
/* Area diberi label 0xA sampai 0xF: huruf A-F memang digit heksadesimal, jadi motif offset tetap utuh. */

.tab-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (min-width: 820px) { .tab-list { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.tab {
  display: grid;
  gap: 0.15rem;
  justify-items: start;
  min-height: 64px;
  padding: 0.7rem 0.85rem;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 500 0.975rem/1.25 var(--font-sans);
  text-align: left;
  transition: background-color 0.15s, color 0.15s;
}
.tab:hover { background: var(--surface); color: var(--text); }
.tab:active { background: var(--raise); }
.tab:focus-visible { outline-offset: -3px; }
.tab-hex { font-family: var(--font-mono); font-size: 0.75rem; }
.tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

.tab-panel { padding: 1.75rem 0 0.5rem; }
.knowledge-tabs:not(.is-tabbed) .tab-panel + .tab-panel { border-top: 1px solid var(--line); margin-top: 1.25rem; }
.tab-panel:focus-visible { outline-offset: 6px; }
.panel-title { display: flex; align-items: baseline; gap: 0.85rem; font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 500; }
.panel-hex { font-family: var(--font-mono); font-size: 0.875rem; font-weight: 400; color: var(--muted); }

.panel-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 0 2rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.panel-items li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); }

@media (prefers-reduced-motion: no-preference) {
  .tab-panel.is-switching { animation: unfold 0.3s var(--ease-out); }
}

.stack { margin: clamp(2.5rem, 6vw, 4rem) 0 0; border-top: 1px solid var(--line); }
.stack > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.stack dt { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); }
.stack dd { margin: 0; }
.stack ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.stack li { font-family: var(--font-cond); font-weight: 500; font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.25; }
@media (max-width: 479px) { .stack > div { grid-template-columns: 1fr; } }

/* ---------- Works ---------- */

@media (min-width: 920px) {
  .section-head-row { grid-template-columns: auto minmax(0, 1fr); align-items: end; column-gap: 3rem; }
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  justify-content: flex-start;
}
@media (min-width: 920px) { .filters { justify-content: flex-end; } }

.filters a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0 0.6rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  font-size: 0.9375rem;
  transition: color 0.15s, border-color 0.15s;
}
.filters a:hover { color: var(--text); border-bottom-color: var(--line-strong); }
.filters a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }
.filter-count { font-size: 0.75rem; color: var(--muted); }

.filter-status { color: var(--muted); font-size: 0.9375rem; margin-bottom: 1.25rem; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Karya terbaru yang punya gambar dapat ruang dua kolom: ia titik fokus bagian ini. */
@media (min-width: 700px) {
  .work.is-lead { grid-column: span 2; }
  .work.is-lead .work-card { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .work.is-lead .work-media { aspect-ratio: auto; min-height: 100%; }
  .work.is-lead .work-title { font-size: clamp(1.5rem, 2.4vw, 2rem); }
}

.work-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}
.work-card:hover { border-color: var(--line-strong); }
.work-card:focus-within { border-color: var(--text); }

.work-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--raise); }
.work-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
  .work-card:hover .work-img { transform: scale(1.03); }
}

.work-addr-big {
  padding: 1.25rem 1.25rem 0;
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--muted);
  letter-spacing: 0.02em;
}

.work-text { display: grid; gap: 0.6rem; padding: 1.15rem 1.25rem 1.4rem; align-content: start; }
.work-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; font-size: 0.75rem; color: var(--muted); }
.work-meta .addr { color: var(--text); }
.work-title { font-size: 1.375rem; line-height: 1.15; }
.work-title a { text-decoration: none; }
.work-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.work-title a:focus-visible { outline: none; }
.work-title a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--radius); }
.work-card:hover .work-title a { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
.work-summary { color: var(--muted); font-size: 0.975rem; }

.work-textonly .work-summary { color: var(--text); }

@media (prefers-reduced-motion: no-preference) {
  .work.is-entering { animation: enter 0.4s var(--ease-out) both; animation-delay: calc(var(--k, 0) * 50ms); }
}
@keyframes enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- States ---------- */

.state {
  display: grid;
  gap: 0.6rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  max-width: 640px;
}
.state-title { font-family: var(--font-cond); font-weight: 600; font-size: 1.5rem; line-height: 1.2; }
.state p:not(.state-title) { color: var(--muted); }
.state .text-link:only-child { display: inline-flex; align-items: center; min-height: 44px; }
.state-error { border-style: solid; border-color: var(--error); }
.state-error .state-title { color: var(--error); }

/* ---------- Contact ---------- */

.contact-lead { max-width: 44ch; font-size: clamp(1.125rem, 2vw, 1.375rem); color: var(--muted); }
.contact-link { margin-top: 2rem; display: grid; gap: 0.35rem; }
.contact-label { font-size: 0.8125rem; color: var(--muted); }
.contact-link a {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: clamp(2.25rem, 7vw, 5rem);
  line-height: 1.05;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.12em;
  transition: text-decoration-thickness 0.2s, color 0.2s;
  overflow-wrap: anywhere;
}
.contact-link a:hover { text-decoration-thickness: 6px; }
.contact-link a:active { color: var(--accent); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 1.25rem; }
.site-footer .text-link { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.site-footer .text-link:hover { color: var(--text); }

/* ---------- Detail (dialog & halaman karya) ---------- */

.work-dialog {
  width: min(760px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  overscroll-behavior: contain;
}
.work-dialog::backdrop { background: rgba(10, 9, 8, 0.82); }
@media (prefers-reduced-motion: no-preference) {
  .work-dialog[open] { animation: dialog-in 0.25s var(--ease-out); }
  .work-dialog[open]::backdrop { animation: fade-in 0.25s ease; }
}
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.dialog-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.75rem 0.6rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.dialog-bar .text-link { font-size: 0.9375rem; min-height: 44px; display: inline-flex; align-items: center; }
.dialog-content { padding: 1.5rem 1.5rem 2rem; }

.detail-page { padding-block: 2rem 5rem; max-width: 860px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 1.5rem; }

.dialog-content .work-meta, .detail .work-meta { margin-bottom: 0.75rem; font-size: 0.8125rem; }
.detail-title { font-size: clamp(2rem, 5vw, 3.25rem); }
.dialog-content .detail-title { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.detail-summary { margin-top: 1rem; font-size: 1.1875rem; color: var(--muted); max-width: 56ch; }
.detail-media { margin: 1.75rem 0 0; border-radius: var(--radius); overflow: hidden; background: var(--raise); }
.detail-img { width: 100%; }
.prose { margin-top: 1.75rem; max-width: 64ch; }
.prose > *:first-child { margin-top: 0; }

/* Tabel di dalam deskripsi: data RE sering lebih lebar dari kolom teks, jadi
   dibungkus wadah yang bisa digeser mendatar dan dijangkau keyboard, bukan memaksa halaman overflow. */
.table-scroll {
  margin: 1.75rem 0 0;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overscroll-behavior-x: contain;
}
.table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.prose-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
  font-size: 0.875rem;
  line-height: 1.45;
}
.prose-table th, .prose-table td {
  padding: 0.6rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.prose-table th {
  font-family: var(--font-cond);
  font-weight: 600;
  color: var(--text);
  background: var(--raise);
  border-bottom-color: var(--line-strong);
  white-space: nowrap;
}
.prose-table td { color: var(--muted); font-variant-numeric: tabular-nums; }
.prose-table td:first-child { color: var(--text); white-space: nowrap; }
.prose-table tbody tr:last-child td { border-bottom: 0; }
.prose-table tbody tr:hover td { background: var(--surface); }
.prose p + p { margin-top: 1em; }
.detail-link { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.link-host { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- Scroll reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
}
