/* TRPG.games shared stylesheet: used by index, store, news, about.
   One palette, one nav bar, one set of components. Edit tokens here, not per page. */

:root {
  --paper: #f3ead8;
  --paper-deep: #e8dcc2;
  --ink: #2a2118;
  --ink-soft: #5b4d3c;
  --oxblood: #7a1f1f;
  --oxblood-hi: #9c2a2a;
  --brass: #b0873a;
  --rule: #cbb994;
  --card: #fbf6ea;
  --radius: 4px;
  --maxw: 1120px;
  --on-accent: #fff8ee;

  /* Aliases so earlier class names keep working */
  --bg: var(--paper);
  --surface: var(--card);
  --line: var(--rule);
  --fg: var(--ink);
  --muted: var(--ink-soft);
  --amber: var(--oxblood);
  --teal: #3d6b62;
  --ink-on-amber: var(--on-accent);
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;
  --font-mono: "Cinzel", Georgia, serif;

  /* Floating nav */
  --nav-bg: color-mix(in srgb, var(--paper-deep) 88%, transparent);
  --nav-line: var(--rule);
  --nav-fg: var(--ink);
  --nav-muted: var(--ink-soft);
  --nav-accent: var(--oxblood);
  --nav-on-accent: var(--on-accent);
  --nav-brand-font: var(--font-display);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1c1712; --paper-deep: #251e17; --ink: #eadfc8; --ink-soft: #b8a88a;
    --oxblood: #c4574f; --oxblood-hi: #d86f66; --brass: #d4a955; --rule: #4a3f32; --card: #2a231b;
    --on-accent: #fff8ee; --teal: #7bbfb3;
    --nav-bg: color-mix(in srgb, var(--paper-deep) 88%, transparent);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1c1712; --paper-deep: #251e17; --ink: #eadfc8; --ink-soft: #b8a88a;
  --oxblood: #c4574f; --oxblood-hi: #d86f66; --brass: #d4a955; --rule: #4a3f32; --card: #2a231b;
  --on-accent: #fff8ee; --teal: #7bbfb3;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-top: 84px;
}
html { scroll-padding-top: 96px; }
img, svg { max-width: 100%; display: block; }
a { color: var(--oxblood); }
a:hover { color: var(--oxblood-hi); }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--maxw); margin: 0 auto; }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

.eyebrow {
  font-family: var(--font-display); font-size: 13px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--oxblood); margin: 0 0 12px;
}
.lede { font-size: 21px; color: var(--ink-soft); max-width: 58ch; margin: 0 0 28px; }
.note { font-size: 14px; color: var(--ink-soft); margin: 18px 0 0; }
.status { color: var(--ink-soft); font-style: italic; }
[hidden] { display: none !important; }

/* ---------- Floating nav bar: carved-stone plate ---------- */
.float-nav {
  position: fixed; top: max(12px, env(safe-area-inset-top, 0px)); left: 0; right: 0; z-index: 50;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  pointer-events: none;
}
.float-bar {
  pointer-events: auto; max-width: 980px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px;
  padding: 10px 10px 10px 18px; border-radius: 4px;
  color: #fbf7ec;
  background-color: #4a463f;
  background-image:
    var(--noise-fine, none),
    var(--noise-coarse, none),
    linear-gradient(118deg, transparent 46%, rgba(20,16,12,.40) 47%, transparent 48.5%),
    linear-gradient(160deg, rgba(255,255,255,.14), transparent 45%, rgba(0,0,0,.30));
  background-size: 128px 128px, 320px 160px, auto, auto;
  border: 1px solid #3f3a33;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -3px 0 rgba(0,0,0,.35), inset 2px 0 0 rgba(255,255,255,.05), 0 12px 24px rgba(0,0,0,.32);
}
.float-bar .brand {
  display: flex; align-items: center; gap: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .06em;
  color: #fffdf6; text-decoration: none; margin-right: auto; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.float-bar .brand .icon { width: 26px; height: 26px; color: #d9b36a; margin-right: 10px; }
.float-bar .brand span { color: #d9b36a; }
.float-bar .brand small { font-family: var(--font-body); font-weight: 400; font-size: 12px; color: #cfc6b3; margin-left: 6px; letter-spacing: 0; }
.float-links { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.float-links a {
  color: #ece5d3; text-decoration: none; font-family: var(--font-display); font-size: 15px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; padding: 6px 2px;
  border-bottom: 2px solid transparent; text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
.float-links a:hover, .float-links a[aria-current="page"] { color: #ffffff; border-bottom-color: #d9b36a; }
/* Layout Studio: a squared, brass-capped block set into the stone */
.float-links a.studio-pill, .float-links a.studio-pill:hover {
  background: #d9b36a; color: #2a2118; font-weight: 700; text-shadow: none;
  padding: 8px 14px; border-radius: 2px; border: 1px solid #8f6d2c; border-bottom-color: #8f6d2c;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4); margin-left: 4px;
}
.float-links a.studio-pill:hover { filter: brightness(1.06); }
@media (max-width: 600px) {
  .float-bar .brand small { display: none; }
  .float-links { gap: 4px 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: var(--radius); cursor: pointer;
  font-family: var(--font-display); font-size: 14px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--ink); color: var(--ink); background: transparent;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary, .btn.primary:hover { background: var(--oxblood); border-color: var(--oxblood); color: var(--on-accent); }
.btn.primary:hover { background: var(--oxblood-hi); border-color: var(--oxblood-hi); }
.btn small { font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 13px; opacity: .8; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Page sections ---------- */
section, section.block { padding: 56px 0; }
section + section, section.block { border-top: 1px solid var(--rule); }
section.block:first-of-type { border-top: 0; }
h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: .02em; line-height: 1.2; }
.section-intro { color: var(--ink-soft); margin: 0 0 28px; max-width: 60ch; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 32px; }
.section-head h2 { margin: 6px 0 0; }
.section-head a { font-size: 15px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 48px; border-bottom: 1px solid var(--rule); }
.hero h1, .page-title {
  font-size: clamp(34px, 5vw, 56px); line-height: 1.1; margin: 0 0 18px; max-width: 16ch;
}
.page-title { max-width: 24ch; }
.hero-split .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.hero-split h1 em { font-style: italic; color: var(--oxblood); }

/* ---------- Cards and product grid ---------- */
.grid, .store-grid {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card, .product {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden; min-width: 0;
}
.cover {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--paper-deep), var(--rule));
  font-family: var(--font-display); color: var(--ink-soft); font-size: 15px;
  letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 16px;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover.alt { background: linear-gradient(135deg, var(--paper-deep), var(--rule)); color: var(--oxblood); }
.cover .icon { width: 56px; height: 56px; color: var(--oxblood); }
.card-body, .product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.type {
  font-family: var(--font-display); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--oxblood);
}
.card h3, .product h3 { font-family: var(--font-body); font-size: 20px; margin: 0; line-height: 1.25; font-weight: 600; }
.creator { font-style: italic; color: var(--ink-soft); font-size: 15px; margin: 0; }
.card p, .product p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.price, .card .price { font-weight: 600; font-size: 17px; }
.product-meta { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.stores { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; padding-top: 10px; }
.stores a, .stores span {
  font-size: 14px; padding: 6px 10px; border: 1px solid var(--rule);
  border-radius: var(--radius); text-decoration: none; color: var(--ink); background: var(--paper);
}
.stores a:hover { border-color: var(--oxblood); color: var(--oxblood); }

/* ---------- Storefronts ---------- */
.sellers { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.seller {
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px;
  background: var(--card); text-decoration: none; color: var(--ink); display: block;
}
.seller:hover { border-color: var(--oxblood); }
.seller strong { font-family: var(--font-display); font-size: 18px; display: block; margin-bottom: 4px; }
.seller span { color: var(--ink-soft); font-size: 16px; }

/* ---------- Layout Studio callout (dark card in both themes) ---------- */
.callout, .studio .wrap.callout {
  display: grid; gap: 28px; align-items: center; grid-template-columns: 1.1fr 1fr;
  background: #2a2118; color: #f3ead8; border-radius: var(--radius); padding: 40px;
}
.callout .eyebrow { color: #e0b766; }
.callout h2 { color: #fbf6ea; }
.callout p { color: #e6dac3; margin: 0 0 22px; }
.callout ul { margin: 0 0 24px; padding-left: 20px; color: #e6dac3; font-size: 17px; }
.callout li { margin-bottom: 6px; }
.callout .btn { border-color: #f3ead8; color: #f3ead8; }
.callout .btn:hover { background: #f3ead8; color: #2a2118; }
.callout .btn.primary, .callout .btn.primary:hover { background: #e0b766; border-color: #e0b766; color: #2a2118; }
.callout .btn.primary:hover { background: #ecc77c; border-color: #ecc77c; }
.callout-visual img { width: 100%; height: auto; border-radius: var(--radius); }

/* Index-only: Layout Studio preview sheet and pre-flight panel */
.sheet {
  position: relative; background: var(--card); border: 1px solid var(--rule);
  border-radius: 6px; padding: 22px; aspect-ratio: 5 / 6.4; max-width: 100%;
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.sheet-head b { font-family: var(--font-display); font-size: 17px; }
.statblock { border: 1px solid var(--oxblood); padding: 12px 14px; border-radius: 3px; background: color-mix(in srgb, var(--oxblood) 8%, transparent); }
.statblock h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 18px; }
.statblock .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 14px; text-align: center; }
.statblock .row span { display: block; color: var(--ink-soft); font-size: 11px; }
.sheet-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; min-height: 0; }
.sheet-body p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.sheet-img { background: repeating-linear-gradient(135deg, var(--rule) 0 6px, transparent 6px 12px); border-radius: 3px; display: grid; place-items: center; min-height: 80px; }
.sheet-img .icon { width: 42px; height: 42px; color: var(--oxblood); }
.sheet-foot { font-size: 13px; color: var(--ink-soft); display: flex; justify-content: space-between; }
.sheet-stage { display: grid; position: relative; }
.sheet-stage > .sheet {
  grid-area: 1 / 1; opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s ease;
}
.sheet-stage > .sheet.is-on { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .sheet-stage > .sheet { transition: none; } }
.sheet-wide { min-height: 110px; }
.sheet-callout { border-left: 3px solid var(--oxblood); padding: 6px 10px; background: color-mix(in srgb, var(--oxblood) 6%, transparent); }
.sheet-callout b { font-family: var(--font-display); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--oxblood); }
.sheet-callout p { margin: 4px 0 0; font-size: 14px; color: var(--ink-soft); line-height: 1.45; }
.sheet-tag { position: absolute; top: -10px; right: 14px; background: var(--oxblood); color: var(--on-accent); font-size: 13px; padding: 3px 8px; border-radius: 3px; }
.studio { background: var(--card); border-block: 1px solid var(--rule); }
.studio .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 48px; align-items: start; }
.studio h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.15; margin: 10px 0 16px; }
.studio p.lede { color: var(--ink-soft); margin: 0 0 22px; max-width: 56ch; }
.feature-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.feature-list .icon { color: var(--oxblood); width: 18px; height: 18px; margin-top: 4px; }
.feature-list b { display: block; font-weight: 600; }
.feature-list span { color: var(--ink-soft); font-size: 16px; }
.preflight { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 20px; min-width: 0; }
.preflight h3 { margin: 0 0 14px; font-family: var(--font-display); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.check { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--rule); font-size: 16px; }
.check:first-of-type { border-top: 0; }
.check code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; color: var(--ink-soft); }
.pill { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.pill.ok { background: color-mix(in srgb, var(--teal) 20%, transparent); color: var(--teal); }
.pill.warn { background: color-mix(in srgb, var(--oxblood) 18%, transparent); color: var(--oxblood); }
.studio .btn { margin-top: 26px; }

/* ---------- News ticker (index) ---------- */
.ticker { background: var(--card); border-bottom: 1px solid var(--rule); overflow: hidden; }
.ticker .wrap { display: flex; align-items: center; gap: 14px; padding-block: 9px; min-width: 0; padding-inline: 0; }
.ticker-label { flex: none; font-family: var(--font-display); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); }
.ticker-viewport { min-width: 0; flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: inline-flex; gap: 48px; white-space: nowrap; animation: ticker 60s linear infinite; }
.ticker-track a { text-decoration: none; font-size: 15px; color: var(--ink); }
.ticker-track a span { color: var(--ink-soft); font-size: 13px; margin-right: 8px; }
.ticker-track a:hover { text-decoration: underline; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker-viewport { overflow-x: auto; } }

/* ---------- News feed (index and news page) ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--rule); }
.news-item { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.news-item .src { font-size: 14px; color: var(--oxblood); font-family: var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.news-item h3 { margin: 0; font-family: var(--font-body); font-size: 20px; line-height: 1.3; font-weight: 600; }
.news-item h3 a { text-decoration: none; color: var(--ink); }
.news-item h3 a:hover { text-decoration: underline; color: var(--oxblood); }
.news-item time { font-size: 14px; color: var(--ink-soft); margin-top: auto; }
.news-item p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.news-list { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.news-list .news-item { padding-right: 0; }

/* ---------- About ---------- */
.prose { max-width: 66ch; }
.prose h2 { margin-top: 36px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.fact { border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; background: var(--card); }
.fact b { display: block; font-family: var(--font-display); font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--oxblood); margin-bottom: 6px; }
.fact span { color: var(--ink-soft); font-size: 16px; }

/* ---------- Footer ---------- */
footer.site, .site-footer {
  background-color: #4a463f;
  background-image:
    var(--noise-fine, none),
    var(--noise-coarse, none),
    linear-gradient(118deg, transparent 46%, rgba(20,16,12,.40) 47%, transparent 48.5%),
    linear-gradient(160deg, rgba(255,255,255,.14), transparent 45%, rgba(0,0,0,.30));
  background-size: 128px 128px, 320px 160px, auto, auto;
  border-top: 3px solid #3f3a33;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -3px 0 rgba(0,0,0,.35);
  padding: 36px 0; color: #fbf7ec; font-size: 17px; line-height: 1.6;
  text-shadow: 0 1px 2px rgba(0,0,0,.6);
}
footer.site .wrap, .site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-inline: 0; }
footer.site nav, .site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a, .site-footer a { color: #fffdf6; text-decoration: none; font-weight: 600; }
footer.site a:hover, .site-footer a:hover { color: #d9b36a; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Layout ---------- */
.wrap { padding-inline: 0; }
main > section > .wrap, main > .hero > .wrap, .hero > .wrap, main > .wrap { padding-inline: 0; }
@media (max-width: 860px) {
  .hero-split .wrap, .studio .wrap, .callout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .callout { padding: 28px; }
  .sheet { aspect-ratio: auto; }
  .hero { padding: 44px 0 36px; }
  section, section.block { padding: 44px 0; }
  h2 { font-size: 24px; }
}
@media (max-width: 420px) {
  .check { grid-template-columns: 1fr auto; }
  .check code { grid-column: 1 / -1; order: 3; }
  .check .pill { order: 2; }
}

/* ---------- Footer only: dark dungeon wall, passing torchlight, vignette edges ---------- */
footer.site, .site-footer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: #17130f;
  background-image:
    var(--noise-coarse, none),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(0,0,0,.6) 46px 49px, rgba(255,255,255,.03) 49px 50px),
    repeating-linear-gradient(90deg, transparent 0 92px, rgba(0,0,0,.55) 92px 95px);
  background-size: 256px 256px, auto, auto;
  border-top: 1px solid #3a2f25;
  box-shadow: inset 0 0 60px rgba(0,0,0,.7);
  color: #eadfc9;
}
footer.site::before, .site-footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,166,77,.22), rgba(255,140,60,.07) 40%, transparent 65%);
  mix-blend-mode: screen; opacity: 0;
  animation: footer-torch 14s ease-in-out infinite;
}
footer.site::after, .site-footer::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 40%, transparent 50%, rgba(0,0,0,.6) 85%, rgba(0,0,0,.9) 100%);
}
@keyframes footer-torch {
  0%, 60% { opacity: 0; transform: translateX(-30%); }
  68% { opacity: .9; transform: translateX(-10%); }
  78% { opacity: .9; transform: translateX(10%); }
  86%, 100% { opacity: 0; transform: translateX(30%); }
}
footer.site a, .site-footer a { color: #d9b36a; }
footer.site a:hover, .site-footer a:hover { color: #e47f56; }
@media (prefers-reduced-motion: reduce) { footer.site::before, .site-footer::before { animation: none; opacity: 0; } }
/* Wide hero: the title and lede run the full content width instead of the narrow reading measure. */
.hero.hero-wide .page-title, .hero.hero-wide .lede { max-width: none; }
/* Sample illustrations inside layout previews. Art is clipped to its frame so nothing bleeds past the trim.
   Each image is cropped and framed in CSS (the files stay untouched): scale trims the scan's white edges,
   and the owl is pushed so its perch sits at the middle of the frame. The right side fades into the frame tone. */
.sheet-img { position: relative; overflow: hidden; background: var(--paper-deep, #17130f); isolation: isolate; }
.sheet-img img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center; display: block;
  transform: scale(1.1); transform-origin: center;
  filter: saturate(.92) contrast(1.04);
}
.sheet-img img[src$="ocean-dreams-768.jpg"] { transform: scale(1.12); }
.sheet-img img[src$="lion-emerald-eyes-768.jpg"] { transform: scale(1.08); }
/* Owl: the bird sits at about 83% across the scan. A 200%-wide box with its left edge at -116% puts it at the
   center of the frame; scale around the bird keeps it there while trimming the white edges. */
.sheet-img img[src$="screech-owl-768.jpg"] {
  width: 200%; height: 100%; left: -116%; max-width: none;
  transform: scale(1.1); transform-origin: 83% 50%;
  -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%);
          mask-image: linear-gradient(to right, #000 90%, transparent 100%);
}
.sheet-img::before {
  content: ""; position: absolute; inset: 8px; z-index: 2; pointer-events: none;
  border: 1px dashed rgba(217,179,106,.85);
  background:
    linear-gradient(var(--brass, #d9b36a), var(--brass, #d9b36a)) left top / 7px 7px no-repeat,
    linear-gradient(var(--brass, #d9b36a), var(--brass, #d9b36a)) right top / 7px 7px no-repeat,
    linear-gradient(var(--brass, #d9b36a), var(--brass, #d9b36a)) left bottom / 7px 7px no-repeat,
    linear-gradient(var(--brass, #d9b36a), var(--brass, #d9b36a)) right bottom / 7px 7px no-repeat;
}
.sheet-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(217,179,106,.35), inset 0 0 26px rgba(0,0,0,.45);
}
.sheet-wide { height: 150px; min-height: 0; }
.sheet-body > div:first-child { min-width: 0; }
/* Bubble buttons under the layout examples */
.sheet-dots { grid-row: 2; grid-column: 1; display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.sheet-dot {
  width: 12px; height: 12px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid var(--brass, #d9b36a); background: transparent; transition: background .3s ease, transform .3s ease;
}
.sheet-dot:hover { transform: scale(1.15); }
.sheet-dot[aria-pressed="true"] { background: var(--brass, #d9b36a); }
.sheet-dot:focus-visible { outline: 2px solid var(--brass, #d9b36a); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .sheet-dot { transition: none; } }
.sheet-note { font-style: italic; color: var(--ink) !important; border-left: 2px solid var(--brass, #d9b36a); padding-left: 10px; }
