:root {
  --bg: #F8F8F6;
  --surface: #FFFFFF;
  --text: #111111;
  --secondary: #6B6B6B;
  --accent: #006B6B;
  --cta: #E8D9C0;
  --border: #E5E5E5;
  --dark: #0D0D0D;
  --maxw: 1080px;
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.wrap.narrow { max-width: 720px; }

/* --- Header / nav --- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(248, 248, 246, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.brand-name { font-weight: 600; letter-spacing: -0.01em; font-size: 1.1rem; }
.nav-links { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
.nav-links a { color: var(--secondary); font-size: 0.95rem; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* --- Hero --- */
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 760px; margin: 0 auto;
  padding: 5.5rem 1.5rem 5rem;
  text-align: center;
}
.hero-logo { width: 96px; height: 96px; margin: 0 auto 1.75rem; }
.hero-wordmark {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.hero-tagline {
  margin: 0 auto 1rem;
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 300;
  color: var(--text);
  max-width: 34rem;
}
.hero-intro {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--secondary);
  font-size: 1.02rem;
}

/* --- Section scaffolding --- */
.section-title {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--secondary); font-weight: 600;
  margin: 0 0 1.75rem;
}
.latest { padding: 4rem 0 4.5rem; }
.eyebrow {
  display: inline-block;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent); font-weight: 600; margin-bottom: 0.5rem;
}
.eyebrow a { color: var(--accent); }

/* --- Latest news block --- */
.latest-news {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 2.25rem;
  color: var(--text);
  margin-bottom: 3rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.latest-news:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.latest-news h3 { margin: 0 0 0.4rem; font-size: 1.6rem; font-weight: 400; letter-spacing: -0.02em; }
.latest-news .meta { margin: 0 0 0.75rem; color: var(--secondary); font-size: 0.9rem; }
.latest-news .summary { margin: 0 0 1rem; color: var(--secondary); }
.read-more { color: var(--accent); font-weight: 500; font-size: 0.95rem; }

/* --- Cards --- */
.cards-title { font-size: 1.15rem; font-weight: 600; margin: 0 0 1.25rem; letter-spacing: -0.01em; }
.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  color: var(--text);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.card-title { margin: 0 0 0.5rem; font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; }
.card-meta { margin: 0 0 0.75rem; font-size: 0.82rem; color: var(--secondary); }
.card-summary { margin: 0 0 1rem; color: var(--secondary); font-size: 0.95rem; flex: 1; }
.card-link { color: var(--accent); font-weight: 500; font-size: 0.9rem; }

/* --- Listing pages --- */
.page { padding: 3.5rem 0 4.5rem; }
.page-head { margin-bottom: 2.5rem; }
.page-head h1 {
  margin: 0 0 0.5rem; font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 300; letter-spacing: -0.03em;
}
.page-lede { margin: 0; color: var(--secondary); font-size: 1.05rem; }

.feed { list-style: none; margin: 0; padding: 0; }
.feed-item { padding: 1.75rem 0; border-bottom: 1px solid var(--border); }
.feed-item:first-child { padding-top: 0; }
.feed-date { margin: 0 0 0.35rem; color: var(--secondary); font-size: 0.85rem; }
.feed-title { margin: 0 0 0.5rem; font-size: 1.5rem; font-weight: 400; letter-spacing: -0.02em; }
.feed-title a { color: var(--text); }
.feed-title a:hover { color: var(--accent); text-decoration: none; }
.feed-byline { margin: 0 0 0.5rem; color: var(--secondary); font-size: 0.85rem; }
.feed-summary { margin: 0 0 0.6rem; color: var(--secondary); }
.feed-more a { font-size: 0.92rem; font-weight: 500; }
.feed-more { margin: 0; }

/* --- Single post --- */
.post .wrap { }
.post-head { margin-bottom: 2.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.post-title {
  margin: 0.4rem 0 0.75rem; font-size: clamp(1.9rem, 5vw, 2.7rem);
  font-weight: 300; letter-spacing: -0.03em; line-height: 1.1;
}
.byline { margin: 0; color: var(--secondary); font-size: 0.92rem; }
.byline-who { color: var(--text); }
.post-body { font-size: 1.06rem; }
.post-body h1, .post-body h2, .post-body h3 {
  letter-spacing: -0.02em; line-height: 1.25; margin: 2.25rem 0 0.85rem; font-weight: 500;
}
.post-body h1 { font-size: 1.8rem; }
.post-body h2 { font-size: 1.45rem; }
.post-body h3 { font-size: 1.2rem; }
.post-body p { margin: 0 0 1.15rem; }
.post-body ul, .post-body ol { margin: 0 0 1.15rem; padding-left: 1.4rem; }
.post-body li { margin: 0 0 0.4rem; }
.post-body blockquote {
  margin: 1.5rem 0; padding: 0.4rem 1.25rem;
  border-left: 3px solid var(--accent); color: var(--secondary);
}
.post-body blockquote p { margin: 0; }
.post-body code {
  background: #f0f0ec; border: 1px solid var(--border);
  border-radius: 5px; padding: 0.1rem 0.35rem;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
}
.post-body hr { border: 0; border-top: 1px solid var(--border); margin: 2.25rem 0; }
.post-body a { border-bottom: 1px solid rgba(0, 107, 107, 0.3); }
.post-body a:hover { text-decoration: none; border-bottom-color: var(--accent); }
.back { margin-top: 2.75rem; }
.back a { font-weight: 500; }

.empty { color: var(--secondary); font-style: italic; }

/* --- Footer (dark band) --- */
.site-footer {
  background: var(--dark);
  color: #cfcfcf;
  margin-top: 2rem;
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}
.footer-inner p { margin: 0 0 0.5rem; font-size: 0.92rem; }
.footer-contact a { color: #ffffff; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.footer-contact a:hover { border-bottom-color: var(--accent); text-decoration: none; }
.footer-note { color: #9a9a9a; }
.footer-copy { color: #6f6f6f; font-size: 0.82rem; margin-top: 1rem; }

/* --- Responsive --- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { flex-wrap: wrap; gap: 0.5rem 1rem; }
  .nav-links { gap: 1.1rem; }
  .hero-inner { padding: 3.5rem 1.5rem 3.25rem; }
  .latest-news { padding: 1.5rem 1.5rem; }
}
