:root {
  --bg: #FBFAF7;
  --surface: #ffffff;
  --text: #1A1A18;
  --text-secondary: #56554F;
  --muted: #8A887F;
  --border: rgba(0, 0, 0, 0.10);
  --border-strong: rgba(0, 0, 0, 0.16);
  --accent: #E0492F;
  --accent-dark: #B83A24;
  --leaf: #3FA34D;
  --radius: 12px;
  --maxw: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(251, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 88px 24px 64px; }
.eyebrow {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  max-width: 18ch;
}
.lede {
  font-size: clamp(17px, 2.4vw, 19px);
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 48ch;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--text); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

/* Sections */
.section { padding: 56px 24px; }
.section-title {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
  font-weight: 600;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:has(.card-link) { cursor: pointer; }
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  border-color: var(--border-strong);
}
.card-soon { background: transparent; border-style: dashed; }
.card-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.card-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.card-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 16px;
  flex: 1;
}
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #F2F0EA;
  color: var(--text-secondary);
}
.card-link {
  text-decoration: none;
  color: var(--accent-dark);
  font-weight: 500;
  font-size: 15px;
  align-self: flex-start;
}
.card-link:hover { text-decoration: underline; }
/* Make the whole card clickable while keeping one real link */
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}
.card:focus-within { border-color: var(--text); }

/* About */
.about { max-width: 56ch; }
.about p { font-size: 17px; color: var(--text-secondary); margin: 0 0 18px; }

/* Contact */
.contact-lede { font-size: 17px; color: var(--text-secondary); margin: 0 0 24px; }
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  padding-bottom: 48px;
  margin-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 8px; }

@media (max-width: 520px) {
  .nav-links { gap: 16px; }
  .hero { padding-top: 56px; }
}

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