/* Gift page and printable card only.
   Decorations are still pictures. Do not add animation, transitions,
   blinking, flashing, snowfall, or moving lights. */

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

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.45;
  background: #e7f0e4;
  color: #111111;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #14532d;
  color: #ffffff;
  padding: 0.75rem 1rem;
  z-index: 10;
  font-weight: 800;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid #08306b;
  outline-offset: 3px;
}

.tree,
.sprig {
  display: block;
}

.tree {
  width: 6.75rem;
  height: auto;
}

.sprig {
  width: 4.75rem;
  height: auto;
}

.sprig-right {
  transform: scaleX(-1);
}

.decor-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
}

.frame {
  max-width: 44rem;
  margin: 0.75rem auto 1.25rem;
  padding: 0 0.75rem 1.25rem;
}

.frame-outer {
  border: 16px solid #9b1c1c;
  background: #1f6b3a;
  padding: 10px;
}

.frame-inner {
  background: #fffef8;
  color: #111111;
  padding: 1.15rem 1.05rem 1.35rem;
}

.guide-title {
  margin: 0.15rem 0 0.65rem;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: clamp(2rem, 6vw, 2.7rem);
  line-height: 1.15;
  text-align: center;
}

.lede,
.guide-note {
  margin: 0 0 1rem;
  font-size: 1.3rem;
}

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

.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  background: #ffffff;
  border: 3px solid #111111;
  border-radius: 14px;
  padding: 0.9rem 0.85rem;
}

.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: #14532d;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.3rem;
}

.steps h2 {
  margin: 0 0 0.4rem;
  font-size: 1.55rem;
  line-height: 1.2;
}

.steps p,
.steps li,
.guide-note {
  font-size: 1.28rem;
}

.steps p {
  margin: 0 0 0.65rem;
}

.steps h3 {
  margin: 0.2rem 0 0.3rem;
  font-size: 1.3rem;
}

.steps ol {
  margin: 0 0 0.75rem;
  padding-left: 1.35rem;
}

.steps ol li {
  margin: 0.2rem 0;
  padding: 0;
}

.steps ol li::before {
  content: none;
}

.site-link {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  color: #08306b;
  overflow-wrap: anywhere;
}

.actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.gift-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 3px solid #111111;
  background: #14532d;
  color: #ffffff;
  font: inherit;
  font-size: 1.28rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.gift-btn-secondary {
  background: #ffffff;
  color: #111111;
}

.card-page {
  background: #1a3d2b;
  color: #ffffff;
}

.screen-bar {
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem 0.85rem 0.25rem;
}

.screen-bar p {
  margin: 0.75rem 0 0.35rem;
  font-size: 1.25rem;
}

.screen-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: underline;
  text-underline-offset: 0.14em;
  text-decoration-thickness: 2px;
}

.card-page .gift-btn {
  background: #ffffff;
  color: #111111;
  border-color: #111111;
}

.sheet-wrap {
  padding: 0.5rem 0.75rem 1.5rem;
}

.sheet {
  width: min(100%, 8.5in);
  min-height: 11in;
  margin: 0 auto;
  background: #ffffff;
  color: #111111;
}

.sheet-outer {
  border: 16px solid #9b1c1c;
  background: #1f6b3a;
  padding: 10px;
  min-height: 11in;
  box-sizing: border-box;
}

.sheet-inner {
  background: #fffef8;
  color: #111111;
  min-height: calc(11in - 52px);
  padding: 0.16in 0.38in 0.18in;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.card-page .tree {
  width: 1.2in;
}

.card-page .sprig {
  width: 0.9in;
}

.card-title {
  margin: 0.02in 0 0;
  text-align: center;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 30pt;
  line-height: 1.05;
  color: #111111;
}

.card-sub {
  margin: 0.04in 0 0.1in;
  text-align: center;
  font-size: 16pt;
  font-weight: 800;
}

.card-message {
  margin: 0 0 0.12in;
  text-align: center;
  font-size: 18pt;
  line-height: 1.3;
}

.card-qr {
  display: block;
  width: 1.95in;
  height: 1.95in;
  margin: 0 auto 0.06in;
  background: #ffffff;
  border: 4px solid #111111;
}

.card-url {
  margin: 0 0 0.12in;
  text-align: center;
  font-size: 15pt;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.card-line {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin: 0.05in 0;
  font-size: 20pt;
  font-weight: 800;
}

.card-line span:first-child {
  min-width: 4.2rem;
}

.blank {
  flex: 1;
  border-bottom: 3px solid #111111;
  min-height: 0.38in;
}

.card-steps {
  margin: 0.12in 0 0;
  padding-left: 0.38in;
  font-size: 16.5pt;
  line-height: 1.28;
}

.card-steps li {
  margin: 0.05in 0;
}

.card-steps li::marker {
  font-weight: 800;
}

@media screen and (max-width: 560px) {
  .frame {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }

  .frame-inner {
    padding: 0.7rem 0.65rem 1rem;
  }

  .tree {
    width: 5.1rem;
  }

  .sprig {
    width: 3.2rem;
  }

  .card-page .tree {
    width: 4.6rem;
  }

  .card-page .sprig {
    width: 2.8rem;
  }
}

@media screen and (max-width: 820px) {
  .sheet,
  .sheet-outer,
  .sheet-inner {
    min-height: 0;
  }
}

@media (forced-colors: active) {
  .frame-inner,
  .sheet-inner,
  .steps > li {
    background: Canvas;
    color: CanvasText;
    border-color: CanvasText;
  }

  .gift-btn,
  .steps > li::before {
    background: ButtonFace;
    color: ButtonText;
    border-color: ButtonText;
  }

  .site-link,
  .screen-bar a {
    color: LinkText;
  }
}

@media print {
  @page {
    size: letter;
    margin: 0.4in;
  }

  body,
  .card-page {
    background: #ffffff !important;
    color: #111111;
  }

  .screen-only,
  .skip-link {
    display: none !important;
  }

  .frame {
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .sheet-wrap {
    padding: 0;
  }

  .sheet,
  .sheet-outer,
  .sheet-inner {
    width: auto;
    min-height: 0;
    margin: 0;
  }

  .sheet {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sheet-outer,
  .sheet-inner {
    min-height: 0;
  }

  .frame-outer,
  .sheet-outer,
  .tree,
  .sprig,
  .card-qr,
  .steps > li::before,
  .gift-btn {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
