/* ==========================================================================
   remember.safiya.app -- the shelf
   Character: sheet-dominant paper, cooler and more archival than the master.
   Asymmetric: a question rail left, the answer right, plus a horizontal shelf.
   Monospace labels, serif answers. Signature object: sheets seen on edge.
   ========================================================================== */

body.remember { background: var(--sheet); }
body.remember .band { background: var(--sheet); border-top-color: var(--rule); }
body.remember .band--sheet { background: var(--paper); }
body.remember .masthead { background: color-mix(in srgb, var(--sheet) 90%, transparent); }
body.remember .sitefoot { background: var(--sheet); }

/* ---- 1 · threshold ----------------------------------------------------- */
.threshold { padding-block: clamp(var(--s8), 10vw, 140px) clamp(var(--s8), 8vw, 108px); }
.threshold-rows {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr);
  gap: clamp(var(--s6), 6vw, var(--s9));
  align-items: center;
}
.threshold-words h1 { max-width: 11ch; }
.threshold-words .lede { margin-top: var(--s5); max-width: 46ch; }
.threshold-words .ctl-row { margin-top: var(--s6); }
.threshold-words .avail { margin-top: var(--s5); }

/* sheets on edge */
.edge-stack {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 184px;
  padding-bottom: var(--s3);
  border-bottom: var(--hair) solid var(--rule-strong);
}
.edge-stack .edge {
  flex: 0 0 auto;
  width: 8px;
  background: var(--paper);
  border: var(--hair) solid var(--rule-strong);
  border-bottom: 0;
  position: relative;
  transition: height var(--d-control) var(--ease), background var(--d-control) var(--ease);
}
/* a day that SAFIYA would quote back carries one small mark on its edge */
.edge-stack .edge.is-noted::after {
  content: "";
  position: absolute;
  left: 50%;
  margin-left: -2.5px;
  top: 12px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--promised-rule);
}
.edge-stack .edge.is-current {
  background: var(--sheet);
  border-color: var(--ink);
  transform: translateY(-10px);
}
.stack-caption { margin: var(--s3) 0 0; color: var(--ink-faint); }

@media (max-width: 900px) {
  .threshold-rows { grid-template-columns: 1fr; gap: var(--s7); }
  .edge-stack { height: 120px; }
  .threshold-words h1 { max-width: 16ch; }
}

/* ---- 2 · the question -------------------------------------------------- */
.ask-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(var(--s6), 5vw, var(--s8));
  align-items: start;
}
.rail-title { margin-bottom: var(--s4); }
.rail-title .micro { display: block; }
.qlist { display: flex; flex-direction: column; border-top: var(--hair) solid var(--rule-strong); }
.qbtn {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  background: none;
  border: 0;
  border-bottom: var(--hair) solid var(--rule);
  padding: var(--s4) var(--s4) var(--s4) 0;
  cursor: pointer;
  position: relative;
  transition: background var(--d-control) var(--ease), padding-left var(--d-control) var(--ease);
}
.qbtn:hover { background: color-mix(in srgb, var(--promised-rule) 6%, transparent); padding-left: var(--s3); }
.qbtn[aria-pressed="true"] {
  background: color-mix(in srgb, var(--promised-rule) 9%, transparent);
  padding-left: var(--s3);
}
.qbtn[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--promised-rule);
}
.rail-foot {
  margin-top: var(--s5);
  font-size: 14.5px;
  color: var(--ink-faint);
  max-width: 38ch;
}

.answer-sheet {
  background: var(--paper);
  border: var(--hair) solid var(--rule-strong);
  padding: clamp(var(--s5), 3.5vw, var(--s7));
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
body.remember .band--sheet .answer-sheet { background: var(--sheet); }
.answer-empty { max-width: 40ch; }
.empty-line { font-family: var(--serif); font-size: 26px; color: var(--ink); margin-bottom: var(--s3); }
.empty-why { font-size: 15px; color: var(--ink-faint); margin: 0; }

.answer-body { animation: resolve var(--d-resolve) var(--ease) both; }
.asked { color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: var(--s4); }
.answer {
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 27px);
  line-height: 1.42;
  color: var(--ink);
  margin-bottom: var(--s4);
  max-width: 34ch;
}
.certainty {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-muted);
  padding-left: var(--s4);
  border-left: 2px solid var(--rule-strong);
  max-width: 46ch;
  margin-bottom: var(--s5);
}
.certainty.is-unsure { color: var(--promised); border-left-color: var(--promised-rule); }
.answer-acts { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; }
.answer-acts .ctl { padding: 8px 14px; }
.answer-sheet .passage { background: var(--sheet); margin-bottom: var(--s5); }
body.remember .band--sheet .answer-sheet .passage { background: var(--paper); }
.answer-sheet .passage p { font-family: var(--serif); font-size: 17px; margin-bottom: var(--s2); }
.passage .mono { display: block; color: var(--ink-faint); margin-bottom: var(--s2); }
.passage-note { font-family: var(--sans); font-size: 11.5px; color: var(--ink-faint); }

@media (max-width: 900px) {
  .ask-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .answer-sheet { min-height: 0; }
}

/* ---- 3 · the shelf ----------------------------------------------------- */
.shelf-rail {
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  padding-bottom: var(--s4);
  border-bottom: var(--hair) solid var(--rule-strong);
  scrollbar-width: thin;
}
.day-btn {
  flex: 0 0 auto;
  width: 92px;
  text-align: left;
  background: var(--paper);
  border: var(--hair) solid var(--rule);
  border-radius: 0;
  padding: var(--s4) var(--s3);
  cursor: pointer;
  font-family: var(--sans);
  font-size: var(--t-ui);
  line-height: 1.35;
  color: inherit;
  transition: border-color var(--d-control) var(--ease), background var(--d-control) var(--ease),
              transform var(--d-control) var(--ease);
}
body.remember .band .day-btn { background: var(--paper); }
.day-btn:hover { border-color: var(--ink-faint); }
.day-btn[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--sheet);
  transform: translateY(-4px);
}
.day-btn .d-date {
  display: block;
  font-family: var(--mono);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin-bottom: var(--s1);
}
.day-btn .d-day {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.day-btn .d-note {
  display: block;
  margin-top: var(--s3);
  font-family: var(--sans);
  font-size: 11px;
  color: var(--promised);
}
.day-btn .d-note::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--promised-rule);
  margin-right: 5px;
  vertical-align: 0.1em;
}

.shelf-read {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(var(--s6), 5vw, var(--s8));
  margin-top: var(--s7);
  align-items: start;
}
.sheet--shelf { background: var(--paper); }
body.remember .band .sheet--shelf { background: var(--paper); }
.sheet--shelf .prose { max-width: none; font-size: 18px; }
.quoteback { padding-top: var(--s2); }
.quoteback .micro { display: block; margin-bottom: var(--s3); }
.quote-line {
  font-family: var(--serif);
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.45;
  color: var(--ink);
  padding-left: var(--s4);
  border-left: 2px solid var(--promised-rule);
  margin-bottom: var(--s4);
}
.quote-dates {
  display: block;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
  margin: calc(-1 * var(--s2)) 0 var(--s4) var(--s4);
}
.quote-why { font-size: 14.5px; color: var(--ink-muted); max-width: 40ch; margin: 0; }
.shelf-stub {
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  display: block;
  max-width: 48ch;
}
@media (max-width: 900px) { .shelf-read { grid-template-columns: 1fr; gap: var(--s6); } }

/* ---- 4 · three kinds --------------------------------------------------- */
.kinds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s6) var(--s7);
  border-top: var(--hair) solid var(--rule-strong);
  padding-top: var(--s6);
}
.kind .micro { display: block; margin-bottom: var(--s3); }
.kind-what { font-family: var(--serif); font-size: 20px; margin-bottom: var(--s4); }
.kind-eg {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
  padding: var(--s3) 0 var(--s4);
  border-top: var(--hair) solid var(--rule);
  border-bottom: var(--hair) solid var(--rule);
  margin-bottom: var(--s4);
}
.kind-note { font-size: 14.5px; color: var(--ink-muted); margin: 0; }
.honest-note {
  margin-top: var(--s6);
  font-size: 15px;
  color: var(--ink-muted);
  max-width: 62ch;
  padding-left: var(--s4);
  border-left: 2px solid var(--rule-strong);
}

/* ---- 5 · provenance ---------------------------------------------------- */
.chain {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: var(--s6) var(--s5);
  border-top: var(--hair) solid var(--rule-strong);
  padding-top: var(--s6);
  counter-reset: none;
}
.chain li {
  margin: 0;
  padding-left: var(--s5);
  border-left: var(--hair) solid var(--rule);
  position: relative;
}
.chain li:first-child { border-left: 0; padding-left: 0; }
.chain-n { display: block; color: var(--promised); letter-spacing: 0.12em; margin-bottom: var(--s3); }
.chain-what {
  font-family: var(--sans);
  font-size: var(--t-ui);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: var(--s3);
}
.chain-eg {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.chain-eg .m-said { border-left: 0; padding-left: 0; display: inline; }
.chain-ctl { margin-top: var(--s7); }
@media (max-width: 760px) {
  .chain li { border-left: 0; padding-left: 0; }
}

/* ---- 6 · the empty state ----------------------------------------------- */
.empty-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(var(--s6), 5vw, var(--s8));
  align-items: center;
}
.empty-words .micro { display: block; margin-bottom: var(--s4); }
.empty-h { margin-bottom: var(--s4); max-width: 22ch; }
.empty-note {
  margin-top: var(--s5);
  font-size: 15px;
  color: var(--ink-faint);
  max-width: 44ch;
}
.sheet--empty {
  background: var(--sheet);
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.sheet--empty .sheet-head { font-family: var(--sans); font-size: var(--t-ui); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.empty-big {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.15;
  margin: auto 0 var(--s3);
  color: var(--ink);
}
.empty-sub { font-size: 15.5px; color: var(--ink-muted); margin: 0 0 auto; }
@media (max-width: 860px) { .empty-grid { grid-template-columns: 1fr; gap: var(--s6); } }

/* ---- 7 · status -------------------------------------------------------- */
.stands-ctl { margin-top: var(--s7); }
.status-item dd strong { color: var(--promised); font-weight: 600; }
