/* Theme kit "rustico": wood fire, grills, taverns. Dark smoked wood, ember
   orange and cream, Zilla Slab titles over a serif body. Scoped to
   .theme-kit--rustico (test/lib/theme_kit_css_scope_convention_test.rb); layout
   lives in app/views/theme_kits/_band.html.erb, this sheet carries look and
   motion only. Layers animate with the individual translate property, never
   `transform`, so the band's RTL mirror (rtl:-scale-x-100) is kept. */

.theme-kit--rustico {
  --tk-display: 'Zilla Slab', 'Noto Serif', 'Noto Serif Armenian', 'Noto Naskh Arabic', 'Noto Serif Hebrew',
    'Noto Serif JP', 'Noto Serif SC', 'Noto Serif KR', 'Noto Serif Thai', 'Noto Serif Devanagari',
    'Noto Serif Bengali', 'Noto Serif Tamil', 'Noto Serif Telugu', 'Noto Serif Ethiopic', Georgia, serif;
  --tk-band-ink: #f3e9d8;
  --tk-band-scrim: 37, 27, 18;
}

/* Text never sits on the art: a near-solid wash of the band colour under it. */
.theme-kit--rustico .tk-band__scrim {
  background: linear-gradient(90deg, rgba(var(--tk-band-scrim), .95) 0%, rgba(var(--tk-band-scrim), .88) 42%, rgba(var(--tk-band-scrim), 0) 68%);
}
.theme-kit--rustico[dir="rtl"] .tk-band__scrim {
  background: linear-gradient(270deg, rgba(var(--tk-band-scrim), .95) 0%, rgba(var(--tk-band-scrim), .88) 42%, rgba(var(--tk-band-scrim), 0) 68%);
}

.theme-kit--rustico .tk-name {
  font-family: var(--tk-display);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.875rem, 8.5cqw, 2.75rem);
  line-height: 1.02;
  color: var(--tk-band-ink);
}
.theme-kit--rustico .tk-band--short .tk-name { font-size: 1.625rem; }
.theme-kit--rustico .tk-band__kicker {
  font-size: .75rem;
  font-family: var(--tk-display);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #e9a06b;
}

.theme-kit--rustico .tk-tag { background: #e6d6b8; color: #6e290e; }

/* Variant rustico.trattoria: Italian trattoria. DM Serif Display, tomato on cream. */
.theme-kit--rustico.theme-kit--rustico-trattoria {
  --tk-display: 'DM Serif Display', 'Noto Serif', 'Noto Serif Armenian', 'Noto Naskh Arabic', 'Noto Serif Hebrew',
    'Noto Serif JP', 'Noto Serif SC', 'Noto Serif KR', 'Noto Serif Thai', 'Noto Serif Devanagari',
    'Noto Serif Bengali', 'Noto Serif Tamil', 'Noto Serif Telugu', 'Noto Serif Ethiopic', Georgia, serif;
  --tk-band-ink: #a12c24;
  --tk-band-scrim: 250, 239, 219;
}
.theme-kit--rustico.theme-kit--rustico-trattoria .tk-name {
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.875rem, 8.5cqw, 2.625rem);
  line-height: 1.05;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
}
.theme-kit--rustico.theme-kit--rustico-trattoria .tk-band--short .tk-name { font-size: 1.625rem; }
.theme-kit--rustico.theme-kit--rustico-trattoria .tk-band__kicker {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: .2em;
  color: #3e6b35;
}

.theme-kit--rustico.theme-kit--rustico-trattoria .tk-tag { background: #f3e3c7; color: #7a231d; }

/* Variant rustico.parrilla: Argentine grill. Alfa Slab One, cream and celeste on charcoal. */
.theme-kit--rustico.theme-kit--rustico-parrilla {
  --tk-display: 'Alfa Slab One', 'Noto Serif', 'Noto Serif Armenian', 'Noto Naskh Arabic', 'Noto Serif Hebrew',
    'Noto Serif JP', 'Noto Serif SC', 'Noto Serif KR', 'Noto Serif Thai', 'Noto Serif Devanagari',
    'Noto Serif Bengali', 'Noto Serif Tamil', 'Noto Serif Telugu', 'Noto Serif Ethiopic', Georgia, serif;
  --tk-band-ink: #f4ecdd;
  --tk-band-scrim: 34, 29, 23;
}
.theme-kit--rustico.theme-kit--rustico-parrilla .tk-name {
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.75rem, 8cqw, 2.5rem);
  line-height: 1.05;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
}
.theme-kit--rustico.theme-kit--rustico-parrilla .tk-band--short .tk-name { font-size: 1.625rem; }
.theme-kit--rustico.theme-kit--rustico-parrilla .tk-band__kicker {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: .2em;
  color: #9fc8ec;
}

.theme-kit--rustico.theme-kit--rustico-parrilla .tk-tag { background: #efe3cc; color: #742c12; }

/* Variant rustico.mediterranea: Aegean taverna. Marcellus, Aegean blue on white. */
.theme-kit--rustico.theme-kit--rustico-mediterranea {
  --tk-display: 'Marcellus', 'Noto Serif', 'Noto Serif Armenian', 'Noto Naskh Arabic', 'Noto Serif Hebrew',
    'Noto Serif JP', 'Noto Serif SC', 'Noto Serif KR', 'Noto Serif Thai', 'Noto Serif Devanagari',
    'Noto Serif Bengali', 'Noto Serif Tamil', 'Noto Serif Telugu', 'Noto Serif Ethiopic', Georgia, serif;
  --tk-band-ink: #1d4e89;
  --tk-band-scrim: 255, 254, 255;
}
.theme-kit--rustico.theme-kit--rustico-mediterranea .tk-name {
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.875rem, 9cqw, 2.875rem);
  line-height: 1.02;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
}
.theme-kit--rustico.theme-kit--rustico-mediterranea .tk-band--short .tk-name { font-size: 1.625rem; }
.theme-kit--rustico.theme-kit--rustico-mediterranea .tk-band__kicker {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: .2em;
  color: #5c6a2e;
}

.theme-kit--rustico.theme-kit--rustico-mediterranea .tk-tag { background: #e6eef7; color: #1d4e89; }

/* Embers rise off the grill twice; the parrilla's smoke drifts up once. */
@keyframes tk-rustico-embers {
  0% { translate: 0 0; opacity: 1; }
  60% { translate: 0 -14%; opacity: 0; }
  61% { translate: 0 6%; opacity: 0; }
  100% { translate: 0 0; opacity: 1; }
}
.theme-kit--rustico .tk-band:not(.tk-still) .tk-rustico-embers { animation: tk-rustico-embers 2.4s ease-out 2; }
.theme-kit--rustico .tk-rustico-smoke { opacity: .9; }
@keyframes tk-rustico-smoke {
  0% { translate: 0 0; opacity: .9; }
  55% { translate: 2% -9%; opacity: 0; }
  56% { translate: 0 5%; opacity: 0; }
  100% { translate: 0 0; opacity: .9; }
}
.theme-kit--rustico.theme-kit--rustico-parrilla .tk-band:not(.tk-still) .tk-rustico-smoke { animation: tk-rustico-smoke 4.4s ease-in-out 1; }
@media (prefers-reduced-motion: reduce) {
  .theme-kit--rustico .tk-rustico-embers, .theme-kit--rustico .tk-rustico-smoke { animation: none !important; }
}

/* Photographic rustico.foto: the photo fills the band under the shared wash
   (base.css, .tk-band--photo), in the ambience's letters; the wash in its page colour. */
.theme-kit--rustico.theme-kit--rustico-foto { --tk-band-scrim: 37, 27, 18; }

/* ---- Menu, in the kit template (base.css; docs/strategy/THEMES_FIDELIDAD.md) ---- */

/* Rústico: a tavern's printed carta. Zilla Slab titles, Source Serif text,
   dotted leaders to rust prices, a flame between sections, slab chips. */
.theme-kit--rustico.theme-kit {
  --theme-font: 'Source Serif 4', var(--tk-serif);
  --tk-h2-size: 1.625rem;
  --tk-name-size: 1.0625rem;
  --tk-price-weight: 600;
  --tk-price-size: 1.0625rem;
  --tk-leader: #bfa987;
  --tk-chip-radius: .5rem;
  --tk-chip-bg: transparent;
  --tk-chip-border: #c9b48f;
  --tk-chip-active-bg: #3b2a1e;
  --tk-chip-active-border: #3b2a1e;
  --tk-chip-active-color: #f3e9d8;
  --tk-tag-bg: #e7d8bd;
  --tk-tag-color: #5a3a20;
}
.theme-kit--rustico [data-section-nav-target="pill"] { font-family: var(--tk-display); }
.theme-kit--rustico .tk-section + .tk-section::before {
  content: "";
  display: block;
  height: 1rem;
  margin: 0 0 1.25rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='16' viewBox='0 0 28 16'%3E%3Cpath d='M14 1c-4 4-4 8 0 14c4-6 4-10 0-14Z' fill='none' stroke='%23b8471a' stroke-width='1.6'/%3E%3C/svg%3E") center / 28px 16px no-repeat,
    linear-gradient(#c9b48f, #c9b48f) left center / calc(50% - 22px) 1px no-repeat,
    linear-gradient(#c9b48f, #c9b48f) right center / calc(50% - 22px) 1px no-repeat;
}

/* Rústico · trattoria: italic DM Serif titles over a strip of checked cloth,
   Lora text, red prices. */
.theme-kit--rustico.theme-kit--rustico-trattoria {
  --theme-font: 'Lora', var(--tk-serif);
  --tk-h2-size: 1.875rem;
  --tk-h2-weight: 400;
  --tk-h2-style: italic;
  --tk-leader: #d9c4a3;
  --tk-chip-bg: #ffffff;
  --tk-chip-border: #e2cdae;
  --tk-chip-active-bg: #a12c24;
  --tk-chip-active-border: #a12c24;
  --tk-chip-active-color: #ffffff;
  --tk-tag-bg: #f6e3cf;
  --tk-tag-color: #7c2119;
}
.theme-kit--rustico.theme-kit--rustico-trattoria .tk-section__title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: .375rem;
  margin-top: .5rem;
  background:
    repeating-linear-gradient(90deg, rgba(161, 44, 36, .85) 0 .375rem, transparent .375rem .75rem),
    repeating-linear-gradient(90deg, transparent 0 .375rem, rgba(161, 44, 36, .3) .375rem .75rem);
}
.theme-kit--rustico.theme-kit--rustico-trattoria .tk-section + .tk-section::before { display: none; }

/* Rústico · parrilla: an Argentine grill. Alfa Slab titles with grill marks,
   each section a box, bold Franklin names, ember prices. */
.theme-kit--rustico.theme-kit--rustico-parrilla {
  --theme-font: 'Libre Franklin', var(--tk-sans);
  --tk-h2-weight: 400;
  --tk-name-weight: 800;
  --tk-price-weight: 800;
  --tk-card-bg: #fffaf1;
  --tk-card-border: #e3d5bc;
  --tk-card-radius: .75rem;
  --tk-rule: #e3d5bc;
  --tk-chip-radius: .375rem;
  --tk-chip-border: #cdbb9c;
  --tk-chip-active-bg: #2a211b;
  --tk-chip-active-border: #2a211b;
  --tk-chip-active-color: #f4ecdd;
  --tk-h2-size: 1.5rem;
}
.theme-kit--rustico.theme-kit--rustico-parrilla [data-section-nav-target="pill"] { font-family: inherit; font-weight: 600; }
.theme-kit--rustico.theme-kit--rustico-parrilla .tk-section + .tk-section::before { display: none; }
.theme-kit--rustico.theme-kit--rustico-parrilla .tk-section__title::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: .5rem;
  margin-top: .5rem;
  background: repeating-linear-gradient(-55deg, #a8411b 0 3px, transparent 3px 8px);
}

/* Rústico · mediterránea: whitewash and Aegean blue. Marcellus titles, clean
   rules, blue prices and chips. */
.theme-kit--rustico.theme-kit--rustico-mediterranea {
  --theme-font: 'Source Sans 3', var(--tk-sans);
  --tk-h2-weight: 400;
  --tk-h2-color: #1d4e89;
  --tk-name-weight: 700;
  --tk-price-weight: 700;
  --tk-rule: #e3e8ee;
  --tk-chip-radius: .375rem;
  --tk-chip-border: #c9d6e6;
  --tk-chip-active-bg: #1d4e89;
  --tk-chip-active-border: #1d4e89;
  --tk-chip-active-color: #ffffff;
  --tk-tag-bg: #e6edf6;
  --tk-tag-color: #1d4e89;
  --tk-h2-size: 1.5rem;
}
.theme-kit--rustico.theme-kit--rustico-mediterranea [data-section-nav-target="pill"] { font-family: inherit; }
.theme-kit--rustico.theme-kit--rustico-mediterranea .tk-section + .tk-section::before { display: none; }
