/* coconutzest: one column, the logo's yellow and charcoal, no web fonts. */

:root {
  --yellow: #f4d35e;
  --ink: #292524;
  --paper: #fdfbf5;
  --muted: #57534e;
  --faint: #78716c;
  --rule: #e7e5e4;
  --serif: Georgia, 'Iowan Old Style', serif;
  --sans: -apple-system, system-ui, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.125rem/1.65 var(--serif);
  -webkit-text-size-adjust: 100%;
}

a { color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }

/* The band */
.band {
  background: var(--yellow);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 16px;
  font-family: var(--sans);
  font-size: 0.95rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; text-decoration: none; }
.mark {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  font: 700 0.85rem/1 var(--serif);
  letter-spacing: -0.05em;
}
.band nav { margin-left: auto; display: flex; gap: 1.1rem; }
.band nav a { text-decoration: none; }
.band nav a:hover { text-decoration: underline; }

/* The column */
.column { max-width: 34em; margin: 0 auto; padding: 2.5rem 16px 4rem; }

h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 0.4rem; }
h2, h3 { line-height: 1.3; margin: 2.2rem 0 0.6rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p, ul, ol, blockquote { margin: 0 0 1.1rem; }
.subtitle { font-style: italic; color: var(--muted); margin: 0 0 0.5rem; }
.date { font: 0.85rem var(--sans); color: var(--faint); margin: 0 0 2rem; }
blockquote { margin-left: 0; padding-left: 1rem; border-left: 3px solid var(--yellow); color: var(--muted); }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

/* Home page */
.intro { font-style: italic; color: var(--muted); margin-bottom: 2.5rem; }
.posts { list-style: none; padding: 0; margin: 0; }
.posts li { margin: 0 0 2rem; }
.posts .date { margin: 0 0 0.15rem; }
.posts a { font-weight: 700; font-size: 1.25rem; line-height: 1.3; text-decoration: none; }
.posts a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.posts .subtitle { margin: 0.25rem 0 0; }

/* End of a post: older/newer by title, then the follow line */
.post-end { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.post-nav { display: flex; gap: 1.5rem; }
.post-nav div { flex: 1; }
.post-nav .newer { text-align: right; }
.post-nav .label { display: block; font: 0.85rem var(--sans); color: var(--faint); margin-bottom: 0.2rem; }
.post-nav a { font-weight: 700; line-height: 1.3; text-decoration: none; }
.post-nav a:hover { text-decoration: underline; text-decoration-color: var(--yellow); }
.follow { font: 0.9rem var(--sans); color: var(--faint); margin: 1.8rem 0 0; }

/* Tables scroll inside the column; the page never scrolls sideways. */
.table-wrap { overflow-x: auto; margin: 0 0 1.3rem; }
table { border-collapse: collapse; font: 0.9rem/1.4 var(--sans); min-width: 100%; }
th, td { padding: 0.4rem 0.7rem; border-bottom: 1px solid var(--rule); text-align: left; white-space: nowrap; }
th { font-weight: 600; border-bottom: 2px solid var(--ink); }
th[align='right'], td[align='right'] { text-align: right; font-variant-numeric: tabular-nums; }
th[align='center'], td[align='center'] { text-align: center; }

/* Footnotes */
sup { line-height: 0; }
sup a { text-decoration: none; padding: 0 0.1em; }
.footnotes { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.95rem; }
.footnotes ol { padding-left: 1.3rem; }
.footnotes p { margin: 0 0 0.5rem; }
.footnotes a[data-footnote-backref] { text-decoration: none; }

/* Read by screen readers, hidden on screen: the "Footnotes" heading marked-footnote adds. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 480px) {
  body { font-size: 1.0625rem; }
  h1 { font-size: 1.65rem; }
}
