:root {
  color-scheme: light;
  --bg: #ecd9ae;
  --surface: #fff6dc;
  --text: #2b2113;
  --accent: #5a3f8c;
  --accent2: #1f6f68;
  --muted: #62543c;
  --rule: #cbb98e;
  --heading: 'American Typewriter', 'Courier Prime', 'Courier New', monospace;
  --body: 'Gill Sans', 'Trebuchet MS', 'Segoe UI', sans-serif;
  --shadow: 0 2px 3px #49381b12, 0 12px 24px -12px #49381b45;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(#71562612 .65px, transparent .8px);
  background-size: 6px 6px;
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, .95rem + .2vw, 1.125rem);
  line-height: 1.65;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}
::selection { color: var(--surface); background: var(--accent); }
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: #185c56; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent2); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
figcaption { padding-top: .65rem; color: var(--muted); font-size: .9rem; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 1rem; font-family: var(--heading); line-height: 1.2; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.25rem + 2.4vw, 3.5rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.3rem); letter-spacing: -.035em; }
h3 { font-size: clamp(1.2rem, 1.06rem + .5vw, 1.55rem); letter-spacing: -.025em; }
h4, h5, h6 { font-size: 1.125rem; }
p { margin: 0 0 1.2rem; }
p:empty { display: none; }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: .4rem; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
blockquote { margin: 1.8rem 0; padding: 1rem 1.4rem; border-left: 3px solid var(--accent2); background: #1f6f680a; }
code, pre { font-family: var(--heading); font-size: .9em; }
pre { overflow-x: auto; padding: 1rem; background: #2b211308; }
table { width: 100%; border-collapse: collapse; font-size: .95em; }
th, td { padding: .7rem; border-bottom: 1px solid var(--rule); text-align: left; overflow-wrap: anywhere; }
th { background: #2b211308; }
button, input, select, textarea { max-width: 100%; font: inherit; }
.page { min-height: 100vh; }
.page-home main { padding-bottom: 1rem; }
.page-sub main { min-height: 60vh; }
.wrap { width: min(1240px, calc(100% - 6rem)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: 1rem; left: 1rem; padding: .8rem 1.2rem; background: var(--surface); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--rule); background: #fff6dc80; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.4rem; }
.brand { flex: 0 0 215px; color: var(--text); font-family: var(--heading); font-size: 1.55rem; font-weight: 700; line-height: 1.15; letter-spacing: -.05em; text-decoration: none; }
.brand::before { content: ''; display: inline-block; width: 13px; height: 18px; margin-right: .6rem; border: 1px solid var(--accent); background: var(--surface); box-shadow: 3px 3px 0 #5a3f8c35; transform: rotate(-1deg); }
.site-nav { max-width: 830px; }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; padding: 0; margin: 0; list-style: none; }
.site-nav ul { justify-content: flex-end; }
.site-nav li, .footer-nav li { margin: 0; }
.site-nav a { display: inline-block; padding-block: .4rem; color: var(--text); font-size: .9rem; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--accent); text-decoration: underline; }
.hero { padding: clamp(2.5rem, 5vw, 5rem) 0 2rem; }
.hero-inner { display: grid; grid-template-columns: 1.12fr 1fr; gap: 2.4rem; align-items: center; }
.hero-text, .card, .split-text, .partner, .article > .wrap { position: relative; background: var(--surface); border: 1px solid #aa90642e; box-shadow: var(--shadow); }
.hero-text { padding: clamp(1.5rem, 3.2vw, 3rem); transform: rotate(-.6deg); }
.hero-text::before, .card::before, .split-text::before, .partner::before, .article > .wrap::before, .hero-media::before, .split-media::before {
  content: '';
  position: absolute;
  z-index: 1;
  width: 84px;
  height: 26px;
  top: -13px;
  left: calc(50% - 42px);
  background: #d3bb82a8;
  border-inline: 1px dashed #fff6dc80;
  box-shadow: 0 1px 1px #49381b0d;
  transform: rotate(-1deg);
  pointer-events: none;
}
.eyebrow { margin-bottom: 1.2rem; color: var(--accent2); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .17em; }
.lead { font-size: clamp(1.05rem, 1rem + .2vw, 1.2rem); line-height: 1.65; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 2.15vw, 3.2rem); }
.hero-actions { margin-top: 1.7rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.25rem; border: 1px solid currentColor; border-radius: 2px; font-size: .95rem; font-weight: 600; text-decoration: none; transition: background-color .18s ease, box-shadow .18s ease; }
.btn-primary { color: var(--surface); background: var(--accent); border-color: var(--accent); box-shadow: 3px 3px 0 #5a3f8c24; }
.btn-primary:hover { color: var(--surface); background: var(--accent2); border-color: var(--accent2); box-shadow: 4px 4px 0 #1f6f6824; }
.hero-media, .split-media { position: relative; padding: 12px 12px 35px; background: var(--surface); box-shadow: var(--shadow); transform: rotate(.8deg); }
.hero-media img { width: 100%; aspect-ratio: 4 / 4.4; }
.section { padding-block: clamp(2.5rem, 4.5vw, 4.75rem); }
.section-title { max-width: 30ch; }
.section-title::before { content: ''; display: block; width: 40px; height: 3px; margin-bottom: 1rem; background: var(--accent2); }
.section-intro { max-width: 76ch; margin-bottom: 2.4rem; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: start; gap: 2.2rem; counter-reset: cards; }
.card { padding: 1.1rem 1.5rem 1.5rem; transform: rotate(-.5deg); counter-increment: cards; }
.card:nth-child(even) { transform: rotate(.6deg); margin-top: 1.8rem; background: #f8edce; }
.card:nth-child(3) { transform: rotate(.35deg); }
.card:nth-child(4) { transform: rotate(-.6deg); }
.card-media { margin: 0 -.4rem 1.35rem; }
.card-media img { width: 100%; aspect-ratio: 2.25 / 1; }
.card-title { padding-right: 1.7rem; }
.card-title::after { content: '0' counter(cards); position: absolute; right: 1.2rem; bottom: 1.25rem; color: var(--accent2); font-size: .85rem; font-weight: 400; }
.card-text { font-size: 1rem; color: var(--muted); }
.card-link { display: inline-block; padding-block: .3rem; font-size: .95rem; font-weight: 700; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; }
.section-feature { padding-top: 2rem; }
.split-text { padding: clamp(1.5rem, 3vw, 2.75rem); transform: rotate(-.4deg); }
.split-text > :last-child { margin-bottom: 0; }
.split-media img { width: 100%; aspect-ratio: 1.2; }
.split-reverse { align-items: start; grid-template-columns: .95fr 1.05fr; }
.split-reverse .split-text:last-child { margin-top: 2rem; transform: rotate(.6deg); background: #f4edda; }
.fact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-block: 1.5rem; padding: 0; list-style: none; }
.fact { margin: 0; padding: 1rem; background: var(--surface); border-top: 2px solid var(--accent2); box-shadow: var(--shadow); }
.section-partners { margin-top: 1rem; border-top: 1px dashed #ad9568; }
.partner-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; padding: 0; margin: 0; list-style: none; }
.partner { min-width: 0; margin: 0; padding: 1.5rem 1.3rem 1.25rem; transform: rotate(-.35deg); }
.partner:nth-child(3n + 2) { transform: rotate(.45deg); background: #f7edce; }
.partner:nth-child(3n) { transform: rotate(-.15deg); background: #f4efdf; }
.partner::before { width: 48px; height: 17px; top: -8px; left: calc(50% - 24px); }
.partner-link { display: block; overflow-wrap: anywhere; word-break: normal; font-size: .875rem; line-height: 1.45; }
.partner-phrase { margin: .8rem 0 .5rem; font-family: var(--heading); font-size: 1rem; font-weight: 700; line-height: 1.4; }
.partner-desc { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.55; }
.article { padding: clamp(2rem, 4vw, 4rem) 0 clamp(3rem, 6vw, 6rem); }
.article > .wrap { width: min(860px, calc(100% - 6rem)); padding: clamp(1.5rem, 5vw, 4.25rem); }
.breadcrumb { margin-bottom: 2rem; color: var(--muted); font-size: .85rem; line-height: 1.6; }
.breadcrumb a { margin-right: .3rem; }
.breadcrumb span { margin-left: .3rem; }
.page-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.page-header h1 { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 3rem); }
.page-header .lead { margin-top: 1.5rem; }
.article-figure { margin: 0 0 2.5rem; padding: 8px 8px 24px; background: #f4e8c7; border: 1px solid var(--rule); transform: rotate(.4deg); }
.article-figure img { width: 100%; aspect-ratio: 7 / 4; }
.prose { max-width: 66ch; margin-inline: auto; line-height: 1.8; overflow-wrap: anywhere; }
.prose h2 { margin-top: 2.2rem; font-size: clamp(1.4rem, 1.2rem + .65vw, 1.8rem); }
.prose h3 { margin-top: 1.8rem; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose li::marker { color: var(--accent2); }
.note { margin-block: 1.8rem; padding: 1.25rem 1.5rem; background: #eee5cd; border-left: 3px solid var(--accent2); }
.note > :last-child { margin-bottom: 0; }
.site-footer { margin-top: 1.5rem; padding-block: 2.5rem; border-top: 1px solid var(--rule); background: #fff6dc70; }
.footer-inner { display: flex; justify-content: space-between; align-items: start; gap: 3rem; }
.footer-note { max-width: 39ch; margin: 0; color: var(--muted); font-size: .95rem; }
.footer-nav { max-width: 540px; }
.footer-nav a { display: inline-block; padding-block: .3rem; font-size: .9rem; }
.hero-inner > *, .split > *, .card-grid > * { min-width: 0; }

@media (min-width: 1400px) {
  .card-grid { grid-template-columns: 1.1fr 1fr 1fr 1.05fr; gap: 1.5rem; }
  .card { padding-inline: 1.15rem; }
  .card-media img { aspect-ratio: 1.25; }
  .card:nth-child(3) { margin-top: .8rem; }
  .card:nth-child(4) { margin-top: 3rem; }
}
@media (max-width: 1050px) {
  .header-inner { flex-direction: column; gap: .8rem; align-items: start; }
  .brand { flex-basis: auto; }
  .site-nav ul { justify-content: flex-start; }
  .hero-inner { gap: 1.5rem; }
  .partner-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { gap: 1.5rem; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 3rem); }
  .hero-inner, .split, .split-reverse { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero-media { width: 94%; justify-self: center; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .hero-text { padding: 2rem 1.5rem; }
  .hero h1 { max-width: 23ch; }
  .split-media { width: 94%; justify-self: center; }
  .split-media img { aspect-ratio: 16 / 10; }
  .split-reverse .split-text:last-child { margin-top: 0; }
  .card-grid { gap: 1.4rem; }
  .card { padding: 1rem; }
  .card-media { margin-inline: 0; }
  .card-media img { aspect-ratio: 1.4; }
  .article > .wrap { width: calc(100% - 3rem); }
  .footer-inner { flex-direction: column; gap: 1.2rem; }
}
@media (max-width: 540px) {
  .site-nav ul { gap: .15rem 1rem; }
  .site-nav a { font-size: .84rem; }
  .card-grid, .partner-list, .fact-list { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 1rem 1.25rem 1.4rem; }
  .card:nth-child(even) { margin-top: 0; }
  .card-media img { aspect-ratio: 1.9; }
  .card-grid { gap: 2rem; }
  .partner-list { gap: 1.4rem; }
  .partner { padding: 1.4rem 1.25rem; }
  .article > .wrap { padding: 1.5rem 1.25rem; }
  .breadcrumb { margin-bottom: 1.5rem; }
  .page-header h1 { font-size: clamp(1.75rem, 7vw, 2.3rem); }
  .hero-text, .split-text { transform: rotate(-.25deg); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  body { background: white; color: black; font-size: 11pt; }
  .site-header, .site-footer, .skip-link, .hero-actions { display: none; }
  .article { padding: 0; }
  .article > .wrap { width: 100%; max-width: none; padding: 0; border: 0; box-shadow: none; }
  .article > .wrap::before { display: none; }
  .article-figure { max-width: 70%; transform: none; }
  h2, h3 { break-after: avoid; }
  img, .partner, .card { break-inside: avoid; }
  a { color: inherit; }
}
