/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..600&family=Inter+Tight:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* CSS Custom Properties - Design Tokens */
:root {
  /* Colors - must match reference exactly */
  --moss: #4a7c23;
  --moss-deep: #2d5016;
  --sprout: #a8c24a;
  --clay: #c17f59;
  --ochre: #e4a93c;
  --sky: #87ceeb;
  --paper: #f4efe4;
  --paper-warm: #ebe5d8;
  --paper-deep: #d9d3c7;
  --ink: #1a1a1a;
  --ink-soft: #666666;
  --rule: #d9d3c7;
  --rule-strong: #c4beb4;

  /* Typography */
  --f-display: 'Fraunces', Georgia, serif;
  --f-sans: 'Inter Tight', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --edge: clamp(16px, 4vw, 48px);
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-family: var(--f-sans);
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

/* Typography utilities */
.font-display { font-family: var(--f-display); }
.font-mono { font-family: var(--f-mono); }

/* Section containers - match reference .section and .section-tight */
.section {
  max-width: 1600px;
  margin: 0 auto;
  padding: 64px var(--edge);
}

.section-tight {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--edge) 24px;
}

/* Utility classes matching reference */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--moss);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-family: var(--f-mono);
  letter-spacing: .05em;
  background: var(--paper-warm);
  color: var(--ink-soft);
}

.chip.moss { background: var(--moss); color: var(--paper); }
.chip.sprout { background: var(--sprout); color: var(--moss-deep); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .18s;
  cursor: pointer;
  border: none;
}

.btn-primary { background: var(--moss); color: var(--paper); }
.btn-primary:hover { background: var(--moss-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-ghost:hover { background: var(--paper-warm); }

.btn-sprout { background: var(--sprout); color: var(--moss-deep); }
.btn-sprout:hover { background: var(--moss); color: var(--paper); }

.arr { font-size: 18px; }

/* Page hero - matches .page-hero in reference */
.page-hero {
  padding: 80px var(--edge) 40px;
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: end;
  border-bottom: 1px solid var(--rule);
}

.page-hero h1 {
  font-family: var(--f-display);
  font-size: clamp(52px, 8vw, 132px);
  line-height: .88;
  letter-spacing: -.035em;
  font-weight: 400;
}

.page-hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--moss);
}

.page-hero aside {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
  max-width: 46ch;
  padding-bottom: 12px;
}

.breadcrumb {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.breadcrumb b { color: var(--ink); }

/* Header/Topbar - from reference */
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--edge);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 400;
}

.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--moss);
  border-radius: 4px;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 4px;
  transition: all .15s;
}

.nav a:hover, .nav a.active {
  background: var(--paper-warm);
  color: var(--ink);
}

.nav a .caret {
  font-size: 10px;
  margin-left: 2px;
}

.lang {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-soft);
}

.lang b { color: var(--ink); }

.top-cta {
  background: var(--moss);
  color: var(--paper);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
  transition: background .15s;
}

.top-cta:hover { background: var(--moss-deep); }

/* Footer - from reference */
.foot {
  background: var(--paper-deep);
  padding: 64px var(--edge) 32px;
  margin-top: auto;
}

.foot-grid {
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
}

.foot h4 {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 400;
  margin: 0 0 16px;
}

.foot ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.foot li a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
}

.foot li a:hover { color: var(--moss); }

.foot-lead {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 300;
  color: var(--ink);
  margin: 16px 0 0;
  max-width: 36ch;
  line-height: 1.3;
}

.foot-lead em { font-style: italic; }

.foot-base {
  max-width: 1600px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-soft);
}

/* Ticker/marquee */
.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 10px 0;
}

.ticker-track {
  display: flex;
  gap: 64px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ticker .dot {
  width: 6px;
  height: 6px;
  background: var(--sprout);
  border-radius: 50%;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 1000px) {
  .page-hero { grid-template-columns: 1fr; gap: 24px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}

@media (max-width: 600px) {
  .foot-grid { grid-template-columns: 1fr; }
  .topbar-inner { height: 64px; }
}
