/* mm-site.css — Mimetic Matter shared styles */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Inter:wght@300;400;500&display=swap');

/* ─── Tokens ─────────────────────────────── */
:root {
  --green:    #336F59;
  --green-dk: #1E4538;
  --green-lt: #4A8C72;
  --bg:       #FFFFFF;
  --bg-alt:   #F2F5F3;
  --ink:      #1A1F1D;
  --muted:    #4A5750;
  --rule:     #C8D5CE;
  --accent:   #C4A25A;

  --serif: 'Lora', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  --max-w:    1060px;
  --px:       clamp(1.25rem, 5vw, 3rem);
  --py:       clamp(3rem, 6vw, 5rem);
}

/* ─── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--green); }
a:hover { color: var(--green-dk); }
p { max-width: 62ch; }
p + p { margin-top: 0.85rem; }

/* ─── Nav ────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.7rem var(--px);
  display: flex;
  align-items: center;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  flex-shrink: 0;
}
.brand img { height: 26px; width: auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { line-height: 1.15; }
.brand-sub {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.07em;
  opacity: 0.65;
  margin-top: 1px;
}
.nav-links {
  display: flex;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: 0.45rem 0.85rem;
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 0.84rem;
  letter-spacing: 0.025em;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current] { color: #fff; }

/* ─── Layout ──────────────────────────────── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px); }
.section { padding: var(--py) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.bg-alt { background: var(--bg-alt); }

/* ─── Typography ──────────────────────────── */
.eyebrow {
  display: block;
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.65rem;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.22; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 600; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
.lead {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--muted);
  max-width: 58ch;
  margin-top: 0.75rem;
}
.section-intro { max-width: 60ch; margin-top: 0.75rem; color: var(--muted); }

/* ─── Buttons ─────────────────────────────── */
.cta-group { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.35rem;
  border-radius: 3px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1;
  border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}
.btn-primary  { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dk); border-color: var(--green-dk); color: #fff; }
.btn-outline  { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-ghost    { color: var(--muted); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--muted); color: var(--ink); }

/* ─── Card grid ───────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.card {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg);
}
.card h3 { font-size: 0.975rem; margin-bottom: 0.45rem; }
.card p   { font-size: 0.875rem; color: var(--muted); max-width: none; }

/* ─── Question list ───────────────────────── */
.question-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.75rem;
  max-width: 58ch;
}
.question-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.question-list li::before {
  content: '→';
  color: var(--green);
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ─── Teaser block ────────────────────────── */
.teaser {
  padding: 1.75rem 2rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--green);
  border-radius: 4px;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.teaser p { font-size: 0.95rem; color: var(--muted); }

/* ─── Element tiles (home teaser) ─────────── */
.element-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
}
.el-tile {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid var(--green);
  color: var(--green);
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.13s, color 0.13s;
}
.el-tile:hover { background: var(--green); color: #fff; }

/* ─── Element page cards ──────────────────── */
.element-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.element-card { border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.element-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.2rem;
  background: var(--green);
  color: #fff;
}
.element-num  { font-size: 0.65rem; opacity: 0.55; min-width: 1.4rem; text-align: right; }
.element-symbol { font-family: var(--serif); font-size: 1.65rem; font-weight: 600; line-height: 1; }
.element-name   { font-size: 0.82rem; font-weight: 400; opacity: 0.88; }
.element-body   { padding: 0.9rem 1.2rem; }
.element-body p { font-size: 0.85rem; color: var(--muted); max-width: none; line-height: 1.65; }

/* ─── Lexicon ─────────────────────────────── */
.lex-intro { max-width: 58ch; color: var(--muted); margin-top: 0.75rem; }
.lex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.lex-entry  { border-left: 2px solid var(--green); padding-left: 1.1rem; }
.lex-term   { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; margin-bottom: 0.4rem; }
.lex-def    { font-size: 0.875rem; color: var(--muted); line-height: 1.68; max-width: 42ch; }

/* ─── Tag strip ───────────────────────────── */
.tag-strip  { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tag {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
}
.tag:hover { border-color: var(--green); color: var(--green); }

/* ─── Inquiry routes ──────────────────────── */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
  margin-top: 2rem;
}
.route-card {
  padding: 1.3rem 1.4rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.route-card h3 { font-size: 0.975rem; margin-bottom: 0.4rem; }
.route-card p  { font-size: 0.84rem; color: var(--muted); max-width: none; }

.form-placeholder {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--green);
  border-radius: 4px;
  text-align: center;
}
.form-placeholder h3 { font-size: 1.1rem; margin-bottom: 0.65rem; }
.form-placeholder p  { font-size: 0.9rem; color: var(--muted); max-width: 48ch; margin: 0 auto 1.25rem; }

/* ─── Breadcrumb ──────────────────────────── */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb sep { margin: 0 0.4rem; }

/* ─── Footer ──────────────────────────────── */
footer {
  background: var(--green-dk);
  color: rgba(255,255,255,0.72);
  padding: 2.25rem 0;
  font-size: 0.82rem;
  line-height: 1.72;
}
footer .wrap { display: flex; flex-direction: column; gap: 0.3rem; }
footer strong { color: #fff; }
footer .disclaimer { font-size: 0.71rem; opacity: 0.45; margin-top: 0.5rem; }

/* ─── Responsive ──────────────────────────── */
@media (max-width: 640px) {
  .nav-links a { padding: 0.45rem 0.55rem; font-size: 0.76rem; }
  .brand-sub   { display: none; }
  .card-grid, .element-grid, .lex-grid, .route-grid { grid-template-columns: 1fr; }
  .teaser { padding: 1.25rem 1.35rem; }
}
