:root {
  --paper: #fbf7ef;
  --paper-2: #f3e9d8;
  --ink: #2a211a;
  --ink-soft: #5d5145;
  --maroon: #5c1f1c;
  --maroon-deep: #3f1210;
  --saffron: #c98a2e;
  --line: rgba(92, 31, 28, 0.16);
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--maroon-deep);
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--maroon);
  color: #fff;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(251, 247, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.16rem;
  letter-spacing: 0.01em;
}

.brand small {
  color: var(--ink-soft);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.nav-toggle-bar,
.nav-toggle-bar::before {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  content: "";
}

.nav-toggle-bar {
  position: relative;
}

.nav-toggle-bar::before {
  position: absolute;
  top: 5px;
  left: 0;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 11vw, 132px) 0 clamp(64px, 9vw, 112px);
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(201, 138, 46, 0.16), transparent 70%),
    radial-gradient(50% 70% at 8% 90%, rgba(92, 31, 28, 0.08), transparent 70%);
}

.hero::after {
  position: absolute;
  right: -12vw;
  top: 50%;
  width: 46vw;
  height: 46vw;
  min-width: 320px;
  min-height: 320px;
  border: 1px solid rgba(92, 31, 28, 0.1);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--saffron);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 15ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 7.6vw, 5.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.hero h1 em {
  color: var(--maroon);
  font-style: italic;
}

.lede {
  max-width: 58ch;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.6vw, 1.16rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--maroon);
  border-radius: 999px;
  background: var(--maroon);
  color: #fff8ec;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.button:hover {
  background: var(--maroon-deep);
  color: #fff8ec;
  transform: translateY(-1px);
}

.button-ghost {
  background: transparent;
  color: var(--maroon);
}

.button-ghost:hover {
  background: rgba(92, 31, 28, 0.06);
  color: var(--maroon);
}

/* Sections */

.section {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--line);
}

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

.section-head {
  max-width: 720px;
}

.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.16;
}

.prose {
  max-width: 66ch;
  margin-top: 26px;
  color: var(--ink-soft);
}

.prose p + p {
  margin-top: 1em;
}

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.principles li {
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.7);
}

.principles h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.16rem;
}

.principles p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.card {
  padding: 26px 24px;
  border: 1px solid rgba(92, 31, 28, 0.14);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 10px 30px -24px rgba(63, 18, 16, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -26px rgba(63, 18, 16, 0.6);
}

.card h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 1.3rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.note {
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-style: italic;
}

/* Footer */

.site-footer {
  padding: 34px 0;
  background: var(--maroon-deep);
  color: #f7ead4;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer p {
  margin: 0;
  font-size: 0.9rem;
}

.footer-muted {
  color: rgba(247, 234, 212, 0.66);
}

/* Mobile nav */

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px clamp(20px, 5vw, 48px) 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 12px 0;
    border-top: 1px solid var(--line);
  }

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

@media (max-width: 480px) {
  .header-inner {
    gap: 10px;
  }

  .brand {
    gap: 9px;
    min-width: 0;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand strong {
    font-size: 1.02rem;
    white-space: nowrap;
  }

  .brand small {
    display: none;
  }

  .nav-toggle {
    flex: none;
    padding: 8px 10px;
  }

  .nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
