:root {
  --cream: #fff3d6;
  --paper: #ffffff;
  --plum: #2b1740;
  --violet: #6a3de8;
  --red: #f0412f;
  --yellow: #ffc21a;
  --teal: #14a39a;
  --heading: 'Arial Rounded MT Bold', 'Trebuchet MS', 'Avenir Next', system-ui, sans-serif;
  --body: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --border: 3px solid var(--plum);
  --shadow: 7px 7px 0 var(--plum);
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font-family: var(--body);
  font-size: clamp(1rem, .95rem + .2vw, 1.125rem);
  line-height: 1.7;
  overflow-wrap: break-word;
}
.page { min-width: 0; }
main, section, article, header, footer, nav, figure, div { min-width: 0; }
img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .65em;
  font-family: var(--heading);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.035em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
  text-wrap: balance;
}
h1 { font-size: clamp(1.5rem, .8rem + 2vw, 3rem); hyphens: auto; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2vw, 3.3rem); }
h3 { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.9rem); }
p { margin: 0 0 1.2em; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { text-decoration-style: wavy; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 5px;
  box-shadow: 0 0 0 5px var(--paper);
}
::selection { background: var(--plum); color: var(--cream); }
ul, ol { padding-left: 1.4em; }
li + li { margin-top: .4em; }
blockquote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 6px solid var(--violet); background: var(--cream); }
hr { border: 0; border-top: 3px dashed var(--plum); margin: 2rem 0; }
button, input, select, textarea { font: inherit; max-width: 100%; }
button, input, select, textarea { border: var(--border); padding: .65em; background: var(--paper); color: var(--plum); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .65em; border: 1px solid var(--plum); text-align: left; overflow-wrap: anywhere; }
th { background: var(--cream); }
pre { overflow: auto; padding: 1rem; background: var(--cream); }
figcaption, small { font-size: max(.75rem, .875em); }
.wrap { width: min(1280px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; top: 12px; left: 16px; z-index: 20; padding: .75rem 1rem; background: var(--yellow); border: var(--border); transform: translateY(-180%); font-weight: 800; }
.skip-link:focus { transform: none; }

.site-header { border-bottom: var(--border); background: var(--paper); position: relative; z-index: 2; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.35rem; }
.brand { flex-shrink: 0; font-family: var(--heading); font-size: clamp(1.2rem, 1rem + .7vw, 1.65rem); font-weight: 900; text-decoration: none; letter-spacing: -.04em; border: var(--border); border-radius: 50%; padding: .65rem 1rem; background: var(--yellow); box-shadow: 3px 3px 0 var(--plum); transform: rotate(-3deg); }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; list-style: none; margin: 0; padding: 0; }
.site-nav li, .footer-nav li { margin: 0; }
.site-nav a { display: inline-block; padding-block: .45rem; font-size: .87rem; font-weight: 800; text-decoration: none; }
.site-nav a:hover { color: var(--violet); text-decoration: underline; }

.page-home .hero, .page-sub .article {
  background-image: radial-gradient(circle at 12px 22px, var(--red) 2px, transparent 3px), radial-gradient(circle at 96px 82px, var(--teal) 3px, transparent 4px), radial-gradient(circle at 159px 35px, var(--violet) 2px, transparent 3px);
  background-size: 210px 150px;
}
.hero { padding: clamp(3rem, 6vw, 6rem) 0 clamp(4rem, 7vw, 7rem); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center; gap: 2.4rem; }
.hero-text { position: relative; z-index: 1; padding: clamp(1.3rem, 3vw, 2.8rem); background: var(--yellow); border: var(--border); border-radius: 5px 24px 5px 5px; box-shadow: 10px 10px 0 var(--plum); transform: rotate(-1deg); }
.hero h1 { font-size: clamp(1.5rem, 1rem + 1.5vw, 2.7rem); line-height: 1.04; margin-block: .7em .5em; }
.eyebrow { display: inline-block; max-width: 100%; margin: 0; padding: .45rem .8rem; background: var(--paper); border: 2px solid var(--plum); border-radius: 100px; font-weight: 800; font-size: .75rem; line-height: 1.45; letter-spacing: .06em; text-transform: uppercase; box-shadow: 3px 3px 0 var(--red); }
.lead { font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); line-height: 1.65; }
.hero .lead { font-size: clamp(1rem, .95rem + .15vw, 1.08rem); }
.hero-actions { margin-top: 1.6rem; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .85rem 1.2rem; border: var(--border); border-radius: 5px; box-shadow: 4px 4px 0 var(--plum); font-size: .95rem; font-weight: 800; line-height: 1.4; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.btn-primary { background: var(--violet); color: var(--paper); }
.hero-media, .split-media, .article-figure { position: relative; padding: 12px 12px 28px; border: var(--border); background: var(--paper); box-shadow: var(--shadow); transform: rotate(2deg); }
.hero-media::before, .split-media::before, .article-figure::before { content: ''; position: absolute; z-index: 1; width: 96px; height: 26px; background: var(--red); border: 2px solid var(--plum); top: -15px; left: calc(50% - 48px); transform: rotate(-7deg); }
.hero-media img { aspect-ratio: 1 / 1.12; object-position: center; border: 2px solid var(--plum); }

.section { position: relative; padding-block: clamp(3.5rem, 6vw, 6rem); }
.hero + .section::before, .section-feature::before, .site-footer::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 20px;
  background: repeating-linear-gradient(135deg, var(--red) 0 15px, var(--yellow) 15px 30px, var(--teal) 30px 45px, var(--violet) 45px 60px);
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 100%);
  pointer-events: none;
}
.hero + .section { border-top: var(--border); }
.section-title { max-width: 23ch; }
.section-intro { max-width: 72ch; margin-bottom: 2.5rem; }
.card-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2rem; counter-reset: topics; padding-block: .5rem; }
.card { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; position: relative; border: var(--border); padding: clamp(1.4rem, 2.5vw, 2rem); background: var(--yellow); box-shadow: var(--shadow); transform: rotate(-1deg); transition: transform .2s ease, box-shadow .2s ease; counter-increment: topics; }
.card::before { content: '0' counter(topics); display: inline-block; font-family: var(--heading); font-weight: 900; font-size: 1.1rem; line-height: 1; margin-bottom: 2rem; padding: .6rem .7rem; border: 2px solid currentColor; border-radius: 50%; }
.card:nth-child(2) { background: var(--teal); transform: rotate(1.3deg); }
.card:nth-child(3) { background: var(--violet); color: var(--paper); transform: rotate(-.7deg); }
.card:nth-child(4) { grid-column: span 3; background: var(--paper); transform: rotate(.8deg); }
.card:nth-child(5) { grid-column: span 3; background: var(--yellow); transform: rotate(-1.2deg); border-radius: 0 40px 0 0; }
.card-title { max-width: 22ch; }
.card-text { margin-bottom: 1.5rem; }
.card-link { margin-top: auto; display: inline-block; font-size: .93rem; font-weight: 800; padding-block: .5rem; }
.card-link::after { content: ' ↗'; margin-left: .5rem; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split-text > :last-child { margin-bottom: 0; }
.split-media img { aspect-ratio: 3 / 2; }
.section-feature { background: var(--violet); color: var(--paper); border-block: var(--border); }
.section-feature .section-title { color: var(--cream); }
.section-feature + .section-feature { background: var(--yellow); color: var(--plum); border-top: 0; }
.section-feature + .section-feature .section-title { color: var(--plum); }
.section-feature + .section-feature .split-media { transform: rotate(-2deg); }
.fact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; list-style: none; padding: 0; margin: 2.5rem 0 0; }
.fact { margin: 0; padding: 1.5rem; background: var(--paper); border: var(--border); border-top: 10px solid var(--red); box-shadow: 5px 5px 0 var(--plum); font-weight: 750; }
.fact:nth-child(2) { border-top-color: var(--violet); }
.fact:nth-child(3) { border-top-color: var(--teal); }
.section-partners { background: var(--yellow); border-top: var(--border); }
.partner-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; margin: 0; padding: 0; list-style: none; }
.partner { min-width: 0; margin: 0; padding: 1.5rem; border: 3px dashed var(--plum); border-radius: 16px 0 16px 0; background: var(--paper); box-shadow: 5px 5px 0 var(--plum); }
.partner-link { display: block; overflow-wrap: anywhere; word-break: normal; font-family: var(--body); font-weight: 850; font-size: 1rem; line-height: 1.5; color: var(--violet); padding-bottom: 1rem; border-bottom: 2px dashed var(--plum); }
.partner-phrase { font-family: var(--heading); font-weight: 900; font-size: 1.25rem; margin: 1rem 0 .5rem; }
.partner-desc { font-size: .96rem; margin: 0; }

.article { padding-block: clamp(2rem, 5vw, 5rem) clamp(4rem, 7vw, 7rem); }
.article > .wrap { max-width: 960px; padding: clamp(1.25rem, 4vw, 4rem); background: var(--paper); border: var(--border); box-shadow: 9px 9px 0 var(--plum); }
.breadcrumb { margin-bottom: 2rem; font-size: .85rem; font-weight: 750; overflow-wrap: anywhere; }
.breadcrumb a { color: var(--violet); }
.page-header { margin-bottom: 2.5rem; }
.page-header h1 { padding: clamp(1rem, 3vw, 2rem); border: var(--border); background: var(--yellow); box-shadow: 5px 5px 0 var(--red); font-size: clamp(1.5rem, .8rem + 2vw, 3rem); transform: rotate(-.7deg); margin-bottom: 1.5rem; }
.page-header .lead { max-width: 66ch; margin-inline: auto; }
.article-figure { max-width: 620px; margin: 2.8rem auto 3.5rem; transform: rotate(1deg); }
.article-figure img { max-height: 480px; object-fit: contain; background: var(--cream); }
.prose { max-width: 66ch; margin-inline: auto; }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); margin-top: 1.7em; padding-bottom: .4em; border-bottom: 6px solid var(--yellow); text-wrap: pretty; }
.prose h2:nth-of-type(3n + 2) { border-bottom-color: var(--teal); }
.prose h2:nth-of-type(3n) { border-bottom-color: var(--violet); }
.prose a { color: var(--violet); font-weight: 700; overflow-wrap: anywhere; }
:is(h1, h2, h3, h4, h5, h6) a { hyphens: manual; overflow-wrap: normal; word-break: normal; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.note { position: relative; margin: 2.5rem 0 1rem; padding: 1.4rem 1.6rem; border: var(--border); border-radius: 24px 24px 24px 0; background: var(--yellow); box-shadow: 5px 5px 0 var(--plum); font-size: .95rem; font-weight: 650; }
.note::after { content: ''; position: absolute; bottom: -15px; left: 25px; width: 25px; height: 25px; background: var(--yellow); border-right: var(--border); border-bottom: var(--border); transform: skewY(35deg); }
.note p { margin: 0; }
.site-footer { position: relative; padding: 3.5rem 0 2.5rem; background: var(--plum); color: var(--cream); }
.site-footer::before { height: 24px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 55%); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.footer-note { max-width: 48ch; margin: 0; font-size: .95rem; }
.footer-nav ul { justify-content: flex-end; }
.footer-nav a { display: inline-block; padding-block: .45rem; font-weight: 700; font-size: .9rem; }
.footer-nav a:hover { color: var(--yellow); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--plum); }
  .card:hover { transform: rotate(0) translateY(-4px); box-shadow: 9px 11px 0 var(--plum); }
}
@media (min-width: 1450px) {
  .hero-inner { gap: 3.5rem; }
  .hero-media { transform: rotate(3deg); }
}
@media (max-width: 1100px) {
  .header-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; }
  .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .wrap { width: calc(100% - 48px); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .hero h1 { font-size: clamp(1.5rem, 5.8vw, 3.6rem); }
  .hero-media { width: min(90%, 520px); justify-self: center; }
  .hero-media img { aspect-ratio: 3 / 2; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card:nth-child(4) { grid-column: auto; }
  .card:nth-child(5) { grid-column: 1 / -1; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-media { max-width: 620px; width: 95%; margin-inline: auto; }
  .fact-list { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { flex-direction: column; }
  .footer-nav ul { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { padding-block: 1rem; }
  .brand { transform: none; font-size: 1.3rem; }
  .site-nav ul { gap: .15rem .9rem; }
  .site-nav a { font-size: .8rem; padding-block: .6rem; }
  .hero { padding-block: 2rem 3rem; }
  .hero-text { padding: 1.2rem; border-radius: 3px 20px 3px 3px; box-shadow: 5px 5px 0 var(--plum); }
  .hero h1 { font-size: clamp(1.5rem, 5.8vw, 2.7rem); }
  .hero-media { width: calc(100% - 8px); }
  .btn { width: 100%; }
  .card-grid, .partner-list { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .card:nth-child(n) { grid-column: auto; }
  .card::before { margin-bottom: 1.2rem; }
  .hero-text, .hero-media, .card:nth-child(n), .split-media, .section-feature + .section-feature .split-media, .page-header h1, .article-figure { transform: none; }
  .article > .wrap { padding: 1.15rem; box-shadow: 5px 5px 0 var(--plum); }
  .page-header h1 { font-size: clamp(1.5rem, 5.8vw, 2.4rem); padding: .8rem; }
  .article-figure { padding: 7px 7px 18px; margin-block: 2.5rem; }
  .note { padding: 1.15rem; }
  .section { padding-block: 3.5rem; }
}
@media (max-width: 480px) {
  h1, .hero h1, .page-header h1 { font-size: clamp(1.5rem, 6.15vw, 1.7rem); }
  h2, .prose h2 { font-size: clamp(1.1rem, 5.2vw, 1.5rem); }
  h3 { font-size: clamp(1.1rem, 5vw, 1.35rem); }
  .brand, .btn, .card-title { min-width: 0; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  body, .article { background: white; color: black; }
  .site-header, .site-footer, .skip-link { display: none; }
  .wrap, .article > .wrap { width: 100%; max-width: none; padding: 0; border: 0; box-shadow: none; }
  .page-header h1, .article-figure, .note { transform: none; box-shadow: none; }
  .prose { max-width: none; }
  .article-figure { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
}
