:root {
  --paper: #fcfbf9;
  --ink: #282522;
  --muted: #625d58;
  --line: #d2cdc7;
  --edge: clamp(20px, 5vw, 76px);
}
.frame, .rd-main { width: min(1192px, calc(100% - 2 * var(--edge))); margin-inline: auto; }
.j-head { border: 0; }
.j-bar { min-height: 75px; justify-content: space-between; border-bottom: 1px solid var(--line); }
.j-bar .j-roaster { display: inline; font-size: 13px; color: var(--muted); }
[data-template="home"] .j-index { text-decoration: underline; text-underline-offset: .25em; }
[data-template="home"] .j-index::before { content: none; }
.rd-main { margin-bottom: clamp(34px, 6vw, 86px); }
.rd-cover {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(36px, 6vw, 95px);
  align-items: center;
  min-height: clamp(520px, calc(100svh - 164px), 770px);
  padding-block: clamp(40px, 5vw, 80px);
}
.rd-intro h1 { font: 430 clamp(78px, 8.7vw, 130px)/.99 var(--serif); letter-spacing: -.07em; }
.rd-intro h1 em { display: block; margin-left: .34em; font-weight: 400; letter-spacing: -.055em; word-spacing: .10em; white-space: nowrap; }
.rd-intro p { margin-top: clamp(28px, 3.3vw, 50px); font: 400 clamp(16px, 1.18vw, 19px)/1.5 var(--sans); color: var(--muted); }
.rd-photo { aspect-ratio: 1.24; overflow: hidden; }
.rd-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 53%; }
.rd-index {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(36px, 6vw, 95px);
  align-items: start;
  border-top: 1px solid var(--ink);
  padding-top: clamp(26px, 3.4vw, 50px);
}
.rd-index h2 { font: 450 clamp(32px, 3.25vw, 48px)/1.1 var(--serif); letter-spacing: -.055em; }
.rd-index-hint { margin-top: 12px; font-size: 15px; color: var(--muted); }
.rd-excerpt {
  display: block;
  width: fit-content;
  max-width: 36ch;
  margin-top: clamp(42px, 5vw, 72px);
  text-decoration: none;
  color: #73452f;
}
.rd-excerpt-title { display: block; color: var(--ink); font: 450 clamp(24px, 2.1vw, 31px)/1.2 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.rd-excerpt-copy { display: block; margin: 12px 0 16px; font: 400 16px/1.55 var(--sans); color: var(--muted); }
.rd-excerpt-action { font-size: 14px; text-decoration: underline; text-underline-offset: .25em; }
.rd-excerpt-arrow { white-space: nowrap; }
.rd-excerpt[hidden] { display: none; }
.rd-excerpt:hover .rd-excerpt-title, .rd-excerpt:focus-visible .rd-excerpt-title { color: #73452f; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .17em; }
.rd-index ul, .rd-fallback ul { padding: 0; margin: 0; list-style: none; }
.rd-index ul { border-top: 1px solid var(--line); }
.rd-row { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.rd-chapter { flex: 1; min-width: 0; display: flex; align-items: center; gap: clamp(13px, 1.45vw, 23px); min-height: 94px; padding: 9px 0; text-decoration: none; }
.rd-chapter > img { width: 45px; height: 74px; object-fit: contain; }
.rd-text { display: flex; flex-direction: column; align-items: start; min-width: 0; }
.rd-meta { font: 450 12px/1.3 var(--sans); color: var(--muted); }
.rd-meta b { font-variant-numeric: tabular-nums; font-weight: 600; color: #72503b; }
.rd-text strong { margin: 4px 0; font: 490 clamp(22px, 2vw, 29px)/1.16 var(--serif); letter-spacing: -.045em; }
.rd-notes { font: 400 clamp(13px, 1.04vw, 15px)/1.4 var(--sans); color: var(--muted); }
.rd-recipe, .rd-choose { color: #73452f; font: 490 14px/1.3 var(--sans); text-decoration: underline; text-underline-offset: .28em; text-decoration-color: #ae8f77; }
.rd-recipe { display: inline-flex; align-items: center; min-height: 48px; padding: 0 3px 0 8px; }
.rd-choose { margin-left: auto; padding-right: 3px; }
.rd-chapter:hover strong { color: #785038; text-decoration: underline; text-decoration-thickness: 1px; }
.rd-recipe:hover, .rd-chapter:hover .rd-choose { color: #482e1e; text-decoration-color: currentColor; }
.rd-fallback { display: none; }
.rd-fallback:target { display: block; grid-column: 1 / -1; }
.rd-fallback a { display: inline-flex; align-items: center; min-height: 44px; }
.rd-colophon { border-top: 1px solid var(--line); padding-block: 20px; color: var(--muted); font-size: 13px; }
#oglavlenie { scroll-margin-top: 16px; }
.album-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 800px) {
  :root { --edge: clamp(16px, 4.5vw, 30px); }
  .j-bar { min-height: 58px; }
  .j-bar .j-roaster { font-size: 12px; }
  [data-template="home"] .j-roaster { display: none; }
  .rd-cover {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: clamp(22px, 4svh, 36px);
    min-height: clamp(450px, calc(100svh - 135px), 850px);
    padding-block: clamp(28px, 4.5svh, 50px);
  }
  .rd-intro { text-align: center; }
  .rd-intro h1 { width: max-content; max-width: 100%; margin: 0 auto; text-align: left; font-size: clamp(67px, 18.6vw, 100px); }
  .rd-intro h1 em { margin-left: .49em; }
  .rd-intro p { margin-top: clamp(18px, 2.8svh, 28px); font-size: 16px; }
  .rd-photo { width: 100%; height: clamp(190px, 39svh, 440px); aspect-ratio: auto; }
  .rd-index { display: block; padding-top: 24px; }
  .rd-index-heading { margin-bottom: 9px; }
  .rd-index-hint, .rd-excerpt-copy, .rd-excerpt-action { display: none; }
  .rd-excerpt { display: inline-flex; align-items: center; gap: .45em; max-width: 100%; min-height: 44px; margin-top: 2px; }
  .rd-excerpt-title { color: inherit; font: 400 15px/1.4 var(--sans); letter-spacing: normal; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .24em; }
  .rd-chapter { min-height: 83px; padding: 7px 0; gap: 11px; }
  .rd-chapter > img { width: 34px; height: 62px; }
  .rd-text strong { font-size: 22px; }
  .rd-meta { font-size: 12px; }
  .rd-notes { font-size: 13px; }
  .rd-recipe, .rd-choose { font-size: 13px; }
  .rd-row { gap: 6px; }
}
@media (max-width: 359px) {
  .rd-chapter { gap: 8px; }
  .rd-chapter > img { width: 30px; height: 55px; }
  .rd-recipe { padding-inline: 4px 0; }
}
