:root {
  --bg: oklch(0.16 0.015 40);
  --bg2: oklch(0.20 0.015 40);
  --text: oklch(0.92 0.01 60);
  --muted: oklch(0.65 0.015 60);
  --muted2: oklch(0.55 0.015 60);
  --hairline: oklch(0.32 0.01 40);
  --ethos: oklch(0.58 0.10 15);
  --techne: oklch(0.58 0.10 200);
  --psyche: oklch(0.58 0.10 280);
  --pneuma: oklch(0.58 0.10 280);
  --default-tag: oklch(0.6 0.01 60);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ethos); }
.thumb { position: relative; overflow: hidden; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
::selection { background: oklch(0.58 0.10 15 / 0.35); }
img { max-width: 100%; display: block; }
.sc-row-title, .sc-row-excerpt, .post-content, h1, h2, h3, h4 { overflow-wrap: break-word; }
.post-content iframe, .post-content video { max-width: 100%; }
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; font-weight: 600; margin: 0; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 680px; margin: 0 auto; padding: 0 32px; }
.site-main { min-height: 60vh; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.site-header-row { padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo-img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.site-logo-mark {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--ethos); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 16px;
}
.site-logo-word { font-family: 'Cormorant Garamond', serif; font-size: 22px; letter-spacing: 0.06em; font-weight: 600; }
.site-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.site-nav a {
  font-size: 12.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}
.site-nav .nav-current a { color: var(--text); }

/* home hero */
.home-hero { position: relative; height: 400px; width: 100%; overflow: hidden; background: var(--bg2); }
.home-hero-plain {
  height: auto; background: var(--bg); border-bottom: 1px solid var(--hairline);
  display: flex; align-items: flex-end; padding: 96px 0 48px;
}
.home-hero-plain h1 { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 44px; font-weight: 500; }
.home-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-hero-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 40%, var(--bg) 100%);
}
.home-hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 36px; }
.home-hero-text h1 {
  font-style: italic; font-size: 44px; font-weight: 500; letter-spacing: 0.01em;
}

/* sections */
.section { padding-top: 56px; padding-bottom: 24px; }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.section-head h2 {
  font-family: 'Inter', sans-serif; font-size: 12.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); font-weight: 600;
}
.section-head .rule { flex: 1; height: 1px; background: var(--hairline); }

/* tags */
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; color: var(--default-tag); }
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag-ethos { color: var(--ethos); }
.tag-techne { color: var(--techne); }
.tag-psyche { color: var(--psyche); }
.tag-pneuma { color: var(--pneuma); }

.sc-row-tag.tag-pneuma { color: var(--pneuma); }
.sc-row-tag.tag-ethos { color: var(--ethos); }
.sc-row-tag.tag-techne { color: var(--techne); }
.sc-row-tag.tag-psyche { color: var(--psyche); }

/* nav category coloring — matched by URL since {{navigation}} exposes no tag classes */
.site-nav a[href*="/tag/ethos"] { color: var(--ethos); }
.site-nav a[href*="/tag/techne"] { color: var(--techne); }
.site-nav a[href*="/tag/psyche"] { color: var(--psyche); }
.site-nav a[href*="/tag/pneuma"] { color: var(--pneuma); }

/* archive + page heads */
.archive-head { border-bottom: 1px solid var(--hairline); padding: 84px 0 40px; }
.archive-kicker { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted2); margin-bottom: 12px; }
.archive-title { font-size: 46px; line-height: 1.05; }
.archive-head.tag-ethos .archive-title { color: var(--ethos); }
.archive-head.tag-techne .archive-title { color: var(--techne); }
.archive-head.tag-psyche .archive-title { color: var(--psyche); }
.archive-head.tag-pneuma .archive-title { color: var(--pneuma); }
.archive-desc { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 620px; margin: 16px 0 0; }
.author-head-row { display: flex; gap: 24px; align-items: center; }
.post-head, .page-head { padding: 84px 32px 8px; }
.post-head h1 { font-size: 48px; line-height: 1.1; margin-bottom: 22px; }
.page-head h1 { font-size: 46px; line-height: 1.05; }

/* error pages */
.error-page { padding: 140px 32px 160px; text-align: center; }
.error-code { font-family: 'Cormorant Garamond', serif; font-size: 88px; line-height: 1; color: var(--hairline); margin-bottom: 20px; }
.error-page h1 { font-size: 36px; font-style: italic; font-weight: 500; margin-bottom: 14px; }
.error-note { font-size: 15px; color: var(--muted); margin: 0 0 28px; }

/* featured grid */
.featured-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; margin-bottom: 40px; }
.featured-side-col { display: flex; flex-direction: column; gap: 22px; }
.featured-main { display: block; }
.featured-main .thumb { aspect-ratio: 16/10; margin-bottom: 18px; background: var(--bg2); }
.featured-main-title { font-size: 32px; line-height: 1.15; }
.featured-side { display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: center; }
.featured-side .thumb { width: 100px; aspect-ratio: 1/1; background: var(--bg2); }
.featured-side-body h4 { font-size: 19px; line-height: 1.25; }

/* latest list */
.latest-list { display: flex; flex-direction: column; }
.sc-row {
  display: flex; align-items: flex-start; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--hairline);
  text-decoration: none; color: inherit;
}
.sc-row:first-child { padding-top: 6px; }
.sc-row * { border: 0; }
.sc-row-date {
  flex: 0 0 44px; display: block; text-align: center; padding-top: 5px;
  font-family: 'Cormorant Garamond', serif;
}
.sc-row-day { display: block; font-size: 22px; font-weight: 600; line-height: 1; }
.sc-row-mon { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sc-row-thumb {
  flex: 0 0 140px; display: block; position: relative; overflow: hidden;
  aspect-ratio: 4/3; background: var(--bg2);
}
.sc-row-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-row-body { flex: 1 1 auto; min-width: 0; display: block; }
.sc-row-tag {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: 7px;
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--default-tag);
}
.sc-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; }
.sc-row-title {
  display: block; font-family: 'Cormorant Garamond', serif; font-weight: 600;
  font-size: 24px; line-height: 1.2; margin-bottom: 8px;
}
.sc-row-excerpt {
  display: block; font-size: 15px; line-height: 1.55; color: oklch(0.72 0.01 60);
  margin-bottom: 8px; max-width: 640px;
}
.sc-row-meta {
  display: block; margin-top: 10px;
  font-family: 'Inter', sans-serif; font-size: 12.5px; line-height: 1.4;
  color: oklch(0.55 0.015 60);
}
.sc-row-meta a { color: inherit; }
.load-more {
  display: inline-block; margin: 20px 0 40px; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--hairline); padding-bottom: 2px;
}

/* post cover */
.post-cover { position: relative; height: 560px; width: 100%; overflow: hidden; background: var(--bg2); }
.post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-cover-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in oklch, var(--bg) 15%, transparent) 0%, color-mix(in oklch, var(--bg) 97%, transparent) 92%);
}
.post-cover-text { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 44px; }
.post-cover-text h1 { font-size: 56px; line-height: 1.08; margin-bottom: 22px; }
.byline { display: flex; align-items: center; gap: 14px; }
.byline .avatar { display: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar-fallback { background: oklch(0.30 0.02 40); display: inline-block; }
.byline-text { font-size: 13.5px; color: oklch(0.72 0.01 60); }
.byline-name { color: var(--text); font-weight: 500; }

/* article content */
.post-content { padding: 64px 32px 40px; font-size: 19px; line-height: 1.75; color: oklch(0.88 0.01 60); }
.post-content p { margin: 0 0 26px; }
.post-content h2, .post-content h3 { color: var(--text); margin: 44px 0 18px; }
.post-content a { color: var(--ethos); text-decoration: underline; }
.post-content a:hover { color: var(--text); }
.post-content blockquote {
  margin: 44px 0; padding: 32px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  text-align: center; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 28px; line-height: 1.4; color: var(--text);
}
.post-content figure { margin: 40px 0; }
.post-content figcaption { font-size: 13px; color: var(--muted2); text-align: center; margin-top: 10px; }
.sc-dropcap > p:first-of-type::first-letter {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-weight: 500;
  font-size: 64px; line-height: 0.7; float: left; padding: 8px 10px 0 0; color: var(--ethos);
}

.related-wrap { padding: 56px 32px 80px; }
.post-tags { padding: 0 32px 20px; display: flex; gap: 10px; flex-wrap: wrap; }
.chip { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 12px; border: 1px solid var(--hairline); color: var(--muted); }

.author-card { padding: 36px 32px; border-top: 1px solid var(--hairline); display: flex; gap: 20px; align-items: flex-start; }
.avatar-lg { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.author-name { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.author-bio { font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0; }

/* related */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.related-card .thumb { aspect-ratio: 16/10; margin-bottom: 14px; background: var(--bg2); }
.related-card h3 { font-size: 19px; line-height: 1.25; }

/* footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 28px 0; }
.site-footer-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted2); }

/* responsive */
@media (max-width: 1000px) {
  .wrap, .wrap-narrow { padding: 0 24px; }
  .featured-grid { grid-template-columns: 1fr; gap: 32px; }
  .featured-main-title { font-size: 28px; }
  .related-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .home-hero { height: 320px; }
  .home-hero-text h1, .home-hero-plain h1 { font-size: 34px; }
  .post-cover { height: 420px; }
  .post-cover-text h1 { font-size: 40px; }
  .post-head h1 { font-size: 38px; }
  .archive-title { font-size: 38px; }
}

@media (max-width: 620px) {
  .wrap, .wrap-narrow { padding: 0 20px; }

  /* header: compact logo row, nav scrolls horizontally */
  .site-header-row { padding: 14px 20px 0; flex-direction: column; align-items: stretch; gap: 0; }
  .site-logo { gap: 10px; }
  .site-logo-img, .site-logo-mark { width: 32px; height: 32px; font-size: 14px; }
  .site-logo-word { font-size: 18px; }
  .site-nav { margin: 12px -20px 0; }
  .site-nav ul {
    gap: 20px; flex-wrap: nowrap; overflow-x: auto; padding: 0 20px 12px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .site-nav ul::-webkit-scrollbar { display: none; }
  .site-nav li { flex: none; }
  .site-nav a { font-size: 12px; white-space: nowrap; }

  /* hero */
  .home-hero { height: 240px; }
  .home-hero-text { padding-bottom: 24px; }
  .home-hero-text h1, .home-hero-plain h1 { font-size: 27px; line-height: 1.15; }
  .home-hero-plain { padding: 56px 0 32px; }

  .section { padding-top: 40px; }
  .section-head { margin-bottom: 20px; }

  /* featured */
  .featured-main .thumb { margin-bottom: 14px; }
  .featured-main-title { font-size: 25px; }
  .featured-side { grid-template-columns: 84px 1fr; gap: 14px; }
  .featured-side .thumb { width: 84px; }
  .featured-side-body h4 { font-size: 17px; }

  /* latest rows */
  .sc-row { gap: 14px; padding: 20px 0; }
  .sc-row-date { flex: 0 0 32px; padding-top: 3px; }
  .sc-row-day { font-size: 18px; }
  .sc-row-mon { font-size: 10px; }
  .sc-row-thumb { flex: 0 0 88px; }
  .sc-row-title { font-size: 20px; margin-bottom: 6px; }
  .sc-row-excerpt { font-size: 14px; line-height: 1.5; }
  .sc-row-meta { font-size: 12px; margin-top: 8px; }

  /* article */
  .post-cover { height: 320px; }
  .post-cover-text { padding-bottom: 28px; }
  .post-cover-text h1 { font-size: 30px; line-height: 1.12; margin-bottom: 16px; }
  .post-head, .page-head { padding: 48px 20px 4px; }
  .post-head h1, .page-head h1 { font-size: 30px; line-height: 1.12; }
  .post-content { padding: 36px 20px 28px; font-size: 17px; line-height: 1.7; }
  .post-content p { margin: 0 0 22px; }
  .sc-dropcap > p:first-of-type::first-letter { font-size: 52px; padding: 6px 8px 0 0; }
  .post-content blockquote { margin: 32px 0; padding: 24px 0; font-size: 22px; }
  .post-content h2, .post-content h3 { margin: 32px 0 14px; }

  .post-tags { padding: 0 20px 16px; }
  .author-card { padding: 28px 20px; gap: 16px; }
  .avatar-lg { width: 52px; height: 52px; }

  .related-wrap { padding: 40px 20px 56px; }
  .related-grid { grid-template-columns: 1fr; gap: 22px; }

  /* archives */
  .archive-head { padding: 48px 0 28px; }
  .archive-title { font-size: 30px; }
  .archive-desc { font-size: 15px; }
  .author-head-row { gap: 16px; }

  .error-page { padding: 90px 20px 110px; }
  .error-code { font-size: 64px; }
  .error-page h1 { font-size: 27px; }

  .site-footer { padding: 22px 0; }
}

@media (max-width: 400px) {
  .sc-row-thumb { display: none; }
  .featured-side { grid-template-columns: 1fr; }
  .featured-side .thumb { width: 100%; }
}
