:root {
  --bg: #ffffff;
  --surface: #f6f5f1;
  --ink: #1d2730;
  --ink-soft: #52616e;
  --ink-faint: #8a96a0;
  --brand: #0f6e56;
  --brand-deep: #0a5743;
  --brand-soft: #e6f3ee;
  --line: #e7e4dd;
  --line-strong: #d6d2c8;
  --maxw: 1080px;
  --readw: 40rem;
  --radius: 14px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-deep); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: var(--ink); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: var(--readw); margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hidden { display: none; }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 3px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .bar { height: 4px; background: var(--brand); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding: 1.1rem 1.25rem; flex-wrap: wrap; }
.brand { text-decoration: none; color: inherit; }
.brand-title { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.5rem; letter-spacing: -.01em; }
.brand-em { color: var(--brand); }
.brand-tagline { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: 2px; max-width: 34rem; }
.site-nav { display: flex; gap: 1.4rem; font-size: 1rem; }
.site-nav a { color: var(--ink-soft); text-decoration: none; }
.site-nav a:hover { color: var(--brand); }
.site-nav a[aria-current="page"] { color: var(--brand-deep); font-weight: 600; }

/* Hero */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .container { padding-top: 3.2rem; padding-bottom: 3.2rem; max-width: 46rem; margin: 0 auto; }
.hero-eyebrow { color: var(--brand-deep); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .7rem; }
.hero-title { font-size: 2.5rem; margin: 0 0 .9rem; letter-spacing: -.015em; }
.hero-lede { font-size: 1.18rem; color: var(--ink-soft); margin: 0 0 1.7rem; max-width: 36rem; }
.subscribe { display: flex; gap: .5rem; flex-wrap: wrap; max-width: 30rem; }
.subscribe input[type="email"] { flex: 1; min-width: 12rem; padding: .72rem .9rem; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink); }
.subscribe button { padding: .72rem 1.3rem; border: 0; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; font-size: 1rem; cursor: pointer; }
.subscribe button:hover { background: var(--brand-deep); }
.hero-note { font-size: .82rem; color: var(--ink-faint); margin: .8rem 0 0; }

/* Comments */
.comments { margin: 3.5rem auto 1.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments-title { font-size: 1.5rem; margin: 0 0 .35rem; }
.comments-note { font-size: .85rem; color: var(--ink-faint); margin: 0 0 1.3rem; }
#cusdis_thread { font-family: var(--sans); font-size: .95rem; }

/* Sections */
.section { padding-top: 2.8rem; padding-bottom: 2.8rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { font-size: 1.55rem; margin: 0; }
.see-all { font-size: .95rem; text-decoration: none; color: var(--brand-deep); white-space: nowrap; }
.see-all:hover { color: var(--brand); }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(29,39,48,.06); }
.card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
.card-body { padding: 1.1rem 1.25rem 1.3rem; }
.card-date { font-size: .76rem; color: var(--ink-faint); margin: 0 0 .45rem; text-transform: uppercase; letter-spacing: .05em; }
.card-title { font-size: 1.2rem; margin: 0 0 .5rem; line-height: 1.3; }
.card-desc { font-size: .96rem; color: var(--ink-soft); margin: 0 0 .9rem; }
.card-more { font-size: .9rem; color: var(--brand-deep); font-weight: 600; }
.card:hover .card-more { color: var(--brand); }

/* Featured card */
.card-featured { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .card-featured .card-link { display: grid; grid-template-columns: 1.15fr 1fr; }
  .card-featured .card-img { height: 100%; aspect-ratio: auto; min-height: 280px; }
  .card-featured .card-body { align-self: center; padding: 1.9rem 2.1rem; }
  .card-featured .card-title { font-size: 1.75rem; }
  .card-featured .card-desc { font-size: 1.05rem; }
}

/* Post + page */
.post, .page { padding-top: 2.4rem; padding-bottom: 3rem; }
.eyebrow { margin: 0 0 .9rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.eyebrow a { color: var(--brand-deep); text-decoration: none; }
.eyebrow a:hover { color: var(--brand); }
.post-title { font-size: 2.3rem; margin: 0 0 .8rem; line-height: 1.2; letter-spacing: -.015em; }
.post-meta { color: var(--ink-soft); font-size: .95rem; margin: 0 0 1.7rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.post-hero { width: 100%; border-radius: var(--radius); margin: 0 0 2.1rem; }
.page-head h1 { font-size: 2.2rem; margin: 0 0 1.4rem; letter-spacing: -.015em; }
.page-lede { color: var(--ink-soft); font-size: 1.15rem; margin: 0 0 0; }

/* Prose */
.prose { font-size: 1.08rem; }
.prose > * + * { margin-top: 1.35rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 0; }
.prose h3 { font-size: 1.28rem; margin-top: 2.1rem; margin-bottom: 0; }
.prose p { margin: 0; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.prose li::marker { color: var(--brand); }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 0; padding: .7rem 1.2rem; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 8px 8px 0; color: var(--ink); }
.prose img { border-radius: var(--radius); margin: 1.8rem 0; }
.prose em { font-style: italic; }

.post-end { border: 0; border-top: 1px solid var(--line); margin: 2.8rem 0 1.7rem; }
.author-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.author-name { font-weight: 700; margin: 0; }
.author-role, .author-affil { margin: .2rem 0 0; color: var(--ink-soft); font-size: .95rem; }
.post-back { margin-top: 1.7rem; }
.post-back a { text-decoration: none; color: var(--brand-deep); font-weight: 600; }
.signature { background: var(--surface); border-left: 4px solid var(--brand); padding: 1rem 1.2rem; border-radius: 0 8px 8px 0; line-height: 1.6; }

/* Buttons */
.button { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; padding: .75rem 1.4rem; border-radius: 10px; font-weight: 600; }
.button:hover { background: var(--brand-deep); color: #fff; }

/* Footer */
.site-footer { background: var(--ink); color: #cdd6dd; margin-top: 3.5rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-top: 2.6rem; padding-bottom: 1.6rem; }
.footer-about { max-width: 32rem; }
.footer-title { font-family: var(--serif); font-size: 1.15rem; color: #fff; margin: 0 0 .4rem; }
.footer-about p { margin: 0; color: #aeb9c1; font-size: .95rem; }
.footer-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: flex-start; }
.footer-nav a { color: #cdd6dd; text-decoration: none; font-size: .95rem; }
.footer-nav a:hover { color: #fff; }
.footer-base { border-top: 1px solid rgba(255,255,255,.13); padding-top: 1.1rem; padding-bottom: 2.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-base p { margin: 0; font-size: .82rem; color: #8c98a1; }

/* Responsive */
@media (max-width: 600px) {
  html { font-size: 106.25%; }
  .hero-title { font-size: 2rem; }
  .post-title { font-size: 1.85rem; }
  .brand-title { font-size: 1.3rem; }
  .site-nav { gap: 1.1rem; }
  .footer-inner { gap: 1.2rem; }
}

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