/* Palette shared with Opus (opus.an201.com) so the two read as one family. */
:root {
  --ink: #14161B;
  --paper: #F7F8FA;
  --card: #FFFFFF;
  --line: #DDE1E6;
  --accent: #5A7A99;
  --accent-dark: #3F5A75;
  --accent-tint: #E7EEF3;
  --pastel: #C9D8E5;
  --muted: #5F6672;
  --warn: #8A5A1F;
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); background: var(--paper); color: var(--ink); line-height: 1.6; }
a { color: var(--accent-dark); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* Top bar */
.topbar { border-bottom: 1px solid var(--line); background: var(--card); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); text-decoration: none; font-weight: 600; }
.brand small { font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: 0.8rem; margin-left: 6px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 12px; border-radius: 6px; font-size: 0.93rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--accent-tint); }

/* Hero with a faint five-line staff behind the headline */
.hero { position: relative; padding: 72px 0 120px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 28px; height: 57px;
  background: repeating-linear-gradient(to bottom, var(--pastel) 0 1px, transparent 1px 14px);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-dark); font-weight: 600; margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 0 0 18px; max-width: 18ch; }
.lede { font-size: 1.15rem; max-width: 62ch; color: #2C313A; margin: 0 0 28px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 0.97rem; padding: 11px 20px; border-radius: 8px; border: 1.5px solid var(--accent); background: var(--accent); color: #fff; text-decoration: none; cursor: pointer; min-height: 44px; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent-dark); }
.btn.ghost:hover { background: var(--accent-tint); color: var(--ink); }
.btn.small { padding: 6px 12px; min-height: 34px; font-size: 0.88rem; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

section { padding: 48px 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 66ch; margin-bottom: 28px; }
.section-head h2 { font-size: 1.9rem; margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pillars.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .pillars.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .pillars, .pillars.four { grid-template-columns: 1fr; } }
.pillar { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 26px 26px 22px; display: flex; flex-direction: column; }
.pillar .num { font-family: var(--serif); font-size: 2.2rem; color: var(--pastel); line-height: 1; margin-bottom: 6px; }
.pillar h3 { font-size: 1.3rem; margin: 0 0 12px; }
.pillar p { margin: 0 0 12px; }
.pillar dl { margin: 6px 0 14px; }
.pillar dt { font-weight: 600; margin-top: 12px; }
.pillar dd { margin: 4px 0 0; color: #343a44; }
.prompts { margin: auto 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line); }
.prompts h4 { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-dark); margin: 0 0 8px; font-family: var(--sans); }
.prompts ul { margin: 0 0 14px; padding-left: 18px; color: #343a44; }
.prompts li { margin-bottom: 6px; }

.note { background: var(--accent-tint); border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 18px; font-size: 0.93rem; color: #2C313A; }
.quote { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; border-left: 3px solid var(--accent); padding-left: 20px; margin: 0; max-width: 46ch; }

/* Discussion board */
.board-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.topic-list { list-style: none; padding: 0; margin: 0; position: sticky; top: 16px; }
.topic-list a { display: block; padding: 9px 12px; border-radius: 6px; text-decoration: none; color: var(--muted); font-size: 0.93rem; }
.topic-list a:hover, .topic-list a[aria-current="true"] { background: var(--accent-tint); color: var(--ink); }
.thread-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 12px; }
.thread-card h3 { margin: 4px 0 6px; font-size: 1.15rem; }
.thread-card h3 a { text-decoration: none; color: var(--ink); }
.thread-card h3 a:hover { color: var(--accent-dark); }
.thread-card p { margin: 0 0 8px; color: #343a44; }
.meta { font-size: 0.83rem; color: var(--muted); }
.tag { display: inline-block; text-decoration: none; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-tint); border-radius: 4px; padding: 2px 8px; font-weight: 600; }
.empty { color: var(--muted); padding: 24px; text-align: center; border: 1px dashed var(--line); border-radius: 10px; }

.post { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; margin-bottom: 14px; }
.post.op { border-left: 4px solid var(--accent); }
.post .body { white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0 0; }

/* Forms */
.form { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; }
.form h2, .form h3 { margin-top: 0; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 5px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { margin-top: 12px; font-size: 0.93rem; }
.status.ok { color: var(--accent-dark); }
.status.err { color: var(--warn); }
details.compose summary { list-style: none; }
details.compose summary::-webkit-details-marker { display: none; }

footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 28px 0 40px; font-size: 0.85rem; color: var(--muted); }
footer.site p { margin: 0 0 8px; max-width: 80ch; }

@media (max-width: 760px) {
  .board-layout { grid-template-columns: 1fr; }
  .topic-list { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .row { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 100px; }
  .nav a { padding: 6px 9px; }
}
.after-grid { margin-top: 24px; }
