:root {
  --bg: #f4efe6;
  --paper: rgba(255, 250, 243, 0.9);
  --panel: #fffaf3;
  --line: rgba(71, 53, 35, 0.14);
  --text: #1d1b19;
  --muted: #5d554d;
  --accent: #bb5a2b;
  --accent-strong: #8f3d17;
  --ink: #0c1f2b;
  --shadow: 0 26px 60px rgba(47, 35, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(187, 90, 43, 0.14), transparent 24%),
    radial-gradient(circle at bottom right, rgba(12, 31, 43, 0.12), transparent 28%),
    linear-gradient(180deg, #f8f1e7 0%, #f1eadf 100%);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(29, 27, 25, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 27, 25, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 95%);
}

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

p,
li {
  color: var(--muted);
  line-height: 1.7;
}

h1,
h2,
h3,
strong {
  color: var(--text);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

.page-frame {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0 3.5rem;
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  position: sticky;
  top: 0.75rem;
  z-index: 10;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: rgba(255, 250, 243, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, var(--accent), #da8454);
  color: #fff6ef;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-weight: 800;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-copy strong {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1rem;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-nav,
.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.site-nav a,
.button {
  border-radius: 999px;
}

.site-nav a {
  padding: 0.72rem 1rem;
  color: var(--muted);
  transition: background-color 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(29, 27, 25, 0.06);
}

.hero,
.split-layout,
.card-grid {
  display: grid;
  gap: 1rem;
}

.hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  padding: 4.5rem 0 2rem;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.card,
.page-hero,
.bridge-page {
  border: 1px solid var(--line);
  border-radius: 1.8rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.card,
.page-hero {
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

.eyebrow,
.tag,
.panel-label {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--accent-strong);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 6vw, 5.1rem);
}

.hero-text,
.page-hero p:last-child {
  max-width: 60ch;
  margin-top: 1.2rem;
  font-size: 1.06rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  font-weight: 600;
}

.button-primary {
  background: var(--ink);
  color: #f7efe1;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(29, 27, 25, 0.04);
  color: var(--text);
}

.hero-panel h2,
.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.compact-list li + li {
  margin-top: 0.5rem;
}

.inline-link,
.text-link {
  color: var(--accent-strong);
  font-weight: 600;
}

.section {
  padding-top: 2.4rem;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.section-heading h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
}

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

.split-layout {
  grid-template-columns: 1.05fr 0.95fr;
}

.emphasis-card {
  background:
    radial-gradient(circle at top right, rgba(187, 90, 43, 0.12), transparent 30%),
    var(--panel);
}

.inner-page {
  padding-top: 4.2rem;
}

.page-hero {
  margin-bottom: 1rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.site-footer strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.bridge-page {
  width: min(700px, calc(100% - 2rem));
  margin: 3rem auto;
  padding: 2rem;
}

@media (max-width: 900px) {
  .hero,
  .card-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-hero h1,
  .section-heading h2 {
    max-width: none;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .page-frame {
    width: min(100% - 1rem, 1160px);
  }

  .site-header {
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav a {
    flex: 1 1 30%;
    text-align: center;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-copy,
  .hero-panel,
  .card,
  .page-hero,
  .bridge-page {
    border-radius: 1.35rem;
  }
}
