/* Laxton GTM site styles. Plain CSS, no build step. */

:root {
  --paper: #fbfbf9;
  --ink: #1b1f1d;
  --muted: #56615c;
  --spruce: #1f4a3f;
  --spruce-soft: #e6eeea;
  --rule: #d9dfdc;
  --mark: #f3d64a;
  --mark-ink: #1b1f1d;
  --card: #ffffff;
  --card-shadow: 0 1px 0 #d9dfdc, 0 12px 32px -18px rgba(31, 74, 63, 0.35);

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mail: Arial, Helvetica, sans-serif;

  --measure: 64ch;
  --wide: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141816;
    --ink: #e8ece9;
    --muted: #a3aea8;
    --spruce: #8fc3b2;
    --spruce-soft: #1e2a26;
    --rule: #2c3531;
    --mark: #c9ab22;
    --mark-ink: #141816;
    --card: #1b201e;
    --card-shadow: 0 1px 0 #2c3531, 0 12px 32px -18px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --paper: #141816;
  --ink: #e8ece9;
  --muted: #a3aea8;
  --spruce: #8fc3b2;
  --spruce-soft: #1e2a26;
  --rule: #2c3531;
  --mark: #c9ab22;
  --mark-ink: #141816;
  --card: #1b201e;
  --card-shadow: 0 1px 0 #2c3531, 0 12px 32px -18px rgba(0, 0, 0, 0.6);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--spruce); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
}
.skip:focus { left: 8px; }

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--spruce); }
.nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.975rem;
  padding: 6px 0;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--spruce); }

/* Type */
h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 5.4vw, 3.75rem); max-width: 16ch; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); max-width: 24ch; }
h3 { font-size: 1.1875rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lede { font-size: 1.1875rem; color: var(--muted); max-width: 52ch; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-tight { padding-top: 0; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 28px; }
.btn {
  display: inline-block;
  background: var(--spruce);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 6px;
}
.btn:hover { filter: brightness(1.08); }
.link-quiet { color: var(--ink); font-weight: 600; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

/* The annotated email: the one loud thing on the site */
.mail {
  position: relative;
  background: var(--card);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  font-family: var(--mail);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
}
.mail-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}
.mail-head div { display: flex; gap: 8px; }
.mail-head b { color: var(--ink); font-weight: 600; min-width: 4.2em; }
.mail-body { padding: 18px 20px 20px; }
.mail-body p { margin: 0 0 0.9em; max-width: none; }
.mail-body p:last-child { margin-bottom: 0; }
.optout { color: var(--muted); }
mark {
  background: linear-gradient(transparent 12%, var(--mark) 12%, var(--mark) 88%, transparent 88%);
  color: var(--mark-ink);
  padding: 0 2px;
}
.mail-caption {
  margin: 14px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: none;
}
.notes {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.9375rem;
}
.notes li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  align-items: baseline;
}
.notes li::before {
  content: "";
  width: 14px;
  height: 10px;
  background: var(--mark);
  border-radius: 2px;
  transform: translateY(1px);
}

@media (prefers-reduced-motion: no-preference) {
  .mail mark {
    background-size: 0% 100%;
    background-repeat: no-repeat;
    background-image: linear-gradient(transparent 12%, var(--mark) 12%, var(--mark) 88%, transparent 88%);
    background-color: transparent;
    animation: highlight 0.5s ease-out forwards;
  }
  .mail mark:nth-of-type(1) { animation-delay: 0.35s; }
  .mail-body p:nth-child(2) mark { animation-delay: 0.7s; }
  .mail-body p:nth-child(3) mark { animation-delay: 1.05s; }
  .mail-body .optout mark { animation-delay: 1.4s; }
}
@keyframes highlight { to { background-size: 100% 100%; } }

/* Lists and grids */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.plain-list { margin: 0; padding: 0; list-style: none; }
.plain-list li { padding: 14px 0; border-top: 1px solid var(--rule); }
.plain-list li:last-child { border-bottom: 1px solid var(--rule); }
.plain-list b { display: block; margin-bottom: 2px; }
.plain-list span { color: var(--muted); }

.segments { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.segments li { padding-left: 18px; position: relative; }
.segments li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 2px;
  background: var(--spruce);
}
.aside-note { color: var(--muted); font-size: 0.975rem; margin-top: 20px; }

/* Steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px 20px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.steps > li:last-child { border-bottom: 1px solid var(--rule); }
.steps > li::before {
  content: counter(step);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--spruce);
}
.steps h3 { margin-bottom: 0.3em; }
.steps p { margin-bottom: 0.4em; }
.steps .when { color: var(--muted); font-size: 0.9375rem; margin: 0; }

/* Pricing */
.tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.tier {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 28px;
  background: var(--card);
}
.tier-featured { border: 2px solid var(--spruce); }
.tier h3 { font-size: 1.375rem; }
.price { margin: 4px 0 18px; }
.price strong { font-size: 2rem; letter-spacing: -0.02em; display: block; line-height: 1.15; }
.price span { color: var(--muted); }
.tier ul { margin: 0; padding-left: 1.1em; }
.tier li { margin-bottom: 6px; }
.addon {
  margin-top: 24px;
  padding: 20px 28px;
  border: 1px dashed var(--rule);
  border-radius: 10px;
}
.addon p { margin: 0; }
.terms { margin-top: 8px; }
.terms dt { font-weight: 600; margin-top: 16px; }
.terms dd { margin: 2px 0 0; color: var(--muted); max-width: var(--measure); }

/* About */
.portrait {
  aspect-ratio: 4 / 5;
  background: var(--spruce-soft);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 360px;
}
.headshot {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 6px var(--spruce-soft);
}
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { padding: 10px 0; border-top: 1px solid var(--rule); }

/* Contact */
.contact-card {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 28px;
  background: var(--card);
}
.contact-card h2 { font-size: 1.375rem; }

/* CTA band */
.cta-band { background: var(--spruce); color: var(--paper); }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: var(--paper); opacity: 0.85; }
.cta-band .btn { background: var(--paper); color: var(--spruce); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid,
  .two-col { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .steps > li { grid-template-columns: 40px minmax(0, 1fr); }
  .steps > li::before { font-size: 1.5rem; }
  .tier, .contact-card { padding: 22px; }
  .addon { padding: 18px 22px; }
}
