:root {
  --bg: #f3eadc;
  --paper: #fff9ef;
  --ink: #162018;
  --muted: #606a60;
  --line: rgba(22, 32, 24, 0.16);
  --accent: #a55332;
  --accent-strong: #5f321f;
  --wash: #dac09a;
  --sage: #74846f;
  --gold: #c8943f;
  --surface: rgba(255, 249, 239, 0.76);
  --shadow: 0 26px 80px rgba(68, 45, 27, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 12% 4%, rgba(165, 83, 50, 0.18), transparent 30rem),
    radial-gradient(circle at 88% 10%, rgba(200, 148, 63, 0.22), transparent 32rem),
    radial-gradient(circle at 52% 86%, rgba(116, 132, 111, 0.16), transparent 34rem),
    linear-gradient(135deg, rgba(255, 249, 239, 0.78), transparent 35rem),
    var(--bg);
  color: var(--ink);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-shell {
  min-height: 100vh;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem clamp(1rem, 4vw, 2.5rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border: 1px solid rgba(99, 52, 31, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 249, 239, 0.92), rgba(229, 202, 157, 0.74));
  color: var(--accent-strong);
  box-shadow: 0 10px 24px rgba(68, 45, 27, 0.1);
  font-weight: 800;
  letter-spacing: -0.08em;
}

.brand-text {
  display: grid;
  gap: 0.04rem;
}

.brand-name {
  display: block;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.brand-kicker {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -0.28rem;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-links a:hover {
  color: var(--accent-strong);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(243, 234, 220, 0.99) 0%, rgba(243, 234, 220, 0.93) 38%, rgba(243, 234, 220, 0.5) 72%, rgba(243, 234, 220, 0.2) 100%),
    url("data:image/svg+xml,%3Csvg width='1200' height='760' viewBox='0 0 1200 760' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1200' height='760' fill='%23d7bd99'/%3E%3Ccircle cx='942' cy='148' r='178' fill='%23fff5e6' opacity='.82'/%3E%3Cpath d='M0 508c142-72 274-103 396-92 164 15 266 110 412 110 133 0 223-74 392-99v333H0z' fill='%23f3eadc' opacity='.73'/%3E%3Cpath d='M84 269c141-49 281-50 421-2s277 48 413 0 230-43 283-23' fill='none' stroke='%23fff9ef' stroke-width='26' opacity='.58'/%3E%3Cg opacity='.5'%3E%3Cpath d='M720 326h268l-134-100z' fill='%23a55332'/%3E%3Cpath d='M746 326h216v190H746z' fill='%23f7dfbc'/%3E%3Cpath d='M789 373h48v143h-48zM869 373h48v143h-48z' fill='%23a55332' opacity='.28'/%3E%3Cpath d='M535 396h164l-82-68z' fill='%235f321f' opacity='.76'/%3E%3Cpath d='M556 396h122v120H556z' fill='%23ffe8c9'/%3E%3Cpath d='M210 430c76-34 151-34 227 0s151 34 227 0 151-34 227 0' fill='none' stroke='%23a55332' stroke-width='16' stroke-linecap='round' opacity='.3'/%3E%3Cpath d='M780 575c44-26 88-26 132 0M814 547h64M846 516v64' fill='none' stroke='%2374846f' stroke-width='14' stroke-linecap='round' opacity='.42'/%3E%3Ccircle cx='874' cy='548' r='58' fill='none' stroke='%23fff9ef' stroke-width='14' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
  animation: hero-drift 18s ease-in-out infinite alternate;
  z-index: -2;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(22, 32, 24, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 32, 24, 0.05) 1px, transparent 1px);
  background-size: 4.8rem 4.8rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, transparent 75%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, transparent 75%);
  opacity: 0.38;
  z-index: -1;
}

.hero-inner {
  position: relative;
  display: grid;
  min-height: calc(100vh - 4.8rem);
  min-height: calc(100svh - 4.8rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.25rem, 7vw, 5.8rem) clamp(1rem, 4vw, 2.5rem);
}

.hero-copy {
  position: relative;
  max-width: 780px;
  animation: rise-in 680ms ease both;
}

.hero-copy::before {
  display: block;
  width: clamp(4.5rem, 10vw, 8rem);
  height: 3px;
  margin-bottom: clamp(1.45rem, 3vw, 2.2rem);
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, var(--accent), rgba(200, 148, 63, 0.42));
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.055em;
}

h1 {
  max-width: 800px;
  font-size: clamp(3.05rem, 5vw, 5rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.35rem);
  line-height: 1;
}

.lede {
  max-width: 620px;
  margin: 1.05rem 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.35vw, 1.16rem);
  letter-spacing: 0.005em;
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.55rem;
}

.hero-uses {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  max-width: 100%;
  margin-top: clamp(1.45rem, 3vw, 2.3rem);
  padding: 0.28rem;
  border: 1px solid rgba(22, 32, 24, 0.16);
  border-radius: 999px;
  background: rgba(255, 249, 239, 0.58);
  box-shadow: 0 18px 48px rgba(68, 45, 27, 0.08);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.095em;
  text-transform: uppercase;
  animation: rise-in 760ms 120ms ease both;
  backdrop-filter: blur(10px);
}

.hero-uses span {
  padding: 0.68rem 0.92rem;
  border-radius: 999px;
}

.hero-uses span + span {
  background: rgba(255, 249, 239, 0.52);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: #fffaf1;
  box-shadow: 0 14px 34px rgba(22, 32, 24, 0.16);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  background: var(--accent-strong);
  box-shadow: 0 18px 38px rgba(99, 52, 31, 0.2);
  transform: translateY(-1px);
}

.button.secondary {
  background: rgba(255, 252, 246, 0.74);
  color: var(--ink);
}

.button.secondary:hover {
  background: #fffaf1;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1rem, 4vw, 2.5rem);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 7vw, 5rem);
  align-items: start;
}

.section-summary {
  max-width: 28rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.62;
}

.rule-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.rule-list li {
  position: relative;
  display: grid;
  gap: 0.48rem;
  padding: 1.3rem 0 1.3rem 2.1rem;
  border-bottom: 1px solid var(--line);
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.rule-list li::before {
  position: absolute;
  top: 1.5rem;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  border: 1px solid rgba(95, 50, 31, 0.28);
  border-radius: 999px;
  content: "";
  background: var(--paper);
  box-shadow: 0 0 0 0.35rem rgba(165, 83, 50, 0.08);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.rule-list li:hover {
  border-color: rgba(99, 52, 31, 0.36);
  transform: translateX(0.24rem);
}

.rule-list li:hover::before {
  border-color: rgba(95, 50, 31, 0.5);
  background: var(--accent);
  box-shadow: 0 0 0 0.4rem rgba(165, 83, 50, 0.12);
}

.rule-list strong {
  font-size: clamp(1.04rem, 1.7vw, 1.22rem);
}

.rule-list span {
  color: var(--muted);
  line-height: 1.55;
}

.legal-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2rem);
}

.legal-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  animation: rise-in 520ms ease both;
}

.legal-header h1 {
  max-width: 760px;
  font-size: clamp(2.85rem, 6vw, 4.75rem);
}

.legal-header p {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.legal-content {
  display: grid;
  gap: 2.25rem;
  padding-top: 2.5rem;
}

.legal-content section {
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}

.legal-content h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

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

.legal-content ul {
  margin: 0;
  padding-left: 1.15rem;
}

.note {
  position: relative;
  padding: 1.65rem 0 1.65rem 1.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.note::before {
  position: absolute;
  top: 1.85rem;
  bottom: 1.85rem;
  left: 0;
  width: 3px;
  content: "";
  background: linear-gradient(var(--accent), var(--gold));
  border-radius: 999px;
}

.note p {
  margin: 0;
}

.note a,
.legal-content a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer a {
  color: var(--ink);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.055) translate3d(-1.2rem, -0.8rem, 0);
  }
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 1rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero-inner {
    min-height: auto;
    padding-top: clamp(4rem, 18vw, 6rem);
    padding-bottom: clamp(4.5rem, 18vw, 6rem);
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(243, 234, 220, 0.98) 0%, rgba(243, 234, 220, 0.9) 54%, rgba(243, 234, 220, 0.48) 100%),
      url("data:image/svg+xml,%3Csvg width='1200' height='760' viewBox='0 0 1200 760' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='1200' height='760' fill='%23d7bd99'/%3E%3Ccircle cx='942' cy='148' r='178' fill='%23fff5e6' opacity='.82'/%3E%3Cpath d='M0 508c142-72 274-103 396-92 164 15 266 110 412 110 133 0 223-74 392-99v333H0z' fill='%23f3eadc' opacity='.73'/%3E%3Cpath d='M84 269c141-49 281-50 421-2s277 48 413 0 230-43 283-23' fill='none' stroke='%23fff9ef' stroke-width='26' opacity='.58'/%3E%3Cg opacity='.5'%3E%3Cpath d='M720 326h268l-134-100z' fill='%23a55332'/%3E%3Cpath d='M746 326h216v190H746z' fill='%23f7dfbc'/%3E%3Cpath d='M789 373h48v143h-48zM869 373h48v143h-48z' fill='%23a55332' opacity='.28'/%3E%3Cpath d='M535 396h164l-82-68z' fill='%235f321f' opacity='.76'/%3E%3Cpath d='M556 396h122v120H556z' fill='%23ffe8c9'/%3E%3Cpath d='M210 430c76-34 151-34 227 0s151 34 227 0 151-34 227 0' fill='none' stroke='%23a55332' stroke-width='16' stroke-linecap='round' opacity='.3'/%3E%3Cpath d='M780 575c44-26 88-26 132 0M814 547h64M846 516v64' fill='none' stroke='%2374846f' stroke-width='14' stroke-linecap='round' opacity='.42'/%3E%3Ccircle cx='874' cy='548' r='58' fill='none' stroke='%23fff9ef' stroke-width='14' opacity='.5'/%3E%3C/g%3E%3C/svg%3E");
    background-position: 62% center;
  }

  .split {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4.3rem);
  }

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

  .hero-uses {
    display: inline-grid;
    border-radius: 1.35rem;
    letter-spacing: 0.08em;
  }

  .hero-uses span {
    padding: 0.72rem 0.88rem;
  }

  .hero-uses span + span {
    padding-left: 0.88rem;
    border-top: 0;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}
