:root {
  --bg: #f6f2ea;
  --surface: #ffffff;
  --surface-muted: #efeadf;
  --border: #ddd4c4;
  --text: #171411;
  --text-soft: #5d564d;
  --accent: #7a4b32;
  --accent-strong: #5c331f;
  --success: #dfeadf;
  --error: #f5ddda;
  --shadow: 0 24px 48px -24px rgba(23, 20, 17, 0.18);
  --radius-lg: 1.5rem;
  --radius-md: 1rem;
  --radius-sm: 0.75rem;
  --shell: 72rem;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
}

a {
  color: inherit;
}

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

.shell {
  width: min(var(--shell), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(23, 20, 17, 0.08);
  backdrop-filter: blur(14px);
  background: rgba(246, 242, 234, 0.88);
}

.site-header__inner,
.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.site-brand,
.site-footer p {
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

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

.hero,
.section {
  padding: 5rem 0;
}

.hero {
  padding-top: 6rem;
}

.hero__inner,
.section-split,
.contact-layout,
.closing-block,
.how-i-work {
  display: grid;
  gap: 2rem;
}

.hero__content {
  max-width: 48rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

h1 {
  font-size: clamp(2.9rem, 7vw, 5.5rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.55rem;
  margin-bottom: 0.85rem;
}

p,
li {
  font-size: 1.03rem;
}

.hero__lede {
  font-size: 1.32rem;
  color: var(--text);
  max-width: 42rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 120ms ease;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--text);
  color: #fff;
}

.button--primary:hover {
  background: #000;
}

.button--secondary {
  border-color: rgba(23, 20, 17, 0.16);
  color: var(--text);
  background: transparent;
}

.button--secondary:hover {
  background: rgba(23, 20, 17, 0.04);
}

.button--full {
  width: 100%;
}

.credibility-line {
  color: var(--text-soft);
  font-weight: 600;
}

.section--muted {
  background: rgba(255, 255, 255, 0.38);
}

.section--bordered {
  border-top: 1px solid rgba(23, 20, 17, 0.08);
  border-bottom: 1px solid rgba(23, 20, 17, 0.08);
}

.section-heading {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.card-grid,
.model-grid,
.prose-grid {
  display: grid;
  gap: 1.5rem;
}

.content-card,
.prose-card,
.bio-card,
.contact-panel {
  background: var(--surface);
  border: 1px solid rgba(23, 20, 17, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.content-card,
.prose-card,
.bio-card {
  padding: 1.6rem;
}

.signal-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.signal-list li {
  background: var(--surface);
  border: 1px solid rgba(23, 20, 17, 0.08);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}

.how-i-work__intro {
  max-width: 42rem;
}

.closing-block__content {
  max-width: 42rem;
}

.contact-layout {
  align-items: start;
}

.contact-footnote {
  margin-top: 2rem;
  color: var(--text-soft);
  font-weight: 600;
}

.contact-panel {
  padding: 1.6rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.field-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.92rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(122, 75, 50, 0.18);
  border-color: var(--accent);
}

.field-message {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.9rem;
}

.flash {
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.flash p,
.flash ul {
  margin: 0;
}

.flash ul {
  padding-left: 1.25rem;
  margin-top: 0.65rem;
}

.flash--success {
  background: var(--success);
}

.flash--error {
  background: var(--error);
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  border-top: 1px solid rgba(23, 20, 17, 0.08);
}

.site-footer p {
  margin: 0;
  color: var(--text-soft);
}

@media (min-width: 760px) {
  .card-grid,
  .model-grid,
  .prose-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-split,
  .closing-block,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .site-header__inner,
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 0;
  }

  .site-nav {
    gap: 0.8rem;
  }
}
