@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Palette, adapted from Anthropic's public design tokens (colors renamed, not copied verbatim) */
  --ivory-light: #faf9f5;
  --ivory-medium: #f0eee6;
  --ivory-dark: #e8e6dc;
  --slate-dark: #141413;
  --slate-medium: #3d3d3a;
  --slate-light: #5e5d59;
  --cloud-dark: #87867f;
  --cloud-medium: #b0aea5;
  --cloud-light: #d1cfc5;
  --clay: #8f6c40;
  --clay-hover: #77592f;

  --bg: var(--ivory-light);
  --bg-secondary: var(--ivory-medium);
  --text: var(--slate-dark);
  --text-muted: var(--slate-light);
  --border: rgba(20, 20, 19, 0.1);

  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans: 'Inter', Arial, sans-serif;

  --radius-main: 0.5rem;
  --radius-large: 1rem;
  --container-width: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--text);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

a {
  color: var(--text);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-mark {
  height: 2.25rem;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav a:hover {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clay-hover);
  margin-bottom: 1rem;
}

.hero h1 {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-sub {
  max-width: 38rem;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-main);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--slate-dark);
  color: var(--ivory-light);
  border-color: var(--slate-dark);
}

.btn-primary:hover {
  background: var(--slate-medium);
  border-color: var(--slate-medium);
}

.btn-secondary {
  background: transparent;
  color: var(--slate-dark);
  border-color: var(--slate-dark);
}

.btn-secondary:hover {
  background: var(--slate-dark);
  color: var(--ivory-light);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-alt h2,
.section-alt p {
  max-width: 40rem;
}

#services h2,
#contact h2 {
  text-align: center;
}

#contact p {
  text-align: center;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* Grid / cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-large);
  padding: 1.75rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Contact */
.contact-form {
  max-width: 32rem;
  margin: 2rem auto 0;
  text-align: left;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-main);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: 2px solid var(--clay);
  outline-offset: 1px;
}

.contact-form .btn {
  width: 100%;
  border: none;
  cursor: pointer;
}

.form-status {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.form-status-success {
  color: #4a6b3d;
}

.form-status-error {
  color: #a13d2c;
}

/* Legal pages */
.legal h1 {
  margin-bottom: 0.25rem;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.15rem;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-top: 2.25rem;
}

.legal .container {
  max-width: 42rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-inner a:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .nav {
    gap: 1.25rem;
  }

  .header-inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
