/* Rita's blog on arnilabs.ai, moved from theaxeamists.com. Sizes are the Squarespace site's own, measured at 390 and 1440 px. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif.woff2) format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-italic.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/newsreader.woff2) format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url(fonts/newsreader-italic.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --ink: #000;
  --paper: #fff;
  --display: "Instrument Serif", "Times New Roman", serif;
  --text: "Newsreader", Georgia, serif;
  --gutter: max(23px, 4vw);
  --column: min(994px, calc(100vw - 2 * max(23px, 6vw)));
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/24px var(--text);
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { display: block; max-width: 100%; height: auto; }

/* header: the name on the left, Blog and About on the right */
header.site { display: flex; justify-content: space-between; align-items: baseline; padding: 27px var(--gutter) 0; }
header.site .name { font: 400 clamp(21.4px, 0.31vw + 20.2px, 24.64px)/1.2 var(--display); letter-spacing: -0.02em; text-decoration: none; }
header.site nav { display: flex; gap: 29px; }
header.site nav a { text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
header.site nav a[aria-current] { border-bottom-color: currentColor; }
header.site nav a:hover { border-bottom-color: currentColor; }

/* a post */
main.post { width: var(--column); margin: 0 auto; padding: clamp(23px, 3vw, 58px) 0 0; }
.meta { margin: 0 0 32px; }
.meta .bar { margin: 0 0.6em; }
main.post h1 { font: 400 clamp(48.4px, 1.851vw + 41.18px, 67.84px)/1.2 var(--display); letter-spacing: -0.02em; margin: 0 0 clamp(40px, 4vw, 56px); }
.body p { margin: 0 0 16px; white-space: pre-wrap; }
.body p.c { text-align: center; }
.body figure { margin: 32px 0; }
.body figure img { width: 100%; }
.body figcaption { margin-top: 16px; }
.body figcaption p { margin: 0; white-space: pre-wrap; }
.body .gallery { display: flex; gap: 20px; margin: 32px 0; align-items: flex-start; }
.body .gallery figure { margin: 0; min-width: 0; }
.body .gallery figcaption { font-size: 14px; margin-top: 8px; }
.body pre { font: 10px/1.5 Menlo, Consolas, "Liberation Mono", monospace; background: #f7f7f8; color: #222;
  padding: 12px 18px; border-radius: 4px; border: 1px solid #ececec; overflow-x: auto; margin: 10px 0 26px; white-space: pre; }
.body .spacer { height: 40px; }
.body figure.quote { margin: 72px clamp(6px, 3.1vw, 45px); }
.body blockquote { margin: 0; font-size: clamp(20.32px, 0.246vw + 19.36px, 22.91px); line-height: 1.5; }
.body figure.quote figcaption { text-align: right; margin-top: 0; }

/* the next and previous post, as the original shows them under each post */
.pager { display: flex; justify-content: space-between; gap: 24px; margin: 96px 0 0; }
.pager a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; max-width: 48%; }
.pager .older { margin-left: auto; text-align: right; }
.pager .dir { font-size: 14px; }
.pager .t { font: 400 clamp(28.96px, 0.74vw + 26.07px, 36.74px)/1 var(--display); letter-spacing: -0.02em; }
.pager a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* the list: two columns of picture, date, title, excerpt */
main.list { display: grid; grid-template-columns: 1fr 1fr; gap: 64px 4vw; padding: 70px var(--gutter) 0; }
.card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.card .pic { display: block; width: 100%; aspect-ratio: 644 / 438; overflow: hidden; }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .date { margin: 24px 0 25px; }
.card h2 { font: 400 clamp(28.96px, 0.74vw + 26.07px, 36.74px)/1.2 var(--display); letter-spacing: -0.02em; margin: 0 0 25px; max-width: 510px; }
.card h2 a { text-decoration: none; }
.card .excerpt { max-width: 510px; font-size: clamp(14.27px, 15.17px - 0.06vw, 14.92px); line-height: 1.5; }
.card .excerpt p { margin: 0; white-space: pre-wrap; }
.card .more { margin-top: 20px; font-size: clamp(14.27px, 15.17px - 0.06vw, 14.92px); }

main.post, main.list { padding-bottom: 72px; }

@media (max-width: 767px) {
  header.site { padding-top: 24px; }
  main.list { grid-template-columns: 1fr; gap: 72px; padding-top: 14px; }
  .card .date { margin: 22px 0 8px; }
  .card h2 { margin-bottom: 8px; }
  .card .more { margin-top: 8px; }
  .body .gallery { gap: 10px; }
  .pager a { max-width: 100%; }
}
