/* Spare Hour public site */

:root {
  --paper: #faf6ee;
  --paper-2: #f3ecdf;
  --card: #fffdf8;
  --ink: #1d2733;
  --ink-soft: #4a5562;
  --line: #e4dccb;
  --accent: #e3a21a;
  --accent-ink: #1d2733;
  --accent-soft: #fbeccb;
  --link: #8a5a00;
  --focus: #b77a00;
  --shadow: 0 1px 2px rgba(29, 39, 51, 0.06), 0 8px 24px rgba(29, 39, 51, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1080px;
  --gutter: 24px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161b22;
    --paper-2: #1c222b;
    --card: #20262f;
    --ink: #f1ebdf;
    --ink-soft: #b9b2a5;
    --line: #333b46;
    --accent: #f0b43a;
    --accent-ink: #1a1f26;
    --accent-soft: #3a3020;
    --link: #f3c463;
    --focus: #f3c463;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  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(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

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

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 50, "opsz" 72;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; font-variation-settings: "SOFT" 50, "opsz" 24; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--card);
  padding: 8px 12px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.logo-face { fill: var(--card); }
.logo-wedge { fill: var(--accent); }
.logo-ink { stroke: currentColor; fill: none; }
.logo-pin { fill: currentColor; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.98rem;
}

.nav a:not(.btn):hover {
  color: var(--ink);
  text-decoration: underline;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover { background: var(--paper-2); }

.btn-small { padding: 9px 18px; font-size: 0.95rem; }

/* Hero */

.hero {
  padding: 72px 0 80px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.eyebrow .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: 1px;
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 28px;
}

.hero h1 .mark {
  background: linear-gradient(transparent 62%, var(--accent-soft) 62%);
  padding: 0 0.08em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.small-note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* Sample chat card in the hero */

.sample {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sample-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.sample-bar strong {
  color: var(--ink);
  font-weight: 700;
}

.sample-bar .addr {
  margin-left: auto;
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sample-body {
  padding: 18px 16px 20px;
  display: grid;
  gap: 12px;
}

.bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.97rem;
  line-height: 1.45;
}

.bubble.me {
  justify-self: end;
  background: var(--paper-2);
  border-bottom-right-radius: 4px;
}

.bubble.bot {
  justify-self: start;
  background: var(--accent-soft);
  border-bottom-left-radius: 4px;
}

.files {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-size: 0.92rem;
}

.file svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--ink-soft);
}

.file .where {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* Sections */

.section {
  padding: 80px 0;
}

.section.tint {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 40em;
  margin-bottom: 40px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin: 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.card p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 1rem;
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--ink);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.icon svg {
  width: 24px;
  height: 24px;
}

/* For districts */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature .icon { margin: 0; }

.feature h3 { margin-bottom: 0.3em; }

.feature p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.feature code,
.addr-code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.privacy-box {
  margin-top: 20px;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  background: var(--card);
}

.privacy-box h3 { margin-bottom: 0.6em; }

.checks {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 24px;
}

.checks li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20a10 10 0 1 0 0-20zM8.5 14.9L4.4 10.9l1.4-1.4 2.6 2.6 5.8-6.3 1.5 1.3z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20a10 10 0 1 0 0-20zM8.5 14.9L4.4 10.9l1.4-1.4 2.6 2.6 5.8-6.3 1.5 1.3z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}

.checks li span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.privacy-box .more {
  margin: 0;
  font-size: 0.95rem;
}

/* Steps */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 26px 22px 24px;
  border-top: 3px solid var(--ink);
}

.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 12px;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
}

/* Contact */

.contact {
  padding: 72px 0 88px;
  text-align: center;
}

.contact h2 { margin-bottom: 0.4em; }

.contact p {
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0;
}

.contact a {
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer a {
  color: var(--ink-soft);
}

.site-footer a:hover { color: var(--ink); }

/* Prose pages (privacy, terms) */

.prose-page {
  padding: 56px 0 72px;
}

.prose {
  max-width: 44em;
}

.prose .updated {
  display: inline-block;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  margin-bottom: 20px;
}

.prose h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); }

.prose h2 {
  font-size: 1.4rem;
  margin-top: 1.8em;
  font-variation-settings: "SOFT" 50, "opsz" 36;
}

.prose ul {
  padding-left: 1.2em;
  margin: 0 0 1em;
}

.prose li { margin-bottom: 0.4em; }

.prose .intro {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

/* 404 */

.notfound {
  padding: 96px 0 120px;
  text-align: center;
}

.notfound svg {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
}

.notfound p {
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 28em;
  margin: 0 auto 28px;
}

/* Responsive */

@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checks { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .section { padding: 60px 0; }
}

@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 1rem; }
  .site-header .wrap { min-height: 64px; }
  .brand { font-size: 1.2rem; }
  .brand svg { width: 30px; height: 30px; }
  .nav { gap: 14px; }
  .nav .nav-hide { display: none; }
  .lede { font-size: 1.08rem; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 20px 18px; }
  .feature { grid-template-columns: 1fr; gap: 12px; padding: 20px 18px; }
  .privacy-box { padding: 22px 18px; }
  .actions .btn { flex: 1 1 100%; }
  .bubble { max-width: 94%; }
  .file .where { display: none; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

.sample-bar .who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.sample-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.sample-bar .addr { min-width: 0; }

.sample figcaption {
  padding: 10px 16px 12px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--ink-soft);
  background: var(--paper);
}

figure.sample { margin: 0; }

body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
