/* HumpTech website. One stylesheet, light and dark, no JavaScript. */

:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f4f1ec;
  --text: #1d1a17;
  --muted: #6b645c;
  --border: #e9e4dd;
  --accent: #e8590c;
  --accent-strong: #c2410c;
  --accent-soft: #fff1e8;
  --accent-text: #ffffff;
  --shadow: 0 1px 2px rgba(29, 26, 23, 0.04), 0 8px 24px rgba(29, 26, 23, 0.06);
  --radius: 18px;
  --header-bg: rgba(251, 250, 248, 0.8);
  --hero-glow: rgba(232, 89, 12, 0.14);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131110;
    --surface: #1c1917;
    --surface-2: #24201d;
    --text: #f3efea;
    --muted: #a8a097;
    --border: #2f2a26;
    --accent: #ff8a4c;
    --accent-strong: #ffa572;
    --accent-soft: #2c1d14;
    --accent-text: #1a0d05;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
    --header-bg: rgba(19, 17, 16, 0.75);
    --hero-glow: rgba(255, 138, 76, 0.16);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.7 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-strong); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
strong { font-weight: 600; }

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 2rem; }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4rem;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff7a2f, #d9480f);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.site-nav { display: flex; gap: 0.25rem; }

.site-nav a {
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

/* Hero */

.hero {
  position: relative;
  padding: 4rem 0 3rem;
  background: radial-gradient(60rem 22rem at 15% -10%, var(--hero-glow), transparent 70%);
  border-bottom: 1px solid var(--border);
}

.hero-inner { display: flex; align-items: center; gap: 1.5rem; }

.app-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 22%;
  box-shadow: var(--shadow);
  flex: none;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.5rem;
}

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; }

h1 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  font-weight: 800;
  margin: 0;
}

.lede {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0.75rem 0 0;
  max-width: 40rem;
}

.meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* Content */

.page { padding: 3rem 0 5rem; }

.prose { max-width: 44rem; }
.grid + .prose { margin-top: 3rem; }
.prose > :first-child { margin-top: 0; }

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 3rem 0 0.75rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.prose h2:first-of-type { border-top: 0; padding-top: 0; }

.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.35rem;
}

.prose p { margin: 0.5rem 0 1rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0.5rem 0 1rem; }
.prose li { margin: 0.4rem 0; padding-left: 0.2rem; }
.prose li::marker { color: var(--accent); }

/* Privacy policy: contents beside the text on wide screens */

.with-toc { display: grid; gap: 2.5rem; }

@media (min-width: 960px) {
  .with-toc { grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; }
  .toc { position: sticky; top: 5.5rem; align-self: start; }
}

.toc {
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}

.toc-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }

.toc a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 0.3rem 0;
}

.toc a:hover { color: var(--accent-strong); }

/* Cards */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem;
  margin: 1.5rem 0;
}

.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card h2 { font-size: 1.25rem; border: 0; padding: 0; margin: 0 0 0.75rem; }

.summary {
  background: linear-gradient(180deg, var(--accent-soft), var(--surface));
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
}

.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 2rem !important; margin: 0.7rem 0; }

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8.1 13.6 4.5 10l1.2-1.2 2.4 2.4 6.2-6.2 1.2 1.2z'/%3E%3C/svg%3E") center / 0.9rem no-repeat;
}

.grid { display: grid; gap: 1.25rem; }

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.grid .card { margin: 0; }

.app-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.app-card:hover { transform: translateY(-2px); }
.app-card .app-icon { width: 3.5rem; height: 3.5rem; }
.app-card h2 a { color: var(--text); text-decoration: none; }
.app-card p { margin: 0.25rem 0 0.75rem; color: var(--muted); }

.links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }

.pill {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface-2);
  border-radius: 999px;
  text-decoration: none;
}

.pill:hover { background: var(--accent-soft); color: var(--accent-strong); }

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-text);
  padding: 0.7rem 1.3rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

.button:hover { background: var(--accent-strong); }

/* Numbered steps */

.steps { list-style: none; counter-reset: step; padding: 0 !important; margin: 0; }

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem !important;
  margin: 0 0 1rem;
  min-height: 2rem;
}

.steps li:last-child { margin-bottom: 0; }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 520px) {
  .hero { padding: 2.5rem 0 2rem; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .brand-name { display: none; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 0.4rem 0.6rem; font-size: 0.9rem; }
}
