:root {
  color-scheme: light;
  --ink: #241910;
  --pine: #1c4636;
  --pine-deep: #143328;
  --cranberry: #9e1c2b;
  --cranberry-deep: #6f111d;
  --gold: #b8862b;
  --gold-soft: #ecc97a;
  --cream: #fbf5e8;
  --paper: #fffdf7;
  --line: #ddcdaa;
  --muted: #55493e;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", Palatino, "Palatino Linotype", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { background: var(--cream); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* The shapes the page draws (snowflakes, stars, holly, the seal) live in one inline sprite that takes no room. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  border: 2px solid var(--pine);
  border-radius: 6px;
}

.skip:focus { top: 0.5rem; }

h1, h2 { line-height: 1.15; font-weight: 700; }

h1 { margin: 0 0 0.75rem; font-size: clamp(2rem, 6.4vw, 3.15rem); text-wrap: balance; }

h2 {
  margin: 0 0 1rem;
  color: var(--pine);
  font-size: clamp(1.55rem, 4.8vw, 2rem);
}

a { color: var(--cranberry); }

.wrap {
  width: min(44rem, calc(100% - 2rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--gold-soft);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ---- hero ------------------------------------------------------------------------------------------------ */

.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 1rem 4.75rem;
  background:
    radial-gradient(circle at 18% 0%, #2c6a4d, transparent 55%),
    linear-gradient(var(--pine), var(--pine-deep));
  color: var(--cream);
  text-align: center;
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  margin-inline: auto;
}

.lede {
  margin: 0 auto;
  max-width: 30rem;
  font-size: clamp(1.15rem, 3.6vw, 1.4rem);
}

.hero-action { margin: 1.75rem 0 0; }

.hero-flake {
  position: absolute;
  color: rgba(251, 245, 232, 0.28);
}

.hero-flake-a { top: 1.1rem; left: 5%; width: 2.6rem; height: 2.6rem; }
.hero-flake-b { top: 2.2rem; right: 6%; width: 3.6rem; height: 3.6rem; }
.hero-flake-c { bottom: 3.4rem; left: 1.2rem; width: 1.6rem; height: 1.6rem; }

.hero-pines {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 18px;
}

.button {
  display: inline-block;
  min-height: 3.25rem;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--pine-deep);
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 3px 0 #a87f2a;
}

.button:hover { background: #f5d88f; }

.hero :focus-visible { outline-color: #fff; }

/* ---- the sample letter ------------------------------------------------------------------------------------ */

.sample { padding-top: 2rem; }

.label {
  margin: 0 0 0.75rem;
  color: var(--cranberry);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.paper {
  position: relative;
  padding: 2.4rem 1.5rem 1.1rem;
  background: var(--paper);
  border: 3px solid var(--cranberry);
  box-shadow:
    inset 0 0 0 6px var(--paper),
    inset 0 0 0 7px var(--pine),
    0 16px 36px rgba(36, 25, 16, 0.16);
}

@media (min-width: 720px) {
  .paper { padding: 2.8rem 3rem 1.25rem; }
}

.paper p { margin: 0 0 1rem; }

.paper-flake {
  position: absolute;
  width: 1.7rem;
  height: 1.7rem;
  color: var(--cranberry);
}

.paper-flake-tl { top: 0.8rem; left: 0.8rem; }
.paper-flake-tr { top: 0.8rem; right: 0.8rem; }
.paper-flake-bl { bottom: 0.8rem; left: 0.8rem; }
.paper-flake-br { bottom: 0.8rem; right: 0.8rem; }

.letterhead { margin-bottom: 1.4rem; }

.holly {
  display: block;
  width: 3.2rem;
  height: 1.3rem;
  margin: 0 auto 0.15rem;
}

.paper .from {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.from .title {
  color: var(--cranberry);
  font-size: clamp(1.02rem, 4.6vw, 1.45rem);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.from .rule {
  flex: 1 1 0;
  min-width: 0.4rem;
  border-top: 1px solid var(--cranberry);
}

.gold-star {
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  color: var(--gold);
}

.paper .greeting { font-weight: 700; }

.paper .closing { margin-bottom: 0.4rem; }

.signoff {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 1.1rem;
}

.paper .signature {
  margin: 0;
  color: var(--cranberry);
  font-size: clamp(1.7rem, 7.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.1;
}

.paper .cosign { margin: 0; color: var(--cranberry); }

.seal {
  flex: none;
  width: 3.3rem;
  height: 3.3rem;
  color: var(--cranberry);
}

.paper-pines {
  display: block;
  width: calc(100% - 3.4rem);
  height: 18px;
  margin: 1.2rem auto 0;
}

.paper-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 479px) {
  .from .rule { display: none; }
  .from { justify-content: space-between; }
}

/* ---- how it works ----------------------------------------------------------------------------------------- */

.how { padding-top: 3rem; }

.how h2 { text-align: center; }

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

.steps li {
  position: relative;
  padding: 1rem 1rem 1rem 4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--cranberry);
  color: #fff;
  font-family: var(--sans);
  font-weight: 700;
}

.step-title,
.step-text { display: block; }

.step-title { color: var(--pine); font-size: 1.15rem; font-weight: 700; }

.step-text { color: var(--muted); }

@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 4rem 1.1rem 1.2rem; }
  .steps li::before { top: 1.1rem; left: 1.1rem; }
}

/* ---- the order form --------------------------------------------------------------------------------------- */

.order {
  margin-block: 3rem;
  padding: 1.6rem 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--cranberry);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(36, 25, 16, 0.1);
  scroll-margin-top: 1rem;
}

@media (min-width: 720px) {
  .order { padding: 2rem 2.25rem 1.75rem; }
}

.order h2 { margin-bottom: 0.4rem; }

.support { margin: 0 0 1.25rem; color: var(--muted); }

.field { margin-bottom: 1.1rem; }

label { display: block; margin-bottom: 0.35rem; font-weight: 700; }

input, textarea, button {
  font: inherit;
  color: var(--ink);
}

input[type="email"], input[type="text"], textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  background: #fff;
  border: 1px solid #9c8c72;
  border-radius: 8px;
}

textarea { min-height: 6.5rem; resize: vertical; }

input[type="email"]:focus, input[type="text"]:focus, textarea:focus { border-color: var(--pine); }

.hint {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9rem;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.9rem 0;
  font-weight: 400;
}

.check input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.2rem 0 0;
  accent-color: var(--pine);
}

button {
  width: 100%;
  min-height: 3.6rem;
  border: 0;
  border-radius: 10px;
  background: var(--cranberry);
  color: #fff;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 4px 0 var(--cranberry-deep);
}

button:hover { background: #b02235; }

button:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--cranberry-deep); }

button:disabled { opacity: 0.55; cursor: not-allowed; }

#formStatus { min-height: 1.5rem; margin: 0.9rem 0; color: var(--cranberry); font-weight: 700; }

.refund-terms { margin: 0.85rem 0 0; text-align: center; font-family: var(--sans); font-weight: 700; }

/* ---- the details ------------------------------------------------------------------------------------------ */

.details { padding-bottom: 2rem; }

.details h2 { font-size: 1.35rem; }

.claims {
  margin: 0;
  padding-left: 1.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.claims li { margin: 0 0 0.6rem; }

/* ---- footer ----------------------------------------------------------------------------------------------- */

footer {
  padding: 1.5rem 1rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--pine-deep);
  font-family: var(--sans);
  font-size: 0.95rem;
  text-align: center;
}

footer p { margin: 0.2rem 0; }

footer a { color: var(--pine); }

footer .legal { font-size: 0.82rem; }

footer .legal a { margin: 0 0.45rem; }

/* ---- the pages that share this sheet: privacy, the 404 page and the notices --------------------------------- */

.mast {
  padding: 2.25rem max(1rem, calc((100% - 44rem) / 2)) 1.6rem;
  background: linear-gradient(var(--pine), var(--pine-deep));
  color: var(--cream);
}

.mast h1 { margin-bottom: 0; font-size: clamp(1.9rem, 5.5vw, 2.6rem); }

.sheet {
  width: min(44rem, calc(100% - 2rem));
  margin: 1.75rem auto;
  padding: 1.25rem 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.sheet h1 { color: var(--pine); font-size: clamp(1.7rem, 5vw, 2.2rem); }

.sheet > :first-child { margin-top: 0; }

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

:focus-visible {
  outline: 3px solid var(--pine);
  outline-offset: 3px;
}
