:root {
  --bg: #f4f2ee;
  --surface: #ffffff;
  --text: #24262b;
  --muted: #6a6f78;
  --line: #e2ded6;
  --nav: #404040;
  --nav-text: #f4f2ee;
  --accent: #2f6db0;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 4px 16px rgb(0 0 0 / .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17191c;
    --surface: #212429;
    --text: #e6e4df;
    --muted: #9a9fa8;
    --line: #2f333a;
    --nav: #101113;
    --accent: #8ab8ec;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
.inner { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* top bar */
.site-nav { background: var(--nav); color: var(--nav-text); }
.site-nav .inner { display: flex; align-items: center; gap: 24px; min-height: 60px; flex-wrap: wrap; }
.site-nav a { color: var(--nav-text); text-decoration: none; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .01em; }
.logo img { border-radius: 50%; }
.site-nav nav { display: flex; gap: 18px; flex: 1; }
.site-nav nav a { opacity: .75; font-size: .95rem; }
.site-nav nav a:hover, .site-nav nav a[aria-current] { opacity: 1; }
.social { display: flex; gap: 14px; margin-left: auto; }
.social svg { width: 18px; height: 18px; fill: currentColor; opacity: .75; }
.social a:hover svg { opacity: 1; }

/* page headers */
.hero { padding: 56px 0 40px; text-align: center; }
.hero h1 { margin: 0; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.15; letter-spacing: -.02em; }
.hero p { margin: 10px 0 0; color: var(--muted); font-size: 1.15rem; }
.hero.small { padding: 44px 0 28px; }
.hero.small h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); }

/* post cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; padding-bottom: 48px; }
.card { background: var(--surface); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 1px solid var(--line); }
.card-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); text-decoration: none; }
.card h2 { margin: 6px 0 8px; font-size: 1.35rem; line-height: 1.3; }
.card h2 a { color: var(--text); text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.card p { margin: 0 0 16px; color: var(--muted); flex: 1; overflow-wrap: anywhere; }
.card time, .byline { color: var(--muted); font-size: .88rem; }
.empty { text-align: center; color: var(--muted); padding: 24px 0 64px; }

.pager { display: flex; justify-content: space-between; align-items: center; padding: 0 0 56px; color: var(--muted); }

.terms { list-style: none; padding: 0 0 56px; margin: 0 auto; max-width: 480px; }
.terms li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.terms span { color: var(--muted); }

/* a post */
.post { max-width: 740px; margin: 0 auto; padding: 48px 16px 64px; }
.post-header { text-align: center; margin-bottom: 32px; }
.post-header h1 { margin: 8px 0 12px; font-size: clamp(1.9rem, 6vw, 2.8rem); line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere; }
.lead { margin: 0 0 20px; font-size: 1.2rem; color: var(--muted); overflow-wrap: anywhere; }
.byline { display: flex; align-items: center; justify-content: center; gap: 8px; }
.byline img { border-radius: 50%; width: 40px; height: 40px; object-fit: cover; }
/* the image is shown whole, above the text (as on the HTMLy site) */
.post-image { margin: 0 0 36px; }
.post-image img { margin: 0 auto; border-radius: 6px; max-height: 80vh; width: auto; }
.post-content { font-size: 1.1rem; overflow-wrap: break-word; }
.post-content h2, .post-content h3 { line-height: 1.25; margin-top: 2em; }
.post-content blockquote { margin: 1.5em 0; padding: .2em 1.2em; border-left: 3px solid var(--accent); color: var(--muted); }
.post-content pre { background: var(--surface); border: 1px solid var(--line); padding: 14px; border-radius: 6px; overflow-x: auto; font-size: .9rem; }
.post-content img { margin: 1.5em auto; border-radius: 6px; }
.post-tags { margin-top: 40px; }
.post-tags a { margin-right: 10px; text-decoration: none; }
.post-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-nav a { text-decoration: none; flex: 1 1 0; }
.post-nav a:last-child:not(:first-child) { text-align: right; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.site-footer .inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 24px; padding-bottom: 32px; }
.site-footer a { color: var(--muted); }

@media (max-width: 600px) {
  .site-nav .inner { gap: 10px 18px; padding-top: 10px; padding-bottom: 10px; }
  .site-nav nav { order: 3; flex-basis: 100%; }
  .hero { padding: 36px 0 28px; }
  .cards { grid-template-columns: 1fr; }
  .post { padding-top: 32px; }
}

/* front page welcome text (HTMLy's static front page) */
.welcome { max-width: 640px; margin: 18px auto 0; color: var(--muted); }
.welcome p { margin: 0 0 .5em; }

/* comments (Isso: its own isso.css loads first, these adapt it to the theme) */
.comments { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.comments h2 { font-size: 1.2rem; margin: 0 0 16px; }
#isso-thread { color: var(--text); font: inherit; }
#isso-thread .isso-postbox .isso-textarea,
#isso-thread .isso-postbox input[type=text],
#isso-thread .isso-postbox input[type=email] {
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 6px;
  font: inherit; font-size: 1rem;
}
#isso-thread .isso-postbox .isso-textarea { min-height: 110px; padding: 10px; }
#isso-thread .isso-postbox .isso-auth-section .isso-input-wrapper input { padding: 6px 8px; }
#isso-thread .isso-postbox input[type=submit] {
  background: var(--accent); color: #fff; border: 0; border-radius: 6px; padding: 8px 18px;
  font: inherit; font-weight: 600; cursor: pointer;
}
#isso-thread .isso-postbox input[type=submit]:hover { filter: brightness(1.1); }
#isso-thread .isso-postbox .isso-post-action { margin-top: 8px; }
#isso-thread .isso-postbox .isso-post-action input[type=button] {
  background: transparent; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px;
  padding: 7px 16px; font: inherit; cursor: pointer;
}
#isso-thread .isso-comment > .isso-text-wrapper { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
#isso-thread .isso-comment .isso-text { overflow-wrap: anywhere; }
#isso-thread .isso-comment-footer a, #isso-thread .isso-comment-header .isso-permalink,
#isso-thread .isso-comment-header .isso-note, #isso-thread .isso-preview .isso-comment-header,
#isso-thread .isso-comment-header .isso-spacer { color: var(--muted); }
#isso-thread .isso-comment-header .isso-author { color: var(--text); }
#isso-thread a { color: var(--accent); }
#isso-thread .isso-thread-heading { color: var(--muted); font-size: .95rem; }
#isso-thread .isso-postbox > .isso-form-wrapper .isso-preview { background: var(--surface); }
