:root {
  --line: #d9ddd5;
  --muted: #505950;
  --mono: Consolas, "Courier New", monospace;
  --mast-height: 68px;
  --index-offset: calc(var(--mast-height) + 22px);
}
.mast { position: sticky; height: var(--mast-height); }
.mast nav [aria-current="page"] { text-decoration: underline; text-decoration-color: #7c9b37; text-underline-offset: 5px; }
.docs-shell {
  display: grid;
  grid-template-columns: clamp(195px, 17vw, 256px) minmax(0, 1fr);
  max-width: 1550px;
  margin: auto;
  padding-inline: var(--pad);
}
.index { align-self: start; position: sticky; top: var(--mast-height); padding-right: 24px; }
.index nav { max-height: calc(100dvh - var(--mast-height)); overflow-y: auto; padding: 36px 3px 24px; }
.index-group + .index-group { margin-top: 25px; }
.index-group p, .availability, .prompt-bar > span {
  font: 600 11px/1.4 var(--mono);
  text-transform: uppercase;
  letter-spacing: .075em;
}
.index-group p { color: var(--muted); margin: 0 8px 8px; }
.index-group > a, .index-group > span {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  padding: 6px 10px; min-height: 30px; font-size: 14px; line-height: 1.3;
}
.index-group > a:hover { background: #f3f5ef; }
.index-group a[aria-current="location"] { background: #eef5db; box-shadow: inset 3px 0 #8fac45; font-weight: 650; }
.index-group small {
  flex-shrink: 0; border: 1px solid #cdd3c6; border-radius: 3px;
  padding: 1px 4px; font: 10px/1.2 var(--mono); color: var(--muted); background: white;
}
.upcoming > span { color: var(--muted); }
.index-toggle { display: none; }
.guide {
  min-width: 0; padding: 35px clamp(0px, 2vw, 30px) 55px clamp(28px, 4vw, 76px);
  border-left: 1px solid var(--line);
}
.guide section { scroll-margin-top: var(--index-offset); }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.breadcrumb span { color: #a2a99e; }
.breadcrumb a:hover, .docs-footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.intro {
  display: grid; grid-template-columns: minmax(0, 1fr) 29%; gap: 4%;
  align-items: center; padding: clamp(32px, 4.4vw, 72px) 0 clamp(32px, 4vw, 66px);
}
.intro h1 { font-size: clamp(64px, 6.6vw, 110px); font-weight: 620; line-height: .96; letter-spacing: -.075em; }
.intro h1 span { display: block; margin-top: 20px; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.2; letter-spacing: -.035em; }
.intro .quick-prompt { margin-top: 0; max-width: 51ch; }
.intro .copy-feedback { margin: 6px 0 0; font-size: 13px; }
.start-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 16px; }
.start-actions > a + a { font-size: 14px; text-decoration: underline; text-underline-offset: .2em; }
.intro p { max-width: 41ch; margin: 22px 0; font-size: clamp(17px, 1.5vw, 23px); line-height: 1.45; letter-spacing: -.02em; color: #424a43; }
.start-link {
  display: inline-flex; align-items: center; gap: 17px; padding: 10px 14px;
  color: white; background: var(--ink); font-size: 14px; font-weight: 600;
}
.start-link span { color: var(--green); font-size: 18px; }
.start-link:hover { background: #34412e; }
.postage { position: relative; justify-self: center; width: min(84%, 205px); }
.stamp {
  aspect-ratio: .89; padding: 10px; transform: rotate(8deg); background: #d9ecb0;
  mask: radial-gradient(circle at 5px 0, transparent 3px, black 3.6px) top / 10px 6px repeat-x,
    radial-gradient(circle at 5px 100%, transparent 3px, black 3.6px) bottom / 10px 6px repeat-x,
    radial-gradient(circle at 0 5px, transparent 3px, black 3.6px) left / 6px 10px repeat-y,
    radial-gradient(circle at 100% 5px, transparent 3px, black 3.6px) right / 6px 10px repeat-y,
    linear-gradient(black, black) center / calc(100% - 10px) calc(100% - 10px) no-repeat;
}
.stamp-face {
  height: 100%; display: grid; place-items: center; position: relative;
  border: 1px solid #75894c;
  background: repeating-linear-gradient(-40deg, transparent 0 5px, #bbd092 5px 6px);
}
.stamp-face::after { content: ""; position: absolute; left: 6px; bottom: 6px; width: 19px; height: 19px; background: url("../assets/relay-mark.svg") center / contain no-repeat; }
.stamp-face img { width: 96%; height: auto; transform: rotate(-14deg); }
.postmark { position: absolute; width: 44%; bottom: 12%; right: -13%; transform: rotate(-9deg); overflow: hidden; }
.postmark i { display: block; width: 130%; height: 10px; margin: -3px 0 0 -10%; border-bottom: 1px solid #495345; border-radius: 0 0 70% 60%; }
.browse-title, .chapter h2 { font-weight: 620; letter-spacing: -.055em; line-height: 1.08; }
.browse-title { font-size: clamp(22px, 2vw, 29px); margin: 8px 0 16px; }
.guide-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); }
.guide-card { position: relative; display: grid; align-content: start; padding: clamp(15px, 1.7vw, 26px); }
.guide-card + .guide-card { border-left: 1px solid var(--line); }
.guide-card:hover { background: #f5f8ef; }
.guide-card strong { margin-top: 20px; font-size: clamp(17px, 1.45vw, 23px); font-weight: 620; letter-spacing: -.035em; }
.guide-card > span { margin-top: 4px; max-width: 25ch; color: var(--muted); font-size: 14px; }
.guide-card b { position: absolute; right: 16px; top: 15px; font-size: 17px; font-weight: 500; color: var(--muted); }
.card-icon { position: relative; display: grid; place-items: center; width: 25px; height: 24px; font: normal 27px/1 Arial, sans-serif; color: #37452b; }
.envelope::before { content: ""; height: 13px; width: 22px; border: 1.5px solid currentColor; border-radius: 2px; }
.envelope::after { content: ""; position: absolute; top: 0; width: 12px; height: 12px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.sender { border: 1.5px solid currentColor; font-size: 20px; width: 22px; height: 22px; margin: 1px; }
.chapter { padding: clamp(32px, 3.3vw, 55px) 0; border-bottom: 1px solid var(--line); }
.overview { padding-bottom: clamp(32px, 3.3vw, 55px); border-bottom: 1px solid var(--line); }
.chapter h2 { font-size: clamp(30px, 3vw, 47px); }
.chapter h3 { margin-top: 28px; font-size: clamp(19px, 1.7vw, 25px); letter-spacing: -.035em; }
.chapter h3 + .prompt-box { margin-top: 10px; }
.chapter > p, .chapter ol, .chapter details p {
  max-width: 68ch; margin-top: 16px; color: #373f39;
  font-size: clamp(16px, 1.18vw, 18px); line-height: 1.65;
}
.chapter strong { font-weight: 650; color: var(--ink); }
.chapter ol { padding-left: 1.55em; }
.chapter li { padding-left: .35em; margin-top: 10px; }
.chapter li::marker { font: 600 .84em var(--mono); color: #50672e; }
.chapter a, .to-index { text-decoration: underline; text-underline-offset: .2em; text-decoration-color: #909c81; }
.mail-example { margin-top: 26px; overflow-x: auto; }
.mail-example table { width: 100%; border-collapse: collapse; text-align: left; }
.mail-example caption { text-align: left; font-size: 15px; font-weight: 650; padding-bottom: 10px; }
.mail-example td, .mail-example th { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.mail-example td { font: 13px/1.4 var(--mono); }
.mail-example thead { background: #f1f4eb; font-size: 13px; }
.mail-example thead th { font-weight: 550; }
.prompt-box { max-width: 74ch; margin-top: 22px; padding: 16px 20px 17px; border-left: 3px solid #a4c94f; background: #f2f6e9; }
.prompt-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: #405128; }
.prompt-box blockquote { margin: 13px 0 0; font: 500 15px/1.6 var(--mono); }
.prompt-box a { display: inline-block; margin-top: 12px; font-size: 13px; }
.copy-prompt { border: 1px solid #adb99c; background: white; padding: 4px 8px; font-size: 12px; cursor: pointer; }
.copy-prompt:hover { background: #e4edcf; }
.copy-feedback { margin-top: 6px; font-size: 13px; }
.copy-feedback:empty { display: none; }
.chapter details { max-width: 74ch; padding: 15px 0; border-bottom: 1px solid var(--line); }
.chapter details:first-of-type { margin-top: 12px; }
.chapter details:last-child { border: 0; padding-bottom: 0; }
.chapter summary { width: fit-content; cursor: pointer; font-size: 17px; font-weight: 600; }
.chapter details p { margin-top: 9px; }
.chapter > .availability { margin: 0 0 10px; font: 600 11px/1.4 var(--mono); color: #536436; }
.to-index { display: inline-block; margin-top: 25px; font-size: 14px; }
.docs-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; flex-wrap: wrap; padding: 25px var(--pad); background: var(--ink); color: white; }
.docs-footer small, .docs-footer a { font-size: 13px; }
.docs-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.docs-footer a:focus-visible { outline-color: var(--green); }
@media (max-width: 780px) {
  :root { --mast-height: 56px; --index-offset: 117px; }
  .docs-shell { display: block; padding-inline: 0; }
  .index { position: static; padding: 0 var(--pad); border-bottom: 1px solid var(--line); background: white; }
  .index[data-interactive] { position: sticky; z-index: 4; }
  .index-toggle:not([hidden]) { display: flex; width: 100%; justify-content: space-between; align-items: center; border: none; background: white; height: 43px; padding: 0; font-size: 14px; font-weight: 600; cursor: pointer; }
  .index-toggle span { font-size: 20px; }
  .index nav { max-height: none; padding-block: 14px 22px; }
  .index[data-interactive] nav { max-height: calc(100dvh - 110px); }
  .index[data-interactive] .index-toggle[aria-expanded="false"] + nav { display: none; }
  .index-group + .index-group { margin-top: 15px; }
  .index-group > a, .index-group > span { min-height: 35px; }
  .guide { border: none; padding: 23px var(--pad) 38px; }
  .intro { padding-block: 30px 38px; }
}
@media (max-width: 570px) {
  .intro { grid-template-columns: minmax(0, 1fr) 78px; gap: 8px; align-items: start; }
  .intro > div:first-child { display: contents; }
  .intro h1 { grid-column: 1; align-self: center; font-size: clamp(46px, 12vw, 66px); }
  .postage { grid-area: 1 / 2; width: 62px; }
  .stamp { padding: 5px; }
  .stamp-face::after { width: 8px; height: 8px; left: 2px; bottom: 2px; }
  .intro p { grid-column: 1 / -1; margin: 9px 0; }
  .start-link { grid-column: 1 / -1; justify-self: start; }
  .intro .quick-prompt, .start-actions { grid-column: 1 / -1; }
  .intro h1 span { margin-top: 12px; font-size: 19px; }
  .start-actions { margin-top: 6px; }
  .guide-cards { grid-template-columns: 1fr; }
  .guide-card { grid-template-columns: 25px 1fr; column-gap: 13px; padding: 13px 34px 13px 15px; }
  .guide-card + .guide-card { border: 0; border-top: 1px solid var(--line); }
  .card-icon { grid-row: span 2; align-self: center; }
  .guide-card strong { margin: 0; }
  .guide-card > span { max-width: none; font-size: 13px; }
  .mail-example th, .mail-example td { padding: 8px 6px; font-size: 12px; overflow-wrap: anywhere; }
  .prompt-box { padding-inline: 14px; }
}
