:root {
  color-scheme: light dark;
  --bg: #F3EBE2;
  --bg-alt: #ECE0D2;
  --surface: #FBF6EF;
  --text: #1A1A1A;
  --text-2: #675E53;
  --link: #8F4E30;
  --tint: #B76A47;
  --button: #9A5434;
  --on-button: #FFFFFF;
  --keep: #3E5233;
  --separator: #DACFBF;
  --soft-tint: rgba(212, 145, 110, 0.16);
  --shadow: 0 8px 26px rgba(90, 62, 46, 0.14);
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16120F;
    --bg-alt: #0F0C0A;
    --surface: #221D18;
    --text: #F4EDE4;
    --text-2: #B3A99B;
    --link: #E0A07C;
    --tint: #D0885F;
    --button: #D0885F;
    --on-button: #16120F;
    --keep: #9DBD8C;
    --separator: #38312A;
    --soft-tint: rgba(217, 154, 119, 0.16);
    --shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
  }
}

*, *::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: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  background: var(--surface);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 10;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header { border-bottom: 1px solid var(--separator); }
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px 18px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 2px;
}
.site-nav a:hover { color: var(--link); }
.site-nav a[aria-current="page"] {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

main { padding: 32px 0 48px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: 2rem; margin: 0 0 12px; }
h2 { font-size: 1.45rem; margin: 40px 0 12px; }
h3 { font-size: 1.1rem; margin: 24px 0 6px; }

.lede { font-size: 1.15rem; color: var(--text-2); margin-top: 0; }
.muted { color: var(--text-2); }

/* Hero */
.hero { text-align: center; padding-top: 8px; }
.hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.pill {
  display: inline-block;
  background: var(--soft-tint);
  color: var(--link);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.button {
  display: inline-block;
  background: var(--button);
  color: var(--on-button);
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  min-height: 48px;
  box-shadow: 0 10px 22px rgba(46, 28, 15, 0.18);
}
.button:hover { filter: brightness(1.05); }
.button.secondary {
  background: var(--surface);
  color: var(--link);
  box-shadow: none;
  border: 1px solid var(--separator);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.features h3 { margin: 0 0 4px; }
.features p { margin: 0; color: var(--text-2); }

@media (min-width: 640px) {
  h1 { font-size: 2.5rem; }
  .features { grid-template-columns: 1fr 1fr; }
}

.callout {
  border-left: 4px solid var(--tint);
  background: var(--soft-tint);
  border-radius: 0 14px 14px 0;
  padding: 14px 18px;
}

.checklist { padding-left: 1.2rem; }
.checklist li { margin-bottom: 6px; }

/* FAQ */
.faq details {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 52px 16px 20px;
  list-style: none;
  position: relative;
  border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--link);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 20px 16px; }
.faq details > div > :first-child { margin-top: 0; }
.faq details > div > :last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--separator);
  background: var(--bg-alt);
  color: var(--text-2);
  font-size: 0.95rem;
}
.site-footer .wrap { padding-top: 20px; padding-bottom: 28px; }
.site-footer ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 0;
  margin: 0 0 8px;
}
.site-footer p { margin: 0; }

/* Contact form */
.contact-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field .hint { color: var(--text-2); font-size: 0.95rem; margin: 0; }
.field .optional { color: var(--text-2); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--separator);
  border-radius: 12px;
  padding: 10px 12px;
  min-height: 48px;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { border-color: var(--link); }
.contact-form button.button {
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  justify-self: start;
}
.form-trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.form-errors { border-left: 4px solid var(--tint); }
.form-errors h2 { margin-top: 0; font-size: 1.2rem; }
