/* Dakota Doll · dakotadollweb.com · "Bunting" design
   Paper white ground, ink blue type, three flag accents used only in small areas.
   Contrast ledger (WCAG 2.x, recomputed by check.py from these literals):
     .main-nav a          #2c3444 on #faf6ee
     .main-nav a:hover    #b8484a on #faf6ee
     .main-nav a.btn      #faf6ee on #2c3444 / hover #faf6ee on #b8484a
     .btn                 #faf6ee on #2c3444 / hover #faf6ee on #b8484a
     .hero .btn           #faf6ee on #b8484a / hover #faf6ee on #2c3444
     .pennant             #faf6ee on #b8484a
     .pennant.b           #faf6ee on #4a6a9a
     .pennant.y           #2c3444 on #d0a84a
     .hero-kicker         #b8484a on #faf6ee
     .eyebrow .section-sub .lead .timeline .what  #525c6e on #faf6ee
     a (inline)           #4a6a9a on #faf6ee
*/

:root {
  --paper: #faf6ee;
  --paper-2: #f3ecdf;
  --ink: #2c3444;
  --ink-soft: #525c6e;
  --red: #b8484a;
  --blue: #4a6a9a;
  --yellow: #d0a84a;
  --line: rgba(44, 52, 68, 0.16);
  --shell: 1120px;
  --display: 'Cabin Sketch', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --body: 'Actor', 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(180deg, rgba(44, 52, 68, 0.03) 0 1px, transparent 1px 26px);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.64;
}

img { max-width: 100%; display: block; }
figure { margin: 0; }

a { color: #4a6a9a; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .wordmark, .btn, .pennant, .hero-tagline, .timeline .when, .social-row .platform, .fact-k {
  font-family: var(--display);
  font-weight: 700;
}

h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.5vw, 2.05rem); line-height: 1.2; }
h3 { margin: 0 0 8px; font-size: 1.12rem; line-height: 1.3; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 22px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #2c3444; color: #faf6ee; padding: 10px 16px; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

/* ---------------------------------------------------------------- header -- */
.site-header { background: #faf6ee; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 15px 22px; max-width: var(--shell); margin: 0 auto; }
.wordmark { font-size: 1.45rem; color: #2c3444; letter-spacing: 0.01em; }
.wordmark:hover { text-decoration: none; color: #b8484a; }

.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.main-nav a { color: #2c3444; font-size: 0.95rem; padding: 8px 11px; border-radius: 9px; }
.main-nav a:hover { color: #b8484a; background: transparent; text-decoration: none; }
.main-nav a[aria-current="page"] { color: #2c3444; box-shadow: inset 0 -3px 0 #d0a84a; }

.btn {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-size: 1rem; padding: 12px 22px; border-radius: 999px;
  border: 1px solid transparent; color: #faf6ee; background: #2c3444;
}
.btn:hover { color: #faf6ee; background: #b8484a; text-decoration: none; }
.btn:focus-visible { outline: 2px solid #4a6a9a; outline-offset: 2px; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }

/* the hero button carries the flag red; hover falls back to ink.
   Written after .btn:hover so it also wins the 0,2,0 tie. */
.hero .btn { color: #faf6ee; background: #b8484a; border-color: #b8484a; }
.hero .btn:hover { color: #faf6ee; background: #2c3444; border-color: #2c3444; text-decoration: none; }

/* explicit override: .main-nav a (0,1,1) would otherwise paint the CTA ink on ink */
.main-nav a.btn { color: #faf6ee; background: #2c3444; border-color: #2c3444; }
.main-nav a.btn:hover { color: #faf6ee; background: #b8484a; border-color: #b8484a; text-decoration: none; }

/* ------------------------------------------------------------------ hero -- */
.hero { padding: 10px 0 4px; text-align: center; }
.hero-arch { display: block; width: 100%; max-width: 800px; margin: 0 auto 0; }
.hero-photo { width: 300px; max-width: min(300px, 84vw); margin: 0 auto 16px; }
.hero-photo img { width: 100%; height: auto; border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 16px 34px rgba(44, 52, 68, 0.15); }
.hero h1 { margin: 0 0 6px; font-size: clamp(2.1rem, 6vw, 3.3rem); line-height: 1.04; letter-spacing: 0.01em; }
.hero-kicker { margin: 0 0 6px; color: #b8484a; font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; }
.hero-tagline { margin: 0; font-size: 1.12rem; color: #4a6a9a; }
.hero-intro { max-width: 64ch; margin: 10px auto 18px; color: #525c6e; }

/* -------------------------------------------------------------- sections -- */
.section { padding: 50px 0; }
.section-tight { padding: 26px 0 44px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 0.84rem; letter-spacing: 0.14em; text-transform: uppercase; color: #525c6e; }
.pennant {
  display: inline-block; min-width: 36px; padding: 4px 9px 5px; text-align: center;
  font-size: 0.88rem; color: #faf6ee; background: #b8484a;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 50% 100%, 0 68%);
}
.pennant.b { background: #4a6a9a; }
.pennant.y { background: #d0a84a; color: #2c3444; }
.section-sub { max-width: 62ch; margin: 6px 0 26px; color: #525c6e; }
.band { display: block; width: 190px; margin: 0 0 14px; }

/* -------------------------------------------------------------- partners -- */
.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.partner-card {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 150px; padding: 14px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
}
.partner-card::before {
  content: ""; position: absolute; top: -1px; left: 50%; margin-left: -7px;
  width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent;
  border-top: 10px solid #b8484a;
}
.partner-card:nth-child(3n + 2)::before { border-top-color: #4a6a9a; }
.partner-card:nth-child(3n)::before { border-top-color: #d0a84a; }
.partner-card img { max-height: 116px; width: auto; max-width: 100%; }
.partner-card:hover { border-color: rgba(44, 52, 68, 0.34); }

/* --------------------------------------------------------------- profile -- */
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 38px; align-items: start; }
.facts { margin: 0; display: grid; grid-template-columns: minmax(0, 165px) minmax(0, 1fr); }
.facts dt, .facts dd { margin: 0; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.facts dt { padding-right: 14px; color: #2c3444; font-size: 0.97rem; }
.facts dd { color: #525c6e; }
.facts dt:last-of-type, .facts dd:last-of-type { border-bottom: 0; }
.notes { background: var(--paper-2); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; }
.notes h3 { color: #2c3444; }
.notes ul { margin: 10px 0 0; padding: 0; list-style: none; }
.notes li { position: relative; padding: 0 0 0 22px; margin: 0 0 12px; color: #525c6e; font-size: 0.97rem; }
.notes li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 0; height: 0;
  border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 9px solid #4a6a9a;
}
.notes li:nth-child(3n + 2)::before { border-top-color: #b8484a; }
.notes li:nth-child(3n)::before { border-top-color: #d0a84a; }

/* ----------------------------------------------------------------- about -- */
.about-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 36px; align-items: start; }
.about-grid figure img { width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--line); }
.about-grid p { margin: 0 0 14px; }
.pull { margin: 20px 0 0; padding: 16px 20px; border-left: 4px solid #d0a84a; background: #fff; border-radius: 0 14px 14px 0; }
.pull p { margin: 0; font-size: 1.06rem; color: #2c3444; }
.pull cite { display: block; margin-top: 8px; font-style: normal; color: #525c6e; font-size: 0.9rem; }

/* -------------------------------------------------------------- timeline -- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0 0 0 30px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, #4a6a9a, #b8484a); opacity: 0.45;
}
.timeline li { position: relative; padding: 0 0 20px; }
.timeline li::before {
  content: ""; position: absolute; left: -30px; top: 5px; width: 0; height: 0;
  border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 13px solid #b8484a;
}
.timeline li:nth-child(3n + 2)::before { border-top-color: #4a6a9a; }
.timeline li:nth-child(3n)::before { border-top-color: #d0a84a; }
.timeline .when { display: block; color: #2c3444; }
.timeline .what { display: block; color: #525c6e; }

/* --------------------------------------------------------------- gallery -- */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.gallery-grid figure { min-width: 0; }
.gallery-grid img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%;
  border-radius: 16px; border: 1px solid var(--line);
}

/* ---------------------------------------------------------------- social -- */
.social-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.social-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: #2c3444;
}
.social-row:hover { text-decoration: none; border-color: rgba(44, 52, 68, 0.34); }
.social-row .platform { color: #2c3444; font-size: 1.02rem; }
.social-row .handle { color: #525c6e; font-size: 0.94rem; }

/* ------------------------------------------------------------ subpages --- */
.page-top { padding: 34px 0 10px; }
.page-top .band { margin-bottom: 16px; }
.page-top h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 4.2vw, 2.6rem); line-height: 1.1; }
.lead { max-width: 68ch; margin: 0; color: #525c6e; font-size: 1.05rem; }
.prose { max-width: 76ch; }
.prose section + section { margin-top: 34px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; }
.prose li { margin: 0 0 7px; }
.rows { margin: 0; display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); }
.rows dt, .rows dd { margin: 0; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rows dt { padding-right: 14px; color: #2c3444; }
.rows dd { color: #525c6e; }
.rows dt:last-of-type, .rows dd:last-of-type { border-bottom: 0; }
.qa { margin: 0; }
.qa dt { margin: 0 0 6px; font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: #2c3444; }
.qa dd { margin: 0 0 22px; padding: 0 0 20px; border-bottom: 1px dashed var(--line); color: #525c6e; }
.qa dd:last-of-type { border-bottom: 0; }
.subphoto { display: none; }

/* ---------------------------------------------------------------- footer -- */
.site-footer { margin-top: 26px; background: #f3ecdf; border-top: 1px solid var(--line); padding: 30px 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px 24px; align-items: center; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand .brand-name { font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: #2c3444; }
.footer-brand .brand-line { color: #525c6e; font-size: 0.94rem; }
.language-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.language-nav a { color: #2c3444; font-size: 0.94rem; }
.language-nav a:hover { color: #b8484a; }
.language-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 #d0a84a; }
.footer-legal { margin: 0; color: #525c6e; font-size: 0.9rem; text-align: right; }

/* -------------------------------------------------------------- 404 page -- */
.error-wrap { text-align: center; padding: 60px 0 80px; }
.error-wrap .band { margin: 0 auto 18px; }
.error-wrap h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 10px; }
.error-wrap p { max-width: 46ch; margin: 0 auto 22px; color: #525c6e; }

/* --------------------------------------------------------------- mobile --- */
@media (max-width: 940px) {
  .profile-grid, .about-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-legal { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 700px) {
  .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-list { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 38px 0; }
  .hero-photo { width: 300px; }
}

@media (max-width: 620px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 18px; }
  .main-nav { gap: 2px; }
  .main-nav a { padding: 7px 8px; font-size: 0.9rem; }
  .main-nav a.btn { margin-top: 6px; }
  .shell { padding: 0 18px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .facts, .rows { grid-template-columns: minmax(0, 1fr); }
  .facts dt, .rows dt { padding-bottom: 2px; border-bottom: 0; }
  .gallery-grid { gap: 14px; }
  .timeline { padding-left: 26px; }
  .timeline li::before { left: -26px; }
}
