/* Shared opt-in shell. Pages opt in with class="uke-app" on body. */
.uke-app {
  --uke-bg: #0b1220;
  --uke-surface: #142033;
  --uke-surface-raised: #1b2a40;
  --uke-text: #f5f1e8;
  --uke-muted: #b2bdcf;
  --uke-accent: #ffb36b;
  --uke-accent-ink: #16202e;
  --uke-border: #304057;
  --uke-teal: #65dbc6;
  --uke-radius: 18px;
  --uke-spacing-4: 4px;
  --uke-spacing-8: 8px;
  --uke-spacing-12: 12px;
  --uke-spacing-16: 16px;
  --uke-spacing-24: 24px;
  --uke-spacing-32: 32px;
  --uke-focus: 0 0 0 3px rgba(101, 219, 198, 0.72);
  background: var(--uke-bg);
  color: var(--uke-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.uke-app *, .uke-app *::before, .uke-app *::after { box-sizing: border-box; }
.uke-app a { color: inherit; }
.uke-app :focus-visible { outline: none; box-shadow: var(--uke-focus); }

.uke-skip-link {
  background: var(--uke-accent);
  border-radius: 0 0 var(--uke-radius) 0;
  color: var(--uke-accent-ink);
  font-weight: 800;
  left: 0;
  padding: var(--uke-spacing-12) var(--uke-spacing-16);
  position: fixed;
  top: 0;
  transform: translateY(-110%);
  z-index: 20;
}
.uke-skip-link:focus { transform: translateY(0); }

.uke-shell-header {
  align-items: center;
  border-bottom: 1px solid var(--uke-border);
  display: flex;
  gap: var(--uke-spacing-24);
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1280px;
  min-height: 76px;
  padding: var(--uke-spacing-12) var(--uke-spacing-24);
  width: 100%;
}

.uke-brand {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  gap: var(--uke-spacing-8);
  min-height: 44px;
  text-decoration: none;
}
.uke-brand__icon { color: var(--uke-accent); display: block; height: 30px; width: 30px; }
.uke-brand__wordmark { font-size: 1.05rem; font-weight: 850; letter-spacing: .02em; }

.uke-shell-nav { align-items: center; display: flex; flex-wrap: wrap; gap: var(--uke-spacing-4); }
.uke-shell-nav a {
  align-items: center;
  border-radius: 10px;
  color: var(--uke-muted);
  display: inline-flex;
  font-size: .92rem;
  font-weight: 700;
  min-height: 44px;
  padding: 0 var(--uke-spacing-12);
  text-decoration: none;
}
.uke-shell-nav a:hover, .uke-shell-nav a[aria-current="page"] { color: var(--uke-text); background: rgba(245, 241, 232, .08); }

.uke-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  display: inline-flex;
  font: inherit;
  font-size: .96rem;
  font-weight: 800;
  gap: var(--uke-spacing-8);
  justify-content: center;
  min-height: 44px;
  padding: var(--uke-spacing-12) var(--uke-spacing-16);
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.uke-button:hover { transform: translateY(-2px); }
.uke-button.is-primary { background: var(--uke-accent); color: var(--uke-accent-ink); }
.uke-button.is-primary:hover { background: #ffc58f; }
.uke-button.is-secondary { background: transparent; border-color: var(--uke-border); color: var(--uke-text); }
.uke-button.is-secondary:hover { border-color: var(--uke-teal); color: var(--uke-teal); }
.uke-button.is-danger { background: #b94a50; color: #fff; }

.uke-eyebrow { color: var(--uke-teal); font-size: .78rem; font-weight: 850; letter-spacing: .14em; margin: 0; text-transform: uppercase; }
.uke-page-intro { color: var(--uke-muted); font-size: clamp(1rem, 1.3vw, 1.12rem); line-height: 1.65; margin: 0; max-width: 60ch; }

/* Landing page */
.uke-landing { margin: 0; min-height: 100vh; }
.uke-landing__frame { display: flex; flex-direction: column; min-height: 100vh; overflow-x: clip; }
.uke-landing__main { display: flex; flex: 1; margin: 0 auto; max-width: 1280px; padding: clamp(72px, 14vh, 168px) var(--uke-spacing-24) 72px; width: 100%; }
/* Hero grid: source order keeps .uke-landing__content first then
   .uke-landing__logo, so on stacked layouts the text is read first
   and the logo drops underneath. On wide layouts the grid auto-places
   the logo on the right of the content. */
.uke-landing__hero {
  align-items: center;
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: 1fr;
  width: 100%;
}
.uke-landing__content { max-width: 680px; min-width: 0; }
/* Large right-side logo. Mobile default keeps the cap at min(78vw, 320px)
   so it never overflows the viewport; desktop scales up to 560 px. The
   image keeps its native 5:3 aspect (240x144 viewBox) via width/height
   attributes in the markup. */
.uke-landing__logo {
  display: block;
  height: auto;
  justify-self: center;
  margin: 0 auto;
  max-width: 100%;
  width: min(78vw, 320px);
}
.uke-landing__title { font-size: clamp(2.8rem, 6vw, 5.5rem); letter-spacing: -.055em; line-height: 1; margin: 0 0 var(--uke-spacing-24); max-width: 11ch; }
.uke-landing__actions { display: flex; flex-wrap: wrap; gap: var(--uke-spacing-12); margin-top: var(--uke-spacing-32); }
.uke-landing__routes { display: flex; flex-wrap: wrap; gap: var(--uke-spacing-16); margin: var(--uke-spacing-24) 0 0; }
.uke-landing__routes a { color: var(--uke-muted); font-size: .92rem; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.uke-landing__routes a:hover { color: var(--uke-text); }

.uke-landing__footer { border-top: 1px solid var(--uke-border); color: var(--uke-muted); font-size: .84rem; margin: 0 auto; max-width: 1280px; padding: var(--uke-spacing-24); width: 100%; }
.uke-landing__footer-inner { align-items: center; display: flex; gap: var(--uke-spacing-16); justify-content: space-between; }
.uke-landing__footer p { margin: 0; }
.uke-landing__footer a { color: var(--uke-muted); font-weight: 700; text-decoration: none; }
.uke-landing__footer a:hover { color: var(--uke-teal); }

@media (min-width: 1920px) {
  .uke-shell-header, .uke-landing__main, .uke-landing__footer { max-width: 1480px; }
  .uke-landing__main { padding-top: 168px; }
}

/* Desktop hero: 2 columns (content | large logo). Breakpoint at 900 so the
   middle tablet 768..899 range stays stacked (otherwise the 320 px logo
   floor crowds the headline). At >=900 the grid opens, and at >=1024 the
   right column clears the headline top via the 1.2fr/1fr ratio + centered
   alignment. */
@media (min-width: 900px) {
  .uke-landing__hero {
    grid-template-columns: 1.2fr 1fr;
  }
  .uke-landing__logo {
    width: clamp(320px, 36vw, 560px);
  }
}

@media (max-width: 768px) {
  .uke-landing__main { padding: 48px var(--uke-spacing-16) var(--uke-spacing-32); }
  .uke-landing__title { max-width: 12ch; }
  .uke-landing__footer { padding: var(--uke-spacing-24) var(--uke-spacing-16); }
}

@media (max-width: 375px) {
  .uke-landing__actions { align-items: stretch; flex-direction: column; }
  .uke-landing__actions .uke-button { width: 100%; }
  .uke-landing__footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .uke-app *, .uke-app *::before, .uke-app *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (prefers-contrast: more) {
  .uke-app { --uke-border: #92a5c2; --uke-muted: #e2e8f0; }
  .uke-button.is-secondary { border-width: 2px; }
}
