/* Lundbrook — site styles. Plain CSS, no build step. */

:root {
  --bg: #fbfbf9;
  --bg-alt: #f1f3f0;
  --surface: #ffffff;
  --text: #1f2a33;
  --text-muted: #51606b;
  --border: #d9dedb;
  --accent: #1f6f78;
  --accent-dark: #174f56;
  --accent-soft: #e3f0f1;
  --focus: #c7772f;
  --max-width: 68rem;
  --radius: 6px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Layout helpers */

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

.container.narrow {
  max-width: 44rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
}

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

@media (min-width: 46rem) {
  .two-col {
    grid-template-columns: repeat(2, 1fr);
  }
  .three-col {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Typography */

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 650;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 650;
}

h3 {
  font-size: 1.15rem;
  font-weight: 650;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.5rem;
}

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

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

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

.lede {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 44rem;
  margin-bottom: 2rem;
}

/* Skip link */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 0.75rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  z-index: 100;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 251, 249, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.85rem 0;
}

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

.wordmark .mark {
  color: var(--accent);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav li + li {
  margin-top: 0;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Hero */

.hero {
  padding: 5rem 0 4rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  max-width: 40rem;
}

.subline {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--accent);
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--accent);
}

.button-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* Cards and callouts */

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

.card ul {
  margin-bottom: 0;
}

.callout {
  margin-top: 2.5rem;
  padding: 1.5rem;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.placeholder {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border: 2px dashed var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
}

.placeholder-label {
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.25rem;
}

/* Footer */

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

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

/* 404 page */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  text-align: left;
}

.error-code {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
