/* kokum blog — static stylesheet. Tokens, fonts and chrome follow kokumhq (light theme; kokumhq has no dark mode
   and no JS toggle, and the blog ships no JavaScript). Font urls are RELATIVE (fonts/<file>) so the same CSS
   works from /blog/assets/ and from the admin preview route. */

@font-face { font-family: 'Zodiak'; src: url('fonts/Zodiak-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Zodiak'; src: url('fonts/Zodiak-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('fonts/Switzer-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('fonts/Switzer-Medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('fonts/Switzer-Semibold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Switzer'; src: url('fonts/Switzer-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --rind: #24081A;
  --kokum: #8E1638;
  --rosewater: #B4697A;
  --plum-100: #F6E0E6;
  --plum-500: #B4697A;
  --plum-700: #8E1638;
  --paper-2: #F7F2E9;
  --ink-900: #24081A;
  --ink-700: #452A38;
  --ink-600: #5C3A4B;
  --ink-500: #7A6070;
  --bg: #ffffff;
  --tint: #f7f3ec;
  --line: #e7e1d6;
  --ink: #211018;
  --ink-2: #5a4650;
  --ink-3: #8a7c83;
  --font-display: 'Zodiak', Georgia, 'Times New Roman', serif;
  --font-body: 'Switzer', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --fs-body: 1.0625rem;
  --lh-body: 1.62;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px rgba(36, 8, 26, .05), 0 12px 28px -14px rgba(36, 8, 26, .16);
  /* kokumhq revamp: nav/footer background (--primary) and gold accent (--accent) */
  --nav-bg: #24081a;
  --nav-accent: #c89b5a;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink-600);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv05" 1, "ss01" 1;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--kokum); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--plum-100); color: var(--ink-900); }

.wrap { width: min(92vw, 1480px); margin-inline: auto; }
.wrap.narrow { width: min(92vw, 780px); }

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--plum-700); color: #fff; padding: .7rem 1.2rem;
  border-radius: 0 0 var(--radius) var(--radius); z-index: 200; font-weight: 600; font-size: .9375rem;
}
.skip-link:focus-visible { top: 0; }

/* header — copied from kokumhq web/index.html `nav` (revamp, Oct 2026); kokumhq is light-only too */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 68px; padding: 0 48px; }
.brand { display: inline-flex; flex-wrap: wrap; align-items: center; line-height: 1; color: #fff; }
.brand-mark {
  display: inline-block; width: 26px; height: 26px; margin-right: 8px;
  background: url('kokum-mark.png') center / contain no-repeat;
}
.brand .wordmark { font-family: var(--font-display); font-size: 20px; letter-spacing: .5px; color: #fff; }
.brand .wordmark span { color: var(--nav-accent); }
.brand-tagline {
  flex-basis: 100%; margin-top: 3px; font-size: 10px; letter-spacing: .8px;
  text-transform: uppercase; color: rgba(255, 255, 255, .45);
}
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: rgba(255, 255, 255, .72); font-size: 13.5px; font-weight: 500; letter-spacing: .2px; transition: color .2s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.nav-cta {
  background: var(--kokum); color: #fff; padding: 9px 22px; border-radius: 6px;
  font-size: 13px; font-weight: 700; letter-spacing: .3px; transition: background .2s; white-space: nowrap;
}
.nav-cta:hover { background: #74112d; }
@media (max-width: 600px) { .header-in { padding: 0 20px; } .site-nav { display: none; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: .65rem 1.2rem;
  border-radius: var(--radius); font-weight: 600; font-size: .9375rem; border: 1px solid transparent; cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--kokum); color: #fff; }
.btn-primary:hover { background: var(--plum-700); filter: brightness(1.1); }

main { min-height: 60vh; padding-block: clamp(2.5rem, 5vw, 4.5rem); }

/* type */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; color: var(--ink-900); line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.9vw, 3.4rem); line-height: 1.08; letter-spacing: -.015em; }
.meta { font-size: .875rem; color: var(--ink-3); }
.empty { color: var(--ink-3); margin-top: 2rem; }

/* chips */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-block; font-size: .75rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px;
  background: var(--paper-2); color: var(--ink-500); border: 1px solid var(--line);
}
.chip:hover { color: var(--kokum); border-color: var(--rosewater); }
.chip-category { background: var(--plum-100); color: var(--kokum); border-color: var(--plum-100); }

/* list pages */
.post-list { list-style: none; padding: 0; margin-top: 2.5rem; display: grid; gap: 2rem; }
.post-card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line);
}
@media (min-width: 40rem) { .post-card:has(.post-card-cover) { grid-template-columns: 220px minmax(0, 1fr); } }
.post-card-cover { display: block; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint); aspect-ratio: 16 / 10; }
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { display: grid; gap: .6rem; align-content: start; }
.post-card h2 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.65rem); }
.post-card h2 a:hover { color: var(--kokum); }
.excerpt { color: var(--ink-600); }

/* pagination */
.pagination {
  margin-top: 3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: .9375rem; font-weight: 600;
}
.pagination a { color: var(--kokum); }
.pagination a:hover { text-decoration: underline; }
.pagination-status { color: var(--ink-3); font-weight: 400; }

/* post page */
.post-header { display: grid; gap: 1rem; margin-bottom: 2rem; }
.post-cover { margin: 0 0 2.5rem; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint); }
.post-cover img { width: 100%; height: auto; }
.back { margin-top: 3rem; font-weight: 600; color: var(--kokum); }

.post-body { font-size: 1.125rem; line-height: 1.7; color: var(--ink-700); overflow-wrap: break-word; }
.post-body > * + * { margin-top: 1.25em; }
.post-body h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); margin-top: 2.2em; }
.post-body h3 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.5rem); margin-top: 1.9em; }
.post-body h4 { font-size: 1.15rem; margin-top: 1.6em; }
.post-body h2 + *, .post-body h3 + *, .post-body h4 + * { margin-top: .6em; }
.post-body a { color: var(--kokum); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-body a:hover { text-decoration-thickness: 2px; }
.post-body strong { color: var(--ink-900); }
.post-body ul, .post-body ol { padding-left: 1.5em; }
.post-body li + li { margin-top: .4em; }
.post-body li > ul, .post-body li > ol { margin-top: .4em; }
.post-body blockquote {
  padding: .25em 0 .25em 1.25em; border-left: 3px solid var(--rosewater); color: var(--ink-600);
  font-family: var(--font-display); font-size: 1.2em; font-style: italic;
}
.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 3px; padding: .1em .35em;
}
.post-body pre {
  background: var(--rind); color: #F0E9DC; padding: 1.1rem 1.25rem; border-radius: var(--radius-lg);
  overflow-x: auto; font-size: .9rem; line-height: 1.55;
}
.post-body pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius-lg); margin-inline: auto; }
.post-body figure { margin-inline: 0; }
.post-body figcaption { margin-top: .6rem; font-size: .875rem; color: var(--ink-3); text-align: center; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.post-body table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: .5em .75em; text-align: left; }
.post-body th { background: var(--paper-2); color: var(--ink-900); }

/* newsletter form (rendered above the footer on every blog page) */
.newsletter-section { margin-top: 3rem; margin-bottom: 3rem; }
.newsletter { display: grid; gap: .6rem; padding: 1.5rem; background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.newsletter label { font-weight: 600; color: var(--ink-900); }
.newsletter-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.newsletter input[type="email"] {
  flex: 1 1 14rem; padding: .65rem .9rem; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; background: #fff; color: var(--ink);
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* footer — copied from kokumhq web/index.html `footer` (revamp, Oct 2026) */
.site-footer { background: var(--nav-bg); color: rgba(255, 255, 255, .6); padding: 56px 48px 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; max-width: 1100px; margin: 0 auto 40px; }
.footer-brand .brand { margin-bottom: 6px; }
.footer-brand .brand-tagline { text-transform: none; letter-spacing: 0; font-size: 12px; font-style: italic; color: rgba(255, 255, 255, .4); margin: 6px 0 8px; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 220px; }
.footer-col h4 { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: #fff; letter-spacing: .8px; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; color: rgba(255, 255, 255, .55); margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px;
}
.footer-bottom a { color: rgba(255, 255, 255, .4); transition: color .2s; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .site-footer { padding: 40px 20px 20px; } .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
