/* Docket — editorial team task inbox
   Warm-paper surfaces, serif display + grotesk UI + mono data layer.
   Signature device: square status glyphs + mono docket numbers (№ 01). */

@font-face {
  font-family: "Literata";
  src: url("assets/literata.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  /* surfaces */
  --paper: #F3EEE2;
  --paper-deep: #ECE5D3;
  --surface: #FBF8F1;
  --surface-2: #F7F2E6;
  --line: #E0D7C2;
  --line-strong: #C9BEA4;

  /* ink */
  --ink: #221D17;
  --ink-soft: #4A4338;
  --muted: #7C7263;
  --faint: #9A9080;

  /* accent */
  --accent: #B8431F;       /* terracotta */
  --accent-soft: #F4DBCF;
  --accent-ink: #7C2E12;
  --focus: #2A6F8E;        /* slate-teal for visible focus */

  /* status */
  --st-todo: #8A8276;
  --st-progress: #C2871A;
  --st-blocked: #A93623;
  --st-done: #3F6B4E;

  --radius: 3px;
  --radius-lg: 6px;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shadow-card: 0 1px 0 rgba(34, 29, 23, 0.04), 0 1px 2px rgba(34, 29, 23, 0.05);
  --shadow-drawer: -18px 0 48px -28px rgba(34, 29, 23, 0.4);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body[data-view="detail-open"] { overflow: hidden; }

a { color: var(--accent-ink); }

::selection { background: var(--accent-soft); color: var(--accent-ink); }

/* visible, consistent keyboard focus */
:focus-visible {
  outline: 2.5px solid var(--focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
  z-index: 200;
  transition: top 0.15s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(var(--paper), var(--paper));
  position: relative;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px clamp(20px, 4vw, 56px) 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 16px; }
.brand__mark {
  display: grid;
  grid-template-columns: 12px 12px;
  grid-template-rows: 12px 12px;
  gap: 2px;
  width: 26px;
  height: 26px;
}
.brand__square {
  width: 12px; height: 12px;
  border: 1.5px solid var(--ink);
}
.brand__square--fill { background: var(--accent); border-color: var(--accent); }
.brand__square--lg { width: 26px; height: 26px; border-width: 2px; }

.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0;
}
.brand__tag {
  margin: 5px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.tally {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.tally__row { display: flex; align-items: baseline; gap: 8px; }
.tally__row dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tally__row dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tally__chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tally-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.tally-chip__sq {
  width: 8px; height: 8px;
  border: 1.5px solid var(--st-todo);
  --c: var(--st-todo);
}
.tally-chip[data-s="todo"] .tally-chip__sq { border-color: var(--st-todo); }
.tally-chip[data-s="in-progress"] .tally-chip__sq { border-color: var(--st-progress); background: linear-gradient(90deg, var(--st-progress) 50%, transparent 50%); }
.tally-chip[data-s="blocked"] .tally-chip__sq { border-color: var(--st-blocked); background: var(--st-blocked); }
.tally-chip[data-s="done"] .tally-chip__sq { border-color: var(--st-done); background: var(--st-done); }

/* ---------- Workspace ---------- */
.workspace {
  flex: 1 0 auto;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) 64px;
}

/* ---------- Controls ---------- */
.controls {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px 20px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.controls__search { grid-column: 1 / 2; }
.controls__field--sort { margin-right: 0; }
.controls__reset {
  grid-column: 1 / -1;
  justify-self: start;
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--accent-ink);
  padding: 6px 0 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.controls__label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.search { position: relative; display: flex; align-items: center; }
.search__icon {
  position: absolute;
  left: 13px;
  width: 18px; height: 18px;
  color: var(--muted);
  pointer-events: none;
}
.search__input {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 11px 14px 11px 40px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.search__input::placeholder { color: var(--faint); }
.search__input:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(42, 111, 142, 0.18);
}

.select {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px 32px 10px 12px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%237C7263' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  cursor: pointer;
  min-width: 9.5rem;
  transition: border-color 0.15s var(--ease);
}
.select:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(42, 111, 142, 0.18);
}
.select--lg { font-size: 15px; padding: 12px 34px 12px 14px; }

/* ---------- List meta + list ---------- */
.list-meta {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  min-height: 18px;
}
.list-meta strong { color: var(--ink-soft); font-weight: 600; }

.docket {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* slip card */
.slip {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 20px 20px 18px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: none;
  border-radius: 0;
  box-shadow: var(--shadow-card);
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.slip + .slip { margin-top: -1px; border-top: 1px solid var(--line); }
.slip:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.slip:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.slip:only-child { border-radius: var(--radius-lg); }

/* status spine — the signature left edge */
.slip__spine {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
}

.slip__index {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.slip__index b { color: var(--ink-soft); font-weight: 600; }

.slip__main { min-width: 0; }
.slip__title-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.slip__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.slip__open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: var(--accent-ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
}
.slip__open .slip__title { transition: color 0.15s var(--ease); }
.slip__open:hover .slip__title { color: var(--accent); }
.slip__open .slip__title { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color 0.15s var(--ease), color 0.15s var(--ease); }
.slip__open:hover .slip__title { text-decoration-color: var(--accent-soft); }
.slip__open svg { width: 14px; height: 14px; flex: none; opacity: 0; transform: translateX(-4px); transition: opacity 0.15s var(--ease), transform 0.15s var(--ease); }
.slip__open:focus-visible svg,
.slip__open:hover svg { opacity: 1; transform: translateX(0); }

.slip__summary {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slip__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.01em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.slip__meta span { display: inline-flex; align-items: center; gap: 6px; }
.slip__meta .meta-k { color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; font-size: 10.5px; }
.slip__meta .meta-v { color: var(--ink-soft); }

.slip__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  padding-top: 2px;
  text-align: right;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* square status glyph system */
.status { display: inline-flex; }
.status__square {
  width: 12px; height: 12px;
  border: 1.6px solid var(--st-todo);
  display: inline-block;
}
.status--todo .status__square { border-color: var(--st-todo); background: transparent; }
.status--in-progress .status__square { border-color: var(--st-progress); background: linear-gradient(90deg, var(--st-progress) 50%, transparent 50%); }
.status--blocked .status__square { border-color: var(--st-blocked); background: var(--st-blocked); }
.status--done .status__square {
  border-color: var(--st-done); background: var(--st-done);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M3 6.2l2 2 4-4.4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.status--todo { color: var(--st-todo); }
.status--in-progress { color: var(--st-progress); }
.status--blocked { color: var(--st-blocked); }
.status--done { color: var(--st-done); }

.slip__due {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.slip__due b { color: var(--ink-soft); font-weight: 600; }
.slip__due[data-overdue="true"] { color: var(--st-blocked); }

.priority-dot { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.priority-dot--high { color: var(--st-blocked); }
.priority-dot--medium { color: var(--st-progress); }
.priority-dot--low { color: var(--st-todo); }

.slip:hover { background: var(--surface-2); }
.slip:hover .slip__spine { opacity: 1; }
.slip__spine { opacity: 0.85; transition: opacity 0.15s var(--ease); }

/* ---------- Empty state ---------- */
.empty {
  margin-top: 40px;
  padding: 56px 24px;
  text-align: center;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.empty__glyph { display: flex; justify-content: center; margin-bottom: 16px; opacity: 0.5; }
.empty__title { font-family: var(--serif); font-size: 22px; margin: 0 0 6px; }
.empty__body { margin: 0 0 20px; color: var(--muted); font-size: 14px; }

.btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 10px 18px;
  border: 1px solid transparent;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease);
}
.btn--ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--paper-deep); border-color: var(--line-strong); }

/* ---------- Footer ---------- */
.site-footer {
  flex: none;
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
}
.site-footer p {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 56px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* ---------- Detail drawer ---------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(34, 29, 23, 0.42);
  z-index: 90;
  opacity: 0;
  animation: scrim-in 0.2s var(--ease) forwards;
}
body[data-view="detail-closing"] .scrim { animation: scrim-out 0.2s var(--ease) forwards; }
@keyframes scrim-in { to { opacity: 1; } }
@keyframes scrim-out { from { opacity: 1; } to { opacity: 0; } }

.detail {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(540px, 100%);
  background: var(--surface);
  border-left: 1px solid var(--line-strong);
  box-shadow: var(--shadow-drawer);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(0);
  animation: drawer-in 0.28s var(--ease);
}
body[data-view="detail-closing"] .detail { animation: drawer-out 0.22s var(--ease) forwards; }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0.6; } to { transform: translateX(0); opacity: 1; } }
@keyframes drawer-out { from { transform: translateX(0); opacity: 1; } to { transform: translateX(24px); opacity: 0; } }

.detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 2;
}
.detail__index {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.detail__close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 7px 11px 7px 13px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.detail__close:hover { background: var(--paper-deep); color: var(--ink); }
.detail__close svg { width: 14px; height: 14px; }

.detail__status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.detail__status-name { color: var(--ink-soft); font-weight: 600; }
.detail__priority {
  margin-left: auto;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  background: var(--paper);
}
.detail__priority[data-pri="high"] { color: var(--st-blocked); border-color: var(--st-blocked); }
.detail__priority[data-pri="medium"] { color: var(--st-progress); border-color: var(--st-progress); }

.detail__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 12px 24px 0;
  color: var(--ink);
}

.detail__meta {
  margin: 22px 24px 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
.detail__meta div { display: flex; flex-direction: column; gap: 3px; }
.detail__meta dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0;
}
.detail__meta dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.detail__meta .meta-mono { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }

.detail__body {
  margin: 22px 24px 0;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  white-space: pre-line;
}
.detail__body .detail__outcome {
  display: block;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
}
.detail__body .detail__outcome b {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}

.detail__action {
  margin: 28px 24px 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.detail__action-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
#status-control { width: 100%; }
.detail__feedback {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--st-done);
  min-height: 16px;
  letter-spacing: 0.01em;
}
.detail__feedback.flash { animation: feedback-pop 0.5s var(--ease); }
@keyframes feedback-pop {
  0% { transform: translateY(2px); opacity: 0; }
  40% { transform: translateY(0); opacity: 1; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 11px 18px;
  border-radius: 999px;
  z-index: 200;
  box-shadow: 0 8px 24px -8px rgba(34,29,23,0.4);
  opacity: 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .site-header__inner { padding: 24px 22px 22px; align-items: flex-start; }
  .brand__name { font-size: 26px; }
  .tally { width: 100%; justify-content: flex-start; gap: 14px 18px; }
  .tally__row dd { font-size: 24px; }

  .controls {
    grid-template-columns: 1fr 1fr;
    margin-top: 26px;
  }
  .controls__search { grid-column: 1 / -1; }
  .controls__field { min-width: 0; }
  .controls__field .select { width: 100%; min-width: 0; }
}

@media (max-width: 620px) {
  .site-header__inner { padding: 20px 20px 18px; flex-direction: column; gap: 18px; }
  .brand__tag { font-size: 11px; }
  .workspace { padding: 0 20px 56px; }

  .controls { grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .controls__field--sort { margin-right: 0; }

  .slip {
    grid-template-columns: 36px 1fr;
    grid-template-areas:
      "index side"
      "main main";
    row-gap: 10px;
    column-gap: 14px;
    padding: 16px 16px 14px 14px;
  }
  .slip__index { grid-area: index; padding-top: 4px; }
  .slip__side {
    grid-area: side;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    text-align: left;
  }
  .slip__main { grid-area: main; }
  .slip__title { font-size: 18px; }
  .slip__meta { gap: 5px 14px; margin-top: 10px; }
  .slip__due { display: none; } /* due shown in meta on mobile */

  .detail { width: 100%; border-left: none; }
  .detail__head { padding: 14px 18px 12px; }
  .detail__status-row { padding: 16px 18px 0; }
  .detail__title { margin: 10px 18px 0; }
  .detail__meta { margin: 18px 18px 0; grid-template-columns: 1fr 1fr; }
  .detail__body { margin: 18px 18px 0; font-size: 15.5px; }
  .detail__action { margin: 24px 18px 28px; }
}

@media (max-width: 380px) {
  .detail__meta { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .detail, .scrim { animation: none !important; }
}
