/* WPB Labs site styles. Original work, MIT License, Copyright (c) 2026 fixees. */
:root {
  --bg: #f6f1e8;
  --bg-alt: #efe6d8;
  --ink: #1b1f1c;
  --muted: #5c6158;
  --accent: #b85c38;
  --accent-dark: #8d3f24;
  --line: #e0d5c4;
  --card: #fffaf3;
  --header: #1b1f1c;
  --header-ink: #f4efe6;
  --radius: 10px;
  --max: 68rem;
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 17px/1.6 var(--sans);
}

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

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}
a:hover { color: var(--accent); }

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--card);
  padding: 0.5rem 1rem;
  z-index: 20;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  background: var(--header);
  color: var(--header-ink);
}
.site-header a { color: inherit; text-decoration: none; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.brand svg { width: 28px; height: 28px; flex: none; }
.brand-name { font-size: 1.05rem; }
.brand-name span { font-weight: 500; opacity: 0.7; margin-left: 0.15rem; }

.nav-toggle {
  display: none;
  background: transparent;
  color: inherit;
  border: 1px solid rgba(244, 239, 230, 0.3);
  border-radius: 6px;
  padding: 0.35rem 0.6rem;
  font: inherit;
  cursor: pointer;
}

.nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  font-size: 0.95rem;
  opacity: 0.85;
}
.nav a:hover,
.nav a[aria-current="page"] { opacity: 1; }
.nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Hero */
.hero {
  padding: 4.2rem 0 3.4rem;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  margin: 0 0 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--accent-dark);
}
.hero h1 {
  margin: 0 0 1rem;
  font: 500 2.6rem/1.2 var(--serif);
  max-width: 18ch;
}
.lede {
  margin: 0;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.15rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn:hover { background: #000; color: var(--bg); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); }

/* Sections */
.section { padding: 3.2rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 {
  margin: 0 0 1.4rem;
  font: 500 1.7rem/1.25 var(--serif);
}
.intro {
  margin: -0.5rem 0 1.6rem;
  max-width: 40rem;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.35rem;
}
.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}
.card p { margin: 0; color: var(--muted); }
.card .meta {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 650;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: start;
}
.split p { margin: 0 0 1rem; }
.aside {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem;
}
.aside h3 { margin: 0 0 0.6rem; font-size: 1.05rem; }
.aside dl { margin: 0; }
.aside dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.85rem;
}
.aside dt:first-child { margin-top: 0; }
.aside dd { margin: 0.15rem 0 0; }

/* Forms */
form {
  display: grid;
  gap: 0.9rem;
  max-width: 36rem;
}
label { font-weight: 600; font-size: 0.92rem; }
input, textarea, select {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}
textarea { min-height: 9rem; resize: vertical; }
.form-note, .form-status {
  color: var(--muted);
  font-size: 0.92rem;
}
.form-status[data-ok="1"] { color: var(--accent-dark); font-weight: 600; }
button[type="submit"] { justify-self: start; cursor: pointer; }

.prose { max-width: 42rem; }
.prose h2 { margin-top: 2rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2rem; }

.error-page {
  padding: 5rem 0 6rem;
  text-align: left;
}
.error-page h1 {
  font: 500 3rem/1.1 var(--serif);
  margin: 0 0 0.8rem;
}
.error-page p { color: var(--muted); max-width: 34rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-footer a { color: inherit; }

@media (max-width: 860px) {
  .grid, .split { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.1rem; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 4.25rem;
    background: var(--header);
    border-top: 1px solid rgba(244, 239, 230, 0.12);
    padding: 0.6rem 1.2rem 1rem;
  }
  .nav.is-open { display: block; }
  .site-header { position: relative; }
  .nav ul { flex-direction: column; gap: 0.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
