:root {
  --paper: #f5f2eb;
  --ink: #17191d;
  --muted: #666861;
  --violet: #6a50ca;
  --lavender: #b9a6ff;
  --coral: #ff805d;
  --line: rgba(23, 25, 29, 0.14);
  --white: #fff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; border-radius: 4px; }
.shell { min-height: 100vh; }
.nav {
  max-width: 1080px;
  margin: auto;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: -.01em;
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(23,25,29,.15);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.45);
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
}
.back-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.back-link:hover { color: var(--violet); }
.hero {
  max-width: 1080px;
  margin: auto;
  padding: 72px 32px 58px;
}
.eyebrow {
  margin: 0 0 18px;
  color: #706f6a;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1 {
  max-width: 850px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 78px);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.05em;
}
.updated, .intro {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.65;
}
.updated { margin: 20px 0 0; font-size: 14px; }
.intro { margin: 24px 0 0; font-size: 19px; }
.content-wrap {
  max-width: 1080px;
  margin: auto;
  padding: 0 32px 110px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 72px;
  align-items: start;
}
.content {
  max-width: 740px;
  padding: 46px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.5);
}
.content section + section { margin-top: 44px; }
.content h2 {
  margin: 0 0 15px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 400;
  letter-spacing: -.025em;
}
.content p {
  margin: 0 0 16px;
  color: #4f514d;
  font-size: 16px;
  line-height: 1.75;
}
.content p:last-child { margin-bottom: 0; }
.content a { color: #4934a5; text-underline-offset: 3px; }
.sidebar {
  position: sticky;
  top: 28px;
  padding: 28px;
  border-radius: 24px;
  background: var(--ink);
  color: var(--white);
}
.sidebar p { margin: 0 0 12px; color: #bebfbb; font-size: 13px; line-height: 1.55; }
.sidebar h2 { margin: 0 0 12px; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.button {
  min-height: 46px;
  margin-top: 8px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--lavender);
  color: #272039;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.button:hover { background: var(--coral); }
.related { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); }
.related a { color: var(--white); font-size: 13px; text-underline-offset: 3px; }
.footer {
  padding: 46px max(32px, calc((100vw - 1016px)/2));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 36px;
  background: var(--ink);
  color: var(--white);
}
.footer .brand { color: var(--white); }
.footer .brand-mark { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.05); }
.footer p { margin: 16px 0 0; color: #9b9c98; font-size: 13px; }
.footer-right { text-align: right; }
.footer-right p { margin: 5px 0; font-size: 12px; }
.footer-right a { color: #d9d9d5; text-underline-offset: 3px; }

@media (max-width: 820px) {
  .content-wrap { grid-template-columns: 1fr; gap: 28px; }
  .sidebar { position: static; order: -1; }
}
@media (max-width: 600px) {
  .nav { padding: 20px; align-items: flex-start; }
  .brand span:last-child { max-width: 145px; line-height: 1.1; }
  .back-link { padding-top: 10px; }
  .hero { padding: 50px 20px 38px; }
  .content-wrap { padding: 0 20px 76px; }
  .content { padding: 29px 24px; border-radius: 23px; }
  .content h2 { font-size: 26px; }
  .content p { font-size: 15px; }
  .footer { padding: 42px 20px; align-items: flex-start; flex-direction: column; }
  .footer-right { text-align: left; }
}
