/* Elderwire Attic promo homepage
   Warm paper, mahogany accent, large type for older readers.
   Fonts: Fraunces (headings) and Source Sans 3 (body), self-hosted, SIL OFL.
   Contrast: ink 15.1:1, muted 8.2:1, accent 8.5:1, button text 9.7:1 on #F3EDE2 / #6B3226. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-650.woff2") format("woff2");
  font-weight: 650;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3ede2;
  --bg-band: #e8dfd0;
  --card: #fffbf4;
  --ink: #1c1814;
  --muted: #4a453e;
  --rule: #d4cbba;
  --accent: #6b3226;
  --accent-hover: #4e241c;
  --on-accent: #fffbf4;
  --focus: #6b3226;
  --max: 42rem;
  --max-wide: 50rem;
  --font-sans: "Source Sans 3", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

a:focus-visible,
.skip-link:focus-visible,
.btn:focus-visible,
.text-cta:focus-visible,
.wordmark:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 20;
  background: var(--card);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  text-decoration: none;
  border: 1px solid var(--rule);
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.wrap-wide {
  width: min(100% - 2.5rem, var(--max-wide));
}

.preview-note {
  margin: 0;
  padding: 0.6rem 1.25rem;
  background: var(--ink);
  color: var(--card);
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-align: center;
}

.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.wordmark:hover {
  color: var(--accent);
}

.wordmark .mark {
  display: block;
  flex: 0 0 auto;
  color: var(--accent);
}

.text-cta {
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--accent);
  padding: 0.45rem 0.15rem;
}

.text-cta:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.hero {
  padding: 2.5rem 0 2.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: clamp(2.15rem, 8vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.lede {
  margin: 0 0 0.9rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 3.2vw, 1.55rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 32rem;
}

.lede-sub {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 34rem;
}

.hero-actions {
  margin: 0;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.2;
  padding: 0.95rem 1.6rem;
  min-height: 3.15rem;
  min-width: 10rem;
  text-align: center;
  border-radius: 999px;
  border: 2px solid var(--accent);
}

.btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--on-accent);
}

.band {
  background: var(--bg-band);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 2.5rem 0 2.75rem;
}

.how {
  padding: 0;
}

.how h2,
.pricing h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: clamp(1.65rem, 4vw, 2.05rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-intro {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.1rem;
}

.steps li {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 0.85rem;
  padding: 1.15rem 1.15rem 1.15rem 4.15rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.steps h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}

.steps p {
  margin: 0;
  color: var(--ink);
}

.pricing {
  padding: 2.5rem 0 3rem;
}

.plans {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.plan {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 0.85rem;
  padding: 1.25rem 1.3rem 1.3rem;
}

.plan h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-weight: 650;
  font-size: 1.35rem;
  letter-spacing: -0.015em;
}

.plan .price {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.3;
}

.plan .price span {
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--muted);
}

.plan p {
  margin: 0;
  color: var(--ink);
}

.fineprint {
  margin: 0 0 0.65rem;
  color: var(--ink);
}

.fineprint:last-of-type {
  margin-bottom: 1.75rem;
}

.pricing .hero-actions {
  margin-top: 0.25rem;
}

footer.site {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 2.75rem;
  color: var(--muted);
  font-size: 1.05rem;
}

footer.site p {
  margin: 0 0 0.45rem;
}

footer.site p:last-child {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  margin-bottom: 1rem !important;
}

.footer-links a {
  padding: 0.2rem 0;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
}

.preview-foot {
  margin-top: 0.85rem !important;
  font-size: 0.95rem;
}

@media (min-width: 40rem) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .plan {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 30rem) {
  .wrap {
    width: min(100% - 1.75rem, var(--max));
  }

  body {
    font-size: 1.1875rem;
  }

  .header-row {
    gap: 0.75rem;
  }

  .wordmark {
    font-size: 1.15rem;
  }

  .steps li {
    padding-left: 3.85rem;
  }
}

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