/* laacademia.12fps.com: the 12FPS blog archive. Modelled on the Tumblr theme it used to 2018:
   a grey band, a square avatar, a light centred title, and bordered post cards. */
@font-face { font-family: 'Lato'; font-weight: 300; src: url(fonts/lato-300.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Lato'; font-weight: 400; src: url(fonts/lato-400.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Lato'; font-weight: 400; font-style: italic; src: url(fonts/lato-italic.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Lato'; font-weight: 700; src: url(fonts/lato-700.woff2) format('woff2'); font-display: swap; }

:root {
  --ink: #2b2b2b;
  --title: #320f0a;
  --muted: #8a8a8a;
  --line: #e4e4e4;
  --band: #ebebeb;
  --page: #ffffff;
  --accent: #fff100;
  --link: #320f0a;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6e2df;
    --title: #f4ede8;
    --muted: #9a948f;
    --line: #3a3532;
    --band: #2a2624;
    --page: #1a1716;
    --link: #f4ede8;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.6 'Lato', 'Helvetica Neue', Arial, sans-serif;
}
a { color: var(--link); }
img { max-width: 100%; height: auto; }

/* Masthead */
.masthead { text-align: center; padding: 0 16px 8px; }
.band { background: var(--band); height: 220px; margin: 0 -16px; }
.avatar { display: inline-block; margin-top: -62px; border: 4px solid var(--page); background: var(--page); line-height: 0; }
.avatar img { width: 120px; height: 120px; display: block; }
.blog-title { margin: 24px 0 8px; font-weight: 300; font-size: clamp(32px, 6vw, 56px); line-height: 1.15; letter-spacing: -0.01em; }
.blog-title a { color: var(--title); text-decoration: none; }
.blog-description { max-width: 700px; margin: 0 auto; color: var(--muted); font-size: 15px; }
.blog-nav { margin: 18px 0 6px; display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.blog-nav a { text-decoration: none; color: var(--ink); border-bottom: 3px solid var(--accent); padding-bottom: 2px; }
.archive-note { color: var(--muted); font-size: 13px; font-style: italic; margin: 10px 0 0; }

main { max-width: 700px; margin: 28px auto 0; padding: 0 16px; }
.list-heading { font-weight: 300; font-size: 28px; color: var(--title); text-align: center; margin: 0 0 24px; }

/* Posts */
.post { border: 1px solid var(--line); border-radius: 3px; margin: 0 0 32px; overflow: hidden; }
.post-title { font-weight: 700; font-size: 24px; line-height: 1.3; margin: 0; padding: 22px 20px 0; color: var(--title); }
.post-title a { text-decoration: none; }
.post-body { overflow-wrap: anywhere; }
.post-body > :not(.photos):not(.video):not(audio):not(.caption) { margin-left: 20px; margin-right: 20px; }
.post-body > :first-child:not(.photos):not(.video) { margin-top: 20px; }
.post-body h2 { font-size: 22px; line-height: 1.3; color: var(--title); }
.post-body h3 { font-size: 18px; }
.post-body blockquote { border-left: 4px solid var(--line); margin: 1em 20px; padding-left: 15px; }
.post-body figure { margin: 1em 0; }
.post-body img { display: block; }
.post-body pre { white-space: pre-wrap; }
.caption { padding: 4px 0; }
.caption > * { margin-left: 20px; margin-right: 20px; }
.caption blockquote { margin-left: 20px; }
.photos { display: grid; gap: 4px; }
.photos img { width: 100%; }
.video { position: relative; width: 100%; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.r169 { aspect-ratio: 16 / 9; }
.video.r43 { aspect-ratio: 4 / 3; }
.video.r11 { aspect-ratio: 1 / 1; }
.video.r235 { aspect-ratio: 2.35 / 1; }
audio { display: block; width: calc(100% - 40px); margin: 20px; }
.gone { color: var(--muted); font-style: italic; font-size: 14px; border: 1px dashed var(--line); padding: 12px 14px; }
.source { font-size: 13px; color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; padding: 14px 20px 18px; color: var(--muted); font-size: 13px; }
.post-meta a { color: var(--muted); text-decoration: none; }
.post-meta a:hover { color: var(--ink); text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: 4px 10px; }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 40px; font-size: 14px; color: var(--muted); }
.pager a { color: var(--ink); text-decoration: none; border-bottom: 3px solid var(--accent); }
.pager .older { margin-left: auto; }

/* Archive */
.years { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: -8px 0 24px; }
.archive-year h2 { font-weight: 300; font-size: 30px; color: var(--title); border-bottom: 1px solid var(--line); margin: 28px 0 0; }
.archive-year h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; }
.tiles a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--band); color: var(--ink); text-decoration: none; }
.tiles img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tiles .text { display: block; padding: 8px; font-size: 12px; line-height: 1.35; overflow: hidden; height: 100%; }
.tiles .tip { position: absolute; inset: auto 0 0 0; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; line-height: 1.3; padding: 6px; opacity: 0; transition: opacity .15s; max-height: 100%; overflow: hidden; }
.tiles a:hover .tip, .tiles a:focus .tip { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tiles .tip { transition: none; } }

.site-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 16px 40px; }
.site-footer a { color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 15px; }
  .band { height: 140px; }
  .avatar { margin-top: -50px; }
  .avatar img { width: 96px; height: 96px; }
  .post-body > :not(.photos):not(.video):not(audio):not(.caption), .caption > * { margin-left: 14px; margin-right: 14px; }
  .post-meta { padding: 12px 14px 16px; }
  .post-title { padding: 18px 14px 0; }
}
