/* Serrano Martínez CMA brand (Manual de marca 2023): ivory #F7F4E9 + black, terracotta #C25E3B (Bogotá), Roboto for web apps. */
:root {
  color-scheme: light dark;
  --paper: light-dark(#F7F4E9, #0c0c0b); --ink: light-dark(#000, #F7F4E9);
  --muted: light-dark(#57544c, #b8b2a3); --faint: light-dark(#66625a, #9a9486);
  --rule: light-dark(#000, #6f6a5e); --hair: light-dark(#d8d2bf, #2e2c28);
  --accent: light-dark(#C25E3B, #e07a52); --accent-ink: light-dark(#A84F2E, #e07a52);
  --field: light-dark(#fffdf6, #171614);
  --sans: "Roboto", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 var(--sans); letter-spacing: 0.01em; }
.status-bar-fix { position: fixed; inset: 0; background: rgb(0 0 0 / 0.004); pointer-events: none; z-index: 2147483647; }
main { max-width: 680px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 18px) calc(env(safe-area-inset-right) + 20px) 0 calc(env(safe-area-inset-left) + 20px); }
h1, h2, h3 { font-weight: 500; letter-spacing: 0.03em; text-wrap: balance; margin: 0; }
h1 { font-size: 32px; line-height: 1.1; }
h2 { font-size: 22px; line-height: 1.2; }
h3 { font-size: 18px; line-height: 1.3; }
p { text-wrap: pretty; margin: 0 0 12px; }
.logo { display: block; width: 200px; height: auto; margin: 0 0 26px; }
.lead { color: var(--muted); font-weight: 300; font-size: 18px; margin: 12px 0 26px; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.foot { color: var(--faint); font-size: 13px; margin: 18px 0 30px; }
button { font-family: var(--sans); }
.btn { all: unset; background: var(--ink); color: var(--paper); font-weight: 500; letter-spacing: 0.03em; border-radius: 12px; padding: 12px 18px; cursor: pointer; text-align: center; }
.btn[disabled] { opacity: 0.35; }
.link { all: unset; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 12px 0; }
textarea { width: 100%; resize: none; font: 400 17px/1.4 var(--sans); color: var(--ink); background: var(--field); border: 1px solid var(--hair); border-radius: 12px; padding: 11px 14px; outline: none; }
textarea:focus { border-color: var(--ink); }
ul.marks { margin: 0; padding-left: 1.1em; }
ul.marks li { margin: 0 0 10px; }
ul.marks li::marker { color: var(--accent); }
[hidden] { display: none !important; }
@media (prefers-color-scheme: dark) { img.logo { filter: invert(0.96); } }
:is(a, button, textarea, summary):focus-visible { outline: 2px solid var(--accent-ink) !important; outline-offset: 3px; }
@media print { :root { color-scheme: light; } }
/* Cross-document view transitions with the rest of the site (Chrome, Safari); normal navigation elsewhere. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 240ms cubic-bezier(0.16, 1, 0.3, 1) both vt-out; }
  ::view-transition-new(root) { animation: 420ms cubic-bezier(0.16, 1, 0.3, 1) both vt-in; }
  @keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(24px); } }
}
a { color: inherit; }
/* Exercise hero image: full column width, edge to edge on phones; one gentle settle-in when motion is allowed. */
.exhero { margin: 0 0 26px; background: #000; overflow: hidden; }
.exhero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 720px) { .exhero { margin-left: calc(-20px - env(safe-area-inset-left)); margin-right: calc(-20px - env(safe-area-inset-right)); } }
@media (prefers-reduced-motion: no-preference) {
  .exhero img { animation: exsettle 1.6s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes exsettle { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
}
@media print { .exhero { display: none; } }
