/* Base styles for the Joyvane Studios site. Load after tokens.css.
   Uses tokens only: never hard-code a color, size or font here. */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }

a { color: var(--link); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 10;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-4); }

/* Page container with a 16px+ gutter. .prose caps running text at 52ch,
   which fits about 65 characters of Nunito per line. */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: max(var(--space-4), env(safe-area-inset-left, 0px));
}
.prose { max-width: 52ch; }

.stack > * + * { margin-top: var(--space-4); }
.section { padding-block: var(--space-12); }
@media (min-width: 800px) { .section { padding-block: var(--space-16); } }

/* The tokens set display-xl to 64px; scale it down on phones. */
.display-xl { font-size: clamp(40px, 9vw, 64px); line-height: 1.05; }
.display-lg { font-size: clamp(32px, 7vw, 44px); line-height: 1.1; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.text-muted { color: var(--ink-muted); }
.text-accent { color: var(--accent); }

/* Page layout: header, card grid and footer. */
.site-header { padding-block: var(--space-4); }
.site-footer {
  padding-block: var(--space-8);
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
}
.site-footer .container,
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-6);
}
.site-footer .container { justify-content: space-between; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* Hero: text on the left, stripes on the right (see design/stripes.md).
   Two columns from 768px; one column below that, with the stripes below the text. */
.hero { padding-block: var(--space-12); }
.hero__grid { display: grid; align-items: center; gap: var(--space-8); }
@media (min-width: 768px) {
  .hero__grid { grid-template-columns: 1.1fr 1fr; }
}

/* Surface strip that holds the thin stripes divider between two bands. */
.divider { padding-block: var(--space-8); }

/* The yellow focus ring disappears on sun and orange bands, so use navy there. */
.band :focus-visible { outline-color: var(--on-brand); }

/* Inline links in band paragraphs: vertical padding grows the tap target past 44px
   without changing line spacing (padding on an inline element does not move the line box). */
.band p a:not(.btn) { padding-block: var(--space-3); }

.grid { display: grid; gap: var(--space-6); }
@media (min-width: 800px) {
  .hero { padding-block: var(--space-16); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  /* The header lockup is small on phones and full size on wider screens. */
  .site-header .lockup--small .lockup__mark { width: 84px; height: 84px; }
  .site-header .lockup--small .lockup__name b { font-size: 42px; }
  .site-header .lockup--small .lockup__name span { margin-top: 6px; font-size: 14px; line-height: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
