:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --accent: #22f4ae;
  --accent-text: #0a8f66;
  --accent-soft: #d3fcee;
  --card: #f6f6f6;
  --button-fg: #0b1f18;
  --shadow: rgba(0, 0, 0, .05);
  --max: 46rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0c;
    --fg: #f2f2f2;
    --muted: #9a9a9a;
    --line: #242424;
    --accent: #22f4ae;
    --accent-text: #22f4ae;
    --accent-soft: #0e3a2c;
    --card: #161616;
    --button-fg: #0b1f18;
    --shadow: rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.site-header, main, .site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.site-header {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem 1rem;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
}
.brand { color: var(--fg); font-weight: 700; }
nav a { color: var(--muted); margin-left: 1.25rem; font-size: .95rem; }
nav a:hover { color: var(--fg); }

.hero { padding: 3rem 0 2rem; }
.portrait { position: relative; display: inline-block; margin: 0 0 1.25rem; }
.portrait img { display: block; width: 7rem; height: 7rem; border-radius: 50%; object-fit: cover; border: 3px solid var(--card); box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 24px var(--shadow); }
.wave { position: absolute; right: -1rem; bottom: -.4rem; font-size: 2rem; display: inline-block; transform-origin: 70% 70%; animation: wave 2.2s ease-in-out 1; }
@keyframes wave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(14deg); }
  20%, 40% { transform: rotate(-8deg); }
}
@media (prefers-reduced-motion: reduce) { .wave { animation: none; } }
.hero p:nth-of-type(2) { font-size: 1.85rem; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; margin: 0 0 1rem; }
.hero p:nth-of-type(3) { font-size: 1.1rem; color: var(--muted); max-width: 38rem; }

.cta { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 1.75rem; }
.button {
  display: inline-block; background: var(--accent); color: var(--button-fg, #fff); padding: .6rem 1.1rem;
  border-radius: 999px; font-weight: 600; transition: transform .15s ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.05); }
.link { color: var(--fg); border-bottom: 2px solid var(--accent-soft); }
.link:hover { text-decoration: none; border-color: var(--accent); }

section { padding: 2.5rem 0; border-top: 1px solid var(--line); }
section.hero { border-top: 0; }
h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-text); margin: 0 0 1.25rem; }
h3 { font-size: 1.05rem; margin: 0 0 .25rem; }
h3 small { font-weight: 400; color: var(--muted); font-size: .95rem; }
h3 small::before { content: "· "; }
.lead { margin: -.5rem 0 1.5rem; color: var(--muted); }
p { margin: 0 0 .75rem; }

.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.cards li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem; box-shadow: 0 1px 2px var(--shadow); }
.cards li p { color: var(--muted); font-size: .95rem; margin: 0; }

.products li { display: flex; flex-direction: column; }
.products h3 small { display: block; margin-top: .15rem; }
.products h3 small::before { content: none; }
.products .cta { margin-top: auto; padding-top: 1rem; gap: .5rem 1.25rem; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px dashed var(--line); }
.timeline li:first-child { border-top: 0; padding-top: 0; }
.timeline .when { color: var(--accent-text); opacity: .85; font-size: .9rem; padding-top: .2rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timeline p { margin: 0; color: var(--muted); font-size: .95rem; }
.timeline.compact li { padding: .75rem 0; }
@media (max-width: 34rem) {
  .timeline li { grid-template-columns: 1fr; gap: .15rem; }
}

.facts { margin: 0; display: grid; gap: .75rem; }
.facts div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; }
.facts dt { color: var(--muted); font-size: .9rem; padding-top: .1rem; }
.facts dd { margin: 0; }
@media (max-width: 34rem) { .facts div { grid-template-columns: 1fr; gap: 0; } }

.contact p { max-width: 36rem; }
.site-footer { padding: 2rem 1.25rem 3rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
.site-footer a { color: var(--muted); }
.prose { padding: 2rem 0 3rem; }
.prose h1 { font-size: 2rem; letter-spacing: -.02em; margin: 0 0 1.5rem; }
.prose h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-text); margin: 2.5rem 0 1rem; }
.prose p { margin: 0 0 1rem; }
.prose strong { display: block; margin-top: 1.25rem; }
.prose strong + br { display: none; }
