/* =============================================================
   LUWIPRESS RUBY — DESIGN TOKENS + CORE CHROME
   Ported from the Claude Design Ruby handoff bundle.
   Editorial-magazine sister to Gold + Emerald. Dark-first noir
   surface + ruby jewel palette, Italiana display, Cormorant body,
   Bodoni Moda serif-display, JetBrains Mono eyebrows.
   Single source of truth for tokens, typography, buttons, header,
   footer, hero, sections, cards, motion, drawer.
   ============================================================= */
:root {
  /* Ruby jewel palette — operator can override --primary via Customizer.
     #E0115F ruby / #9B0E3C ruby-deep / #F8C8D5 ruby-soft. */
  --ruby:           #E0115F;
  --ruby-deep:      #9B0E3C;
  --ruby-soft:      #F8C8D5;
  --ruby-glow:      rgba(224, 17, 95, 0.55);

  --noir:           #0a0a0a;
  --noir-2:         #141014;
  --noir-3:         #1c171b;
  --ink-line:       rgba(245, 230, 232, 0.12);
  --ink-line-2:     rgba(245, 230, 232, 0.06);

  --cream:          #F5E6E8;
  --cream-soft:     #d9c8cb;
  --cream-muted:    rgba(245, 230, 232, 0.55);
  --cream-dim:      rgba(245, 230, 232, 0.35);

  /* Theme resolution — dark-first surfaces. The Customizer flips
     these via :root.theme-light (and back) without losing tokens. */
  --primary:        var(--ruby);
  --primary-hover:  var(--ruby-deep);
  --primary-soft:   var(--ruby-soft);
  --accent:         #8a7a82;
  --accent-soft:    rgba(245, 230, 232, 0.06);
  --ink:            var(--cream);
  --ink-soft:       var(--cream-soft);
  --muted:          var(--cream-muted);
  --dim:            var(--cream-dim);
  --bg:             var(--noir);
  --bg-alt:         var(--noir-2);
  --card:           var(--noir-3);
  --line:           var(--ink-line);
  --line-soft:      var(--ink-line-2);
  --success:        #0D9F6E;
  --warning:        #E0A030;
  --sale:           var(--ruby);
  --info:           #6BA8C8;

  /* Gold-fork compat aliases. The token-converted widgets.css + woo-overrides.css
     (ported from the shared Gold source) reference these legacy token names. Point
     them at Ruby's noir/ruby equivalents so the ported CSS renders on-brand instead
     of falling through to Gold's inline var() defaults. */
  --primary-light:  var(--ruby-soft);   /* bright accent tier (was Gold #D4AF37 gold) */
  --primary-dark:   var(--ruby-deep);   /* deep accent tier   (was Gold #574500)      */
  --line-light:     var(--line-soft);
  --content-w:      var(--container);    /* Ruby's 1440 container, not Gold's 1372     */
  --radius-card:    var(--radius-sm);    /* editorial-sharp 2px, not Gold's 8px        */

  /* Editorial-luxe type stack. Italiana for hero / giant numerals,
     Cormorant Garamond for body, Bodoni Moda for secondary display,
     JetBrains Mono for eyebrows + ledger numerics. */
  --serif:         'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --serif-display: 'Bodoni Moda', 'Didot', 'Cormorant Garamond', serif;
  --display:       'Italiana', 'Bodoni Moda', 'Didot', serif;
  --sans:          'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --mono:          'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px; --sp-5: 20px;
  --sp-6: 24px; --sp-8: 32px; --sp-10:40px; --sp-12:48px; --sp-16:64px;
  --sp-20:80px; --sp-24:96px; --sp-32:128px;

  /* Editorial-sharp by default — 2px radius. Pills stay round. */
  --radius-sm: 2px; --radius-md: 6px; --radius-lg: 12px; --radius-pill: 999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px -2px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 40px -10px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 28px 64px -16px rgba(0, 0, 0, 0.7);
  --shadow-ruby: 0 12px 40px -10px var(--ruby-glow);

  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:     cubic-bezier(0.16, 0.84, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.7, 0, 0.3, 1);
  --t-fast:       160ms;
  --t-med:        320ms;
  --t-slow:       680ms;
  --anim-intensity: 1;

  --container: 1440px;
  --gutter:    32px;
  --gutter-lg: 64px;

  --surface:      var(--bg);
  --surface-alt:  var(--bg-alt);
  --border:       var(--line);
  --border-soft:  var(--line-soft);
  --ff-sans:      var(--serif);
  --ff-display:   var(--display);
  --ff-mono:      var(--mono);
  --r-1:          var(--radius-sm);
  --r-2:          var(--radius-md);
  --r-3:          var(--radius-lg);
  --r-pill:       var(--radius-pill);
  --sh-1:         var(--shadow-sm);
  --sh-2:         var(--shadow-md);
  --sh-3:         var(--shadow-lg);
  --primary-on:   #FFFFFF;
  --subtle:       var(--cream-dim);
  --danger:       var(--sale);
  --dur-sm:       160ms;
  --dur-md:       220ms;
  --dur-lg:       320ms;
}

/* Light-mode flip — color roles only. Type + geometry stay identical. */
:root.theme-light,
[data-theme="light"] {
  --bg:        #FBFBFB;
  --bg-alt:    #F2EFEF;
  --card:      #FFFFFF;
  --ink:       #15080D;
  --ink-soft:  #2C1A20;
  --muted:     rgba(20, 8, 13, 0.6);
  --dim:       rgba(20, 8, 13, 0.4);
  --line:      rgba(20, 8, 13, 0.12);
  --line-soft: rgba(20, 8, 13, 0.06);
  --shadow-sm: 0 1px 2px 0 rgba(20, 8, 13, 0.06);
  --shadow-md: 0 4px 14px -2px rgba(20, 8, 13, 0.08);
  --shadow-lg: 0 18px 40px -10px rgba(20, 8, 13, 0.12);
  --shadow-xl: 0 28px 64px -16px rgba(20, 8, 13, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "liga", "kern";
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: 0; padding: 0; }
a { color: var(--primary); text-decoration: none; }
.ruby-link { color: var(--ink); border-bottom: 1px solid var(--accent-soft); transition: border-color 150ms var(--ease-out); }
.ruby-link:hover { border-bottom-color: var(--accent); }

/* =============================================================
   TYPE
   ============================================================= */
.ruby-display-xl { font-family: var(--display); font-size: clamp(40px, 4.5vw, 64px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
.ruby-display-l  { font-family: var(--display); font-size: clamp(32px, 3.5vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
.ruby-h2         { font-size: 32px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
.ruby-h3         { font-size: 22px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.25; margin: 0; }
.ruby-body-l     { font-size: 18px; font-weight: 400; line-height: 1.55; margin: 0; color: var(--ink-soft); }
.ruby-body       { font-size: 16px; font-weight: 400; line-height: 1.55; margin: 0; }
.ruby-body-s     { font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.ruby-eyebrow,
.ruby-section-eyebrow {
  font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  text-transform: none; color: var(--primary); margin: 0;
}
.ruby-caption { font-size: 12px; font-weight: 400; letter-spacing: 0.02em; color: var(--muted); }

/* =============================================================
   BUTTONS
   ============================================================= */
.ruby-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  height: 40px; padding: 0 var(--sp-5);
  font-family: var(--sans); font-size: 14px; font-weight: 500; line-height: 1;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer; user-select: none;
  transition: background-color 220ms var(--ease-out), color 220ms var(--ease-out),
              border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out),
              transform 100ms var(--ease-out);
  white-space: nowrap;
}
.ruby-btn:active { transform: scale(0.97); }
.ruby-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ruby-btn--primary   { background: var(--primary); color: #fff; }
.ruby-btn--primary:hover { background: var(--primary-hover); }
.ruby-btn--secondary { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.ruby-btn--secondary:hover { background: var(--bg-alt); box-shadow: inset 0 0 0 1px var(--accent); }
.ruby-btn--ghost { background: transparent; color: var(--ink-soft); }
.ruby-btn--ghost:hover { background: var(--bg-alt); color: var(--ink); }
.ruby-btn--inverse { background: #fff; color: var(--ink); }
.ruby-btn--inverse:hover { background: var(--bg-alt); }
.ruby-btn--lg { height: 48px; padding: 0 var(--sp-6); font-size: 15px; }
.ruby-btn--sm { height: 32px; padding: 0 var(--sp-3); font-size: 13px; }
.ruby-btn--block { width: 100%; }
.ruby-btn--icon { width: 40px; padding: 0; }

/* =============================================================
   ICONS — inline monoline, 1.5 stroke
   ============================================================= */
.ruby-i { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ruby-i--sm { width: 14px; height: 14px; }

/* =============================================================
   TOPBAR
   ============================================================= */
.ruby-topbar {
  background: var(--noir, #0a0a0a); color: var(--cream-soft, #d9c8cb);
  font-size: 12px; font-weight: 500;
  font-family: var(--mono);
  letter-spacing: 0.08em;
}
.ruby-topbar-inner {
  max-width: var(--container);
  margin: 0 auto; padding: 0 var(--sp-10);
  height: 36px;
  display: flex; align-items: center; justify-content: space-between;
}
.ruby-topbar-left, .ruby-topbar-right { display: flex; align-items: center; gap: var(--sp-5); }
.ruby-topbar a { color: #CBD5E1; transition: color 150ms var(--ease-out); display: inline-flex; align-items: center; gap: 6px; }
.ruby-topbar a:hover { color: #fff; }
.ruby-topbar-sep { width: 1px; height: 14px; background: rgba(255,255,255,0.12); }
.ruby-lang-pill { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-pill); }
.ruby-lang-pill a,
.ruby-lang-pill button { padding: 2px 8px; font-size: 11px; font-weight: 500; color: #94A3B8; border-radius: var(--radius-pill); transition: all 150ms var(--ease-out); }
.ruby-lang-pill a:hover,
.ruby-lang-pill button:hover { color: #fff; }
.ruby-lang-pill a[aria-current="true"],
.ruby-lang-pill button[aria-pressed="true"] { background: #fff; color: var(--ink); }
@media (max-width: 720px) {
  .ruby-topbar-left, .ruby-topbar-right > *:not(.ruby-lang-pill) { display: none; }
  .ruby-topbar-inner { justify-content: flex-end; padding: 0 var(--sp-5); }
}

/* =============================================================
   HEADER (sticky)
   ============================================================= */
.ruby-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 220ms var(--ease-out), background-color 220ms var(--ease-out);
}
.ruby-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  /* Theme-aware: follows the active surface (noir in dark-first default,
     cream if the light-mode flip is enabled) instead of a hardcoded white
     that turned invisible under the dark-first cream nav. */
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
}
.ruby-header-inner {
  max-width: var(--container);
  margin: 0 auto; padding: 0 var(--sp-10);
  height: 72px;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: var(--sp-8);
  transition: height 220ms var(--ease-out);
}
.ruby-header.is-scrolled .ruby-header-inner { height: 68px; }
.ruby-logo { display: inline-flex; align-items: center; gap: var(--sp-3); color: var(--ink); }
.ruby-logo-mark {
  width: 28px; height: 28px; border-radius: var(--radius-md);
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px; letter-spacing: -0.02em;
}
.ruby-logo-word { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.ruby-mainnav { display: flex; justify-content: center; gap: var(--sp-2); }
.ruby-mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-2); }
.ruby-mainnav a {
  position: relative;
  padding: var(--sp-3) var(--sp-4);
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  border-radius: var(--radius-sm);
  transition: color 150ms var(--ease-out);
}
.ruby-mainnav a::after {
  content: ""; position: absolute; left: var(--sp-4); right: var(--sp-4); bottom: 8px;
  height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left;
  transition: transform 280ms var(--ease-out);
}
.ruby-mainnav a:hover { color: var(--ink); }
.ruby-mainnav a:hover::after { transform: scaleX(1); }
.ruby-mainnav a[aria-current="page"],
.ruby-mainnav li.current-menu-item > a,
.ruby-mainnav li.current_page_item > a { color: var(--primary); }
.ruby-mainnav a[aria-current="page"]::after,
.ruby-mainnav li.current-menu-item > a::after,
.ruby-mainnav li.current_page_item > a::after { transform: scaleX(1); }
.ruby-header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.ruby-icon-btn {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  color: var(--ink); border-radius: var(--radius-md);
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out);
  position: relative;
}
.ruby-icon-btn:hover { background: var(--bg-alt); }
.ruby-cart-count {
  position: absolute; top: 6px; right: 6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--primary); color: #fff;
  font-size: 10px; font-weight: 600; line-height: 16px;
  text-align: center;
  font-family: var(--mono);
}
.ruby-hamburger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--ink); border-radius: var(--radius-md);
  transition: background-color 150ms var(--ease-out);
}
.ruby-hamburger:hover { background: var(--bg-alt); }
@media (max-width: 900px) {
  .ruby-mainnav { display: none; }
  .ruby-header-cta { display: none; }
  .ruby-hamburger { display: inline-grid; }
  .ruby-header-inner { grid-template-columns: auto 1fr auto; padding: 0 var(--sp-5); gap: var(--sp-3); }
}

/* =============================================================
   FOOTER
   ============================================================= */
.ruby-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-top: var(--sp-20);
}
.ruby-footer-inner {
  max-width: var(--container);
  margin: 0 auto; padding: 0 var(--sp-10);
}
.ruby-footer-cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-10);
  padding-bottom: var(--sp-16);
}
.ruby-footer-col h4 { font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 var(--sp-4); letter-spacing: 0.01em; }
.ruby-footer-links { display: flex; flex-direction: column; gap: var(--sp-2); list-style: none; padding: 0; margin: 0; }
.ruby-footer-links a { font-size: 14px; color: var(--ink-soft); transition: color 150ms var(--ease-out); }
.ruby-footer-links a:hover { color: var(--ink); }
.ruby-footer-brand { display: flex; flex-direction: column; gap: var(--sp-4); }
.ruby-footer-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.55; max-width: 320px; }
.ruby-footer-social { display: flex; gap: var(--sp-2); }
.ruby-footer-social a {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius-md);
  color: var(--ink-soft);
  transition: border-color 150ms var(--ease-out), color 150ms var(--ease-out), background-color 150ms var(--ease-out);
}
.ruby-footer-social a:hover { color: var(--primary); border-color: var(--primary); background: var(--bg); }
.ruby-news-form { display: flex; gap: var(--sp-2); margin-top: var(--sp-1); }
.ruby-news-form input {
  flex: 1; min-width: 0;
  height: 40px; padding: 0 var(--sp-3);
  font: inherit; font-size: 14px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.ruby-news-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ruby-footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.ruby-footer-bottom-links { display: flex; gap: var(--sp-5); list-style: none; padding: 0; margin: 0; }
.ruby-footer-bottom-links a { color: var(--muted); transition: color 150ms var(--ease-out); }
.ruby-footer-bottom-links a:hover { color: var(--ink); }
.ruby-footer-stamp a.ruby-footer-credit { color: var(--muted); transition: color 150ms var(--ease-out); }
.ruby-footer-stamp a.ruby-footer-credit:hover { color: var(--primary); }
.ruby-footer-stamp { font-family: var(--mono); font-size: 12px; }
@media (max-width: 900px) {
  .ruby-footer-cols { grid-template-columns: 1fr 1fr; row-gap: var(--sp-12); }
  .ruby-footer-brand { grid-column: 1 / -1; }
  .ruby-footer-bottom { flex-direction: column; gap: var(--sp-3); align-items: flex-start; }
}

/* =============================================================
   SECTION SCAFFOLD
   ============================================================= */
.ruby-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-24) var(--sp-10);
}
.ruby-section--alt { background: var(--bg-alt); max-width: none; padding-left: 0; padding-right: 0; }
.ruby-section--alt > .ruby-section-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-10);
}
.ruby-section-head { display: flex; flex-direction: column; gap: var(--sp-3); margin-bottom: var(--sp-12); max-width: 720px; }
.ruby-section-head--center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
@media (max-width: 720px) {
  .ruby-section { padding: var(--sp-16) var(--sp-5); }
  .ruby-section--alt > .ruby-section-inner { padding: 0 var(--sp-5); }
}

/* =============================================================
   HERO
   ============================================================= */
.ruby-hero {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: var(--sp-16);
  align-items: center;
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-12);
  position: relative;
}
.ruby-hero::after {
  content: ""; position: absolute; left: 50%; top: 10%; bottom: 10%; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--accent-soft), transparent);
  pointer-events: none;
}
.ruby-hero-copy { display: flex; flex-direction: column; gap: var(--sp-5); }
.ruby-hero-cta { display: flex; gap: var(--sp-3); margin-top: var(--sp-3); flex-wrap: wrap; }
.ruby-hero-meta {
  display: flex; gap: var(--sp-8);
  padding-top: var(--sp-8); margin-top: var(--sp-6);
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.ruby-hero-stat { display: flex; flex-direction: column; gap: 4px; }
.ruby-hero-stat-num {
  font-family: var(--mono);
  font-size: 32px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.ruby-hero-stat-label { font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.ruby-hero-art {
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, var(--primary-soft) 0%, var(--bg) 60%),
    repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.ruby-hero-art::before {
  content: ""; position: absolute; inset: auto -10% -30% auto; width: 70%; height: 70%;
  background: radial-gradient(circle at 30% 30%, var(--primary) 0%, transparent 60%);
  opacity: 0.18; filter: blur(40px);
}
.ruby-hero-art-card {
  position: absolute; left: var(--sp-8); top: var(--sp-8);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--sp-4); width: 60%;
  box-shadow: var(--shadow-md);
  font-size: 13px; color: var(--ink-soft);
  display: flex; flex-direction: column; gap: 6px;
}
.ruby-hero-art-card-title { font-weight: 600; color: var(--ink); font-size: 14px; }
.ruby-hero-art-card-meta { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ruby-hero-art-card-bar { height: 4px; background: var(--line-soft); border-radius: var(--radius-pill); overflow: hidden; position: relative; }
.ruby-hero-art-card-bar::after { content: ""; position: absolute; inset: 0 35% 0 0; background: var(--primary); border-radius: var(--radius-pill); }
.ruby-hero-art-card--two {
  position: absolute; right: var(--sp-8); bottom: var(--sp-8); top: auto; left: auto;
  width: 55%; transform: rotate(0deg);
}

@media (max-width: 900px) {
  .ruby-hero { grid-template-columns: 1fr; gap: var(--sp-8); padding-top: var(--sp-12); }
  .ruby-hero::after { display: none; }
  .ruby-hero-art { order: -1; }
}

/* =============================================================
   INFO BAR
   ============================================================= */
.ruby-infobar { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ruby-infobar-inner {
  max-width: var(--container); margin: 0 auto; padding: var(--sp-10) var(--sp-10);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8);
}
.ruby-infobar-item { display: flex; gap: var(--sp-4); align-items: flex-start; }
.ruby-infobar-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center;
}
.ruby-infobar-title { font-size: 15px; font-weight: 600; color: var(--ink); margin: 0 0 2px; }
.ruby-infobar-desc { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.5; }
@media (max-width: 720px) { .ruby-infobar-inner { grid-template-columns: 1fr; padding: var(--sp-8) var(--sp-5); } }

/* =============================================================
   SERVICES GRID
   ============================================================= */
.ruby-svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5);
}
.ruby-svc-grid > :nth-child(1),
.ruby-svc-grid > :nth-child(2) { grid-column: span 1; }
.ruby-svc-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-3);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
  min-height: 320px;
}
.ruby-svc-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line); }
.ruby-svc-media {
  margin: calc(var(--sp-6) * -1) calc(var(--sp-6) * -1) 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background:
    linear-gradient(135deg, var(--primary-soft) 0%, var(--accent-soft) 100%),
    repeating-linear-gradient(0deg, transparent 0 24px, rgba(4,120,87,0.05) 24px 25px);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.ruby-svc-media::before {
  content: ""; position: absolute; inset: 20% auto auto 20%;
  width: 60%; height: 60%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 50%);
  opacity: 0.15; filter: blur(30px);
}
.ruby-svc-num {
  position: absolute; top: var(--sp-4); right: var(--sp-4);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  background: rgba(255,255,255,0.7); backdrop-filter: blur(4px);
  padding: 2px 8px; border-radius: var(--radius-pill);
}
.ruby-svc-eyebrow { font-size: 12px; color: var(--primary); font-weight: 500; }
.ruby-svc-title { font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
.ruby-svc-desc { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; flex: 1; }
.ruby-svc-foot { display: flex; align-items: center; justify-content: space-between; padding-top: var(--sp-3); border-top: 1px solid var(--line-soft); margin-top: var(--sp-2); }
.ruby-svc-arrow { color: var(--primary); display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; transition: transform 220ms var(--ease-out); }
.ruby-svc-card:hover .ruby-svc-arrow { transform: translateX(4px); }
.ruby-svc-card--wide { grid-column: span 1; }
@media (max-width: 960px) { .ruby-svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ruby-svc-grid { grid-template-columns: 1fr; } }

/* =============================================================
   PRODUCT GRID
   ============================================================= */
.ruby-prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.ruby-prod-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.ruby-prod-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ruby-prod-media {
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.ruby-prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.ruby-prod-media--grayscale img { filter: grayscale(1) contrast(0.95); }
.ruby-prod-card:hover .ruby-prod-media img { transform: scale(1.03); }
.ruby-prod-badge {
  position: absolute; top: var(--sp-3); left: var(--sp-3);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 11px; font-weight: 500; color: var(--ink-soft);
  font-family: var(--mono);
}
.ruby-prod-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.ruby-prod-eyebrow { font-size: 12px; color: var(--primary); font-weight: 500; }
.ruby-prod-title { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ink); margin: 0; }
.ruby-prod-desc { font-size: 13px; color: var(--ink-soft); margin: 0; line-height: 1.5; flex: 1; }
.ruby-prod-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--sp-3); margin-top: var(--sp-2);
  border-top: 1px solid var(--line-soft);
}
.ruby-prod-price { font-family: var(--mono); font-weight: 500; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .ruby-prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ruby-prod-grid { grid-template-columns: 1fr; } }

/* =============================================================
   TESTIMONIAL
   ============================================================= */
.ruby-quote-band { background: var(--bg-alt); }
.ruby-quote-inner {
  max-width: 900px; margin: 0 auto; padding: var(--sp-24) var(--sp-10);
  display: flex; flex-direction: column; gap: var(--sp-8); align-items: flex-start;
}
.ruby-quote-mark {
  font-family: var(--display); font-size: 80px; line-height: 0.5;
  color: var(--primary); opacity: 0.3;
  margin-bottom: var(--sp-4);
}
.ruby-quote-text {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}
.ruby-quote-attr { display: flex; align-items: center; gap: var(--sp-3); }
.ruby-quote-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--line); object-fit: cover; }
.ruby-quote-attr-text { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ruby-quote-attr-name { font-weight: 600; color: var(--ink); }
.ruby-quote-attr-role { color: var(--muted); font-size: 13px; }
.ruby-quote-logos {
  margin-top: var(--sp-8); padding-top: var(--sp-8);
  border-top: 1px solid var(--line);
  width: 100%;
  display: flex; gap: var(--sp-10); align-items: center;
  font-family: var(--display); color: var(--muted);
  flex-wrap: wrap;
}
.ruby-quote-logo { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; opacity: 0.6; transition: opacity 220ms var(--ease-out); }
.ruby-quote-logo:hover { opacity: 1; }

/* =============================================================
   INSIGHTS / JOURNAL CARDS
   ============================================================= */
.ruby-insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
.ruby-insight {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--line);
  transition: transform 220ms var(--ease-out);
}
.ruby-insight:hover { transform: translateY(-2px); }
.ruby-insight:hover .ruby-insight-title { color: var(--primary); }
.ruby-insight-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; gap: var(--sp-3); align-items: center; }
.ruby-insight-meta span:not(:last-child)::after { content: "·"; margin-left: var(--sp-3); color: var(--line); }
.ruby-insight-title { font-size: 20px; font-weight: 600; line-height: 1.25; margin: 0; color: var(--ink); transition: color 220ms var(--ease-out); }
.ruby-insight-title a { color: inherit; }
.ruby-insight-excerpt { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.ruby-insight-arrow { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--primary); font-weight: 500; margin-top: auto; padding-top: var(--sp-3); }
@media (max-width: 900px) { .ruby-insights-grid { grid-template-columns: 1fr; gap: 0; } }

/* =============================================================
   CTA BAND
   ============================================================= */
.ruby-ctaband {
  background: var(--noir, #0a0a0a); color: var(--cream, #F5E6E8);
  position: relative; overflow: hidden;
}
.ruby-ctaband::before {
  content: ""; position: absolute; inset: -50% -10% auto auto; width: 60%; height: 200%;
  background: radial-gradient(circle, var(--primary) 0%, transparent 50%);
  opacity: 0.4; filter: blur(80px);
  animation: ruby-sheen 8s ease-in-out infinite;
}
@keyframes ruby-sheen {
  0%, 100% { transform: translate(0,0); opacity: 0.4; }
  50%      { transform: translate(-10%, 5%); opacity: 0.55; }
}
.ruby-ctaband-inner {
  max-width: var(--container); margin: 0 auto; padding: var(--sp-20) var(--sp-10);
  display: grid; grid-template-columns: 1fr auto; gap: var(--sp-10); align-items: center;
  position: relative;
}
.ruby-ctaband-eyebrow { color: var(--ruby, #E0115F); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.ruby-ctaband-title { font-family: var(--display); font-size: clamp(40px, 5vw, 96px); font-weight: 400; line-height: 0.95; letter-spacing: -0.02em; margin: var(--sp-3) 0 var(--sp-3); color: var(--cream, #F5E6E8); }
.ruby-ctaband-sub { font-size: 17px; font-family: var(--serif); color: var(--cream-soft, #d9c8cb); margin: 0; }
@media (max-width: 720px) {
  .ruby-ctaband-inner { grid-template-columns: 1fr; }
}

/* =============================================================
   REVEAL ANIMATION
   ============================================================= */
.ruby-reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.ruby-reveal.is-revealed { opacity: 1; transform: none; }
.ruby-stagger > * { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.ruby-stagger.is-revealed > * { opacity: 1; transform: none; }
.ruby-stagger.is-revealed > *:nth-child(2) { transition-delay: 60ms; }
.ruby-stagger.is-revealed > *:nth-child(3) { transition-delay: 120ms; }
.ruby-stagger.is-revealed > *:nth-child(4) { transition-delay: 180ms; }
.ruby-stagger.is-revealed > *:nth-child(5) { transition-delay: 240ms; }
.ruby-stagger.is-revealed > *:nth-child(6) { transition-delay: 300ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .ruby-reveal, .ruby-stagger > * { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =============================================================
   CART DRAWER
   ============================================================= */
.ruby-drawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.ruby-drawer[aria-hidden="false"] { pointer-events: auto; }
.ruby-drawer-scrim {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
}
.ruby-drawer[aria-hidden="false"] .ruby-drawer-scrim { opacity: 1; }
.ruby-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 100vw;
  background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 400ms var(--ease-spring);
  box-shadow: var(--shadow-xl);
}
.ruby-drawer[aria-hidden="false"] .ruby-drawer-panel { transform: translateX(0); }
.ruby-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--line);
}
.ruby-drawer-head h3 { font-size: 17px; font-weight: 600; margin: 0; }
.ruby-drawer-body { flex: 1; overflow-y: auto; padding: var(--sp-4) var(--sp-6); }
.ruby-drawer-item { display: grid; grid-template-columns: 56px 1fr auto; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.ruby-drawer-item:last-child { border-bottom: 0; }
.ruby-drawer-thumb { width: 56px; height: 56px; border-radius: var(--radius-md); background: var(--bg-alt); object-fit: cover; }
.ruby-drawer-item-title { font-size: 14px; font-weight: 500; color: var(--ink); margin: 0 0 4px; line-height: 1.3; }
.ruby-drawer-item-sub { font-size: 12px; color: var(--muted); margin: 0 0 var(--sp-2); }
.ruby-drawer-qty {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px;
  background: var(--bg-alt); border-radius: var(--radius-pill); padding: 2px 4px;
}
.ruby-drawer-qty button { width: 22px; height: 22px; display: grid; place-items: center; color: var(--ink-soft); border-radius: 50%; transition: background-color 150ms var(--ease-out); }
.ruby-drawer-qty button:hover { background: var(--line); color: var(--ink); }
.ruby-drawer-qty-val { min-width: 16px; text-align: center; font-variant-numeric: tabular-nums; }
.ruby-drawer-item-price { font-family: var(--mono); font-size: 14px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.ruby-drawer-item-remove { color: var(--muted); transition: color 150ms var(--ease-out); display: block; margin-top: 4px; }
.ruby-drawer-item-remove:hover { color: var(--sale); }
.ruby-drawer-empty { padding: var(--sp-8) 0; text-align: center; color: var(--muted); font-size: 14px; }
.ruby-drawer-foot {
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--line);
  background: var(--bg);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.ruby-drawer-subtotal { display: flex; justify-content: space-between; font-size: 15px; font-weight: 500; }
.ruby-drawer-subtotal-val { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.ruby-drawer-actions { display: flex; flex-direction: column; gap: var(--sp-2); }
.ruby-drawer-microcopy { text-align: center; font-size: 12px; color: var(--muted); }

/* =============================================================
   MOBILE NAV DRAWER (left-side)
   ============================================================= */
.ruby-navdrawer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.ruby-navdrawer[aria-hidden="false"] { pointer-events: auto; }
.ruby-navdrawer-scrim {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.4);
  opacity: 0;
  transition: opacity 400ms var(--ease-out);
}
.ruby-navdrawer[aria-hidden="false"] .ruby-navdrawer-scrim { opacity: 1; }
.ruby-navdrawer-panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 320px; max-width: 92vw;
  background: var(--bg);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 400ms var(--ease-spring);
  box-shadow: var(--shadow-xl);
}
.ruby-navdrawer[aria-hidden="false"] .ruby-navdrawer-panel { transform: translateX(0); }
.ruby-navdrawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--line);
}
.ruby-navdrawer-body { flex: 1; overflow-y: auto; padding: var(--sp-4) var(--sp-6); }
.ruby-navdrawer-body ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.ruby-navdrawer-body a {
  display: block; padding: var(--sp-3) var(--sp-2);
  font-size: 15px; font-weight: 500; color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out);
}
.ruby-navdrawer-body a:hover { background: var(--bg-alt); color: var(--primary); }
.ruby-navdrawer-foot { padding: var(--sp-5) var(--sp-6); border-top: 1px solid var(--line); }

/* Counter — animated number */
.ruby-counter { display: inline-block; }

/* selection */
::selection { background: var(--primary-soft); color: var(--primary); }

/* =============================================================
   PAGE WRAPPER + CONTENT AREA
   ============================================================= */
.ruby-site { min-height: 100vh; display: flex; flex-direction: column; }
.ruby-main { flex: 1 1 auto; }
.ruby-content {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--sp-16) var(--sp-10);
}
.ruby-content h1 { font-family: var(--display); font-size: clamp(32px, 3.5vw, 48px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 var(--sp-5); color: var(--ink); }
.ruby-content h2 { font-size: 28px; font-weight: 600; line-height: 1.2; margin: var(--sp-10) 0 var(--sp-4); color: var(--ink); }
.ruby-content h3 { font-size: 22px; font-weight: 600; line-height: 1.25; margin: var(--sp-8) 0 var(--sp-3); color: var(--ink); }
.ruby-content p { margin: 0 0 var(--sp-4); font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.ruby-content a { color: var(--primary); border-bottom: 1px solid var(--primary-soft); transition: border-color 150ms var(--ease-out); }
.ruby-content a:hover { border-bottom-color: var(--primary); }
.ruby-content ul, .ruby-content ol { margin: 0 0 var(--sp-4); padding-left: var(--sp-6); color: var(--ink-soft); }
.ruby-content li { margin-bottom: var(--sp-2); line-height: 1.6; }
.ruby-content blockquote {
  margin: var(--sp-8) 0;
  padding: var(--sp-5) var(--sp-6);
  border-left: 3px solid var(--primary);
  background: var(--bg-alt);
  font-family: var(--display);
  font-size: 18px;
  font-style: italic;
  color: var(--ink);
}
.ruby-content figure { margin: var(--sp-8) 0; }
.ruby-content figure img { border-radius: var(--radius-lg); border: 1px solid var(--line); }
.ruby-content figcaption { margin-top: var(--sp-2); font-size: 13px; color: var(--muted); text-align: center; font-family: var(--mono); }
.ruby-content code { font-family: var(--mono); font-size: 14px; background: var(--bg-alt); padding: 2px 6px; border-radius: var(--radius-sm); color: var(--ink); }
.ruby-content pre { background: var(--ink); color: #E2E8F0; padding: var(--sp-5); border-radius: var(--radius-lg); overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.ruby-content pre code { background: transparent; padding: 0; color: inherit; }
.ruby-content hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-10) 0; }
.ruby-content img { border-radius: var(--radius-lg); }

@media (max-width: 720px) {
  .ruby-content { padding: var(--sp-10) var(--sp-5); }
  .ruby-content h1 { font-size: 32px; }
}

/* =============================================================
   PAGE HEADER (above content)
   ============================================================= */
.ruby-page-head {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-16) var(--sp-10) var(--sp-10);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.ruby-page-head .ruby-page-eyebrow {
  font-family: var(--mono); font-size: 12px;
  color: var(--muted); letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: var(--sp-2);
}
.ruby-page-head .ruby-page-title {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.08;
  color: var(--ink); margin: 0;
}
.ruby-page-head .ruby-page-sub {
  font-size: 18px; line-height: 1.5; color: var(--ink-soft);
  margin: var(--sp-2) 0 0; max-width: 720px;
}

/* =============================================================
   BREADCRUMB
   ============================================================= */
.ruby-breadcrumb {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-10) 0;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
}
.ruby-breadcrumb a { color: var(--muted); transition: color 150ms var(--ease-out); }
.ruby-breadcrumb a:hover { color: var(--ink); }
.ruby-breadcrumb-sep { margin: 0 var(--sp-2); color: var(--line); }

/* =============================================================
   POST META + BACK-LINK
   ============================================================= */
.ruby-post-meta {
  display: flex; gap: var(--sp-3); align-items: center;
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  margin-bottom: var(--sp-3);
}
.ruby-post-meta span:not(:last-child)::after { content: "·"; margin-left: var(--sp-3); }
.ruby-post-tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-8); padding-top: var(--sp-6); border-top: 1px solid var(--line); }
.ruby-post-tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px; font-size: 12px; font-weight: 500;
  background: var(--bg-alt); color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: var(--radius-pill);
  transition: all 150ms var(--ease-out);
}
.ruby-post-tag:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }

/* =============================================================
   PAGINATION
   ============================================================= */
.ruby-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: var(--sp-2); margin: var(--sp-12) auto; padding: 0 var(--sp-10);
  max-width: var(--container);
}
.ruby-pagination a,
.ruby-pagination span {
  display: inline-grid; place-items: center;
  min-width: 36px; height: 36px; padding: 0 var(--sp-3);
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all 150ms var(--ease-out);
}
.ruby-pagination a:hover { color: var(--primary); border-color: var(--primary); background: var(--primary-soft); }
.ruby-pagination .current { color: #fff; background: var(--primary); border-color: var(--primary); }

/* =============================================================
   404
   ============================================================= */
.ruby-404 {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--sp-24) var(--sp-10);
  text-align: center;
  display: flex; flex-direction: column; gap: var(--sp-5); align-items: center;
}
.ruby-404-code {
  font-family: var(--mono); font-size: clamp(64px, 10vw, 128px);
  font-weight: 500; letter-spacing: -0.04em; line-height: 1;
  color: var(--primary); margin: 0;
}
.ruby-404-title {
  font-family: var(--display);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); margin: 0;
}
.ruby-404-sub { font-size: 16px; color: var(--ink-soft); max-width: 480px; margin: 0; }
.ruby-404-cta { display: flex; gap: var(--sp-3); margin-top: var(--sp-3); }

/* =============================================================
   SEARCH (form + results)
   ============================================================= */
.ruby-search-form { display: flex; gap: var(--sp-2); align-items: center; max-width: 520px; }
.ruby-search-form input {
  flex: 1; min-width: 0;
  height: 44px; padding: 0 var(--sp-4);
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.ruby-search-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
