/* Theme kit "dia": the daytime cafe, brunch and bakery. Cream, terracotta and
   sage, Fraunces titles over Nunito. Scoped to .theme-kit--dia
   (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/scale/rotate properties, never
   `transform`, so the band's RTL mirror (rtl:-scale-x-100) is kept. */

.theme-kit--dia {
  --tk-display: 'Fraunces', '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: #2b2420;
  --tk-band-scrim: 247, 231, 205;
}

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

.theme-kit--dia .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--dia .tk-band--short .tk-name { font-size: 1.625rem; }
.theme-kit--dia .tk-band__kicker {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #a8432f;
}

.theme-kit--dia .tk-tag { background: #e8efe1; color: #3f5a2a; }

/* Variant dia.costa: Spanish beach bar. Lilita One, teal on sky. */
.theme-kit--dia.theme-kit--dia-costa {
  --tk-display: 'Lilita One', 'Noto Sans', 'Noto Sans Armenian', 'Noto Sans Arabic', 'Noto Sans Hebrew',
    'Noto Sans JP', 'Noto Sans SC', 'Noto Sans KR', 'Noto Sans Thai', 'Noto Sans Devanagari',
    'Noto Sans Bengali', 'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Ethiopic', system-ui, sans-serif;
  --tk-band-ink: #16596c;
  --tk-band-scrim: 191, 230, 238;
}
.theme-kit--dia.theme-kit--dia-costa .tk-name {
  font-style: normal;
  font-weight: 400;
  font-size: clamp(1.875rem, 8.5cqw, 2.625rem);
  line-height: 1.02;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
}
.theme-kit--dia.theme-kit--dia-costa .tk-band--short .tk-name { font-size: 1.625rem; }
.theme-kit--dia.theme-kit--dia-costa .tk-band__kicker {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: .12em;
  color: #16596c;
}

.theme-kit--dia.theme-kit--dia-costa .tk-tag { background: #dff1f4; color: #16596c; }

/* Variant dia.pasteleria: pastry shop. Fredoka, raspberry on pink. */
.theme-kit--dia.theme-kit--dia-pasteleria {
  --tk-display: 'Fredoka', 'Noto Sans', 'Noto Sans Armenian', 'Noto Sans Arabic', 'Noto Sans Hebrew',
    'Noto Sans JP', 'Noto Sans SC', 'Noto Sans KR', 'Noto Sans Thai', 'Noto Sans Devanagari',
    'Noto Sans Bengali', 'Noto Sans Tamil', 'Noto Sans Telugu', 'Noto Sans Ethiopic', system-ui, sans-serif;
  --tk-band-ink: #3e2624;
  --tk-band-scrim: 255, 204, 213;
}
.theme-kit--dia.theme-kit--dia-pasteleria .tk-name {
  font-style: normal;
  font-weight: 600;
  font-size: clamp(1.875rem, 8.5cqw, 2.75rem);
  line-height: 1.02;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
}
.theme-kit--dia.theme-kit--dia-pasteleria .tk-band--short .tk-name { font-size: 1.625rem; }
.theme-kit--dia.theme-kit--dia-pasteleria .tk-band__kicker {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: .12em;
  color: #a3174f;
}

.theme-kit--dia.theme-kit--dia-pasteleria .tk-tag { background: #ffe4ea; color: #a3174f; }

/* Steam over the coffee rises and re-forms twice; the boat bobs three times. */
.theme-kit--dia .tk-dia-steam { opacity: .8; }
@keyframes tk-dia-steam {
  0% { translate: 0 0; opacity: .8; }
  45% { translate: 0 -8%; opacity: 0; }
  46% { translate: 0 5%; opacity: 0; }
  100% { translate: 0 0; opacity: .8; }
}
.theme-kit--dia .tk-band:not(.tk-still) .tk-dia-steam { animation: tk-dia-steam 2.4s ease-in-out 2; }
@keyframes tk-dia-boat {
  0%, 100% { translate: 0 0; }
  50% { translate: -1.2% -1.6%; }
}
.theme-kit--dia.theme-kit--dia-costa .tk-band:not(.tk-still) .tk-dia-boat { animation: tk-dia-boat 1.6s ease-in-out 3; }
@media (prefers-reduced-motion: reduce) {
  .theme-kit--dia .tk-dia-steam, .theme-kit--dia .tk-dia-boat { animation: none !important; }
}

/* Photographic dia.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--dia.theme-kit--dia-foto { --tk-band-scrim: 251, 246, 238; }

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

/* Día: a morning café. Fraunces titles, Nunito text, the second language of a
   bilingual name as a quiet italic line, dark chips like a chalkboard. */
.theme-kit--dia.theme-kit {
  --theme-font: 'Nunito', var(--tk-sans);
  --tk-h2-size: 1.5rem;
  --tk-name-size: 1.0625rem;
  --tk-name-weight: 700;
  --tk-price-weight: 800;
  --tk-rule: #efe2cf;
  --tk-chip-bg: #ffffff;
  --tk-chip-border: #e0cdb2;
  --tk-chip-active-bg: #2b2420;
  --tk-chip-active-border: #2b2420;
  --tk-chip-active-color: #fbf6ee;
  --tk-tag-bg: #eaf0df;
  --tk-tag-color: #44602f;
}
.theme-kit--dia .tk-section__alt,
.theme-kit--dia .tk-dish__alt { font-style: italic; }

/* Día · costa: a chiringuito. Lilita titles over a small wave, each section in
   a white box with dashed rules, sea-blue prices. */
.theme-kit--dia.theme-kit--dia-costa {
  --theme-font: 'Nunito Sans', var(--tk-sans);
  --tk-h2-font: 'Lilita One', var(--tk-sans);
  --tk-h2-size: 1.75rem;
  --tk-h2-weight: 400;
  --tk-name-weight: 800;
  --tk-card-border: #e8d5ae;
  --tk-rule: #e8d5ae;
  --tk-rule-style: dashed;
  --tk-chip-border: #dcc59a;
  --tk-chip-active-bg: #16596c;
  --tk-chip-active-border: #16596c;
  --tk-chip-active-color: #ffffff;
  --tk-tag-bg: #d9eef2;
  --tk-tag-color: #16596c;
}
.theme-kit--dia.theme-kit--dia-costa .tk-section__head::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: .5rem;
  margin-top: .375rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='8' viewBox='0 0 18 8'%3E%3Cpath d='M0 6 Q4.5 0 9 6 T18 6' fill='none' stroke='%2316596c' stroke-width='2'/%3E%3C/svg%3E") repeat-x;
}

/* Día · pastelería: a shop window. Fredoka titles, cards in two columns,
   centred like pastries on a counter, raspberry prices. */
.theme-kit--dia.theme-kit--dia-pasteleria {
  --tk-h2-font: 'Fredoka', var(--tk-sans);
  --tk-h2-size: 1.75rem;
  --tk-h2-weight: 600;
  --tk-name-weight: 800;
  --tk-card-border: #f8d7de;
  --tk-card-radius: 1.25rem;
  --tk-chip-border: #f3c3ce;
  --tk-chip-active-bg: #a3174f;
  --tk-chip-active-border: #a3174f;
  --tk-chip-active-color: #ffffff;
  --tk-tag-bg: #ffe3ea;
  --tk-tag-color: #8a1442;
}
.theme-kit--dia.theme-kit--dia-pasteleria .tk-dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.theme-kit--dia.theme-kit--dia-pasteleria .tk-dish { flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding: .875rem .75rem; }
.theme-kit--dia.theme-kit--dia-pasteleria .tk-dish__thumb,
.theme-kit--dia.theme-kit--dia-pasteleria .tk-dish__thumb-frame { order: -1; }
.theme-kit--dia.theme-kit--dia-pasteleria .tk-dish__body { align-items: center; width: 100%; }
.theme-kit--dia.theme-kit--dia-pasteleria .tk-dish__head { flex-direction: column; align-items: center; gap: .25rem; }
.theme-kit--dia.theme-kit--dia-pasteleria .tk-dish__price-wrap { margin-inline-start: 0; }
.theme-kit--dia.theme-kit--dia-pasteleria .tk-dish__meta { justify-content: center; }
.theme-kit--dia.theme-kit--dia-pasteleria .tk-prices__item { justify-content: center; }
.theme-kit--dia.theme-kit--dia-pasteleria .tk-prices__item .tk-dish__price { margin-inline-start: 0; }

/* ---- Mexico (2026-11-09) ---- */

/* Variant dia.fonda: a fonda or cocina económica. Yeseva One in cobalt over
   cream, a row of Talavera tiles under each section title. */
.theme-kit--dia.theme-kit--dia-fonda {
  --tk-display: 'Yeseva 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: #1b2a4a;
  --tk-band-scrim: 245, 233, 207;
  --tk-h2-color: #1f4e9c;
  --tk-h2-weight: 400;
  --tk-chip-border: #c9d5ea;
  --tk-chip-active-bg: #1f4e9c;
  --tk-chip-active-border: #1f4e9c;
  --tk-chip-active-color: #ffffff;
  --tk-tag-bg: #e3ebf7;
  --tk-tag-color: #1f4e9c;
  --tk-rule: #eadfca;
}
.theme-kit--dia.theme-kit--dia-fonda .tk-name { font-weight: 400; font-size: clamp(1.875rem, 8.5cqw, 2.625rem); line-height: 1.05; }
.theme-kit--dia.theme-kit--dia-fonda .tk-band--short .tk-name { font-size: 1.625rem; }
.theme-kit--dia.theme-kit--dia-fonda .tk-band__kicker { font-weight: 800; letter-spacing: .12em; color: #1f4e9c; }
.theme-kit--dia.theme-kit--dia-fonda .tk-tag { background: #e3ebf7; color: #1f4e9c; }
.theme-kit--dia.theme-kit--dia-fonda .tk-section__title::after {
  content: "";
  display: block;
  width: 6rem;
  height: .75rem;
  margin-top: .5rem;
  background: radial-gradient(circle, #1f4e9c 0 28%, transparent 30%) 0 0 / .75rem .75rem, #e3ebf7;
  border-block: 2px solid #1f4e9c;
}
