/* ARKA — design system v4. Flat. Typographic. No shadows, no gradients, no cards. */
:root {
  --bg:      #f7f5f0;
  --ink:     #15140f;
  --muted:   #57554a;
  --faint:   #96937f;
  --line:    rgba(21,20,15,0.14);
  --line-so: rgba(21,20,15,0.08);
  --hover:   rgba(21,20,15,0.028);
  --cc:      #b8492f;              /* per-row accent, overridden inline */
  --maxw:    860px;
  --ease:    cubic-bezier(.22,.61,.36,1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #100f0c;
    --ink:     #f3f1e9;
    --muted:   #a3a091;
    --faint:   #66634f;
    --line:    rgba(243,241,233,0.16);
    --line-so: rgba(243,241,233,0.09);
    --hover:   rgba(243,241,233,0.035);
    --cc:      #e2765a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "SF Pro Text", Segoe UI, Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; }

.serif { font-family: "Fraunces", Georgia, "Times New Roman", serif; font-optical-sizing: auto; }
.mono {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- top bar / brand ---- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 28px 0 0;
}
.topbar .brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.topbar .brand .mark { width: 11px; height: 16.5px; display: block; color: var(--ink); flex: none; }
.topbar .wm { font-size: 12px; color: var(--ink); letter-spacing: 0.24em; font-weight: 600; }
.topbar .side {
  font-size: 11.5px; color: var(--faint);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.topbar a.brand:hover .wm { opacity: 0.6; }

/* ---- section label ---- */
.sec {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 44px 0 2px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px; color: var(--faint);
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---- accent dot (the only color chrome allowed) ---- */
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cc); flex: none; display: inline-block; }

/* ---- text link / button, no fills ---- */
.tlink {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--ink); background: none; border: none;
  cursor: pointer; text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding: 0 0 2px;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.tlink:hover { border-color: var(--ink); }

/* ---- solid button (rare — used only for the one primary action per page) ---- */
.btn {
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--bg); background: var(--ink);
  border: none; padding: 11px 20px; cursor: pointer;
  transition: opacity 0.2s var(--ease);
}
.btn:hover { opacity: 0.82; }
.btn:disabled { opacity: 0.35; cursor: default; }

/* ---- skeleton shimmer ---- */
.skel {
  position: relative; overflow: hidden;
  background: var(--line-so); color: transparent !important;
}
.skel::after {
  content: ""; position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(21,20,15,0.09), transparent);
  animation: shimmer 1.4s infinite;
}
@media (prefers-color-scheme: dark) {
  .skel::after { background: linear-gradient(90deg, transparent, rgba(243,241,233,0.08), transparent); }
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* ---- site footer ---- */
footer.site {
  margin-top: 60px;
  padding: 18px 0 60px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 11px; color: var(--faint);
  letter-spacing: 0.09em; text-transform: uppercase;
}
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ink); }

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
