:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --muted: #5f5f5f;
  --line: #e7e7e7;
  --accent: #0f766e;
  --max: 980px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --text: #ededed;
    --muted: #9b9b9b;
    --line: #262626;
    --accent: #2dd4bf;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; transition: text-decoration-color .15s; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; text-decoration: none; }
.brand svg { width: 22px; height: 22px; color: var(--accent); }
.nav { display: flex; gap: 22px; font-size: .92rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .lang { font-family: var(--mono); font-size: .82rem; border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
@media (max-width: 560px) { .nav .opt { display: none; } }

/* Hero */
.hero { padding: 96px 0 88px; }
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; margin: 0 0 26px; max-width: 20ch; }
.hero h1 .a { color: var(--accent); }
.hero p { font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--muted); max-width: 58ch; margin: 0 0 30px; }
.arrow { font-weight: 600; text-decoration: none; color: var(--accent); }
.arrow:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); scroll-margin-top: 8px; }
.label { font-family: var(--mono); font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 32px; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); letter-spacing: -.02em; line-height: 1.2; font-weight: 600; margin: 0 0 12px; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.rows li:first-child { border-top: 0; padding-top: 0; }
.rows .n { font-family: var(--mono); font-size: .85rem; color: var(--accent); padding-top: 3px; }
.rows h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; margin: 0; line-height: 1.4; }
.rows p { margin: 0; color: var(--muted); }
@media (max-width: 720px) {
  .rows li { grid-template-columns: 40px minmax(0, 1fr); }
  .rows p { grid-column: 2; }
}

.project p { color: var(--muted); max-width: 62ch; margin: 0; }
.project .kind { font-family: var(--mono); font-size: .82rem; color: var(--accent); margin: 0 0 10px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 28px 32px; margin: 40px 0 0; padding: 0; list-style: none; }
.facts b { display: block; font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.facts span { display: block; color: var(--muted); font-size: .92rem; margin-top: 6px; }

.note { color: var(--muted); font-size: .9rem; margin: 32px 0 0; }

.contact p { color: var(--muted); margin: 0 0 18px; max-width: 52ch; }
.contact .mail { font-size: clamp(1.4rem, 4.5vw, 2.2rem); font-weight: 600; letter-spacing: -.02em; color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.contact .mail:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: .85rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
footer p { margin: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }

/* Legal pages */
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 720px; }
.legal h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -.03em; line-height: 1.15; font-weight: 600; margin: 0 0 8px; overflow-wrap: anywhere; }
.legal .updated { color: var(--muted); margin: 0 0 36px; font-size: .92rem; }
.legal h2 { font-size: 1.2rem; margin: 40px 0 10px; }
.legal ul { padding-left: 20px; }
.legal .box { border-left: 2px solid var(--accent); padding: 4px 0 4px 18px; }
.legal .box p { margin: 2px 0; }

.title { font-size: clamp(1.25rem, 2.8vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; margin: 0; max-width: 34ch; }
