/* Executive Puzzles — shared styles
   Tokens taken directly from Palette.swift and the app's own home screen:
   navy and copper own the chrome; per-mode accents live inside a board and
   are deliberately not used here. */

:root {
  --navy: #0A2F52;
  --navy-lift: #14456F;
  --copper: #C1793B;
  --cream: #F1EFE8;
  --charcoal: #2C2C2A;
  --warning: #A33A28;

  --card: #FFFFFF;
  --ink: #1B2A38;
  --ink-soft: #6B7480;
  --rule: #DEDACE;

  /* Serif resolves to Iowan Old Style on Apple devices, matching the app's
     .serif display face; Georgia is the fallback elsewhere. */
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  /* SF Rounded on Apple devices — the app's workhorse design. */
  --rounded: ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--rounded);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 860px; }

/* ---------- Masthead ---------- */

.masthead { padding: 22px 0; }

.masthead .wrap,
.masthead .wrap-wide {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark { flex: 0 0 auto; display: block; }

.masthead .home {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--navy);
  text-decoration: none;
}

.masthead nav { margin-left: auto; display: flex; gap: 20px; }

.masthead nav a {
  font-family: var(--rounded);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.masthead nav a:hover,
.masthead nav a:focus-visible {
  color: var(--navy);
  border-color: var(--copper);
}

/* ---------- Type ---------- */

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 5.5vw, 40px);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 14px;
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  color: var(--navy);
  margin: 44px 0 12px;
}

h3 {
  font-family: var(--rounded);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 32px 0 8px;
}

p { margin: 0 0 18px; }
a { color: var(--navy); }
a:hover { color: var(--copper); }

ul { padding-left: 22px; margin: 0 0 18px; }
li { margin-bottom: 8px; }

.meta {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}

main { padding: 40px 0 72px; }

/* ---------- Copper rule under the title (matches the app) ---------- */

.rule-copper {
  width: 68px;
  height: 2px;
  background: var(--copper);
  border: 0;
  margin: 0 auto 18px;
}

/* ---------- Callout ---------- */

.note {
  background: var(--card);
  border-left: 3px solid var(--copper);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin: 28px 0;
}
.note p:last-child { margin-bottom: 0; }

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

footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0 44px;
  font-size: 14px;
  color: var(--ink-soft);
}

footer .wrap,
footer .wrap-wide {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: baseline;
}

footer nav { margin-left: auto; display: flex; gap: 18px; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--copper); }

/* ---------- Accessibility ---------- */

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

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

@media (max-width: 560px) {
  body { font-size: 16px; }
  .masthead .wrap, .masthead .wrap-wide { flex-wrap: wrap; }
  .masthead nav { margin-left: 0; width: 100%; }
  footer nav { margin-left: 0; width: 100%; }
}
