:root {
  --ink: #22231e;
  --charcoal: #1b1d19;
  --stone: #2b2e28;
  --moss: #4f5946;
  --sage: #8e987f;
  --ember: #c87038;
  --gold: #d6a15b;
  --parchment: #f0eadc;
  --paper: #f7f3e9;
  --line: rgba(39, 42, 35, 0.16);
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--gold);
  color: var(--charcoal);
}

.site-header {
  align-items: center;
  background: rgba(21, 23, 20, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  height: 80px;
  left: 0;
  padding: 0 clamp(24px, 4vw, 68px);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: max-content;
}

nav {
  display: flex;
  font-size: 12px;
  gap: clamp(22px, 3vw, 48px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

nav a,
.header-cta,
footer a {
  transition: color 180ms ease, opacity 180ms ease;
}

nav a:hover,
nav a:focus-visible,
footer a:hover,
footer a:focus-visible {
  color: #edc58f;
}

.header-cta {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  display: flex;
  font-size: 11px;
  gap: 14px;
  justify-self: end;
  letter-spacing: 0.11em;
  padding: 11px 15px;
  text-transform: uppercase;
}

.header-cta:hover,
.header-cta:focus-visible {
  background: var(--parchment);
  color: var(--charcoal);
}

.hero {
  color: #fff;
  min-height: min(940px, 100svh);
  overflow: hidden;
  position: relative;
}

.hero__image,
.legacy__photo {
  background-color: #25261f;
  background-image: url("public/rootslanding-hearth.png");
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
  transform: scale(1.01);
}

.hero__veil {
  background:
    linear-gradient(90deg, rgba(17, 19, 16, 0.93) 0%, rgba(17, 19, 16, 0.72) 38%, rgba(17, 19, 16, 0.18) 68%, rgba(17, 19, 16, 0.34) 100%),
    linear-gradient(0deg, rgba(12, 13, 11, 0.78), transparent 45%);
  inset: 0;
  position: absolute;
}

.hero__content {
  margin-left: clamp(24px, 8vw, 128px);
  max-width: 720px;
  padding-top: clamp(170px, 21vh, 220px);
  position: relative;
  z-index: 2;
}

.eyebrow {
  align-items: center;
  color: #6f765f;
  display: flex;
  font-size: 11px;
  font-weight: 600;
  gap: 13px;
  letter-spacing: 0.18em;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--ember);
  content: "";
  height: 1px;
  width: 35px;
}

.eyebrow--light {
  color: #d8d5c8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  font-size: clamp(54px, 6.4vw, 98px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin-bottom: 30px;
}

h1 em,
h2 em {
  color: var(--gold);
  display: block;
  font-weight: 400;
}

.hero__intro {
  color: #e2e0d8;
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.55;
  max-width: 610px;
}

.hero__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 40px;
}

.button {
  align-items: center;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  gap: 30px;
  letter-spacing: 0.11em;
  padding: 18px 22px;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--ember {
  background: var(--ember);
  color: white;
}

.button--ember:hover,
.button--ember:focus-visible {
  background: #dd8147;
}

.text-link {
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding-bottom: 5px;
  text-transform: uppercase;
}

.text-link span {
  margin-left: 12px;
}

.text-link--light {
  color: #e4e0d5;
}

.hero__note {
  bottom: 42px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.04em;
  position: absolute;
  right: clamp(24px, 5vw, 76px);
  z-index: 2;
}

.scroll-cue {
  bottom: 0;
  height: 70px;
  left: 50%;
  position: absolute;
  width: 1px;
  z-index: 3;
}

.scroll-cue::before,
.scroll-cue span {
  content: "";
  left: 0;
  position: absolute;
  width: 1px;
}

.scroll-cue::before {
  background: rgba(255, 255, 255, 0.3);
  height: 70px;
}

.scroll-cue span {
  animation: scroll 2s ease-in-out infinite;
  background: white;
  height: 28px;
  top: 0;
}

@keyframes scroll {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.section {
  padding: 120px clamp(24px, 8vw, 128px);
}

.section-label {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: #747765;
  display: flex;
  font-size: 10px;
  font-weight: 700;
  gap: 22px;
  letter-spacing: 0.16em;
  margin-bottom: 74px;
  padding-bottom: 15px;
  text-transform: uppercase;
}

.section-label p {
  margin: 0;
}

.section-label span {
  color: var(--ember);
}

.section-label--dark {
  border-color: rgba(255, 255, 255, 0.15);
  color: #a8ab9f;
}

.problem {
  background:
    radial-gradient(circle at 82% 40%, rgba(197, 174, 132, 0.13), transparent 28%),
    var(--paper);
}

.problem__copy {
  margin-left: 8%;
  max-width: 780px;
}

.problem__subtitle {
  color: var(--ember);
  font-family: var(--serif);
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.45;
  margin: -8px 0 24px;
}

h2 {
  font-size: clamp(42px, 5vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1.03;
  margin-bottom: 30px;
}

.lead {
  color: #55574e;
  font-family: var(--serif);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.7;
  max-width: 680px;
}

.digital-home {
  background: #20221e;
  color: white;
  padding: 120px clamp(24px, 8vw, 128px) 140px;
  position: relative;
}

.digital-home::before {
  background-image:
    linear-gradient(30deg, rgba(255,255,255,.018) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.018) 87.5%),
    linear-gradient(150deg, rgba(255,255,255,.018) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,.018) 87.5%);
  background-size: 34px 60px;
  content: "";
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  position: absolute;
}

.digital-home__inner {
  position: relative;
}

.digital-home__statement {
  margin-left: 8%;
  max-width: 800px;
}

.digital-home__statement h2 {
  color: #f0ede4;
  margin-bottom: 22px;
}

.digital-home__subtitle {
  color: #d9a154;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.25;
  margin-bottom: 26px;
}

.digital-home__subtitle em {
  display: block;
  font-weight: 400;
}

.digital-home__support {
  margin-bottom: 0;
}

.digital-home__grid {
  display: grid;
  gap: clamp(45px, 7vw, 110px);
  grid-template-columns: 1.15fr 0.85fr;
  margin-top: 80px;
}

.hearth-window {
  align-items: flex-end;
  background:
    linear-gradient(0deg, rgba(21, 20, 16, 0.88), transparent 65%),
    url("public/rootslanding-hearth.png") center 66% / cover;
  display: flex;
  min-height: 600px;
  overflow: hidden;
  padding: 46px;
  position: relative;
}

.hearth-window::after {
  border: 1px solid rgba(255,255,255,.18);
  content: "";
  inset: 18px;
  position: absolute;
}

.hearth-window__glow {
  background: radial-gradient(circle, rgba(221, 119, 49, 0.35), transparent 65%);
  height: 380px;
  left: 50%;
  position: absolute;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 380px;
}

.hearth-caption {
  font-family: var(--serif);
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.5;
  margin: 0;
  max-width: 520px;
  position: relative;
  z-index: 2;
}

.home-copy {
  align-self: center;
}

.home-copy > p:first-child {
  color: #c8c8bd;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.75;
}

.preserves {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 44px;
}

.preserves span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #deddd5;
  font-size: 10px;
  letter-spacing: 0.12em;
  padding: 9px 12px;
  text-transform: uppercase;
}

.home-copy__footnote {
  border-left: 1px solid var(--ember);
  color: #a7a99f;
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 4px 0 4px 18px;
}

.comparison__heading {
  margin-left: 8%;
  max-width: 920px;
}

.comparison__subtitle {
  color: #9a5c32;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.5;
  margin-bottom: 0;
  max-width: 790px;
}

.comparison {
  background: #ede7d9;
}

.table-wrap {
  margin-top: 75px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 860px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid rgba(46, 48, 40, .16);
  padding: 21px 17px;
  text-align: center;
}

thead th {
  color: #717467;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

thead th:first-child,
tbody th {
  text-align: left;
}

tbody th {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
}

tbody td {
  color: #7e8174;
  font-size: 12px;
}

.roots-col {
  background: rgba(74, 86, 66, .09);
  color: #394235 !important;
  font-weight: 700;
}

thead .roots-col {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .03em;
  text-transform: none;
}

.check {
  color: var(--ember);
  margin-right: 6px;
}

.comparison-mobile {
  display: none;
}

.legacy {
  color: white;
  min-height: 850px;
  overflow: hidden;
  padding: 140px clamp(24px, 8vw, 128px);
  position: relative;
}

.legacy__photo {
  background-position: 68% center;
  filter: saturate(.75);
}

.legacy__fade {
  background: linear-gradient(90deg, rgba(19,21,18,.96) 0%, rgba(19,21,18,.8) 45%, rgba(19,21,18,.2) 80%);
  inset: 0;
  position: absolute;
}

.legacy__content {
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.legacy h2 {
  color: #f3f0e8;
  font-size: clamp(48px, 5.7vw, 82px);
}

.legacy__content > p:not(.eyebrow) {
  color: #d1d0c8;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.7;
  max-width: 600px;
}

.button--parchment {
  background: var(--parchment);
  color: var(--charcoal);
  margin-top: 30px;
}

.button--parchment:hover,
.button--parchment:focus-visible {
  background: white;
}

.legacy small {
  color: #aaa99f;
  display: block;
  font-size: 10px;
  letter-spacing: .08em;
  margin-top: 20px;
}

footer {
  align-items: center;
  background: #171916;
  color: white;
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr 1fr auto;
  padding: 65px clamp(24px, 8vw, 128px);
}

.brand--footer {
  font-size: 19px;
}

footer > p {
  color: #989c90;
  font-family: var(--serif);
  font-size: 14px;
  margin: 0;
  text-align: center;
}

footer > div {
  display: flex;
  font-size: 9px;
  gap: 25px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

footer > small {
  border-top: 1px solid rgba(255,255,255,.1);
  color: #777b71;
  font-size: 9px;
  grid-column: 1 / -1;
  letter-spacing: .09em;
  padding-top: 25px;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
  }

  .digital-home__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .table-wrap {
    display: none;
  }

  .comparison-mobile {
    display: grid;
    gap: 20px;
    margin-top: 52px;
  }

  .comparison-mobile article {
    background: rgba(255, 255, 255, .3);
    border: 1px solid rgba(46, 48, 40, .16);
  }

  .comparison-mobile h3 {
    background: rgba(74, 86, 66, .07);
    border-bottom: 1px solid rgba(46, 48, 40, .16);
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.35;
    margin: 0;
    padding: 20px 18px;
  }

  .comparison-mobile dl {
    margin: 0;
  }

  .comparison-mobile dl > div {
    align-items: center;
    border-bottom: 1px solid rgba(46, 48, 40, .12);
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 13px 18px;
  }

  .comparison-mobile dl > div:last-child {
    border-bottom: 0;
  }

  .comparison-mobile dt {
    color: #717467;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
  }

  .comparison-mobile dd {
    color: #7e8174;
    font-size: 13px;
    margin: 0;
    text-align: right;
  }

  .comparison-mobile .mobile-roots {
    background: rgba(74, 86, 66, .1);
  }

  .comparison-mobile .mobile-roots dt,
  .comparison-mobile .mobile-roots dd {
    color: #394235;
    font-weight: 700;
  }
}

@media (max-width: 700px) {
  .site-header {
    height: 70px;
  }

  .header-cta {
    border: 0;
    font-size: 0;
    padding: 8px;
  }

  .header-cta span {
    font-size: 18px;
  }

  .hero {
    min-height: 850px;
  }

  .hero__veil {
    background: linear-gradient(90deg, rgba(17,19,16,.92), rgba(17,19,16,.48)), linear-gradient(0deg, rgba(12,13,11,.85), transparent 50%);
  }

  .hero__content {
    margin: 0;
    padding: 160px 24px 110px;
  }

  .hero__intro {
    font-size: 18px;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__note {
    bottom: 24px;
    left: 24px;
    right: auto;
  }

  .scroll-cue {
    display: none;
  }

  .section,
  .digital-home {
    padding: 85px 24px;
  }

  .section-label {
    margin-bottom: 55px;
  }

  .problem__copy,
  .digital-home__statement,
  .comparison__heading {
    margin-left: 0;
  }

  .hearth-window {
    min-height: 470px;
    padding: 34px;
  }

  .legacy {
    min-height: 830px;
    padding: 100px 24px;
  }

  .legacy__fade {
    background: rgba(19,21,18,.74);
  }

  footer {
    grid-template-columns: 1fr;
    text-align: center;
  }

  footer .brand,
  footer > div {
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
