/* ==========================================================================
   SATOR · MOBILE — the printed sheet (js/sator/mobile.js, config js/config/sator-mobile.js). Phones only: the
   page is built only there. Paper, ink, one red; SATOR's own blackletter for the big words.
   ========================================================================== */
.smob {
  --paper: #ffffff; --paper-2: #f0f0f0; --ink: #111; --ink-2: #4a4a4a;   /* white (2026-11-02: was the mockup's warm paper) */ --red: #960b10; --rule: rgba(17, 17, 17, .85);
  --goth: 'Grenze Gotisch', 'IM Fell English SC', Georgia, serif;
  position: fixed; inset: 0; z-index: 30; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; background: var(--paper); color: var(--ink); font-family: var(--font-grotesk);
  opacity: 0; transition: opacity .5s ease;
}
.smob[hidden] { display: none; }
.smob.is-open { opacity: 1; }
body.in-satorm .brand { display: none !important; }
body.smob-layer .sound-toggle { display: none !important; }
:where(.smob) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }   /* :where = no weight: each button's own rule wins */
.smob button:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.smob-ico { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.smob-ico .f { fill: currentColor; stroke: none; }
.smob-ico .r { fill: var(--red); stroke: none; }

/* the bar */
.smob-bar {
  position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 12px;
  padding: calc(8px + env(safe-area-inset-top)) 14px 8px; background: #0c0c0c; color: var(--paper);
}
.smob-bar__home { display: block; flex: none; height: 44px; margin: -2px 0 -4px -2px; }
.smob-bar__home img { display: block; height: 100%; width: auto; }
.smob-bar__sep { width: 1px; height: 22px; background: rgba(243, 239, 230, .7); }
.smob-bar__name { flex: 1; font-weight: 600; font-size: 12.5px; letter-spacing: .3em; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.smob-bar__menu { width: 40px; height: 40px; display: grid; place-items: center; flex: none; }
.smob-bar__menu .smob-ico { width: 30px; height: 30px; }

.smob-hint { position: sticky; top: calc(52px + env(safe-area-inset-top)); z-index: 2; display: flex; align-items: center; gap: 10px; margin: 0;
  padding: 8px 12px 8px 14px; background: var(--red); color: var(--paper); font-size: 11.5px; line-height: 1.35; letter-spacing: .02em; }
.smob-hint[hidden] { display: none; }
.smob-hint span { flex: 1; }
.smob-hint button { font-size: 22px; line-height: 1; width: 32px; height: 32px; flex: none; }

/* the sheet: a thin frame around everything */
.smob-page { margin: 10px max(10px, calc((100% - 540px) / 2)) calc(12px + env(safe-area-inset-bottom)); border: 1.5px solid var(--ink); padding: 0 0 10px; }   /* sideways / tablets: a centred sheet */
.smob-sheet__in, .smob-menu__box { box-sizing: border-box; }
.smob-sheet__in { max-width: 560px; margin: 0 auto; }

.smob-head {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; aspect-ratio: 980 / 330;
  background-size: cover; background-position: center bottom; border-bottom: 1.5px solid var(--ink); text-align: center;
}
.smob-head__t { margin: 0; font: 700 clamp(56px, 19vw, 104px)/.78 var(--goth); letter-spacing: .02em; color: var(--ink); outline: none;
  text-shadow: 0 0 18px rgba(255, 255, 255, .9); }
.smob-head__l { margin: 0; font-weight: 600; font-size: clamp(9px, 2.6vw, 12px); letter-spacing: .32em; padding-left: .32em; }
.smob-rule { display: block; width: 42px; height: 3px; background: var(--red); margin: 2px auto 0; }

.smob-grid { display: grid; grid-template-columns: 1.38fr 1fr; gap: 8px; padding: 10px 10px 0; align-items: start; }
.smob-col { display: grid; gap: 8px; min-width: 0; }

.smob-hero { position: relative; margin: 0; background: var(--red); overflow: hidden; }
.smob-hero__v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.smob-hero__n { position: absolute; left: 10px; top: 10px; color: var(--paper); font-weight: 600; font-size: 15px; letter-spacing: .18em; }
.smob-hero__n::after { content: ''; display: block; width: 16px; height: 2px; background: var(--paper); margin-top: 5px; }
.smob-hero__l { position: absolute; left: 10px; bottom: 12px; color: var(--paper); font-weight: 500; font-size: 7.5px; line-height: 1.75; letter-spacing: .2em; }
.smob-yard { display: block; width: 100%; height: auto; aspect-ratio: 574 / 210; object-fit: cover; }

.smob-profile { position: relative; display: block; width: 100%; aspect-ratio: 368 / 337; border: 1px solid var(--rule); background: var(--paper-2); overflow: hidden; }
.smob-profile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.smob-profile__l { position: absolute; left: 8px; top: 7px; z-index: 1; font-weight: 600; font-size: 8.5px; letter-spacing: .18em; }
.smob-profile__l::after { content: ''; display: block; width: 12px; height: 1.5px; background: var(--ink); margin-top: 4px; }
.smob-profile__plus { position: absolute; right: 8px; top: 2px; z-index: 1; color: var(--red); font-size: 20px; font-weight: 300; }

.smob-nav-l { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-weight: 600; font-size: 8.5px; letter-spacing: .26em; }
.smob-nav-l::before, .smob-nav-l::after { content: ''; height: 1px; background: var(--rule); flex: 1; }
.smob-nav-l::before { flex: 0 0 12px; }
.smob-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.smob-tile { display: grid; justify-items: center; align-content: center; gap: 5px; aspect-ratio: 1; border: 1px solid var(--rule); background: #fff; }
.smob-tile .smob-ico { width: 46%; height: auto; aspect-ratio: 1; }
.smob-tile__w { font-weight: 600; font-size: 8px; letter-spacing: .14em; padding-left: .14em; }
.smob-tile__w::after { content: ''; display: block; width: 14px; height: 2px; background: var(--red); margin: 4px auto 0; }
.smob-tile:active { background: var(--paper-2); }

.smob-quote { margin: 16px 10px 0; padding: 14px 0 0; border-top: 1.5px solid var(--ink); }
.smob-quote p { margin: 0; font-weight: 700; font-style: italic; font-size: clamp(20px, 6.4vw, 34px); line-height: 1.02; letter-spacing: -.01em; text-transform: uppercase; }
.smob-quote em { color: var(--red); }
.smob-quote footer { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 9px; letter-spacing: .26em; color: var(--ink-2); }
.smob-quote footer::before { content: ''; width: 16px; height: 2px; background: var(--red); }

.smob-desk { margin: 14px 10px 0; padding: 10px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font-size: 11.5px; line-height: 1.45; color: var(--ink-2); text-align: center; }

.smob-foot { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin: 12px 10px 0; }
.smob-foot__a { display: grid; gap: 4px; font-size: 8px; letter-spacing: .14em; line-height: 1.5; max-width: 84px; }
.smob-foot__a b { font-size: 12px; letter-spacing: .22em; }
.smob-foot__marks { display: flex; justify-content: center; gap: 4px; padding: 0 6px; border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }
.smob-foot__marks span { display: grid; justify-items: center; gap: 3px; }
.smob-foot__marks .smob-ico { width: 26px; height: 26px; border: 1px solid var(--rule); padding: 3px; box-sizing: border-box; }
.smob-foot__marks i { font-style: normal; font-size: 6.5px; font-weight: 600; letter-spacing: .12em; }
.smob-foot__b { display: grid; gap: 6px; font-size: 6.5px; line-height: 1.45; letter-spacing: .14em; font-weight: 600; }
.smob-code { display: grid; gap: 3px; font-size: 6.5px; letter-spacing: .16em; }
.smob-code i { display: block; width: 64px; height: 20px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 3px, var(--ink) 3px 5px, transparent 5px 6px, var(--ink) 6px 7px, transparent 7px 10px); }

/* the menu */
.smob-menu { position: fixed; inset: 0; z-index: 6; }
.smob-menu[hidden] { display: none; }
.smob-menu__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.smob-menu__box { position: absolute; top: 0; right: 0; bottom: 0; width: min(82vw, 340px); overflow-y: auto; background: #0c0c0c; color: var(--paper);
  padding: calc(14px + env(safe-area-inset-top)) 22px calc(20px + env(safe-area-inset-bottom)); display: grid; align-content: start; gap: 2px;
  animation: smob-in .3s ease both; }
@keyframes smob-in { from { transform: translateX(14%); opacity: 0; } to { transform: none; opacity: 1; } }
.smob-menu__k { margin: 18px 0 6px; font-size: 9.5px; letter-spacing: .3em; color: rgba(243, 239, 230, .55); }
.smob-menu__k::after { content: ''; display: block; width: 18px; height: 2px; background: var(--red); margin-top: 6px; }
.smob-menu__i { display: grid; gap: 2px; text-align: left; padding: 10px 0; border-bottom: 1px solid rgba(243, 239, 230, .12); }
.smob-menu__i b { font: 600 18px/1 var(--font-grotesk); letter-spacing: .26em; }
.smob-menu__i span { font-size: 11px; color: rgba(243, 239, 230, .6); letter-spacing: .04em; }
.smob-menu__i--s b { font-size: 14px; letter-spacing: .22em; }
.smob-x { width: 40px; height: 40px; display: grid; place-items: center; justify-self: end; }
.smob-x .smob-ico { width: 22px; height: 22px; }

/* a chapter */
.smob-sheet { position: fixed; inset: 0; z-index: 5; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  background: var(--paper); opacity: 0; transform: translateY(14px); transition: opacity .28s ease, transform .28s ease; }
.smob-sheet[hidden] { display: none; }
.smob-sheet.is-open { opacity: 1; transform: none; }
.smob-sheet__top { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: calc(6px + env(safe-area-inset-top)) 8px 0;
  background: linear-gradient(var(--paper) 70%, rgba(255, 255, 255, 0)); }
.smob-sheet__in { padding: 0 16px calc(28px + env(safe-area-inset-bottom)); }
.smob-sh__h { text-align: center; padding-bottom: 18px; }
.smob-sh__n { display: block; color: var(--red); font-weight: 600; font-size: 12px; letter-spacing: .3em; }
.smob-sh__w { margin: 6px 0 4px; font: 700 clamp(44px, 14vw, 72px)/.85 var(--goth); outline: none; }
.smob-sh__l { margin: 0 0 8px; font-weight: 600; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; }
.smob-sh__note { margin: 12px 0 0; font-size: 12px; letter-spacing: .12em; color: var(--ink-2); }
.smob-sh__g { margin: 22px 0 10px; font-size: 11px; letter-spacing: .26em; display: flex; gap: 10px; align-items: center; }
.smob-sh__g::after { content: ''; flex: 1; height: 1px; background: var(--rule); }
.smob-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 10px; }
.smob-card { display: grid; gap: 5px; text-align: left; align-content: start; }
.smob-card__pic { display: grid; place-items: center; aspect-ratio: 1; background: var(--paper-2); border: 1px solid var(--rule); padding: 6px; overflow: hidden; }
.smob-card__pic img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.smob-card__pic i, .smob-view__ph { font-style: normal; font-size: 9px; letter-spacing: .2em; color: var(--ink-2); }
.smob-card__t { font-weight: 600; font-size: 10.5px; line-height: 1.3; letter-spacing: .08em; }
.smob-card__m { font-size: 9px; letter-spacing: .14em; color: var(--ink-2); }
.smob-card--opera .smob-card__pic { background: #0c0c0c; }
.smob-card--opera .smob-card__m { color: var(--red); font-weight: 600; }
.smob-creator { display: grid; justify-items: center; gap: 4px; margin: 0 0 22px; padding: 18px 12px; border: 1.5px solid var(--ink); text-align: center; }
.smob-creator span { font-size: 10px; letter-spacing: .3em; color: var(--ink-2); }
.smob-creator b { font: 700 44px/1 var(--goth); }
.smob-creator i { font-size: 12px; color: var(--ink-2); }
.smob-soon { margin: 24px 0; text-align: center; font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* the viewer */
.smob-view { position: fixed; inset: 0; z-index: 7; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; background: #0b0b0b; color: var(--paper);
  opacity: 0; transition: opacity .25s ease; }
.smob-view[hidden] { display: none; }
.smob-view.is-open { opacity: 1; }
.smob-view__top { display: flex; align-items: center; justify-content: space-between; padding: calc(6px + env(safe-area-inset-top)) 8px 0 18px; }
.smob-view__n { font-size: 11px; letter-spacing: .26em; color: rgba(243, 239, 230, .7); }
.smob-x--light { color: var(--paper); }
.smob-view__art { margin: 0; display: grid; place-items: center; padding: 6px 12px; min-height: 0; }
.smob-view__art img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; background: #fff; }
.smob-view__txt { padding: 10px 20px 0; }
.smob-view__txt h2 { margin: 0; font-weight: 600; font-size: 14px; line-height: 1.3; letter-spacing: .1em; outline: none; }
.smob-view__m { margin: 6px 0 0; font-size: 10.5px; letter-spacing: .16em; color: var(--red); filter: brightness(1.6); }
.smob-view__d { margin: 8px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(243, 239, 230, .75); }
.smob-view__d:empty { display: none; }
.smob-view__nav { display: flex; justify-content: space-between; padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); }
.smob-view__nav button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(243, 239, 230, .4); display: grid; place-items: center; }
.smob-view__nav button[hidden] { visibility: hidden; display: grid; }
.smob-view__nav .smob-ico { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  .smob, .smob-sheet, .smob-view { transition: none; }
  .smob-menu__box { animation: none; }
}
