/* The Fremen Challenge memorial — shared stylesheet for the hub and all
   record pages. Extracted from the per-page <style> blocks (which shipped
   ~195 identical lines 17 times) and extended for the sealed-memorial
   treatment. Tokens first; every hardcoded rgba from the old block that
   repeated is now a token. */
.fr-wrap, .fr-heroX {
  --fr-hairline: rgba(201, 169, 110, .13);
  --fr-hairline-strong: rgba(201, 169, 110, .28);
  --fr-wash: rgba(201, 169, 110, .06);
  --fr-scrim: rgba(13, 18, 23, .72);
}
.fr-wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter) 5rem; }
.fr-mast { border-top: 2px solid var(--sand); padding-top: .7rem; display: flex;
           flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem;
           font-family: var(--font-display); font-size: .7rem; letter-spacing: .16em;
           text-transform: uppercase; color: var(--pale-dim); }
.fr-mast b { color: var(--sand); font-weight: 500; }
.fr-wrap h1 { font-family: var(--font-display); font-weight: 400; line-height: 1.04;
              font-size: clamp(2.2rem, 6vw, 4.2rem); margin: .8rem 0 0; color: var(--spice-bright);
              text-wrap: balance; }
.fr-lede { max-width: 60ch; margin-top: .9rem; color: var(--pale-dim); font-size: 1.02rem; }
.fr-lede em { color: var(--sand); font-style: normal; }
.fr-sec { margin-top: clamp(2.2rem, 5vw, 3.4rem); }
.fr-sh { display: flex; align-items: baseline; justify-content: space-between; gap: .9rem;
         border-bottom: 1px solid var(--void-line); padding-bottom: .45rem; }
/* B6: headings carry more of the page's gravity than the old 1.15-1.6 clamp */
.fr-sh h2 { font-family: var(--font-display); font-weight: 400; margin: 0; color: var(--sand);
            font-size: clamp(1.35rem, 2.8vw, 1.9rem); }
.fr-sh span { font-family: var(--font-display); font-size: .68rem; letter-spacing: .14em;
              text-transform: uppercase; color: var(--pale-dim); white-space: nowrap; }
.fr-note { margin-top: .55rem; color: var(--pale-dim); font-size: .93rem; max-width: 62ch; }

/* ---- Monument hero -------------------------------------------------------
   Full-bleed, the title carved into the image, the sealed tally as a band
   directly beneath. The old treatment (bordered rectangle below the h1) read
   as an article illustration; a memorial opens with the monument. */
.fr-heroX { position: relative; margin: 0 0 0 calc(50% - 50vw); width: 100vw; overflow: hidden; }
.fr-heroX img { width: 100%; height: auto; display: block;
                aspect-ratio: 21 / 9; object-fit: cover; }
@media (max-width: 640px) { .fr-heroX img { aspect-ratio: 4 / 3; } }
.fr-heroX::after { content: ""; position: absolute; inset: 0; pointer-events: none;
                   background: linear-gradient(to bottom, rgba(13,18,23,.5) 0%,
                               transparent 30%, transparent 46%, rgba(13,18,23,.88) 100%); }
.fr-heroX .fr-heroin { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
                       max-width: var(--max-width); margin: 0 auto;
                       padding: 0 var(--gutter) clamp(1rem, 3vw, 2.2rem); }
.fr-heroX .fr-kicker { color: var(--pale); text-shadow: 0 1px 4px rgba(0,0,0,.9); }
.fr-heroX h1 { font-family: var(--font-display); font-weight: 400; line-height: 1.02;
               font-size: clamp(2.4rem, 7vw, 4.8rem); margin: .3rem 0 0;
               color: var(--spice-bright); text-shadow: 0 2px 14px rgba(0,0,0,.85);
               text-wrap: balance; }
.fr-edition { font-family: var(--font-display); font-size: clamp(.78rem, 1.6vw, .95rem);
              letter-spacing: .3em; text-transform: uppercase; color: var(--sand);
              margin-top: .55rem; text-shadow: 0 1px 4px rgba(0,0,0,.9); }
.fr-tallyband { border-top: 1px solid var(--fr-hairline-strong);
                border-bottom: 1px solid var(--void-line);
                background: var(--fr-wash); }
.fr-tally { max-width: var(--max-width); margin: 0 auto; padding: .7rem var(--gutter);
            display: flex; flex-wrap: wrap; gap: .4rem 2.2rem;
            font-family: var(--font-display); font-size: .74rem; letter-spacing: .16em;
            text-transform: uppercase; color: var(--pale-dim); }
.fr-tally b { color: var(--spice-bright); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---- Dedication ---------------------------------------------------------- */
.fr-dedic { display: grid; grid-template-columns: 1fr; gap: 1.2rem 2rem;
            align-items: center; margin-top: clamp(1.8rem, 4vw, 2.8rem); }
@media (min-width: 640px) { .fr-dedic { grid-template-columns: 9.5rem 1fr; } }
/* height:auto is load-bearing — the img carries height="640", and without it
   the attribute is taken literally: a 152x640 ellipse instead of a circle. */
.fr-seal { width: 9.5rem; height: auto; max-width: 40vw; margin: 0 auto; display: block;
           border-radius: 50%; box-shadow: 0 10px 30px -12px rgba(0,0,0,.9),
           0 0 0 1px var(--fr-hairline); }
.fr-dedic .fr-lede { margin-top: 0; }
.fr-dedic .fr-lede + .fr-lede { margin-top: .6rem; }

/* ---- Roll of Honour ------------------------------------------------------ */
.fr-honour { list-style: none; margin: 1.1rem 0 0; padding: 0; }
.fr-honour li { display: grid; grid-template-columns: 1fr; gap: .1rem 1.4rem;
                border-left: 2px solid var(--fr-hairline-strong);
                padding: .6rem 0 .6rem 1rem; margin-top: .35rem; }
@media (min-width: 700px) { .fr-honour li { grid-template-columns: 15rem 1fr auto; align-items: baseline; } }
.fr-honour .t { font-family: var(--font-display); font-size: .7rem; letter-spacing: .16em;
                text-transform: uppercase; color: var(--ochre); }
.fr-honour a { font-family: var(--font-display); font-size: 1.12rem; color: var(--spice-bright);
               text-decoration: none; }
.fr-honour a:hover { color: var(--sand); }
.fr-honour .d { font-size: .9rem; color: var(--pale-dim); font-variant-numeric: tabular-nums; }

/* ---- Sort bar (kept, relabelled) ---------------------------------------- */
.fr-sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
              margin-top: 1.6rem; padding-bottom: .5rem;
              border-bottom: 1px solid var(--void-line); }
.fr-sortlab { font-family: var(--font-display); font-size: .66rem; letter-spacing: .16em;
              text-transform: uppercase; color: var(--pale-dim); margin-right: .35rem; }
.fr-sort { font-family: var(--font-display); font-size: .66rem; letter-spacing: .12em;
           text-transform: uppercase; color: var(--pale-dim); cursor: pointer;
           background: none; border: 1px solid transparent; padding: .3rem .6rem;
           min-height: 26px; line-height: 1;
           transition: color .15s ease, border-color .15s ease, background .15s ease; }
.fr-sort:hover { color: var(--sand); border-color: var(--fr-hairline-strong); }
.fr-sort:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--sand); }
.fr-sort.on { color: var(--spice-bright); border-color: var(--sand); background: var(--fr-wash); }

/* ---- Record tiles -------------------------------------------------------- */
.fr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
           gap: clamp(1rem, 2.2vw, 1.5rem); margin-top: 1.4rem; }
.fr-tile { position: relative; display: flex; flex-direction: column;
           text-decoration: none; color: inherit; overflow: hidden;
           border: 1px solid var(--void-line); background: var(--void-soft);
           box-shadow: 0 1px 0 rgba(201,169,110,.06), 0 10px 26px -18px rgba(0,0,0,.9);
           transition: transform .18s var(--ease-emph, ease),
                       border-color .18s ease, box-shadow .18s ease; }
.fr-tile:hover, .fr-tile:focus-visible { transform: translateY(-4px); border-color: var(--sand);
           box-shadow: 0 1px 0 rgba(201,169,110,.14), 0 18px 34px -20px rgba(0,0,0,1); outline: none; }
.fr-tile:focus-visible { box-shadow: 0 0 0 2px var(--sand); }
.fr-tile::after { content: ""; position: absolute; inset: 6px; pointer-events: none; z-index: 3;
                  border: 1px solid var(--fr-hairline); }
.fr-shot { position: relative; }
.fr-tile img { width: 100%; height: auto; aspect-ratio: 420 / 630; object-fit: cover;
               display: block; }
.fr-shot::after { content: ""; position: absolute; inset: 0; pointer-events: none;
                  background: linear-gradient(to bottom, transparent 52%,
                              var(--fr-scrim) 78%, var(--void-soft) 100%); }
.fr-name { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
           padding: 0 .85rem .55rem; font-family: var(--font-display); font-weight: 400;
           font-size: 1.3rem; line-height: 1.12; margin: 0; color: var(--spice-bright);
           text-shadow: 0 1px 3px rgba(0,0,0,.85); text-wrap: balance; }
.fr-tb { padding: .55rem .85rem .8rem; display: flex; flex-direction: column; gap: .4rem;
         border-top: 1px solid rgba(201,169,110,.10); margin-top: auto;
         min-height: 7.5rem; }
.fr-fig { margin: 0; font-family: var(--font-display); font-size: .66rem; letter-spacing: .09em;
          text-transform: uppercase; color: var(--pale-dim); }
.fr-fig b { color: var(--spice-bright); font-size: .95rem; font-weight: 500; letter-spacing: .02em;
            font-variant-numeric: tabular-nums; }
.fr-pills { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.fr-pills i { font-style: normal; font-family: var(--font-display); font-size: .58rem;
              letter-spacing: .11em; text-transform: uppercase; color: var(--ochre);
              border: 1px solid var(--fr-hairline-strong); padding: .12rem .38rem; }
.fr-pills.none { font-family: var(--font-display); font-size: .58rem; letter-spacing: .11em;
                 text-transform: uppercase; color: var(--pale-dim); }

/* ---- The two who never entered ------------------------------------------ */
.fr-ghosts { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center;
             margin-top: 1.6rem; border-top: 1px solid var(--void-line); padding-top: 1.2rem; }
.fr-ghost { display: flex; align-items: center; gap: .8rem; }
.fr-ghost .g { width: 3.4rem; height: 3.4rem; display: grid; place-items: center;
               border: 1px solid var(--void-line); position: relative;
               background: repeating-linear-gradient(180deg, rgba(201,169,110,.05) 0 2px,
                           transparent 2px 9px),
                           linear-gradient(165deg, #1a2027 0%, #10151a 62%, #0c1014 100%); }
.fr-ghost .g span { font-family: var(--font-display); font-size: 1.5rem;
                    color: rgba(201,169,110,.30); }
.fr-ghost figcaption b { display: block; font-family: var(--font-display); font-weight: 400;
                         font-size: 1rem; color: var(--pale); }
.fr-ghost figcaption small { font-family: var(--font-display); font-size: .6rem;
                             letter-spacing: .14em; text-transform: uppercase;
                             color: var(--pale-dim); }
.fr-ghosts > p { margin: 0; font-size: .9rem; color: var(--pale-dim); font-style: italic; }

/* ---- The Reckoning triptych ---------------------------------------------- */
.fr-trip { display: grid; grid-template-columns: 1fr; gap: 1.1rem; margin-top: 1.4rem; }
@media (min-width: 720px) { .fr-trip { grid-template-columns: repeat(3, 1fr); } }
.fr-trip figure { margin: 0; border: 1px solid var(--void-line); background: var(--void-soft);
                  position: relative; }
.fr-trip figure::after { content: ""; position: absolute; inset: 5px; pointer-events: none;
                         border: 1px solid var(--fr-hairline); }
.fr-trip img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.fr-trip figcaption { padding: .7rem .8rem .85rem; }
.fr-trip figcaption b { display: block; font-family: var(--font-display); font-weight: 500;
                        font-size: 1.5rem; color: var(--spice-bright);
                        font-variant-numeric: tabular-nums; line-height: 1.1; }
.fr-trip figcaption span { display: block; font-size: .88rem; color: var(--pale-dim); margin-top: .15rem; }

/* ---- Coda ---------------------------------------------------------------- */
.fr-coda { position: relative; margin-top: clamp(2.4rem, 6vw, 4rem); overflow: hidden;
           border: 1px solid var(--void-line); }
.fr-coda img { width: 100%; height: auto; display: block; aspect-ratio: 1536 / 700;
               object-fit: cover; }
@media (max-width: 640px) { .fr-coda img { aspect-ratio: 4 / 3; } }
.fr-coda::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
                   background: linear-gradient(to bottom, transparent 20%, rgba(9,12,18,.82) 100%); }
.fr-coda figcaption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0;
                      padding: 0 clamp(1rem, 4vw, 2.4rem) clamp(1rem, 3.5vw, 2rem);
                      text-align: center; }
.fr-coda .fr-epigraph { font-family: var(--font-display); font-weight: 400;
                        font-size: clamp(1.05rem, 2.4vw, 1.5rem); line-height: 1.45;
                        color: var(--pale); text-wrap: balance;
                        text-shadow: 0 1px 6px rgba(0,0,0,.9); margin: 0; }
.fr-coda .fr-epigraph em { color: var(--sand); font-style: normal; }
.fr-coda .fr-again { margin: .6rem 0 0; font-family: var(--font-display); font-size: .68rem;
                     letter-spacing: .26em; text-transform: uppercase; color: var(--sand);
                     text-shadow: 0 1px 4px rgba(0,0,0,.9); }

/* ---- Record-page furniture ---------------------------------------------- */
.fr-back { display: inline-block; font-family: var(--font-display); font-size: .7rem;
           letter-spacing: .14em; text-transform: uppercase; color: var(--pale-dim);
           text-decoration: none; margin-bottom: 1.4rem; }
.fr-back:hover { color: var(--sand); }
.fr-head { display: grid; grid-template-columns: 1fr; gap: 1.4rem; margin-top: .6rem;
           align-items: start; }
@media (min-width: 720px) { .fr-head { grid-template-columns: 16rem 1fr; gap: 2.2rem; } }
.fr-portrait { position: relative; display: block; max-width: 16rem;
               border: 1px solid var(--void-line); background: var(--void-soft);
               box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); }
.fr-portrait::after { content: ""; position: absolute; inset: 5px; pointer-events: none;
                      border: 1px solid rgba(201,169,110,.16); }
.fr-portrait img { width: 100%; height: auto; aspect-ratio: 420 / 630;
                   object-fit: cover; display: block; }
.fr-noimg { position: relative; aspect-ratio: 420 / 630; display: grid; place-items: center;
            background: repeating-linear-gradient(180deg, rgba(201,169,110,.05) 0 2px,
                        transparent 2px 9px),
                        linear-gradient(165deg, #1a2027 0%, #10151a 62%, #0c1014 100%); }
.fr-noimg span { font-family: var(--font-display); font-size: 3.4rem; line-height: 1;
                 color: rgba(201,169,110,.24); letter-spacing: .06em;
                 transform: translateY(-8%); }
.fr-noimg small { position: absolute; left: 0; right: 0; bottom: 34%; text-align: center;
                  font-family: var(--font-display); font-size: .5rem; letter-spacing: .16em;
                  text-transform: uppercase; color: var(--pale-dim); opacity: .5; }
.fr-headmeta { position: relative; }
.fr-sealmark { position: absolute; top: .1rem; right: 0; width: 3.4rem; height: 3.4rem;
               border-radius: 50%; opacity: .85;
               box-shadow: 0 4px 14px -6px rgba(0,0,0,.9), 0 0 0 1px var(--fr-hairline); }
@media (max-width: 719px) { .fr-sealmark { display: none; } }
.fr-kicker { font-family: var(--font-display); font-size: .66rem; letter-spacing: .14em;
             text-transform: uppercase; color: var(--pale-dim); line-height: 1.7;
             padding-right: 4.2rem; }
.fr-section-tag { font-family: var(--font-display); font-size: .68rem; letter-spacing: .14em;
                  text-transform: uppercase; color: var(--ochre); margin-top: .5rem; }
/* B2: the one hand-written line each record gets — the eulogy note */
.fr-epitaph { margin: 1.6rem 0 0; padding: .9rem 1.2rem; text-align: center;
              border-top: 1px solid var(--fr-hairline-strong);
              border-bottom: 1px solid var(--void-line);
              font-family: var(--font-display); font-weight: 400;
              font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.5;
              color: var(--sand); text-wrap: balance; }
.fr-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
            background: var(--void-line); border: 1px solid var(--void-line); margin-top: 1.6rem; }
@media (min-width: 700px) { .fr-stats { grid-template-columns: repeat(4, 1fr); } }
.fr-stat { background: var(--void-soft); padding: .8rem .9rem; }
/* B6: the carved figures deserve carve-sized type */
.fr-stat b { display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.2rem);
             font-weight: 500; color: var(--spice-bright); line-height: 1.1;
             font-variant-numeric: tabular-nums; }
.fr-stat span { display: block; font-family: var(--font-display); font-size: .62rem;
                letter-spacing: .12em; text-transform: uppercase; color: var(--pale-dim); margin-top: .3rem; }
.fr-stat i { font-style: normal; font-size: .7rem; color: var(--ochre); }
.fr-list { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; }
.fr-list li { border-left: 2px solid var(--void-line); padding: .5rem 0 .5rem .9rem;
              font-size: .93rem; color: var(--pale); }
.fr-time { list-style: none; margin: 1rem 0 0; padding: 0; }
.fr-time li { display: grid; grid-template-columns: 1fr; gap: .15rem 1.2rem;
              border-left: 2px solid var(--void-line); padding: .55rem 0 .55rem .9rem; }
@media (min-width: 640px) { .fr-time li { grid-template-columns: 14rem 1fr; } }
.fr-time b { font-family: var(--font-display); font-weight: 400; font-size: .7rem;
             letter-spacing: .1em; text-transform: uppercase; color: var(--ochre);
             font-variant-numeric: tabular-nums; }
.fr-time span { font-size: .93rem; color: var(--pale); }
.fr-body { margin-top: .8rem; max-width: 64ch; color: var(--pale-dim); font-size: .97rem; }
.fr-gal { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: 1.1rem; }
@media (min-width: 640px) { .fr-gal { grid-template-columns: 1fr 1fr; } }
.fr-gal img { width: 100%; height: auto; border: 1px solid var(--void-line); display: block; }
.fr-marks { list-style: none; margin: 1.1rem 0 0; padding: 0;
            display: flex; flex-direction: column; gap: .7rem; }
.fr-marks li { display: flex; align-items: center; gap: .85rem;
               border-top: 1px solid var(--void-line); padding-top: .7rem; }
.fr-marks li:first-child { border-top: 0; padding-top: 0; }
.fr-mach { width: 68px; height: 68px; max-width: 68px; flex: 0 0 68px;
           object-fit: contain; display: block;
           background: radial-gradient(circle at 50% 45%,
                       rgba(201,169,110,.10), transparent 68%); }
.fr-mach.seal { border-radius: 50%; object-fit: cover; opacity: .92; }
/* B7: renders get the same double-frame signature as portraits */
.fr-render { margin: 1rem 0 .2rem; border: 1px solid var(--void-line); position: relative; }
.fr-render::after { content: ""; position: absolute; inset: 5px; bottom: 2.4rem;
                    pointer-events: none; border: 1px solid var(--fr-hairline); }
.fr-render img { width: 100%; height: auto; display: block; aspect-ratio: 1320 / 756;
                 object-fit: cover; }
.fr-render.tall img { aspect-ratio: 1400 / 933; }
.fr-render figcaption { font-family: var(--font-display); font-size: .58rem;
                        letter-spacing: .12em; text-transform: uppercase;
                        color: var(--pale-dim); padding: .45rem .6rem;
                        border-top: 1px solid var(--void-line); }
.fr-callout { margin-top: .9rem; padding: .6rem .8rem; font-size: .93rem;
              color: var(--sand); border-left: 2px solid var(--sand);
              background: var(--fr-wash); }
@media (min-width: 900px) {
  .fr-cols { display: grid; grid-template-columns: 1fr 1fr;
             gap: 0 clamp(1.6rem, 3vw, 2.8rem); align-items: start; }
  .fr-cols > .fr-sec.fr-wide { grid-column: 1 / -1; }
}
.fr-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
          border-top: 1px solid var(--void-line); margin-top: 3rem; padding-top: 1.1rem;
          font-family: var(--font-display); font-size: .72rem; letter-spacing: .12em;
          text-transform: uppercase; }
.fr-nav a { color: var(--pale-dim); text-decoration: none; }
.fr-nav a:hover { color: var(--sand); }
.fr-fine { margin-top: .9rem; font-size: .78rem; color: var(--pale-dim); font-style: italic; max-width: 66ch; }
@media (prefers-reduced-motion: reduce) {
  .fr-tile { transition: none; }
  .fr-tile:hover, .fr-tile:focus-visible { transform: none; }
}
