/* Offlift site. One stylesheet, no external resources. */

:root {
  --bg: #fbfaf8;
  --surface: #f3f1ed;
  --text: #1c1917;
  --muted: #6b6560;
  --line: #e4e0da;
  --accent: #ff662e;
  --link: #c2410c;
  --focus: #c2410c;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
  --gutter: 1rem;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: clamp(1.9rem, 1.4rem + 2.4vw, 2.6rem);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141210;
    --surface: #1e1b18;
    --text: #f2efea;
    --muted: #a39d96;
    --line: #2e2a26;
    --link: #ff8a5c;
    --focus: #ff8a5c;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 40em) {
  :root { --gutter: 1.5rem; }
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.lang {
  font-size: var(--step--1);
  color: var(--muted);
}

/* Type */
h1, h2, h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 { font-size: var(--step-3); font-weight: 700; }
h2 { font-size: var(--step-2); font-weight: 680; margin-top: var(--space-5); }
h3 { font-size: var(--step-1); font-weight: 650; margin-top: var(--space-4); }

p, ul, ol, address { margin: var(--space-2) 0 0; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: 0.375rem; }
address { font-style: normal; }
strong { font-weight: 650; }

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

.muted { color: var(--muted); }
.small { font-size: var(--step--1); }

/* Home */
.hero {
  padding: var(--space-4) 0 var(--space-2);
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), 0 8px 24px rgb(255 102 46 / 0.25);
}

.hero h1 { margin-top: var(--space-3); max-width: 18ch; }

.lede {
  font-size: var(--step-1);
  color: var(--muted);
  max-width: 34ch;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-3);
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--step--1);
  color: var(--muted);
}

.status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.features {
  display: grid;
  gap: var(--space-4) var(--space-3);
  margin-top: var(--space-5);
  padding: 0;
  list-style: none;
}

@media (min-width: 36em) {
  .features { grid-template-columns: 1fr 1fr; }
}

.features li { margin: 0; }

.features h2 {
  margin: 0;
  font-size: var(--step-0);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.features h2::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 3px;
  margin-bottom: 0.75rem;
  border-radius: 2px;
  background: var(--accent);
}

.features p { margin-top: 0.375rem; color: var(--muted); }

.panel {
  margin-top: var(--space-5);
  padding: var(--space-3);
  border-radius: 14px;
  background: var(--surface);
}

.panel h2 { margin-top: 0; font-size: var(--step-1); }

/* Long-form pages */
.doc { padding: var(--space-3) 0 0; }
.doc h1 { font-size: var(--step-2); }
.doc h2 { font-size: var(--step-1); margin-top: var(--space-4); }
.doc h3 { font-size: var(--step-0); margin-top: var(--space-3); }

/* Footer */
.site-footer {
  margin-top: var(--space-5);
  padding: var(--space-3) 0 var(--space-4);
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.25rem;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin-top: var(--space-1); }

@media (prefers-reduced-motion: no-preference) {
  a { transition: color 120ms ease, text-decoration-thickness 120ms ease; }
}
