/* GOLIKEHELLMACHINE — version A2 design */

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/assets/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --ground: #F9F9F9;
  --ink: #111111;
  --ink-soft: #333333;
  --muted: #555555;
  --rule: #DDDDDD;
  --rule-strong: #CCCCCC;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --column: 640px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: var(--muted); }
img { max-width: 100%; height: auto; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 10; }

/* Header and navigation */
.site-header { max-width: 1100px; margin: 0 auto; padding: 24px 20px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.wordmark { font-weight: 600; font-size: 19px; letter-spacing: 0.02em; text-decoration: none; }
.nav-inline { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; letter-spacing: 0.04em; }
.nav-inline a, .nav-menu a { text-decoration: none; }
.nav-inline a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav-menu { display: none; }
.nav-menu summary { cursor: pointer; margin: -10px 0; list-style: none; font-size: 15px; font-weight: 500; letter-spacing: 0.04em; padding: 10px 0; min-height: 44px; display: flex; align-items: center; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary::after { content: ""; display: inline-block; width: 18px; height: 10px; margin-left: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.nav-menu nav { display: flex; flex-direction: column; padding: 8px 0 4px; font-size: 16px; letter-spacing: 0.04em; }
.nav-menu nav a { padding: 10px 0; border-top: 1px solid var(--rule); }

@media (max-width: 700px) {
  .nav-inline { display: none; }
  .nav-menu { display: block; }
  .site-header { position: relative; }
  .nav-menu nav { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--ground); padding: 0 20px 12px; border-bottom: 1px solid var(--rule); }
}

main { padding: 24px 20px 80px; }
.column { max-width: var(--column); margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.wide { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 32px; }

/* Labels, badges, meta */
.section-label { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.badge { display: inline-block; padding: 1px 8px; border: 1px solid var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--ink); }
.card-meta, .piece-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0; font-size: 13px; color: var(--muted); }

/* Home */
.featured { display: flex; flex-direction: column; gap: 12px; }
.featured-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.featured h1 { margin: 0; font-size: 30px; font-weight: 500; line-height: 1.2; }
.featured h1 a { text-decoration: none; }
.featured-excerpt { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.55; }
.series-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 16px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 24px; }
.grid-small { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px 16px; margin-top: 12px; }
.card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.card picture, .card-img { display: block; }
.card-img, .card picture img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-text { aspect-ratio: 4 / 3; display: flex; flex-direction: column; justify-content: center; padding: 16px; border: 1px solid var(--rule-strong); font-family: var(--serif); font-style: italic; font-size: 16px; line-height: 1.45; color: var(--ink-soft); overflow: hidden; }
.card-title { font-size: 21px; font-weight: 500; line-height: 1.2; }
.card-excerpt { font-family: var(--serif); font-size: 17px; line-height: 1.5; color: var(--ink-soft); }
.card:hover .card-title { text-decoration: underline; }

/* Series index */
.series-head { display: flex; flex-direction: column; gap: 12px; max-width: var(--column); }
.series-head h1 { margin: 0; font-size: 36px; font-weight: 500; }
.series-intro { font-family: var(--serif); font-size: 19px; line-height: 1.55; color: var(--ink-soft); }
.series-intro p { margin: 0 0 12px; }
.small-link { font-size: 14px; }
.empty { font-family: var(--serif); font-size: 19px; color: var(--muted); }

/* Piece page */
.piece { max-width: var(--column); margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.piece-head { display: flex; flex-direction: column; gap: 10px; }
.kicker { font-size: 13px; letter-spacing: 0.06em; text-decoration: none; color: var(--muted); }
.piece-head h1 { margin: 0; font-size: 38px; font-weight: 500; line-height: 1.15; }
.piece-img, .piece > picture img { display: block; width: 100%; height: auto; }
.content-warning { margin: 0; padding: 12px 16px; border: 1px solid var(--rule-strong); font-size: 15px; }
.closing-note { margin: 0; font-family: var(--serif); font-size: 17px; line-height: 1.6; font-style: italic; color: var(--ink-soft); }
.piece > hr, .prose hr { width: 100%; border: 0; border-top: 1px solid var(--rule-strong); margin: 16px 0; }

.prose { font-family: var(--serif); font-size: 20px; line-height: 1.6; }
.prose > * { margin: 0 0 24px; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { font-family: var(--sans); font-weight: 400; font-style: italic; letter-spacing: 0.02em; line-height: 1.25; margin-top: 40px; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 23px; }
.prose h4 { font-size: 20px; }
/* Pull quotes: published as blockquotes; set like the current site's. */
.prose blockquote { margin: 32px 0; padding: 20px 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); font-family: var(--sans); font-size: 26px; font-style: italic; font-weight: 400; letter-spacing: 0.02em; line-height: 1.25; }
.prose blockquote p { margin: 0 0 8px; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote > * { margin-top: 0; margin-bottom: 8px; font-size: inherit; }
.prose blockquote > :last-child { margin-bottom: 0; }
/* Pull quotes carry their own rules above and below, so hide WordPress dividers next to them. */
.prose blockquote + hr, .prose hr:has(+ blockquote) { display: none; }
.prose blockquote strong { font-weight: 400; }
.prose figure { margin: 32px 0; }
.prose figcaption { font-family: var(--sans); font-size: 14px; color: var(--muted); margin-top: 8px; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose iframe { display: block; width: 100%; border: 0; }
.prose .embed { margin: 16px 0 24px; }

/* Ephemera: keep every line break as written. */
.piece-text .prose p { white-space: pre-line; }
.piece-text .prose { font-size: 21px; line-height: 1.7; }

/* Previous / next */
.prevnext { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-top: 24px; border-top: 2px solid var(--ink); margin-top: 16px; }
.prevnext a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.prevnext .next { text-align: right; }
.pn-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); }
.pn-title { font-size: 24px; font-weight: 500; line-height: 1.15; }
.prevnext a:hover .pn-title { text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 40px 20px; display: flex; flex-wrap: wrap; gap: 16px 48px; justify-content: space-between; }
.footer-id { display: flex; flex-direction: column; gap: 6px; }
.footer-name { font-weight: 600; }
.footer-tagline { font-size: 14px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; font-size: 14px; }
