/* Christian Boss — single stylesheet.
   Visual language per docs/10-style-guide.md (flyer-aligned):
   cream ground, black condensed uppercase headings, one orange, thin outlines.
   Mobile-first: base styles are the phone, min-width queries enhance upward.
   All colors via tokens; light and dark values defined for each.
   The flyer orange fails AA as text on cream: it only fills shapes;
   link text uses --accent-text (AA-verified in both modes). */

/* ---------- Tokens ---------- */

:root {
  --bg: #f2ece1;
  --fg: #191714;
  --muted: #5f574b;
  --card: #f7f2e8;
  --tint: #e9e0d0;
  --border: #191714;
  --accent: #e87a1e;
  --accent-text: #9d4a06;
  --btn-bg: #e87a1e;
  --btn-fg: #191714;
  --focus: #9d4a06;
  --radius: 10px;
  --nav-h: 60px;
  --measure: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1815;
    --fg: #ede6d9;
    --muted: #b0a695;
    --card: #241f1a;
    --tint: #26211a;
    --border: #564c3e;
    --accent: #f08a2e;
    --accent-text: #f6a55c;
    --btn-bg: #e87a1e;
    --btn-fg: #191714;
    --focus: #f6a55c;
  }
}

:root[data-theme="dark"] {
  --bg: #1b1815;
  --fg: #ede6d9;
  --muted: #b0a695;
  --card: #241f1a;
  --tint: #26211a;
  --border: #564c3e;
  --accent: #f08a2e;
  --accent-text: #f6a55c;
  --btn-bg: #e87a1e;
  --btn-fg: #191714;
  --focus: #f6a55c;
}

/* ---------- Reset & base ---------- */

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

h1,
h2 {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.75rem, 6.5vw, 2.5rem);
}

h2 {
  font-size: clamp(1.25rem, 4.5vw, 1.6rem);
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Flyer wordmark rule under page and section headings */
main > h1::after,
section > h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--accent);
  margin-top: 0.5rem;
}

p {
  margin: 0 0 1rem;
  max-width: var(--measure);
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
}

a {
  color: var(--accent-text);
}

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

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

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Layout ---------- */

.container {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1rem;
}

main {
  padding: 1.5rem 0 3rem;
}

section {
  margin-bottom: 2.5rem;
}

/* ---------- Header / nav ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.site-header .container {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--fg);
  padding: 0.5rem 0;
}

/* Wordmark: "Boss" in flyer orange (logo — exempt from text contrast) */
.brand-accent {
  color: var(--accent);
}

/* Phone: brand + call button share the top row, nav gets its own row below */
.site-nav {
  order: 3;
  flex-basis: 100%;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.site-nav a {
  white-space: nowrap;
}

.site-nav a {
  display: inline-block;
  padding: 0.65rem 0.6rem;
  text-decoration: none;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  font-weight: 600;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  min-height: 44px;
  min-width: 44px;
  text-align: center;
}

.button--outline {
  background: transparent;
  color: var(--fg);
}

.theme-toggle {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 44px;
  min-width: 44px;
  font-size: 1.1rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  margin: 1rem 0 2.5rem;
}

.hero h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--accent);
  margin-top: 0.5rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
}

/* Phone: full-width, thumb-friendly action buttons */
.hero .actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  padding: 0;
  margin: 0 0 1rem;
  list-style: none;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}

.card img {
  border-radius: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card-body {
  padding: 1rem;
}

.card-body p {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.card-body ul {
  color: var(--muted);
  margin-bottom: 0;
}

/* ---------- About ---------- */

.about-photo {
  width: min(14rem, 60%);
  margin-bottom: 1rem;
  border: 1.5px solid var(--border);
}

.facts {
  list-style: none;
  padding: 0;
}

.facts li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  max-width: var(--measure);
}

/* ---------- Contact ---------- */

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  color: var(--muted);
}

.site-footer a {
  color: inherit;
}

.site-footer ul {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer ul a {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

/* ---------- Larger screens ---------- */

@media (min-width: 480px) {
  .hero .actions,
  .contact-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 700px) {
  .site-nav {
    order: 0;
    flex-basis: auto;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 3rem 2rem;
  }
}

@media (min-width: 1000px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
