:root {
  --bg: #f4f0e8;
  --paper: #fcfaf5;
  --ink: #191814;
  --muted: #5f5a51;
  --line: #d9d2c5;
  --accent: #203b35;
  --accent-soft: #e7ece9;
  --accent-strong: #132823;
  --warm: #7d6348;
  --max: 1120px;
  --radius: 12px;
  --shadow: 0 18px 60px rgba(25, 24, 20, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

main {
  padding-bottom: 5rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(252, 250, 245, 0.98);
  border-bottom: 1px solid rgba(217, 210, 197, 0.9);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(220px, auto) 1fr auto;
  align-items: center;
  column-gap: 0.9rem;
  min-height: 74px;
  padding: 0.7rem 0;
}

.brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.brand-mark {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.68rem;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.site-nav a {
  color: var(--muted);
  white-space: nowrap;
}

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

.button,
.button-subtle,
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.78rem 1.05rem;
  border-radius: 10px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  transition: 0.2s ease;
  border: 0;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  line-height: 1.35;
}

.header-cta {
  flex-shrink: 0;
  padding-inline: 0.95rem;
}

.button,
.header-cta {
  color: #fff;
  background: var(--accent);
}

.button:hover,
.header-cta:hover {
  background: var(--accent-strong);
}

.button-subtle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.button-subtle:hover {
  background: rgba(255, 255, 255, 0.45);
}

.page-hero,
.home-hero {
  padding: 4.5rem 0 2rem;
}

.home-hero {
  padding-top: 5.5rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--warm);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  line-height: 1.12;
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.85rem, 3vw, 3.2rem);
  line-height: 1.04;
  max-width: none;
}

.home-hero h1 {
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  max-width: none;
}

.hero-nowrap {
  white-space: nowrap;
}

.page-hero h1 {
  font-size: clamp(1.95rem, 3.1vw, 3.15rem);
  max-width: 22ch;
}

h2 {
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
}

h3 {
  font-size: 1.18rem;
}

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

.hero-layout,
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 2rem;
  align-items: start;
}

.hero-panel,
.panel,
.card,
.quote,
.list-panel {
  background: var(--paper);
  border: 1px solid rgba(217, 210, 197, 0.95);
  border-radius: var(--radius);
  box-shadow: none;
}

.hero-panel,
.panel,
.card,
.quote,
.list-panel {
  padding: 1.35rem;
}

.wrap.panel {
  width: min(calc(100% - 2rem), 760px);
  max-width: none;
  margin-left: max(1rem, calc((100vw - var(--max)) / 2));
  margin-right: auto;
}

.card {
  display: flex;
  flex-direction: column;
}

.card-clickable {
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.card-clickable:hover {
  background: #f8f4ec;
  border-color: #cfc5b2;
  transform: translateY(-1px);
}

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

.hero-copy p:first-of-type,
.lead {
  font-size: 1.14rem;
  color: #4d473f;
  max-width: 44rem;
}

.home-format-panel {
  width: min(calc(100% - 2rem), 760px);
  max-width: none;
  margin-left: max(1rem, calc((100vw - var(--max)) / 2));
  margin-right: auto;
}

.home-hero-layout {
  align-items: center;
}

.hero-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.hero-thumbnail img {
  width: min(100%, 360px);
  height: auto;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.metrics,
.inline-list,
.meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.metrics li,
.meta-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}

.metrics li:first-child,
.meta-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.metric-label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.metric-value {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.section {
  padding: 2rem 0;
}

.section-header {
  margin-bottom: 1.4rem;
  max-width: 44rem;
}

.section-header h2 {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

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

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

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

.split-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.split-card {
  background: #faf7ef;
  padding: 1.1rem;
}

.pricing-cards {
  display: grid;
  gap: 1rem;
  max-width: 760px;
}

.card h3,
.panel h3,
.quote h3 {
  margin-bottom: 0.65rem;
}

.card h2,
.panel h2,
.quote h2 {
  font-size: clamp(1.35rem, 1.9vw, 1.65rem);
  line-height: 1.12;
}

.service-card h2 {
  font-size: clamp(0.98rem, 1.1vw, 1.22rem);
  line-height: 1.08;
  max-width: none;
  text-wrap: pretty;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.card p:last-child,
.panel p:last-child {
  margin-bottom: 0;
}

.card-link {
  display: inline-block;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--accent);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
}

.kicker {
  display: inline-block;
  padding: 0;
  background: none;
  color: var(--warm);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.check-list,
.plain-list,
.steps,
.link-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li,
.plain-list li,
.steps li,
.link-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
}

.check-list li::before,
.plain-list li::before,
.steps li::before,
.link-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--warm);
}

.steps li strong,
.plain-list li strong {
  color: var(--ink);
}

.track-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.track-table th,
.track-table td {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.track-table th {
  width: 23%;
  color: var(--ink);
  font-weight: 700;
}

.track-table tr:first-child th,
.track-table tr:first-child td {
  border-top: 0;
}

.quote {
  border-left: 4px solid var(--accent);
}

.quote p {
  color: var(--ink);
  font-size: 1.04rem;
}

.quote footer {
  margin-top: 1rem;
  color: var(--muted);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
}

.price-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.price {
  font-size: 2rem;
  color: var(--ink);
}

.price small {
  font-size: 0.95rem;
  color: var(--muted);
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
}

form {
  display: grid;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.45rem;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.94rem;
  color: var(--ink);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdfa;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(32, 59, 53, 0.15);
  border-color: var(--accent);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 0.7fr));
  gap: 1.5rem;
}

.footer-grid h3 {
  font-size: 1.04rem;
  margin-bottom: 0.7rem;
}

.footer-grid p,
.footer-grid li {
  font-size: 0.98rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 0.5rem;
}

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

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fffdfa;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  color: var(--ink);
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 980px) {
  .hero-layout,
  .two-column,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .page-hero h1 {
    max-width: 18ch;
  }

  .hero-thumbnail {
    justify-content: flex-start;
    padding-top: 0;
  }

  .hero-thumbnail img {
    width: min(100%, 280px);
  }
}

@media (min-width: 781px) {
  .site-nav {
    flex-wrap: nowrap;
  }
}

@media (max-width: 780px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.9rem 0;
  }

  .site-nav {
    justify-content: flex-start;
    gap: 0.9rem;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .form-grid,
  .split-panels {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }

  .page-hero h1 {
    max-width: none;
  }

  .hero-nowrap {
    white-space: normal;
  }
}
