/* Modelled on WordPress Twenty Twenty-Four as donothing.guru used it: black on white, Cardo + Inter. */
@font-face { font-family: Cardo; font-weight: 400; font-display: fallback; src: url(/fonts/cardo_normal_400.woff2) format("woff2"); }
@font-face { font-family: Cardo; font-weight: 700; font-display: fallback; src: url(/fonts/cardo_normal_700.woff2) format("woff2"); }
@font-face { font-family: Cardo; font-style: italic; font-weight: 400; font-display: fallback; src: url(/fonts/cardo_italic_400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 300 900; font-display: fallback; src: url(/fonts/inter.woff2) format("woff2"); }

:root {
  --base: #f9f9f9; --base-2: #fff; --contrast: #111; --contrast-2: #636363;
  --small: clamp(1.1rem, 1.1rem + ((1vw - 0.2rem) * 0.333), 1.3rem);
  --medium: clamp(1.4rem, 1.4rem + ((1vw - 0.2rem) * 0.333), 1.6rem);
  --large: clamp(1.6rem, 1.6rem + ((1vw - 0.2rem) * 0.417), 1.85rem);
  --x-large: clamp(1.85rem, 1.85rem + ((1vw - 0.2rem) * 1.083), 2.5rem);
  --xx-large: clamp(2.5rem, 2.5rem + ((1vw - 0.2rem) * 1.283), 3.27rem);
  --sp-20: min(1.5rem, 2vw); --sp-30: min(2.5rem, 3vw); --sp-40: min(4rem, 5vw); --sp-50: min(6.5rem, 8vw);
  --content: 620px; --wide: 1280px; --gutter: var(--sp-50);
}
* { box-sizing: border-box; }
html { background: var(--base); }
body {
  margin: 0; background: var(--base); color: var(--contrast);
  font: 400 var(--medium)/1.55 Cardo, Georgia, serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--contrast); text-decoration: underline; text-underline-offset: .1em; }
a:hover { text-decoration: none; }
img, video, iframe { max-width: 100%; }

/* Header */
.site-header {
  max-width: calc(var(--wide) + 2 * var(--sp-30)); margin: 0 auto; padding: var(--sp-30);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-20);
}
.brand { display: flex; align-items: center; gap: 24px; }
.logo { line-height: 0; }
.logo img { width: 120px; height: auto; }
.site-title { margin: 0; font: 600 clamp(0.875rem, 0.875rem + ((1vw - 0.2rem) * 0.542), 1.2rem)/1.3 Inter, system-ui, sans-serif; }
.site-title a, .site-header nav a { text-decoration: none; }
.site-title a:hover, .site-header nav a:hover { text-decoration: underline; }
.tagline { margin: 4px 0 0; color: var(--contrast-2); font-size: var(--small); }
.site-header nav { display: flex; flex-wrap: wrap; gap: .5em 1.25rem; font-size: var(--small); font-weight: 500; }

/* Main column */
main { max-width: calc(var(--content) + 2 * var(--gutter)); margin: 0 auto; padding: var(--sp-50) var(--gutter); }
.posts > .entry + .entry { margin-top: var(--sp-50); }
.post-title { margin: 0; font-weight: 400; line-height: 1.15; }
.entry .post-title { font-size: var(--x-large); }
.single .post-title { font-size: var(--x-large); }
.single .post-date + .content { margin-top: var(--sp-40); }
.page .post-title { font-size: var(--xx-large); text-align: center; }
.page .post-title + .content { margin-top: var(--sp-40); }
.featured { display: block; width: 100%; height: auto; border-radius: var(--sp-20); margin: 0 0 var(--sp-40); }
.post-title a { text-decoration: none; }
.post-title a:hover { text-decoration: underline; }
.post-date { margin: 8px 0 0; color: var(--contrast-2); font-size: var(--small); }
.post-date a { color: var(--contrast-2); text-decoration: none; }
.post-date a:hover { text-decoration: underline; }
.content { margin-top: 1.2rem; }
.entry .content { font-size: var(--small); }
.content > :first-child { margin-top: 0; }
.content p, .content ul, .content ol, .content table, .content figure { margin: 0 0 1.2rem; }
.content ul, .content ol { padding-left: 1rem; }
.content img, .content video { display: block; height: auto; margin: 0 0 1.2rem; }
.content audio { width: 100%; margin: 0 0 1.2rem; }
.content h1, .content h2, .content h3 { font-weight: 400; line-height: 1.2; margin: 2rem 0 1rem; }
.content h2 { font-size: var(--x-large); }
.content h3 { font-size: var(--large); }
blockquote {
  margin: 0 0 1.2rem; padding: calc(var(--sp-30) + .75rem);
  background: var(--base-2); border-radius: var(--sp-20);
  font-size: var(--large); font-style: italic; line-height: 1.3;
}
blockquote p { margin: 0 0 calc(1rem + .5rem); }
blockquote > :last-child { margin-bottom: 0; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.2rem; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
table { border-collapse: collapse; width: 100%; font-size: var(--small); }
th, td { border: 1px solid; padding: .5em; text-align: left; vertical-align: top; }
code { font: .9em ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
hr { border: 0; border-bottom: 1px solid var(--contrast); width: min(10.5rem, 13vw); margin: 2.5rem auto; }
mark { background: none; color: inherit; font-weight: 700; }
.footnote { font-size: var(--small); }

.pager { display: flex; justify-content: space-between; gap: 2rem; margin-top: var(--sp-40); font-size: var(--small); }
.pager a { text-decoration: none; }
.pager a:hover { text-decoration: underline; }
.pager a[rel=next] { text-align: right; }
footer { text-align: center; padding: 0 0 var(--sp-40); font-size: 1rem; }
footer a { color: var(--contrast-2); text-decoration: none; }

@media (max-width: 600px) {
  :root { --gutter: 1.25rem; }
  .site-header { padding: 1.25rem; }
  .logo img { width: 72px; }
  .site-header nav { gap: .25em 1.25em; }
}

/* Pull quote (Obsidian: `> [!pullquote]` callout; last paragraph = attribution) */
.pullquote { margin: 0 0 1.2rem; padding: var(--sp-40) 0; text-align: center; }
.pullquote blockquote { margin: 0; padding: 0; background: none; border-radius: 0;
  font-size: var(--x-large); font-style: italic; line-height: 1.5; }
.pullquote blockquote p { margin: 0 0 1rem; }
.pullquote cite { display: block; margin: 1.5rem 6rem 0; color: var(--contrast-2); font-size: .55em; font-style: normal; line-height: 1.55; }
@media (max-width: 600px) { .pullquote cite { margin: 1rem 1rem 0; } }
