/* ---------------------------------------------------------
   Personal site — shared styles
   Palette: warm sage paper, deep charcoal-green ink,
   steel-blue accent (links/emphasis), amber (rare, one-off marks)
--------------------------------------------------------- */

:root {
  --paper: #F0F2ED;
  --paper-raised: #E7EAE2;
  --ink: #1C2620;
  --ink-soft: #4A544C;
  --rule: #B9C2B7;
  --accent: #2A5D8C;
  --accent-warm: #C97A2E;
  --max-content: 640px;
  --rail-width: 260px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  color: var(--ink);
}

p { margin: 0 0 1.1em 0; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent);
  text-decoration-color: rgba(42, 93, 140, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease;
}
a:hover { text-decoration-color: var(--accent); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.mono {
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

/* ---------- Layout: identity rail + content column ---------- */

.page {
  display: grid;
  grid-template-columns: var(--rail-width) 1fr;
  min-height: 100vh;
  max-width: 1180px;
  margin: 0 auto;
}

.rail {
  border-right: 1px solid var(--rule);
  padding: 3rem 2rem 2rem 0;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.rail .name {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.2em;
}

.rail .role {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.rail nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: auto;
}

.rail nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  padding-left: 0.9rem;
  border-left: 2px solid transparent;
}
.rail nav a:hover,
.rail nav a[aria-current="page"] {
  border-left-color: var(--accent);
  color: var(--accent);
}

.rail .status {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.rail .status .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-warm);
  margin-right: 0.5em;
}

main {
  padding: 4.5rem 3rem 4rem 3rem;
  max-width: calc(var(--max-content) + 3rem);
}

section { margin-bottom: 3.2rem; }
section:last-child { margin-bottom: 0; }

.section-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: 2.15rem;
  max-width: 12.5em;
}

.hero .lede {
  font-size: 1.05rem;
  max-width: 34em;
}

/* Positioning list (Translator / Practitioner / Evaluator) —
   left-border-marked, not numbered: these run in parallel, not in sequence */
.threads {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.thread {
  border-left: 2px solid var(--rule);
  padding-left: 1rem;
}
.thread .thread-name {
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 0.15em;
}
.thread p { margin: 0; }

/* Focus area tags */
.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  margin-top: 0.9rem;
}
.stack-list span {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  padding: 0.25em 0.6em;
  border-radius: 3px;
}

.current-item {
  margin-bottom: 1.2rem;
}
.current-item:last-child { margin-bottom: 0; }
.current-item .title {
  font-weight: 600;
  color: var(--ink);
}

footer {
  padding: 2rem 3rem 3rem calc(var(--rail-width) + 3rem);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

/* ---------- Writing / blog index page ---------- */

.post-list {
  display: flex;
  flex-direction: column;
}
.post-item {
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--rule);
}
.post-item:first-child { padding-top: 0; }
.post-item .post-topic {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--accent-warm);
  display: block;
  margin-bottom: 0.4rem;
}
.post-item h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.post-item p { font-size: 0.95rem; }

.notify {
  margin-top: 2.5rem;
  padding: 1.3rem 1.4rem;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.notify p { font-size: 0.95rem; margin-bottom: 0.6rem; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .page { grid-template-columns: 1fr; }
  .rail {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--rule);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
  }
  .rail nav { flex-direction: row; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 0; }
  .rail .status { display: none; }
  main { padding: 2.5rem 1.5rem 3rem 1.5rem; max-width: 100%; }
  footer { padding: 1.5rem; }
  .hero h1 { font-size: 1.7rem; }
}
