:root {
  /* Type */
  --font-display: 'Zodiak', Georgia, 'Times New Roman', serif;
  --font-body: 'Satoshi', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.3vw, 0.9375rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --text-2xl: clamp(1.875rem, 1.4rem + 2vw, 2.875rem);
  --text-hero: clamp(2.625rem, 1.6rem + 5vw, 5.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Color — warm cream + deep walnut */
  --bg: #f2e8da;
  --bg-soft: #ede2d0;
  --surface: #fbf6ec;
  --border: rgba(63, 41, 24, 0.12);
  --border-strong: rgba(63, 41, 24, 0.22);
  --text: #2a1d12;
  --text-muted: #5e4733;
  --text-faint: #8a715a;
  --accent: #b08866; /* italic display accent */
  --accent-soft: #c9a987;
  --cta: #2b1b10;
  --cta-hover: #3a2517;
  --link: #6b3f23;

  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --content-max: 760px;
  --content-wide: 1120px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(255, 240, 220, 0.6), transparent 60%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(176, 136, 102, 0.18), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: rgba(176, 136, 102, 0.35);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2.5rem, var(--content-wide));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 9vw, 8rem);
}

/* ======= Header ======= */
.site-header {
  position: relative;
  padding-block: var(--space-6);
}

.header-inner {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.brand-mark {
  width: 22px;
  height: 22px;
  color: var(--accent);
  display: inline-flex;
}

/* ======= Hero ======= */
.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem);
}

.hero-inner {
  max-width: var(--content-max);
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-8);
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-hero);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

.hero-headline span {
  display: block;
}

.hero-headline em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  margin-top: 0.05em;
}

.hero-lede {
  margin-top: var(--space-8);
  max-width: 38ch;
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.65;
}

/* ======= Email mockup ======= */
.email-mockup {
  margin-top: var(--space-10);
  max-width: 540px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-6);
  box-shadow:
    0 1px 1px rgba(63, 41, 24, 0.04),
    0 18px 40px -20px rgba(63, 41, 24, 0.18);
  font-size: var(--text-sm);
}

.email-headers {
  display: grid;
  gap: var(--space-2);
}

.email-headers > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  align-items: baseline;
  line-height: 1.5;
}

.email-headers dt {
  font-weight: 700;
  color: var(--text);
  min-width: 3.5em;
}

.email-headers dd {
  color: var(--text-muted);
  word-break: break-word;
}

.email-headers dd a {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms var(--ease);
}

.email-headers dd a:hover {
  border-color: var(--accent);
}

.email-mockup hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: var(--space-5) 0;
}

.email-body {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1.0625rem;
  max-width: none;
}

/* ======= CTA ======= */
.cta {
  margin-top: var(--space-10);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 1.05rem 1.75rem;
  border-radius: 6px;
  background: var(--cta);
  color: #fbf6ec;
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: 0.005em;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
  box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.5);
}

.cta:hover {
  background: var(--cta-hover);
}

.cta:active {
  transform: translateY(1px);
}

.cta-arrow {
  font-family: var(--font-body);
  display: inline-block;
  transition: transform 220ms var(--ease);
}

.cta:hover .cta-arrow {
  transform: translateX(4px);
}

/* ======= Section heads ======= */
.section-head {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-5);
}

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--text-2xl);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--text);
  text-wrap: balance;
}

h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-xl);
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--text);
}

.section-lede {
  margin-top: var(--space-5);
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.65;
}

/* ======= How it works ======= */
.how {
  border-top: 1px solid var(--border);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem);
}

.steps li {
  display: block;
  padding-block: var(--space-1);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-4);
}

.steps h3 {
  font-size: 1.625rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin-bottom: var(--space-4);
  text-wrap: balance;
}

.steps p {
  color: var(--text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
  max-width: 44ch;
}

.steps a {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid var(--border-strong);
  transition: border-color 180ms var(--ease);
}

.steps a:hover {
  border-color: var(--accent);
}

/* ======= Remy ======= */
.remy {
  border-top: 1px solid var(--border);
}

.remy-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.remy-copy h2 {
  margin-bottom: var(--space-6);
}

.remy-copy p {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 48ch;
}

.remy-copy p + p {
  margin-top: var(--space-5);
}

.attributes {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6) var(--space-8);
}

.attributes li {
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
}

.attributes h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.attributes p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ======= Deliverables ======= */
.deliverables {
  border-top: 1px solid var(--border);
}

.deliverable-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.deliverable-list article {
  display: grid;
  grid-template-columns: 80px 1fr 2fr;
  gap: var(--space-8);
  align-items: baseline;
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--border);
}

.deliverable-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.deliverable-list h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--text);
}

.deliverable-list p {
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 56ch;
}

/* ======= Closing ======= */
.closing {
  border-top: 1px solid var(--border);
}

.closing-inner {
  max-width: 760px;
}

.closing h2 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  line-height: 1.1;
}

.closing h2 em {
  font-style: italic;
  color: var(--accent);
  display: inline;
}

.closing p {
  margin-top: var(--space-8);
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 60ch;
}

.closing .cta {
  margin-top: var(--space-10);
}

/* ======= Footer ======= */
.site-footer {
  padding-block: var(--space-16) var(--space-12);
  border-top: 1px solid var(--border);
}

.footer-line {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-meta {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-meta a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  transition: border-color 180ms var(--ease);
}

.footer-meta a:hover {
  border-color: var(--accent);
}

/* ======= Responsive ======= */
@media (max-width: 880px) {
  .steps,
  .attributes,
  .remy-grid {
    grid-template-columns: 1fr;
  }

  .remy-grid {
    gap: var(--space-12);
  }

  .deliverable-list article {
    grid-template-columns: 60px 1fr;
    gap: var(--space-3) var(--space-6);
  }

  .deliverable-list p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.75rem, var(--content-wide));
  }

  .email-mockup {
    padding: var(--space-5);
  }

  .email-headers > div {
    gap: 0.25em;
  }

  .email-headers dt {
    min-width: 3em;
  }

  .cta {
    width: 100%;
    justify-content: center;
  }

  .deliverable-list article {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .deliverable-num {
    margin-bottom: var(--space-1);
  }
}

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