/* Lumen — Free Vanilla Landing Starter
   OutOfThisWorld Studios · CC BY 3.0
   Distinct from paid packs 04–08: paper/ink editorial + teal aurora */

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

:root {
  /* Layout tokens (not theme colors) */
  --text-hero: clamp(2.25rem, 4.2vw, 3.5rem);
  --text-h2: clamp(1.75rem, 2.6vw, 2.5rem);
  --text-h3: clamp(1.125rem, 1.4vw, 1.35rem);
  --text-lead: clamp(1.05rem, 1.2vw, 1.2rem);
  --text-body: 1rem;
  --text-small: 0.8125rem;
  --space-section: clamp(4rem, 8vw, 7rem);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --focus: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent);
}

/* Paper (default, light) */
html[data-theme="paper"],
:root {
  --bg: #f8f6f1;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #0f766e;
  --accent-2: #c2410c;
  --accent-soft: #ccfbf1;
  --on-accent: #f8f6f1;
  --border: #e2e8f0;
  --header-bg: rgba(248, 246, 241, 0.86);
  --mesh-a: rgba(15, 118, 110, 0.14);
  --mesh-b: rgba(194, 65, 12, 0.10);
}

/* Ink (dark) */
html[data-theme="ink"] {
  --bg: #0b1220;
  --surface: #121a2b;
  --text: #f8f6f1;
  --muted: #94a3b8;
  --accent: #5eead4;
  --accent-2: #fdba74;
  --accent-soft: #134e4a;
  --on-accent: #0b1220;
  --border: #243047;
  --header-bg: rgba(11, 18, 32, 0.88);
  --mesh-a: rgba(94, 234, 212, 0.12);
  --mesh-b: rgba(253, 186, 116, 0.10);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  transform: translateY(0);
  outline: none;
  box-shadow: var(--focus);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
  min-height: 44px;
}
.brand-mark { color: var(--accent); display: grid; place-items: center; }
.site-nav { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-radius: 999px;
}
.nav-menu a:hover { background: var(--accent-soft); color: var(--text); }
.nav-menu a:focus-visible,
.brand:focus-visible,
.btn:focus-visible,
.theme-btn:focus-visible,
.nav-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
.nav-cta {
  background: var(--accent) !important;
  color: var(--on-accent) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { filter: brightness(1.05); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  place-items: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

@media (max-width: 800px) {
  .nav-toggle { display: grid; }
  .nav-menu {
    position: absolute;
    right: 1rem; top: calc(100% + 0.5rem);
    flex-direction: column;
    align-items: stretch;
    min-width: min(280px, calc(100vw - 2rem));
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { width: 100%; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { filter: brightness(1.06); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}
.btn-lg { min-height: 52px; padding-inline: 1.5rem; }

/* Sections */
.section { padding: var(--space-section) 0; }
.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}
.section-head-start {
  text-align: start;
  margin-inline: 0;
  max-width: 36rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.section-title {
  margin: 0 0 0.85rem;
  font-size: var(--text-h2);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-lead {
  margin: 0 auto;
  max-width: 38rem;
  font-size: var(--text-lead);
  line-height: 1.55;
  color: var(--muted);
}
.section-head-start .section-lead { margin-inline: 0; }

/* Hero */
.hero {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem);
  overflow: clip;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-mesh {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background:
    radial-gradient(40% 50% at 20% 30%, var(--mesh-a), transparent 70%),
    radial-gradient(45% 55% at 80% 20%, var(--mesh-b), transparent 70%);
}
.hero-orbs { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--border) 70%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--border) 70%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.35), transparent 85%);
  opacity: 0.45;
}
.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-title {
  margin: 0 0 1rem;
  font-size: var(--text-hero);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: var(--text-lead);
  color: var(--muted);
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: var(--text-small);
  font-weight: 600;
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-meta li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.device-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.device-chrome {
  display: flex;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 80%, var(--surface));
}
.device-chrome span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.device-chrome span:nth-child(1) { background: #f87171; }
.device-chrome span:nth-child(2) { background: #fbbf24; }
.device-chrome span:nth-child(3) { background: #34d399; }
.device-art { width: 100%; height: auto; padding: 0.5rem; }

/* Features */
.features { background: color-mix(in srgb, var(--bg) 70%, var(--surface)); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 18px 50px color-mix(in srgb, var(--accent) 12%, transparent);
}
.feature-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card-title, .step-title {
  margin: 0 0 0.6rem;
  font-size: var(--text-h3);
  line-height: 1.25;
}
.feature-card p, .step-card p {
  margin: 0;
  color: var(--muted);
  flex: 1;
}

/* Craft */
.craft-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.craft-svg {
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.craft-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.craft-list li {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.craft-list strong { color: var(--text); }
.craft-list span { color: var(--muted); font-size: 0.95rem; }

.theme-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}
.theme-label { font-weight: 600; color: var(--muted); font-size: var(--text-small); text-transform: uppercase; letter-spacing: 0.06em; }
.theme-switch {
  display: inline-flex;
  padding: 0.25rem;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.theme-btn {
  min-height: 40px;
  min-width: 72px;
  padding: 0.4rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}
.theme-btn.is-active {
  background: var(--accent);
  color: var(--on-accent);
}

/* How */
.how { background: color-mix(in srgb, var(--bg) 65%, var(--surface)); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: none;
}
.step-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}
code {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--text);
}

/* Download */
.download-panel {
  padding: clamp(2rem, 5vw, 3rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.download-panel .section-head { margin-bottom: 1.75rem; }
.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.download-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.download-note a { font-weight: 600; }

/* Footer */
.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 80%, var(--surface));
}
.footer-inner {
  display: grid;
  gap: 1.25rem;
}
.footer-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  font-size: 1.05rem;
}
.footer-copy, .footer-promo, .footer-legal {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
  font-size: 0.95rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}
.footer-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-nav a:hover { color: var(--accent); text-decoration: underline; }
.footer-promo {
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-small);
}
.footer-legal { font-size: var(--text-small); }

@media (max-width: 900px) {
  .hero-layout,
  .craft-layout,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; }
}
