@font-face {
  font-family: Jakarta;
  src: url('/assets/jakarta.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #2f2330;
  --muted: #756775;
  --paper: #fcf9f6;
  --surface: #fffdfb;
  --line: #e5dbe2;
  --soft: #f1e9ef;
  --plum: #5a3b56;
  --plum-dark: #442d42;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Jakarta, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--plum); text-underline-offset: .24em; }
a:hover { color: var(--plum-dark); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 5px;
  border-radius: 4px;
}

header {
  width: min(1180px, calc(100% - 80px));
  min-height: 106px;
  margin: auto;
  padding-block: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: .85rem; }
nav a { text-decoration: none; font-weight: 550; }
nav a:hover { text-decoration: underline; }
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.06em;
  text-decoration: none;
}
.brand img { display: block; width: 40px; height: 40px; object-fit: contain; }

main {
  width: min(820px, calc(100% - 80px));
  margin: auto;
  padding-block: 76px 88px;
  min-height: 65vh;
}
h1, h2 { color: var(--ink); }
h1 {
  max-width: 760px;
  font-weight: 650;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: -.06em;
  margin: 18px 0 25px;
  text-wrap: balance;
}
h2 {
  font-size: 1.4rem;
  line-height: 1.4;
  margin: 0 0 16px;
  font-weight: 650;
  letter-spacing: -.03em;
}
p { margin: 0 0 20px; }
.lead { font-size: 1.08rem; color: var(--muted); line-height: 1.9; }
.eyebrow {
  color: var(--plum);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .7rem;
  font-weight: 750;
}
.meta, .small { font-size: .82rem; line-height: 1.8; color: var(--muted); }
.meta { margin-bottom: 28px; }
main > section {
  margin-top: 38px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
ul, ol { padding-left: 1.4em; }
li { padding-left: .25em; margin-bottom: 12px; }
.note {
  background: linear-gradient(135deg, var(--soft), #f8efe9);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 30px;
  margin: 32px 0;
}
.note > strong { font-size: 1.08rem; color: var(--plum-dark); }
.note > strong + p { margin-top: 8px; }
.note p:last-child, .note ol:last-child { margin-bottom: 0; }
main > section.note { padding: 28px 30px; }
.toc {
  padding: 20px 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  margin-block: 28px 40px;
}
summary { cursor: pointer; color: var(--plum); font-weight: 650; }
summary::marker { color: var(--plum); }
.toc ul { margin: 20px 0 0; }
.toc li:last-child { margin-bottom: 0; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  max-width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--plum);
  color: white;
  padding: 13px 23px;
  font-size: .9rem;
  line-height: 1.6;
  font-weight: 650;
  text-decoration: none;
  text-align: center;
  margin: 8px 0 20px;
  transition: background .2s ease;
}
.button:hover { background: var(--plum-dark); color: white; }
.secondary { background: transparent; border-color: var(--plum); color: var(--plum); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cards .note { margin-bottom: 0; }
footer {
  width: min(1180px, calc(100% - 80px));
  border-top: 1px solid var(--line);
  margin: auto;
  padding-block: 30px 34px;
  color: var(--muted);
  font-size: .78rem;
}
footer p { margin: 8px 0; }
footer p:first-child { color: var(--plum); font-weight: 650; }
.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  background: var(--plum);
  color: white;
  border-radius: 12px;
  padding: 10px 18px;
  z-index: 2;
}
.skip:focus { top: 12px; color: white; }

@media (max-width: 760px) {
  header, main, footer { width: calc(100% - 40px); }
  header { min-height: 88px; gap: 18px; }
  nav { gap: 8px 16px; font-size: .78rem; }
  .brand { font-size: 1.6rem; }
  .brand img { width: 36px; height: 36px; }
  main { padding-block: 44px 60px; }
  h1 { font-size: clamp(2.1rem, 7vw, 3rem); }
  .lead { font-size: 1rem; }
}

@media (max-width: 500px) {
  body { font-size: 15px; }
  header { align-items: flex-start; flex-direction: column; padding-block: 20px; gap: 17px; }
  nav { column-gap: 22px; }
  h2 { font-size: 1.22rem; }
  .note, main > section.note { padding: 23px 20px; border-radius: 20px; }
  .toc { padding: 19px 20px; }
  .cards { grid-template-columns: 1fr; gap: 0; }
  footer { padding-block: 24px 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

@media print {
  header nav, .button, .skip { display: none; }
  body { background: white; color: black; font-size: 11pt; }
  header, main, footer { width: 100%; max-width: none; }
  main { padding: 24px 0; }
  .note { break-inside: avoid; background: white; }
  details > ul { display: block; }
  h2 { break-after: avoid; }
  a { color: inherit; }
}
