:root {
  color-scheme: light;
  --bg: #ece4d6;
  --surface: #f8f4ec;
  --text: #2b2622;
  --accent: #a04668;
  --accent2: #6f8a7a;
  --muted: #62584e;
  --line: #b8ab98;
  --heading: Didot, 'Bodoni MT', 'Playfair Display', Georgia, serif;
  --body: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(rgba(73, 55, 36, .07) .55px, transparent .75px);
  background-size: 5px 5px;
  color: var(--text);
  font-family: var(--body);
  font-size: clamp(1rem, .95rem + .2vw, 1.125rem);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
.page { min-height: 100vh; }
main, section, article, nav, div, figure { min-width: 0; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(2.65rem, 2rem + 3vw, 5.4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 1.4rem + 1.7vw, 3.35rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.5rem, 1.25rem + .5vw, 1.9rem); }
h4, h5, h6 { font-size: 1.35rem; }
p { margin: 0 0 1.25rem; }
a { color: #893651; text-decoration-thickness: 1px; text-underline-offset: .23em; }
a:hover { color: var(--text); text-decoration-thickness: 2px; }
a, button { -webkit-tap-highlight-color: #a0466826; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: #a04668; color: #fff; }
img { display: block; max-width: 100%; height: auto; object-fit: cover; }
figure { margin: 0; }
figcaption, small { font-size: .85rem; color: var(--muted); }
ul, ol { padding-inline-start: 1.4rem; }
li { padding-inline-start: .15rem; }
li::marker { color: var(--accent); }
strong, b { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
blockquote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 3px solid var(--accent); }
table { width: 100%; border-collapse: collapse; font-size: .95em; }
th, td { padding: .75rem; text-align: left; border-bottom: 1px solid var(--line); }
code, pre { font-family: ui-monospace, monospace; font-size: .9em; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.wrap { width: min(100% - var(--gutter) * 2, 1320px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: 1rem; left: 1rem; padding: .8rem 1.2rem; background: var(--surface); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.site-header { border-top: 5px solid var(--accent2); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: 1.65rem; }
.brand { max-width: 17rem; font: 400 clamp(1.45rem, 1.1rem + .65vw, 1.85rem)/1.15 var(--heading); color: var(--text); text-decoration: none; letter-spacing: -.035em; }
.site-nav ul, .footer-nav ul { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.5rem; list-style: none; margin: 0; padding: 0; }
.site-nav li, .footer-nav li { padding: 0; }
.site-nav a { display: inline-block; padding-block: .5rem; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #893651; border-color: var(--accent); }

.hero { padding-block: clamp(3rem, 6vw, 6.5rem); }
.hero-inner { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero-text { padding-block: 1rem; }
.eyebrow { max-width: 30rem; margin-bottom: 1.6rem; font-size: .7rem; font-weight: 650; letter-spacing: .19em; text-transform: uppercase; color: #893651; }
.eyebrow::before { content: ""; display: block; width: 2.75rem; height: 3px; margin-bottom: 1.25rem; background: var(--accent2); }
.hero h1 { margin-bottom: 1.75rem; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1rem + .25vw, 1.25rem); line-height: 1.7; }
.hero-actions { margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.4rem; border: 1px solid var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-decoration: none; transition: background-color .2s, transform .2s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #803550; color: #fff; transform: translateY(-2px); }
.hero-media, .split-media { padding: clamp(1rem, 2.6vw, 2.7rem); background: var(--surface); border: 1px solid #807261; box-shadow: 3px 4px 0 #c5baa8, 8px 14px 24px #48372415; }
.hero-media { margin-block: 1.5rem 0; transform: rotate(1.3deg); padding-bottom: clamp(2rem, 4vw, 4rem); }
.hero-media img { width: 100%; aspect-ratio: 1.08; object-position: 50% 50%; border: 1px solid #cec3b3; }

.section { padding-block: clamp(2.75rem, 5vw, 5rem); }
.section-title { max-width: 23ch; }
.section-intro { max-width: 65ch; color: var(--muted); margin-bottom: 2.75rem; }
#guides { border-top: 1px solid var(--line); }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); align-items: start; counter-reset: guide; padding-bottom: 2rem; }
.card { position: relative; display: flex; flex-direction: column; min-height: 23rem; padding: clamp(1.4rem, 2.3vw, 2.25rem); background: var(--surface); border: 1px solid #958673; box-shadow: inset 0 0 0 7px var(--bg), inset 0 0 0 8px #d1c5b4, 3px 5px 0 #d6cbbb; counter-increment: guide; transition: transform .22s, box-shadow .22s; }
.card::before { content: "STUDY / " counter(guide, decimal-leading-zero); margin-block: .25rem 1.75rem; color: #893651; font-size: .65rem; font-weight: 650; letter-spacing: .17em; }
.card:nth-child(even) { margin-top: 2rem; }
.card:nth-child(3n)::before { color: #435e4e; }
.card-title { font-size: clamp(1.45rem, 1.15rem + .55vw, 1.8rem); line-height: 1.2; }
.card-text { color: var(--muted); font-size: .9rem; line-height: 1.7; }
.card-link { margin-top: auto; align-self: start; padding-top: .8rem; font-size: .72rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.card:focus-within { border-color: var(--accent); }

.split { display: flex; flex-direction: column; gap: 2.5rem; }
.split-media { order: -1; }
.split-media img { width: 100%; aspect-ratio: 3 / 4; }
.split-text { max-width: 38rem; padding-inline: clamp(.25rem, 2vw, 2rem); }
.split-text p { color: var(--muted); }
.section-feature + .section-feature .split-media { border-color: var(--accent2); padding-bottom: clamp(2rem, 4vw, 4rem); }
.section-feature + .section-feature .split-media img { aspect-ratio: 4 / 3; }
.fact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 2.5rem 0 0; gap: 1.5rem 3rem; counter-reset: fact; }
.fact { counter-increment: fact; display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--accent2); font-size: .95rem; }
.fact::before { content: counter(fact, decimal-leading-zero); color: #893651; font-family: var(--heading); font-size: 1.7rem; line-height: 1.2; }
.section-partners { background: var(--surface); border-top: 1px solid var(--line); }
.partner-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 6rem); list-style: none; margin: 0; padding: 0; }
.partner { padding: 1.6rem 0 1.8rem; border-top: 1px solid #c9bdac; min-width: 0; }
.partner-link { overflow-wrap: anywhere; font-size: .9rem; }
.partner-phrase { margin: .8rem 0 .55rem; font-size: .72rem; font-weight: 650; line-height: 1.6; letter-spacing: .1em; text-transform: uppercase; }
.partner-desc { color: var(--muted); font-size: .9rem; margin: 0; }

.page-sub { background-color: var(--surface); }
.page-sub .site-header { background: var(--bg); }
.article { padding-block: clamp(2rem, 4.5vw, 4.5rem) clamp(4rem, 7vw, 7rem); }
.article > .wrap { max-width: 740px; }
.breadcrumb { font-size: .75rem; color: var(--muted); margin-bottom: 2.5rem; }
.breadcrumb a { margin-right: .5rem; }
.breadcrumb span { margin-left: .5rem; }
.page-header { padding-bottom: 2rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.page-header::before { content: ""; display: block; height: 4px; width: 3.5rem; background: var(--accent2); margin-bottom: 1.75rem; }
.page-header h1 { font-size: clamp(2.5rem, 1.7rem + 2.6vw, 4.5rem); }
.page-header .lead { margin: 1.5rem 0 0; }
.prose { font-size: clamp(1rem, .94rem + .22vw, 1.125rem); line-height: 1.85; }
.prose h2 { margin-top: 2.5rem; margin-bottom: 1.15rem; font-size: clamp(1.85rem, 1.5rem + 1vw, 2.6rem); }
.prose h3 { margin-top: 2rem; }
.prose p { margin-bottom: 1.35rem; }
.prose li { margin-bottom: .6rem; }
.note { margin-top: 2.75rem; padding: clamp(1.3rem, 3vw, 2rem); border-left: 4px solid var(--accent); background: var(--bg); }
.note p { margin: 0; font-family: var(--heading); font-size: clamp(1.3rem, 1.2rem + .4vw, 1.6rem); line-height: 1.55; }
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: 2.5rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: start; gap: 2rem 4rem; }
.footer-note { max-width: 58ch; margin: 0; color: var(--muted); font-size: .8rem; }
.footer-nav { flex-shrink: 0; }
.footer-nav a { display: inline-block; padding-block: .35rem; font-size: .8rem; }

@media (min-width: 960px) {
  .page-home main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .page-home main > section { grid-column: 1 / -1; }
  .page-home main > .section-feature { grid-column: 1; width: min(100%, 650px); justify-self: end; padding-left: var(--gutter); padding-right: clamp(1.5rem, 3vw, 3rem); }
  .page-home main > .section-feature + .section-feature { grid-column: 2; width: min(100%, 750px); justify-self: start; padding-top: 11rem; padding-left: clamp(1.5rem, 3vw, 3rem); padding-right: var(--gutter); }
  .section-feature .wrap { width: 100%; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 7px var(--bg), inset 0 0 0 8px #d1c5b4, 3px 9px 0 #d6cbbb; }
}
@media (max-width: 1100px) {
  .header-inner { flex-direction: column; align-items: start; gap: .75rem; }
  .brand { max-width: none; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { min-height: 20rem; }
}
@media (max-width: 700px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .hero-text { max-width: 36rem; }
  .hero-media { margin: .75rem .25rem 1rem; transform: rotate(.6deg); }
  .hero-media img { aspect-ratio: 4 / 3; }
  .site-nav ul { gap: .15rem 1.2rem; }
  .site-nav a { font-size: .69rem; }
  .fact-list, .partner-list { grid-template-columns: minmax(0, 1fr); }
  .fact-list { gap: .5rem; }
  .footer-inner { flex-direction: column; gap: 1.25rem; }
  .section-feature .split-media { max-width: 28rem; margin-inline: auto; }
  .section-feature + .section-feature .split-media { max-width: 35rem; }
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-bottom: 0; }
  .card, .card:nth-child(even) { min-height: 0; margin-top: 0; padding: 2rem; }
  .card::before { margin-bottom: 1.25rem; }
  .card-title { font-size: 1.75rem; }
  .section-title { max-width: none; }
  .partner-link { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}
@media print {
  body, .page-sub { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer, .skip-link, .hero-actions { display: none; }
  .wrap, .article > .wrap { width: 100%; max-width: none; }
  .article, .section { padding-block: 1rem; }
  .hero-media, .split-media, .card { box-shadow: none; transform: none; }
  a { color: #000; }
  h1, h2, h3 { break-after: avoid; }
  .note, figure, .card { break-inside: avoid; }
}
