/* Ullr Precision Style C. Tokens live in theme/ullr-theme.css. No JavaScript. */

/* ---------- Dark base (overrides theme cream page) ---------- */
body.up {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--up-iron);
  color: var(--up-cream);
}
body.up > main { flex: 1 0 auto; }
body.up a { color: var(--up-wood); }
body.up a:hover { text-decoration-thickness: 2px; }

/* Microcopy: dry, sparse, hover-free */
.cs-micro {
  margin: 10px 0 0;
  font-family: var(--up-font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--up-sage-muted);
}
.pg-micro {
  margin: 12px 0 0;
  font-family: var(--up-font-mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--up-sage-muted);
}

/* ---------- Header: dark instrument bar ---------- */
.up-header, .cs-header {
  background: var(--up-iron) !important;
  border-bottom: 1px solid rgba(168, 120, 56, .55) !important;
}
.cs-header .up-wrap { padding-top: 10px; padding-bottom: 10px; }
.cs-brand { flex-direction: row !important; align-items: center; gap: 12px; }
.cs-brand .up-logo { width: 34px; filter: drop-shadow(0 0 0 transparent); }
.cs-brand .cs-brand-name {
  font-family: var(--up-font-display);
  font-size: 1.9rem !important;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1;
  color: var(--up-cream) !important;
}
.up-header .up-brand { color: var(--up-cream) !important; }
.cs-nav a {
  font-size: 1rem !important;
  color: var(--up-cream) !important;
  border-bottom-color: transparent;
}
.cs-nav a:hover { border-bottom-color: var(--up-amber) !important; }
.cs-nav a[aria-current="page"] {
  border-bottom-color: var(--up-amber) !important;
  font-weight: 600;
  color: var(--up-cream) !important;
}

/* ---------- Decorative scale + aim mark (aria-hidden in HTML) ---------- */
.cs-deco {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.cs-scale {
  position: absolute;
  display: flex;
  gap: 0;
  color: var(--up-amber);
  opacity: .55;
}
.cs-scale--top {
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: min(520px, 70vw);
  height: 14px;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid rgba(168, 120, 56, .7);
}
.cs-scale--top span {
  display: block; width: 1px; background: currentColor;
}
.cs-scale--top span:nth-child(5n+1) { height: 12px; }
.cs-scale--top span:not(:nth-child(5n+1)) { height: 6px; }

/* ---------- Hero: bold, oversized, dark ---------- */
.cs-hero {
  position: relative;
  min-height: min(92vh, 920px);
  display: grid; align-items: center;
  padding: 72px 0 80px;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(45, 46, 39, .95) 0%, var(--up-iron) 68%),
    var(--up-iron);
  border-bottom: 1px solid rgba(168, 120, 56, .35);
}
.cs-hero-inner {
  position: relative; z-index: 1;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.cs-shield {
  width: clamp(160px, 24vw, 260px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .55));
  margin-bottom: 28px;
}
.cs-company {
  font-family: var(--up-font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: .08em;
  line-height: 1.1;
  color: var(--up-cream);
  margin: 0;
}
.cs-wordmark {
  font-size: clamp(4.2rem, 13vw, 8.6rem);
  margin: 8px 0 0;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--up-cream);
  line-height: .95;
}
.cs-tm {
  font-size: .3em; vertical-align: super; margin-left: .06em;
  font-family: var(--up-font-body); font-weight: 400;
  color: var(--up-sage-muted);
}
.cs-rule {
  width: min(360px, 72%);
  height: 1px;
  background: rgba(168, 120, 56, .75);
  margin: 22px auto 24px;
  position: relative;
}
.cs-rule span {
  position: absolute; left: 50%; top: 50%;
  width: 9px; height: 9px;
  background: var(--up-amber);
  transform: translate(-50%, -50%) rotate(45deg);
}
.cs-line {
  font-family: var(--up-font-display);
  font-style: italic;
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  margin: 0 0 10px;
  color: var(--up-cream);
}
.cs-sub {
  text-wrap: balance;
  margin: 0;
  color: var(--up-sage-muted);
  font-size: 1.02rem;
  letter-spacing: .02em;
}

@media (prefers-reduced-motion: no-preference) {
  .cs-hero-inner > *:not(.cs-deco) { animation: cs-rise 1.1s var(--up-ease) both; }
  .cs-hero-inner > :nth-child(2) { animation-delay: .1s; }
  .cs-hero-inner > :nth-child(3) { animation-delay: .18s; }
  .cs-hero-inner > :nth-child(4) { animation-delay: .26s; }
  .cs-hero-inner > :nth-child(5) { animation-delay: .34s; }
  .cs-hero-inner > :nth-child(6) { animation-delay: .42s; }
  .cs-hero-inner > :nth-child(7) { animation-delay: .5s; }
  .cs-hero-inner > :nth-child(8) { animation-delay: .58s; }
  @keyframes cs-rise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- How we do it: instrument dials / big numbers ---------- */
.cs-beats {
  background: var(--up-olive-black);
  color: var(--up-cream);
  padding: 72px 0 76px;
  border-top: 1px solid rgba(168, 120, 56, .4);
  border-bottom: 1px solid rgba(168, 120, 56, .4);
}
.cs-beats .up-eyebrow,
.cs-beats-title {
  color: var(--up-sage-muted) !important;
  margin: 0 0 12px;
  text-align: center;
  font-weight: 500;
}
.cs-beats .cs-micro { margin: 0 0 36px; text-align: center; }
.cs-beat-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.cs-beat-list li {
  padding: 12px 28px 8px;
  text-align: center;
  border-left: 1px solid rgba(168, 120, 56, .35);
  position: relative;
}
.cs-beat-list li:first-child { border-left: 0; }
.cs-num {
  display: block;
  font-family: var(--up-font-mono);
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
  color: var(--up-amber);
  margin-bottom: 16px;
}
.cs-beat-list p {
  margin: 0;
  font-family: var(--up-font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
  color: var(--up-cream);
}

/* ---------- Tin teaser ---------- */
.cs-eye {
  height: clamp(240px, 30vw, 400px);
  background:
    linear-gradient(180deg, rgba(26,26,25,.55) 0%, rgba(26,26,25,0) 30%, rgba(26,26,25,0) 62%, var(--up-iron) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(26,26,25,0) 35%, rgba(26,26,25,.85) 100%),
    url("theme/img/wolf-eye-dark.webp") center 47% / cover no-repeat,
    var(--up-iron);
  border-top: 1px solid rgba(168, 120, 56, .25);
}
.cs-tin {
  position: relative;
  color: var(--up-cream);
  padding: 40px 0 88px;
  background: var(--up-iron);
}
.cs-tin-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cs-tin-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0 0 8px;
  font-weight: 500;
  color: var(--up-cream);
}
.cs-tin .cs-micro { margin: 0 0 28px; }
.cs-lid-fig { margin: 0; display: flex; flex-direction: column; align-items: center; }
.cs-lid-img {
  width: min(460px, 86vw); height: auto; border-radius: 50%;
  box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(168, 120, 56, .25);
}
.cs-lid-cap {
  margin-top: 22px;
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--up-sage-muted);
}
.cs-tin .up-review { margin-top: 12px; }

/* ---------- Footer ---------- */
.cs-footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap;
}
.cs-footer-inner p { margin: 0; }
.up-footer {
  border-top: 1px solid rgba(168, 120, 56, .4);
  background: #121211;
}
.up-footer-disclosure {
  flex: 1 0 100%;
  margin: 16px 0 0;
  max-width: 72ch;
  color: var(--up-cream);
  font-size: 1rem;
  line-height: 1.5;
}
.cs-footnav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; }
.cs-footnav a { color: var(--up-wood); text-decoration: none; }
.cs-footnav a:hover { text-decoration: underline; }

/* ---------- Inner page heroes ---------- */
.pg-hero {
  position: relative;
  padding: 64px 0 56px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(45, 46, 39, .9) 0%, var(--up-iron) 70%),
    var(--up-iron);
  border-bottom: 1px solid rgba(168, 120, 56, .35);
}
.pg-hero-inner {
  position: relative; z-index: 1;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.pg-num {
  display: block;
  font-family: var(--up-font-mono);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 500;
  letter-spacing: .08em;
  color: rgba(168, 120, 56, .45);
  line-height: 1;
  margin-bottom: 4px;
}
.pg-title {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  margin: 0;
  font-weight: 500;
  color: var(--up-cream);
}
.pg-intro {
  max-width: 640px;
  margin: 8px 0 0;
  font-size: 1.05rem;
  text-wrap: pretty;
  color: var(--up-sage-muted);
}
.pg-body { padding: 28px 0 72px; background: var(--up-iron); }

/* R&D list */
.rd-status {
  margin: 0 0 6px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--up-sage-muted);
}
.rd-list, .ar-grid { list-style: none; margin: 0 auto; padding: 0; }
.rd-list { max-width: 720px; }
.rd-item {
  padding: 30px 0;
  border-top: 1px solid rgba(168, 120, 56, .28);
}
.rd-item:first-child { border-top: 0; }
.rd-item h2, .ar-card h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--up-cream);
}
.rd-item p { margin: 0; color: var(--up-cream); }
.rd-item p + p, .rd-item .up-review + p { margin-top: 12px; }
.rd-item .up-review { margin-top: 6px; }
.pg-wont-text {
  max-width: 720px; margin: 0 auto; text-align: center;
  font-family: var(--up-font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 600; line-height: 1.3; text-wrap: balance;
  color: var(--up-cream);
}

/* Article cards */
.ar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 880px;
  margin-top: 16px;
}
.ar-card {
  background: var(--up-olive-black);
  border: 1px solid rgba(168, 120, 56, .3);
  border-top: 3px solid var(--up-amber);
  border-radius: var(--up-radius);
  padding: 22px 24px 26px;
}
.ar-card h2 { margin: 0; text-wrap: balance; }
.ar-card h2 a { color: inherit; text-decoration: none; }
.ar-card h2 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--up-amber);
}
.ar-card-desc {
  margin: 10px 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--up-sage-muted);
}
.ar-draft-flag {
  margin: 4px 0 0;
  display: inline-block;
  border: 1px solid var(--up-amber);
  color: var(--up-sage-muted);
  border-radius: var(--up-radius);
  padding: 3px 10px;
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.pg-body .ar-grid + .up-review { display: none; }

/* ---------- Reading panel: cream on dark for long text ---------- */
.ar-page {
  max-width: 760px;
  background: var(--up-cream);
  color: var(--up-olive-black);
  border: 1px solid rgba(168, 120, 56, .35);
  border-radius: var(--up-radius);
  padding: 36px 40px 44px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .35);
}
.ar-page a { color: var(--up-amber-ink); }
.ar-page > .up-review { margin: 0 6px 6px 0; }
.ar-lede { margin: 18px 0 0; font-size: 1.08rem; }
.ar-sources { margin: 24px 0 0; font-size: .88rem; color: var(--up-sage-ink); }
.ar-text p, .ar-text li {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--up-olive-black);
}
.ar-text h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin: 34px 0 8px;
  text-wrap: pretty;
  color: var(--up-olive-black);
  border-bottom: 1px solid rgba(168, 120, 56, .35);
  padding-bottom: 6px;
}
.ar-text ol, .ar-text ul { padding-left: 1.4em; }
.ar-text .ar-sources li { font-size: .88rem; line-height: 1.45; color: var(--up-sage-ink); }
.ar-teaser {
  margin: 18px 0 0;
  padding: 14px 18px;
  background: var(--up-cream-light);
  border: 1px solid rgba(139, 150, 120, .45);
  border-left: 3px solid var(--up-sage);
  border-radius: var(--up-radius);
}
.ar-back { margin: 28px 0 0; }
.ar-outline { margin: 18px 0 0; padding-left: 1.4em; }
.ar-outline li { padding: 18px 0; border-top: 1px solid rgba(170, 171, 147, .55); }
.ar-outline li:first-child { border-top: 0; }
.ar-outline li::marker { font-family: var(--up-font-mono); color: var(--up-sage-ink); }
.ar-outline h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 0 0 6px; text-wrap: pretty; }
.ar-draft-body { margin: 0; font-style: italic; color: var(--up-sage-ink); }

/* About bodies use ar-page when present; ab-body fallback */
.ab-body {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  padding: 28px 32px 36px;
  background: var(--up-cream);
  color: var(--up-olive-black);
  border: 1px solid rgba(168, 120, 56, .35);
  border-radius: var(--up-radius);
}
.ab-body p { margin: 18px 0 0; }
.ab-body .up-review { margin-top: 4px; }
.ab-motto { font-family: var(--up-font-display); font-size: 1.6rem; }

/* Targets */
.tg-print {
  max-width: 720px; margin: 0 auto 30px; padding: 20px 24px;
  border: 1px solid rgba(168, 120, 56, .35);
  border-left: 3px solid var(--up-amber);
  background: var(--up-olive-black);
  border-radius: var(--up-radius);
  color: var(--up-cream);
}
.tg-print h2 { font-size: 1.5rem; margin: 0 0 8px; color: var(--up-cream); }
.tg-print p { margin: 0 0 8px; color: var(--up-cream); }
.tg-grid {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px;
}
.tg-card {
  background: var(--up-olive-black);
  border: 1px solid rgba(168, 120, 56, .3);
  border-top: 3px solid var(--up-amber);
  border-radius: var(--up-radius);
  padding: 18px 20px 20px;
  display: flex; flex-direction: column;
  color: var(--up-cream);
}
.tg-card h2 { font-size: 1.5rem; margin: 0 0 8px; color: var(--up-cream); }
.tg-card p { margin: 0 0 8px; font-size: .95rem; color: var(--up-cream); }
.tg-card .tg-meta, .tg-card .tg-link {
  font-size: .75rem; color: var(--up-sage-muted); margin: 0;
}
.tg-card .tg-meta { margin-top: auto; padding-top: 6px; }
.pg-body .tg-grid + .up-review { display: none; }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .cs-hero { min-height: auto; padding: 48px 0 56px; }
  .cs-shield { width: clamp(140px, 42vw, 200px); }
  .cs-beat-list { grid-template-columns: 1fr; gap: 0; }
  .cs-beat-list li {
    border-left: 0;
    border-top: 1px solid rgba(168, 120, 56, .35);
    padding: 22px 8px;
  }
  .cs-beat-list li:first-child { border-top: 0; }
  .cs-eye { height: 240px; }
  .cs-tin { padding: 28px 0 64px; }
  .cs-footer-inner { flex-direction: column; align-items: flex-start; }
  .cs-header .up-wrap { justify-content: center; gap: 8px 14px; }
  .cs-brand .up-logo { width: 30px; }
  .cs-brand .cs-brand-name { font-size: 1.75rem !important; }
  .cs-nav {
    margin-left: 0 !important;
    flex-basis: 100%;
    justify-content: center;
    gap: 6px 14px !important;
    flex-wrap: wrap;
    border-top: 1px solid rgba(168, 120, 56, .35);
    padding-top: 6px;
  }
  .cs-nav a { font-size: .9rem !important; }
  .pg-hero { padding: 44px 0 40px; }
  .ar-grid { grid-template-columns: 1fr; }
  .pg-body { padding-bottom: 56px; }
  .ar-page { padding: 24px 18px 32px; }
  .cs-footnav { gap: 6px 16px; }
}

/* =====================================================================
   Style C overrides
   ===================================================================== */
:root { --c-base: #2D2E27; --c-band: #25261F; --c-deep: #202019;
  --c-grid-fine: rgba(229,219,199,.035); --c-grid-major: rgba(229,219,199,.07); }

/* Lighter dark base with subtle 8 mm / 40 mm graph-paper lines */
body.up {
  background-color: var(--c-base);
  background-image:
    linear-gradient(var(--c-grid-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid-fine) 1px, transparent 1px),
    linear-gradient(var(--c-grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid-major) 1px, transparent 1px);
  background-size: 8px 8px, 8px 8px, 40px 40px, 40px 40px;
  padding-left: 22px; padding-right: 18px;
  overflow-x: clip;
}
/* A's mm rulers on the page edges (fixed, so they never widen the page) */
body.up::before, body.up::after { content: ""; position: fixed; top: 0; bottom: 0; z-index: 8; pointer-events: none; }
body.up::before {
  left: 0; width: 18px;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 9px, rgba(229,219,199,.35) 9px, rgba(229,219,199,.35) 10px),
    repeating-linear-gradient(to bottom, transparent 0, transparent 49px, rgba(168,120,56,.85) 49px, rgba(168,120,56,.85) 50px),
    linear-gradient(90deg, #3A3B32 0, #3A3B32 14px, transparent 14px);
  border-right: 1px solid rgba(168,120,56,.35);
}
body.up::after {
  right: 0; width: 14px;
  background:
    repeating-linear-gradient(to bottom, transparent 0, transparent 9px, rgba(229,219,199,.25) 9px, rgba(229,219,199,.25) 10px),
    linear-gradient(270deg, #3A3B32 0, #3A3B32 11px, transparent 11px);
  border-left: 1px solid rgba(168,120,56,.25);
}

.up-header, .cs-header { background: var(--c-deep) !important; }
.cs-hero {
  background: radial-gradient(ellipse at 50% 38%, rgba(198,174,147,.10) 0%, rgba(45,46,39,0) 60%);
  min-height: min(84vh, 820px);
}
.pg-hero { background: radial-gradient(ellipse at 50% 0%, rgba(198,174,147,.08) 0%, rgba(45,46,39,0) 70%); }
.pg-body, .cs-tin { background: transparent; }
.cs-beats { background-color: var(--c-band); }
.cs-eye {
  background:
    linear-gradient(180deg, rgba(45,46,39,.55) 0%, rgba(45,46,39,0) 30%, rgba(45,46,39,0) 62%, var(--c-base) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(45,46,39,0) 35%, rgba(45,46,39,.85) 100%),
    url("theme/img/wolf-eye-dark.webp") center 47% / cover no-repeat,
    var(--c-base);
}
.up-footer { background: var(--c-deep); }
.ar-card, .tg-card, .tg-print { background: var(--c-band); }

/* A's shield and rune treatment: the wooden shield at A's size, soft shadow, no overlay marks */
.cs-shield { width: clamp(120px, 18vw, 180px); filter: drop-shadow(0 14px 18px rgba(0,0,0,.35)); margin-bottom: 26px; }
.cs-wordmark--company { font-size: clamp(3.2rem, 10vw, 7rem); }
.cs-motto { margin: 0 0 12px; font-family: var(--up-font-display); font-size: clamp(1.2rem, 2.4vw, 1.5rem); color: var(--up-wood); letter-spacing: .06em; }

/* A's slanted notes and stamp flags, recoloured for the dark base */
.nb-note {
  font-family: var(--up-font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem); line-height: 1.25;
  color: var(--up-wood); transform: rotate(-1.2deg); display: inline-block;
  margin: 18px 0 0; max-width: 28ch; text-wrap: balance;
}
.pg-hero .nb-note { margin-top: 12px; }
.nb-stamp {
  display: inline-block; padding: 6px 12px 5px;
  border: 2px solid var(--up-amber); border-radius: 3px;
  font-family: var(--up-font-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--up-wood);
  transform: rotate(-2.5deg);
}
.ar-draft-flag { border-width: 2px; color: var(--up-wood); transform: rotate(-1.8deg); border-radius: 2px; }

/* Our first product card */
.cs-first { padding: 24px 0 88px; }
.cs-first-inner { display: flex; justify-content: center; }
.cs-first-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  min-width: min(340px, 100%); padding: 26px 32px 28px;
  background: var(--c-band); border: 1px solid rgba(168,120,56,.35); border-top: 3px solid var(--up-amber);
  border-radius: var(--up-radius); text-decoration: none; color: var(--up-cream) !important;
}
.cs-first-card:hover .cs-first-name { text-decoration: underline; text-decoration-color: var(--up-amber); }
.cs-first-name { font-family: var(--up-font-display); font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 500; line-height: 1; margin-top: 8px; }
.cs-first-desc { font-family: var(--up-font-mono); font-size: .85rem; letter-spacing: .08em; color: var(--up-sage-muted); }

/* AeroFlare page */
.af-hero .cs-wordmark { margin-top: 0; }
.af-by { margin: 10px 0 0; font-family: var(--up-font-display); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--up-wood); }
.af-hero .pg-intro { color: var(--up-cream); }
.cs-tin { padding: 24px 0 40px; }
.af-text { text-align: center; }
.af-links { margin-top: 18px; }

@media (max-width: 720px) {
  body.up { padding-left: 12px; padding-right: 10px; }
  body.up::before { width: 10px; }
  body.up::after { width: 8px; }
  .cs-shield { width: clamp(120px, 36vw, 160px); }
  .cs-first { padding-bottom: 64px; }
}
body.up .ar-page a { color: var(--up-amber-ink); }
.cs-beats .up-review { display: none; }
/* Rulers run the full page height (absolute inside body, never wider than it) */
body.up { position: relative; }
body.up::before, body.up::after { position: absolute; }

/* Footer motto: readable on the dark footer (wood on #202019 ≈ 8:1) */
.up-footer .up-footer-legal { margin-top: 6px; }
.up-footer .up-footer-legal em {
  font-family: var(--up-font-display); font-style: italic; font-weight: 500;
  font-size: 1.45rem; line-height: 1.2; letter-spacing: .04em; color: var(--up-wood);
}
@media (max-width: 720px) { .up-footer .up-footer-legal em { font-size: 1.3rem; } }

/* Target sheet previews and download links, inside the existing cards. */
.tg-shot { width: 100%; height: auto; margin: 0 0 12px; background: #fff; border: 1px solid rgba(168, 120, 56, .35); }
.tg-files, .tg-packs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; }
.tg-files a, .tg-packs a { font-family: var(--up-font-mono); font-size: .75rem; letter-spacing: .02em; }
.tg-packs { margin: 0 auto 22px; max-width: 720px; }
