:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #efede6;
  --text: #16181d;
  --muted: #5b5f68;
  --line: #dedbd2;
  --accent: #1f5c4d;
  --accent-ink: #ffffff;
  --accent-soft: #e2eee9;
  --radius: 14px;
  --max: 1120px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #181b20;
    --surface-2: #1f232a;
    --text: #eceae4;
    --muted: #a3a7b0;
    --line: #2c3139;
    --accent: #7cc4ad;
    --accent-ink: #0d1f1a;
    --accent-soft: #1c2c27;
    color-scheme: dark;
  }
}

* { 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(--sans);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: 0.08em; font-size: 15px; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--serif); font-size: 19px; font-weight: 400; letter-spacing: 0; }
.nav { display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { padding-top: 72px; padding-bottom: 56px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 7vw, 76px); letter-spacing: -0.01em; max-width: 15ch; }
.hero h1 em { color: var(--accent); }
.lede { font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 60ch; margin: 22px 0 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid var(--line); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 56px; }
.facts div { background: var(--surface); padding: 18px 20px; }
.facts dt { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.facts dd { margin: 4px 0 0; font-weight: 700; }

/* Sections */
section { padding: 64px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.5vw, 48px); }
.section-head p { color: var(--muted); max-width: 52ch; margin: 0; }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.product { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.product-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.product h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.domain { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--accent-soft); color: var(--accent); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.product p { margin: 0; color: var(--muted); font-size: 15px; }
.product ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--muted); }
.product ul li { margin: 2px 0; }
.links { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; font-weight: 600; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }

/* Principles */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.num { font-family: var(--serif); font-size: 32px; color: var(--accent); line-height: 1; margin-bottom: 14px; display: block; }

/* Company table */
.company { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 860px) { .company { grid-template-columns: 1fr 1.2fr; } }
.company p { color: var(--muted); margin: 0 0 16px; }
.kv { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.kv th, .kv td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.kv th { width: 40%; color: var(--muted); font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.contact-grid .card a { font-weight: 700; text-decoration: none; word-break: break-word; }
.contact-grid address { font-style: normal; }

/* Legal pages */
.legal { padding-top: 56px; padding-bottom: 72px; }
.legal .inner { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 6vw, 56px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 32px; }
.legal h2 { font-size: 20px; font-weight: 800; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.note { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { margin: 0 0 8px; font-size: 13px; color: var(--text); text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 4px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; }
.legal-line { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
