/* Rent Rulebook, reading design (experiment E009): one reading column, one text size for prose.
   Loaded only by answer pages with experiments.design: reading; every other page uses rulebook.css, so this
   file can change without touching them. The approved look: _src/redesign-previews/rentrulebook/.
   The tokens, header and footer repeat rulebook.css; change them in both files. */
:root {
  --paper: #FBFBF8;
  --wash: #F1F4F0;
  --ink: #15201C;
  --ink-2: #46544E;
  --ink-3: #65726C;
  --ink-4: #7D8983;
  --rule: #D9DFD9;
  --pine: #183F35;
  --pine-2: #0F2D26;
  --link: #183F35;
  --amber: #E9AA3F;
  --amber-hi: #F2BC5C;
  --amber-ink: #8A5400;
  --card: #FFFFFF;
  --shadow: 0 1px 2px rgba(16, 40, 33, .10), 0 22px 44px -20px rgba(16, 40, 33, .50);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gut: clamp(16px, 5.6vw, 80px);
  --col: 620px;
  --text: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0D1512;
    --wash: #111B17;
    --ink: #E6ECE8;
    --ink-2: #AEBBB4;
    --ink-3: #8E9B94;
    --ink-4: #6F7C76;
    --rule: #24312B;
    --pine: #173C32;
    --pine-2: #0A201B;
    --link: #A7D8C5;
    --amber-ink: #EEB75C;
    --card: #16211D;
    --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 22px 44px -20px rgba(0, 0, 0, .8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, h1, h2, h3, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 3px; }
.rr-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.rr-skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--amber); color: #15201C; padding: 10px 14px; border-radius: 6px; font-weight: 600; text-decoration: none; }
.rr-skip:focus { top: 12px; }
.rr-wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gut); }
.rr-mono { font: 500 12px/1.3 var(--mono); letter-spacing: .02em; color: var(--ink-3); }

/* Header, as on every other page */
.rr-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; min-height: 76px; padding: 0 var(--gut); max-width: 1440px; margin: 0 auto; position: relative; z-index: 5; }
.rr-brand { display: inline-flex; align-items: center; gap: 11px; font: 600 25px/1 var(--serif); letter-spacing: -.012em; color: var(--ink); text-decoration: none; font-variation-settings: "opsz" 36; }
.rr-glyph-tag { width: 19px; height: 27px; flex: none; }
.rr-glyph-tag .g-body { fill: var(--pine); }
.rr-glyph-tag .g-ring { fill: none; stroke: var(--amber); stroke-width: 2.2; }
@media (prefers-color-scheme: dark) { .rr-glyph-tag .g-body { fill: #2E6B5A; } }
.rr-nav > ul { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); list-style: none; margin: 0; }
.rr-nav a, .rr-menu summary { font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer; }
.rr-nav a:hover, .rr-menu summary:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }
.rr-nav a[aria-current], .rr-menu summary.is-here { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.rr-nav .rr-nav-cta { display: inline-block; background: var(--amber); color: #15201C; padding: 12px 16px; border-radius: 7px; font-weight: 600; }
.rr-nav .rr-nav-cta:hover { background: var(--amber-hi); text-decoration: none; }
.rr-menu { position: relative; }
.rr-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; }
.rr-menu summary::-webkit-details-marker { display: none; }
.rr-menu summary::after { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.rr-menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.rr-menu-pane { position: absolute; top: calc(100% + 14px); left: -14px; min-width: 260px; list-style: none; margin: 0; padding: 8px; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow); }
.rr-menu-pane a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 12px; border-radius: 6px; font-size: 15.5px; }
.rr-menu-pane a:hover { background: var(--wash); text-decoration: none; }

/* The article: one column of about 620px */
.rr-col { max-width: var(--col); margin-left: auto; margin-right: auto; }
.rr-path ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; font: 500 12.5px/1.4 var(--mono); letter-spacing: .02em; color: var(--ink-3); padding-top: 22px; }
.rr-path li + li::before { content: "/"; margin-right: 6px; color: var(--ink-4); }
.rr-path a { text-decoration: none; }
.rr-path a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.rr-head { padding-top: 26px; }
.rr-h1 {
  font: 430 45px/1.12 var(--serif); letter-spacing: -.018em;
  font-variation-settings: "opsz" 48; text-wrap: balance;
}
.rr-dek { margin-top: 18px; font-size: 20px; line-height: 1.5; color: var(--ink); }
.rr-meta { margin-top: 16px; font: 500 13px/1.4 var(--mono); letter-spacing: .01em; color: var(--ink-3); }
.rr-meta a { color: var(--ink-2); text-underline-offset: 3px; }
.rr-meta .rr-dot { padding: 0 8px; color: var(--ink-4); }

/* The photo, wider than the column; focus from the photo library or the page (--focus, --focus-m) */
.rr-photo { max-width: 820px; margin: 30px auto 0; }
.rr-photo img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: var(--focus, 50% 50%); border-radius: 6px; background: #C9BBA6; }

.rr-prose { font-size: var(--text); line-height: 1.6; color: var(--ink); }
.rr-prose p + p { margin-top: 22px; }
.rr-intro { margin-top: 40px; }
.rr-prose a, .rr-sources a, .rr-table a, .rr-table-note a, .rr-sources-note a {
  color: var(--link); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 42%, transparent);
}
.rr-prose a:hover, .rr-sources a:hover, .rr-table a:hover, .rr-table-note a:hover, .rr-sources-note a:hover { text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.rr-prose h2 {
  margin: 52px 0 16px; font: 500 30px/1.2 var(--serif); letter-spacing: -.012em;
  font-variation-settings: "opsz" 36; text-wrap: balance;
}

/* The one device: a plain table */
.rr-device { margin-top: 40px; overflow-x: auto; }
.rr-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.rr-table caption { text-align: left; caption-side: top; padding-bottom: 12px; font: 500 22px/1.25 var(--serif); letter-spacing: -.01em; color: var(--ink); }
.rr-table th, .rr-table td { text-align: left; vertical-align: baseline; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); }
.rr-table th:last-child, .rr-table td:last-child { padding-right: 0; }
.rr-table thead th { font: 600 14px/1.35 var(--sans); color: var(--ink-2); border-bottom: 2px solid var(--ink); padding-top: 0; }
.rr-table tbody th { font: 500 18px/1.3 var(--serif); }
.rr-table .rr-small { font-size: 15px; }
.rr-nw, .rr-sources time { white-space: nowrap; }
.rr-table--3 thead th:first-child { width: 24%; }
.rr-table--3 thead th:nth-child(2) { width: 40%; }
.rr-table-note { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* Sources: a quiet, open, dated list */
.rr-sources { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--rule); }
.rr-sources h2 { font: 500 24px/1.2 var(--serif); letter-spacing: -.01em; }
.rr-sources-note { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.rr-sources ol { margin-top: 14px; list-style: none; }
.rr-sources li { padding: 10px 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.rr-sources li a { color: var(--ink); }
.rr-sources .rr-src-meta { display: block; margin-top: 2px; }
.rr-md { margin-top: 14px; font-size: 15px; color: var(--ink-2); }

/* Footer, as on every other page */
.rr-foot { background: var(--pine-2); color: rgba(255, 255, 255, .8); padding: 64px 0 56px; margin-top: clamp(64px, 6vw, 96px); }
.rr-foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; align-items: start; }
.rr-foot .rr-brand { color: #FFFFFF; }
.rr-foot .rr-glyph-tag .g-body { fill: #2E6B5A; }
.rr-foot-about { margin-top: 16px; max-width: 26em; font-size: 15px; line-height: 1.55; }
.rr-foot h2 { margin: 4px 0 16px; font: 600 13px/1 var(--sans); letter-spacing: .02em; color: #FFFFFF; }
.rr-foot ul { list-style: none; display: grid; gap: 11px; font-size: 15px; margin: 0; }
.rr-foot a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.rr-foot a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 860px) {
  .rr-top { flex-wrap: wrap; padding-top: 16px; padding-bottom: 14px; }
  .rr-nav > ul { gap: 20px; }
  .rr-nav a, .rr-menu summary { font-size: 15px; }
  .rr-nav .rr-nav-cta { padding: 10px 12px; }
  .rr-menu-pane { left: 0; min-width: 240px; }
  .rr-foot-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .rr-foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --text: 17px; }
  .rr-path ol { padding-top: 12px; font-size: 12px; }
  .rr-head { padding-top: 18px; }
  .rr-h1 { font-size: 39px; line-height: 1.1; }
  .rr-dek { margin-top: 14px; font-size: 18px; }
  .rr-meta { margin-top: 12px; }
  .rr-photo { margin-top: 20px; }
  .rr-photo img { aspect-ratio: 3 / 2; border-radius: 4px; object-position: var(--focus-m, var(--focus, 50% 50%)); }
  .rr-intro { margin-top: 30px; }
  .rr-prose p + p { margin-top: 20px; }
  .rr-prose h2 { margin-top: 44px; font-size: 26px; }
  .rr-table { font-size: 15px; }
  .rr-table caption { font-size: 20px; }
  .rr-table th, .rr-table td { padding-right: 10px; }
  .rr-table tbody th { font-size: 17px; }
  .rr-table .rr-small { font-size: 14px; }
}
@media (max-width: 420px) {
  .rr-brand { font-size: 23px; }
  .rr-nav > ul { gap: 8px 14px; flex-wrap: wrap; }
  .rr-nav a, .rr-menu summary { font-size: 14.5px; white-space: nowrap; }
  .rr-nav .rr-nav-cta { padding: 10px; }
  .rr-h1 { font-size: 37px; }
}
@media print {
  .rr-top, .rr-foot { display: none; }
}
