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

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight, 600);
  line-height: 1.15;
  letter-spacing: var(--display-tracking, -0.02em);
  color: var(--text);
  margin: 0 0 var(--space-sm);
}

h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

p {
  margin: 0 0 var(--space-sm);
}

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

.narrow {
  width: min(100% - 3rem, 40rem);
  margin-inline: auto;
}

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

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 20;
  background: var(--bg-elevated);
  padding: 0.5rem 0.75rem;
}

.site-header {
  padding: var(--space-md) 0 var(--space-sm);
  background: var(--bg);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-sm) var(--space-lg);
  margin-bottom: var(--space-md);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.9375rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav a:hover,
.nav-cta,
.nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-cta {
  font-weight: 600;
}

.remine-bar {
  padding-bottom: var(--space-md);
}

.remine-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

#remine-autocomplete {
  max-width: 28rem;
}

.hero {
  padding: var(--space-xl) 0 var(--space-lg);
}

.lede {
  font-size: 1.125rem;
  max-width: 40rem;
  color: var(--text);
}

.hero-photo {
  margin: var(--space-lg) 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--border);
}

.hero-credit {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.6rem 0.2rem 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section {
  padding: var(--space-xl) 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.kicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.card-row {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
  margin-top: var(--space-md);
}

@media (min-width: 720px) {
  .card-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-row-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--bg-elevated);
  padding: var(--space-md);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.4rem;
}

.card p:last-child {
  margin-bottom: 0;
  color: var(--text-muted);
}

.section-actions {
  margin-top: var(--space-lg);
}

.steps {
  margin: 0 0 var(--space-sm);
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.steps li + li {
  margin-top: 0.45rem;
}

.callout {
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0 0;
}

.article-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0 0;
}

.article-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border);
}

.article-list time {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: var(--space-sm) 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
}

.listings-frame {
  margin-top: var(--space-md);
  height: 42rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}

.listings-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lead-form {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.field label,
fieldset legend {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.field select,
.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"] {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--bg-elevated);
  color: var(--text);
}

.stack {
  border: 0;
  padding: 0;
  margin: 0 0 var(--space-sm);
  display: grid;
  gap: 0.45rem;
}

.choice {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9375rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  width: fit-content;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-ghost:hover {
  background: var(--accent);
  color: #fff;
}

.form-errors {
  background: #f8e8e8;
  color: #6b1c1c;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.site-footer {
  padding: var(--space-xl) 0 var(--space-lg);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-bottom: var(--space-md);
}

.footer-legal {
  color: var(--text);
}

.footer-note {
  max-width: 40rem;
  font-size: 0.8125rem;
}

.confirm {
  padding: var(--space-2xl) 0;
  min-height: 60vh;
}

.admin-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-lg);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.muted {
  color: var(--text-muted);
}
