@font-face {
  font-family: "Noto Sans";
  src: url("assets/noto-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}

@font-face {
  font-family: "Noto Devanagari";
  src: url("assets/noto-devanagari.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}

:root {
  color-scheme: light;
  --paper: #fffcf8;
  --ink: #24140d;
  --muted: #5f5148;
  --rule: #e7dacb;
  --tint: #fcf1e4;
  --rust: #943813;
  --red: #ad2e26;
  --red-hover: #89231e;
  --body-font: "Noto Devanagari", "Noto Sans", "Kohinoor Devanagari", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body-font); }
img { display: block; max-width: 100%; }
a { color: var(--rust); text-underline-offset: .21em; }
a:hover { text-decoration-thickness: .125em; }
a:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
h1, h2, p, figure { margin: 0; }

.shell { width: min(1052px, calc(100% - 36px)); margin-inline: auto; }
.reading-column { width: min(100%, 684px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1; inset: 8px auto auto 8px; padding: 12px 16px; background: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.masthead { background: #fffaf3; border-bottom: 1px solid var(--rule); }
.masthead-inner { min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.brand img { width: 126px; height: 42px; object-fit: contain; }
.header-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); }
.header-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 650; text-decoration: none; }
.header-link:hover { color: var(--rust); text-decoration: underline; }

.button {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 8px 16px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.button-quiet { background: var(--tint); border-color: var(--rule); color: var(--ink); }
.button-quiet:hover { background: #f8e5d0; border-color: #ccab8d; }
.button-primary { padding: 12px 28px; min-height: 50px; background: var(--red); color: #fff; }
.button-primary:hover { background: var(--red-hover); }

.article-header { max-width: 850px; padding-block: clamp(31px, 6vw, 71px) clamp(22px, 3vw, 35px); }
.article-label {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
}
.article-label span:first-child { color: var(--rust); }
.article-label span + span { border-inline-start: 1px solid var(--rule); padding-inline-start: 14px; }

h1 { margin-top: 14px; font-size: clamp(32px, 6.1vw, 67px); font-weight: 850; line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
.deck { max-width: 700px; margin-top: 14px; color: var(--muted); font-size: clamp(17px, 2.35vw, 23px); line-height: 1.65; }
.hero-art { background: #f4e0d2; border-radius: 9px; overflow: hidden; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 2.5; object-fit: cover; object-position: center 61%; }

.article-body { margin-top: clamp(22px, 5vw, 43px); color: #3e2d22; font-size: clamp(17px, 2.45vw, 20px); line-height: 1.8; }
.article-body h2, .comments h2 { color: var(--ink); font-size: clamp(22px, 3.7vw, 30px); line-height: 1.4; }
.article-body h2 { margin: 24px 0 6px; }
.risk-note { margin-top: 24px; padding: 15px 18px; border-inline-start: 3px solid var(--red); border-radius: 0 7px 7px 0; background: var(--tint); }
.risk-note h2 { margin: 0 0 3px; font-size: 1em; }
.risk-note p { font-size: .9em; line-height: 1.65; }
.next-step { margin: 22px 0 30px; }
.next-step .button { width: 100%; font-size: 18px; }
.comments { padding-top: 23px; border-top: 1px solid var(--rule); }
.comments-header > p { margin-top: 3px; color: var(--muted); font-size: 14px; }
.comment-list { margin: 13px 0 0; padding: 0; list-style: none; }
.comment-list li { display: flex; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--rule); line-height: 1.65; }
.comment-list li:last-child { border-bottom: 0; }
.comment-list p { color: var(--muted); }
.avatar { position: relative; flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--tint); }
.avatar::before, .avatar::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); background: #bf967b; }
.avatar::before { top: 8px; width: 8px; height: 8px; border-radius: 50%; }
.avatar::after { bottom: 8px; width: 16px; height: 9px; border-radius: 9px 9px 4px 4px; }
.page-footer { margin-top: clamp(32px, 7vw, 72px); border-top: 1px solid var(--rule); background: #fffaf3; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; padding-block: 16px; font-size: 14px; color: var(--muted); }
.preview { padding-block: clamp(30px, 7vw, 84px); }
.preview-options { margin: 26px 0; }
.preview-options > div { padding: 14px 0; border-top: 1px solid var(--rule); }
.preview-options dt { font-weight: 700; }
.preview-options dd { margin: 3px 0 0; color: var(--muted); }

@media (max-width: 540px) {
  .masthead-inner { min-height: 62px; }
  .brand img { width: 105px; height: 35px; }
  .header-link { display: none; }
  .button-quiet { padding-inline: 12px; font-size: 14px; }
  .hero-art img { aspect-ratio: 1.55; }
}

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