/* Shared styles for the lesservessel content pages.
   Same paper, palette and type as the home page, tuned for long reading. */
:root {
  --bg: #faf9f5;
  --fg: #141413;
  --muted: #5e5d59;
  --line: #b0aea5;
  --soft: rgba(20, 20, 19, 0.04);
  --measure: 640px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --fg: #faf9f5;
    --muted: #b0aea5;
    --line: #5e5d59;
    --soft: rgba(250, 249, 245, 0.05);
  }
  html body {
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.98 0 0 0 0 0.97 0 0 0 0 0.94 0 0 0 0.16 -0.08'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.32 0 0 0 0 0.27 0 0 0 0.45 -0.22'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  color: var(--fg);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding: 0 16px;
}
a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--fg); }
a:focus-visible, button:focus-visible, textarea:focus-visible { outline: 1px solid var(--line); outline-offset: 3px; border-radius: 2px; }

/* Header / nav */
.site-head {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
}
.wordmark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fg); }

/* Article */
main.page { max-width: var(--measure); margin: 0 auto; padding: 56px 0 72px; }
.eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow a { text-decoration: none; }
h1, h2, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 9vw, 4.2rem); margin-bottom: 18px; }
h2 { font-size: clamp(1.8rem, 5.5vw, 2.4rem); margin: 56px 0 14px; }
h3 { font-size: 1.45rem; margin: 32px 0 8px; }
.lede { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.45rem; line-height: 1.45; color: var(--muted); }
p { margin: 0 0 16px; }
p + h3 { margin-top: 28px; }
ul.plain, ol.plain { margin: 0 0 18px 1.2em; }
ul.plain li, ol.plain li { margin-bottom: 8px; }
strong { font-weight: 500; }
em.term { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.15em; }
.rule { width: 48px; height: 1px; background: var(--line); margin: 48px auto; border: 0; }

blockquote.verse {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.45;
  margin: 28px 0;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
blockquote.verse cite {
  display: block;
  margin-top: 8px;
  font: normal 500 0.7rem "Inter", system-ui, sans-serif;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.note { font-size: 0.88rem; color: var(--muted); }

/* Cards (words page, verse groups) */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; margin: 20px 0 8px; }
.card { border: 1px solid var(--line); border-radius: 4px; padding: 18px 18px 6px; background: var(--soft); }
.card h3 { margin: 0 0 4px; font-size: 1.6rem; }
.card .kind { font-size: 0.68rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

/* Reflection worksheet */
.prompt { margin: 22px 0; }
.prompt label { display: block; font-weight: 500; margin-bottom: 6px; }
.prompt .hint { font-size: 0.88rem; color: var(--muted); margin-bottom: 8px; }
.prompt textarea {
  width: 100%;
  min-height: 96px;
  font: inherit;
  font-size: 1rem;
  color: var(--fg);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  resize: vertical;
}
.btn {
  font: 500 0.72rem "Inter", system-ui, sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
}
.btn:hover { border-color: var(--fg); }

/* Diagram */
figure.diagram { margin: 28px 0; }
figure.diagram svg { width: 100%; height: auto; display: block; max-width: 480px; margin: 0 auto; }
figure.diagram figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 10px; }
/* Ikigai map: wider than the text column, but always fits the screen. */
figure.ikigai-map { width: min(640px, calc(100vw - 16px)); margin-left: 50%; transform: translateX(-50%); }
figure.ikigai-map svg { max-width: none; }
.diagram-note { font-size: 0.9rem; color: var(--muted); }

/* Footer */
.site-foot {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 24px 0 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 0.78rem;
  color: var(--muted);
}
.site-foot a { text-decoration: none; }
