/* ==========================================================================
   Ultimate Technical Academy — design system
   Tokens below are THE source. Change a value here, not at a call site.
   Values were extracted from the approved build and are recorded in
   DESIGN-TOKENS.md; the two files must not drift.
   --------------------------------------------------------------------------
   COMPONENT INVENTORY — what depends on this file
     .prose-uta ................ 22 uses across 13 pages
     .font-display ............. 143 uses across 24 pages
     .hero-scrim ............... 1 uses across 1 pages
     .rule-brick ............... 5 uses across 1 pages
     .uta-sched-row ............ 62 uses across 1 pages
   Regenerate by re-running _build/generate.py — the counts are measured from
   the built tree, not typed. A count is not decoration: it is what makes
   deleting a rule visibly expensive to whoever is about to.

   ⚠ .uta-sched-row / .uta-sched-month / [data-uta-*] on /schedules/ are read by
   the WooCommerce store's uta-shop.php to mirror the schedule into the shop's
   left bar. Renaming them silently desynchronises the two.
   ========================================================================== */
:root {
  --ink:        #0E0C19;   /* headings, hero ground */
  --brick:      #6E251A;   /* primary brand, links, focus ring */
  --brick-dk:   #781C16;   /* footer ground */
  --brick-deep: #8B0000;   /* hover, card heads */
  --body:       #3C3A47;   /* body copy */
  --line:       #E6E3E0;   /* hairlines, table borders */
  --wash:       #F7F5F4;   /* table head, subtle fills */
  --font-body:    Inter, system-ui, sans-serif;
  --font-display: Syne, Inter, sans-serif;
  --measure:    72ch;      /* prose line length */
}

html, body { margin: 0; }
body { font-family: var(--font-body); }
.font-display { font-family: var(--font-display); }
/* Syne is used at weight 500 in the approved build — keep that restraint. */
h1, h2, h3 { text-wrap: balance; }

a:focus-visible,
button:focus-visible { outline: 2px solid var(--brick); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Homepage hero. The scrim keeps the headline legible over the photo; it turns
   vertical below lg because the photo's subject sits right of centre. */
.hero-scrim {
  background: linear-gradient(90deg, #0E0C19 0%, #0E0C19 52%,
              rgba(14,12,25,.72) 72%, rgba(14,12,25,.45) 100%);
}
@media (max-width: 1023px) {
  .hero-scrim {
    background: linear-gradient(180deg, rgba(14,12,25,.82) 0%, rgba(14,12,25,.92) 100%);
  }
}
.rule-brick { background: linear-gradient(90deg, #6E251A 0%, #8B0000 100%); }

/* --------------------------------------------------------------------------
   .prose-uta — article styling applied BY ELEMENT, so the cleaned Joomla HTML
   needs no classes of its own. Anything pasted into a page by the customer's
   editor inherits it for free.
   -------------------------------------------------------------------------- */
.prose-uta { font-size: 17px; line-height: 1.72; color: var(--body); max-width: var(--measure); }
.prose-uta p { margin: 0 0 1.25rem; }
.prose-uta h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.9rem;
                 line-height: 1.2; color: var(--ink); margin: 2.75rem 0 1rem; }
.prose-uta h3 { font-weight: 700; font-size: 1.2rem; color: var(--brick-deep); margin: 2rem 0 .65rem; }
.prose-uta strong { font-weight: 600; color: var(--ink); }
.prose-uta em { font-style: italic; }
.prose-uta ul, .prose-uta ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.prose-uta ul { list-style: disc; }
.prose-uta ol { list-style: decimal; }
.prose-uta li { margin-bottom: .45rem; }
.prose-uta li::marker { color: var(--brick); }
.prose-uta a { color: var(--brick); text-decoration: underline; text-underline-offset: 2px; }
.prose-uta a:hover { color: var(--brick-deep); }
.prose-uta img { max-width: 100%; height: auto; border-radius: .5rem; margin: 1.5rem 0; }
.prose-uta hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose-uta blockquote { border-left: 3px solid var(--brick); padding-left: 1.1rem;
                         font-style: italic; margin: 1.75rem 0; }

/* Tables (the schedule) must scroll on their own, never the page. */
.prose-uta .tw { overflow-x: auto; margin: 1.75rem 0; }
.prose-uta table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 15px; }
.prose-uta th, .prose-uta td { border: 1px solid var(--line); padding: .6rem .75rem;
                                text-align: left; vertical-align: top; }
.prose-uta thead th,
.prose-uta tr:first-child td { background: var(--wash); font-weight: 600; color: var(--ink); }
