/* Boqado guides. The home page's tokens (boqado-site/v3/styles.css), kept in this file so a copy of the home page
   never changes the guides: bottle green and bone, Besley against Albert Sans, one column to read. */
:root {
  --wine: #0E2A22;
  --wine-deep: #0A1F19;
  --hibiscus: #1F5C48;
  --bone: #EFE9DD;
  --canvas: #F4F4EF;
  --ink: #13201B;
  --muted: #56635C;
  --muted-wine: #B4BFB6;
  --line: #DCDFD5;
  --line-wine: rgba(239, 233, 221, .18);
  --serif: "Besley", "Century Schoolbook", Georgia, serif;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --wrap: 1120px;
  --read: 680px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
p, h1, h2, ul, ol { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* the green band: the nav, then the question and its answer */
.band { background: var(--wine); color: var(--bone); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.wordmark { font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -.015em; line-height: 1; text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-link { font-size: 15px; text-decoration: none; color: var(--bone); opacity: .85; }
.nav-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 15px; font-weight: 500; text-decoration: none; }
.btn-bone { background: var(--bone); color: var(--wine); }
.btn-bone:hover { background: #F7F4EC; }

.band-in { padding-top: 40px; padding-bottom: 56px; max-width: calc(var(--read) + 2 * var(--gutter)); }
.crumbs { font-size: 14px; margin-bottom: 20px; }
.crumbs a { color: var(--muted-wine); text-underline-offset: 4px; }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5.4vw, 56px); line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; max-width: 18ch; }
.lede { margin-top: 24px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: var(--read); color: var(--bone); }
.dates { margin-top: 20px; font-size: 14px; color: var(--muted-wine); }

/* the article: one reading column */
.article { max-width: calc(var(--read) + 2 * var(--gutter)); padding-top: 56px; padding-bottom: 64px; }
.article h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.15; letter-spacing: -.01em; margin: 48px 0 14px; text-wrap: balance; }
.article h2:first-child { margin-top: 0; }
.article p { margin: 0 0 16px; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; }
.article ul { list-style: disc; }
.article li { margin: 0 0 8px; padding-left: 4px; }
.article li::marker { color: var(--hibiscus); }
.article a { color: var(--hibiscus); text-underline-offset: 3px; }
.article strong { font-weight: 600; }

/* tables scroll inside their own box on a phone, never the page */
.table { overflow-x: auto; margin: 8px 0 24px; border-top: 1px solid var(--ink); -webkit-overflow-scrolling: touch; }
/* on a wide screen a table steps out of the reading column, centred on it, so eight columns get room */
@media (min-width: 900px) { .article .table { width: min(1040px, calc(100vw - 2 * var(--gutter) - 16px)); position: relative; left: 50%; transform: translateX(-50%); } }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; line-height: 1.45; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
thead th { font-weight: 600; font-size: 13.5px; color: var(--muted); }
tbody th { font-weight: 600; white-space: nowrap; }

/* the close, in green */
.close { background: var(--wine); color: var(--bone); }
.close-in { padding-top: 56px; padding-bottom: 64px; max-width: calc(var(--read) + 2 * var(--gutter)); }
.close h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.6vw, 38px); line-height: 1.08; letter-spacing: -.012em; text-wrap: balance; }
.close p { margin: 16px 0 28px; color: var(--bone); opacity: .9; }

/* more guides, and the index list */
.more { padding-top: 56px; padding-bottom: 72px; max-width: calc(var(--read) + 2 * var(--gutter)); }
.more h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin-bottom: 16px; }
.list { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a { display: block; padding: 18px 0; text-decoration: none; }
.list-t { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.25; }
.list a:hover .list-t { color: var(--hibiscus); text-decoration: underline; text-underline-offset: 4px; }
.list-d { display: block; margin-top: 6px; color: var(--muted); font-size: 15.5px; }
.more-index { padding-top: 40px; }

.foot { background: var(--wine); color: var(--muted-wine); }
.foot-in { padding-top: 32px; padding-bottom: 40px; display: grid; gap: 14px; font-size: 13.5px; border-top: 1px solid var(--line-wine); }
.foot .wordmark { color: var(--bone); font-size: 22px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; }
.foot-links a { color: var(--muted-wine); text-decoration: underline; text-decoration-color: var(--line-wine); text-underline-offset: 4px; }

@media (max-width: 560px) {
  .nav-link { display: none; }
  .band-in { padding-top: 24px; padding-bottom: 40px; }
  .article { padding-top: 40px; }
  .close .btn { width: 100%; }
}
@media (min-width: 1024px) {
  :root { --gutter: 40px; }
  .band-in { padding-top: 56px; padding-bottom: 80px; }
}
