/* AMSP — SECRET PET MENU (04.54)
   Project-scoped. Every rule is under `.spm`, so nothing here can reach the
   Edition, FASCIA or the Listening pages. Loaded only by
   /continuum/secret-pet-menu/.

   Borrowed from the printed cards: white space, near-black type on paper,
   thin rules, controlled scale shifts. Not a reproduction of the card.
   No cutouts, no paw, no green grid — those are FASCIA material.

   No JavaScript on this page. Nothing here depends on script. */

.spm{
  --spm-paper:#FBFAF7;
  --spm-ink:#111318;
  --spm-navy:#1B2534;
  --spm-muted:#6A6E76;
  --spm-rule:rgba(17,19,24,.22);
  --spm-hair:rgba(17,19,24,.12);

  background:var(--spm-paper);
  color:var(--spm-ink);
  font-family:var(--body,"Libre Baskerville",Georgia,serif);
  -webkit-font-smoothing:antialiased;
}

.spm__wrap{
  width:min(760px,calc(100% - 40px));
  margin:0 auto;
  padding:clamp(30px,7vw,72px) 0 clamp(48px,9vw,104px);
}

/* 1 · metadata / status ---------------------------------------------------- */
.spm__meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px 14px;
  margin:0 0 clamp(22px,4vw,38px);
  padding-bottom:12px;
  border-bottom:1px solid var(--spm-rule);
  font-family:var(--mono,"IBM Plex Mono",monospace);
  font-size:9.5px;
  font-weight:600;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--spm-muted);
}
.spm__meta strong{color:var(--spm-navy);font-weight:600}

.spm__title{
  margin:0 0 clamp(26px,5vw,44px);
  font-family:var(--display,"Montserrat",system-ui,sans-serif);
  font-size:clamp(30px,6.4vw,52px);
  line-height:1.04;
  letter-spacing:-.015em;
  font-weight:600;
  color:var(--spm-navy);
}

/* Figures ------------------------------------------------------------------
   width/height attributes carry the ratio; this keeps the box reserved so a
   slow image cannot shift the text under it. */
.spm figure{margin:0}
.spm img{display:block;width:100%;height:auto}
.spm figcaption{
  margin-top:9px;
  font-family:var(--mono,"IBM Plex Mono",monospace);
  font-size:9px;
  letter-spacing:.05em;
  line-height:1.5;
  color:var(--spm-muted);
}

/* 2 · large cat hero — the authored pause. Full measure, no caption above. */
.spm__hero{margin:0 0 clamp(26px,5vw,44px)}

/* 3 · context writing */
.spm__body p{
  margin:0 0 1.05em;
  max-width:34em;
  font-size:clamp(15px,1.9vw,17px);
  line-height:1.62;
}
.spm__body p:last-child{margin-bottom:0}

/* 4 · smaller asymmetrical process image.
   Deliberately off the text column and deliberately smaller than the hero. */
.spm__process{
  margin:clamp(30px,6vw,56px) 0 clamp(30px,6vw,56px);
  width:min(62%,420px);
  margin-inline-start:auto;   /* sits right, against the text measure */
}

/* 5–7 · Chance of Katz provenance.
   Quiet. Rule above, mono label, no panel, no button, no colour field. */
.spm__prov{
  margin:clamp(34px,7vw,64px) 0;
  padding-top:16px;
  border-top:1px solid var(--spm-rule);
  display:grid;
  grid-template-columns:minmax(0,1fr) 132px;
  gap:22px 26px;
  align-items:start;
}
.spm__prov-label{
  grid-column:1 / -1;
  margin:0 0 2px;
  font-family:var(--mono,"IBM Plex Mono",monospace);
  font-size:8.5px;
  font-weight:600;
  letter-spacing:.11em;
  text-transform:uppercase;
  color:var(--spm-muted);
}
.spm__prov p{
  margin:0 0 .85em;
  font-size:14px;
  line-height:1.58;
}
.spm__prov p:last-of-type{margin-bottom:0}
.spm__prov-figure{grid-column:2;grid-row:2}
.spm__prov-copy{grid-column:1;grid-row:2}
.spm__prov-links{
  grid-column:1 / -1;
  margin:14px 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:8px 20px;
  font-family:var(--mono,"IBM Plex Mono",monospace);
  font-size:10px;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.spm__prov-links a{color:var(--spm-navy);text-underline-offset:.28em}

@media(max-width:620px){
  .spm__prov{grid-template-columns:1fr}
  .spm__prov-figure{grid-column:1;grid-row:3;width:min(58%,220px)}
  .spm__prov-copy{grid-column:1;grid-row:2}
  .spm__process{width:min(78%,340px)}
}

/* 8 · the one outbound gesture */
.spm__go{
  margin:clamp(34px,7vw,60px) 0 0;
  padding-top:18px;
  border-top:1px solid var(--spm-rule);
}
.spm__go a,
.spm__go .spm__go-pending{
  display:inline-block;
  font-family:var(--mono,"IBM Plex Mono",monospace);
  font-size:12px;
  font-weight:600;
  letter-spacing:.07em;
  text-transform:uppercase;
  color:var(--spm-navy);
  text-underline-offset:.32em;
}
.spm__go .spm__go-pending{
  color:var(--spm-muted);
  border:1px dashed var(--spm-rule);
  padding:10px 14px;
  text-decoration:none;
}
.spm__go-note{
  margin:8px 0 0;
  font-family:var(--mono,"IBM Plex Mono",monospace);
  font-size:9px;
  letter-spacing:.04em;
  color:var(--spm-muted);
}

/* 9 · send-off */
.spm__sendoff{margin:clamp(38px,8vw,72px) 0 0}

/* 10–11 · colophon and return */
.spm__colophon{
  margin:clamp(26px,5vw,44px) 0 0;
  padding-top:14px;
  border-top:1px solid var(--spm-hair);
  font-family:var(--mono,"IBM Plex Mono",monospace);
  font-size:9.5px;
  letter-spacing:.05em;
  line-height:1.6;
  color:var(--spm-muted);
}
.spm__return{
  margin:clamp(28px,5vw,46px) 0 0;
  font-family:var(--mono,"IBM Plex Mono",monospace);
  font-size:11px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.spm__return a{color:var(--spm-navy);text-underline-offset:.3em}

/* Editorial review markers. Visible in review, trivially greppable, and
   removed with the text they mark. */
.spm mark.rev{
  background:#FFF3B0;
  color:#4A3B00;
  padding:0 .25em;
  font-family:var(--mono,"IBM Plex Mono",monospace);
  font-size:.82em;
  letter-spacing:.03em;
}

.spm a:focus-visible{outline:3px solid #FF7047;outline-offset:3px}

@media(prefers-reduced-motion:reduce){
  .spm *{transition:none!important;animation:none!important}
}


/* 04.55 — Drafted voice, awaiting Jay. Marked visually so provisional prose
   cannot be approved by simply not noticing it. Delete this rule and the
   `spm__drafted` class together when the real copy lands. */
.spm__drafted{
  border-left:3px solid #FFD84D;
  padding-left:14px;
  color:#3A3B40;
}

/* 04.63 — INNER-PAGE ORIENTATION -----------------------------------------
   Secret Pet Menu is a real Continuum depth page. Give that state a strong,
   unmistakable shell: black publication bar + boxed return + signal title
   field. No JS; this is pure navigation and page identity. */
.spm-shell{
  background:var(--spm-paper);
  border-bottom:1px solid var(--spm-ink);
}
.spm-shell__nav{
  min-height:68px;
  padding:0 clamp(16px,3vw,34px);
  display:grid;
  grid-template-columns:48px auto 1fr;
  align-items:center;
  gap:14px;
  background:#0b0b0b;
  color:#fff;
  font-family:var(--mono,"IBM Plex Mono",monospace);
  text-transform:uppercase;
  letter-spacing:.08em;
}
.spm-shell__lemon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
}
.spm-shell__lemon img{
  display:block;
  width:36px;
  height:auto;
}
.spm-shell__back{
  min-height:44px;
  display:inline-flex;
  align-items:center;
  gap:.5em;
  padding:0 16px;
  border:2px solid var(--signal,#ffe600);
  background:var(--signal,#ffe600);
  color:#0b0b0b;
  text-decoration:none;
  font-size:clamp(12px,1.6vw,17px);
  font-weight:700;
  letter-spacing:.05em;
  white-space:nowrap;
}
.spm-shell__back span{font-size:1.35em;line-height:1}
.spm-shell__trail{
  justify-self:end;
  margin:0;
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:4px 14px;
  font-size:8.5px;
  line-height:1.25;
  color:rgba(255,255,255,.72);
}
.spm-shell__trail strong{color:var(--signal,#ffe600);font-weight:600}
.spm-shell__titlebar{
  background:var(--signal,#ffe600);
  color:#0b0b0b;
  border-bottom:1px solid #0b0b0b;
}
.spm-shell__titlebar-in{
  width:min(1180px,calc(100% - 40px));
  margin:0 auto;
  padding:clamp(28px,5vw,64px) 0 clamp(32px,6vw,76px);
}
.spm-shell__eyebrow{
  margin:0 0 clamp(20px,4vw,40px);
  font-family:var(--mono,"IBM Plex Mono",monospace);
  font-size:9px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.spm-shell__title{
  margin:0;
  max-width:9em;
  font-family:"Libre Baskerville",Georgia,serif;
  font-size:clamp(54px,10.5vw,146px);
  font-weight:700;
  letter-spacing:-.045em;
  line-height:.86;
  color:#0b0b0b;
}
.spm-shell__hint{
  margin:clamp(24px,4vw,40px) 0 0 auto;
  max-width:37em;
  font-family:var(--mono,"IBM Plex Mono",monospace);
  font-size:9px;
  line-height:1.55;
  letter-spacing:.04em;
  text-transform:uppercase;
}

/* the large signal header now owns page-title scale */
.spm__title{display:none}

@media(max-width:700px){
  .spm-shell__nav{
    grid-template-columns:38px 1fr;
    min-height:64px;
    gap:10px;
    padding-inline:12px;
  }
  .spm-shell__lemon{width:36px;height:36px}
  .spm-shell__lemon img{width:31px}
  .spm-shell__back{
    min-height:42px;
    padding:0 12px;
    font-size:11px;
  }
  .spm-shell__trail{display:none}
  .spm-shell__titlebar-in{width:min(100% - 28px,1180px)}
  .spm-shell__title{font-size:clamp(52px,17vw,82px);line-height:.9}
  .spm-shell__hint{margin-left:0;max-width:31em}
}

/* ==========================================================================
   04.64b — provenance figure scale. The 132px fixed track was sized for the
   1:1 placeholder; the real photograph is 16:9, so it rendered too small.
   Proportional tracks preserve the photograph's ratio while giving it presence.
   ========================================================================== */
.spm__prov{grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr)}
