/* ------------------------------------------------------------------
   Sente Kinetic Mind: Journal
   Design: Washi (warm paper, sumi ink, oxblood seal accents)
   ------------------------------------------------------------------ */

:root {
  --seal: #6e0b10;
  --seal-soft: #8a2228;
  --bg: #f6f1e7;
  --text: #2a2623;
  --muted: #776f66;
  --rule: #e2d8c7;
  --link: var(--seal);
  --code-bg: #eee6d7;

  --font-wordmark: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-display: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --font-ui: "Inter Variable", system-ui, -apple-system, sans-serif;
  --wordmark-weight: 300;
  --wordmark-track: 0.09em;
  --display-weight: 500;
  --header-align: center;
  --measure: 40rem;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { font-size: 122%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--seal-soft); }

.site-header,
main,
.site-footer {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header ------------------------------------------------------------ */

.site-header {
  padding-top: 2.5rem;
  padding-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: var(--header-align);
  text-align: var(--header-align);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--text);
  text-decoration: none;
}

.seal { width: 52px; height: auto; display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }

.wordmark {
  font-family: var(--font-wordmark);
  font-weight: var(--wordmark-weight);
  font-size: 1.75rem;
  letter-spacing: var(--wordmark-track);
}

.section-label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--seal);
  margin-top: 0.35rem;
  padding-left: 0.1em;
}

.site-header nav { width: 100%; margin-top: 1.4rem; padding-top: 0.9rem; border-top: 1px solid var(--rule); }

.site-header nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: var(--header-align);
  gap: 0.3rem 1.6rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover { color: var(--text); }
.site-header nav a[aria-current="page"] { color: var(--seal); }

/* Content ----------------------------------------------------------- */

main { padding-top: 2.25rem; padding-bottom: 3.5rem; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  line-height: 1.2;
  letter-spacing: 0.005em;
}

h1 { font-size: 2.35rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.55rem; margin-top: 2.4rem; }
h3 { font-size: 1.25rem; }

.post-meta,
.category-feed,
.site-footer {
  font-family: var(--font-ui);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.post-meta a { color: var(--muted); }
.post-summary { color: var(--muted); font-style: italic; margin-top: 0.6rem; font-size: 1.05rem; }
.draft { color: var(--seal); font-weight: 600; }
.import-note {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0.8rem 0 0;
}
.import-note a { color: var(--muted); }
.post-body img { display: block; margin: 1.5rem auto; border-radius: 2px; }

.post header { padding-bottom: 1.2rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--rule); }

.intro p {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 1rem;
}

h2.list-heading {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--seal);
  margin-top: 2.5rem;
}

.category-description { color: var(--muted); margin-top: 0; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.post-list li:first-child { border-top: 1px solid var(--rule); }
.post-list .post-link {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--text);
  text-decoration: none;
}
.post-list .post-link:hover { color: var(--seal); }
.post-list .post-meta { display: block; margin-top: 0.3rem; }
.post-list p { margin: 0.45rem 0 0; }

.post-body blockquote {
  margin: 1.6rem 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--seal);
  color: var(--muted);
}

code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.8em; }
code { background: var(--code-bg); padding: 0.1em 0.35em; border-radius: 2px; }
pre { background: var(--code-bg); padding: 1rem 1.1rem; overflow-x: auto; border-radius: 2px; line-height: 1.55; }
pre code { background: none; padding: 0; }

img { max-width: 100%; height: auto; }

/* APA 7 reference list ---------------------------------------------- */

.references { margin-top: 3.5rem; padding-top: 0.5rem; border-top: 1px solid var(--rule); }
.references h2 { text-align: center; font-size: 1.3rem; }
.references .csl-entry {
  padding-left: 2em;
  text-indent: -2em;
  margin-bottom: 0.9rem;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
}

/* Footer ------------------------------------------------------------ */

.site-footer {
  padding-top: 1.6rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--rule);
  text-align: var(--header-align);
}
.site-footer a { color: var(--muted); }

/* Small screens ----------------------------------------------------- */

@media (max-width: 520px) {
  html { font-size: 112.5%; }
  .wordmark { font-size: 1.3rem; letter-spacing: 0.06em; }
  .seal { width: 42px; }
  .brand { gap: 0.7rem; }
  h1 { font-size: 1.9rem; }
}
