/* Printable goodbye letter (22 Nov 2026). On screen: a sheet on soft lilac with
   Back and Print buttons. When printed: just the sheet, on one A4 page. */
:root { --purple: #432b7f; --purple-deep: #2e1d5a; --ink: #241d33; --ink-soft: #5b5468; --mist: #f3f1f6; --rule: #cfc6e3; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--mist); color: var(--ink); font-family: "Mulish", "Segoe UI", Helvetica, Arial, sans-serif; padding: 1.25rem 1rem 3rem; }
.letter-tools { max-width: 210mm; margin: 0 auto 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.letter-tools svg { width: 20px; height: 20px; }
.tool-back { display: inline-flex; align-items: center; gap: .4rem; color: var(--purple); font-weight: 700; text-decoration: none; padding: .5rem .25rem; }
.tool-print { display: inline-flex; align-items: center; gap: .55rem; font: inherit; font-weight: 700; color: #fff; background: var(--purple); border: 2px solid var(--purple); border-radius: 999px; padding: .75rem 1.4rem; cursor: pointer; }
@media (hover: hover) { .tool-print:hover { background: var(--purple-deep); border-color: var(--purple-deep); box-shadow: 0 0 0 4px #d9cff2; } .tool-back:hover { color: var(--purple-deep); } }
.tool-print:focus-visible, .tool-back:focus-visible { outline: 3px solid #8f7cc9; outline-offset: 3px; }
.sheet { width: 100%; max-width: 210mm; aspect-ratio: 210 / 297; margin: 0 auto; background: #fff; border-radius: 6px; box-shadow: 0 10px 40px rgba(67,43,127,.12); padding: 12mm 16mm 10mm; display: flex; flex-direction: column; container-type: inline-size; }
.sheet-logo { display: block; width: 15mm; height: 15mm; margin: 0 auto 3mm; border-radius: 50%; }
h1 { font-family: "Spectral", Georgia, serif; font-weight: 500; color: var(--purple); text-align: center; font-size: 30px; margin: 0; line-height: 1.1; }
.sheet-sub { text-align: center; color: var(--ink-soft); margin: 2mm 0 7mm; font-size: 15px; }
.dear, .love { font-family: "Spectral", Georgia, serif; font-size: 22px; margin: 0; display: flex; align-items: flex-end; gap: 3mm; }
.blank { flex: 1; max-width: 75mm; border-bottom: 1.5px solid var(--rule); height: 1.1em; }
.lines { margin-top: 2mm; }
.lines span { display: block; height: 11mm; border-bottom: 1.5px solid var(--rule); }
.draw { flex: 1; margin: 8mm 0 7mm; border: 2px dashed var(--rule); border-radius: 18px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4mm; min-height: 60mm; }
.draw span { color: #9a91ad; font-size: 14px; }
.love { justify-content: flex-start; }
.sheet-foot { text-align: center; color: #9a91ad; font-size: 11px; margin: 6mm 0 0; letter-spacing: .04em; }
/* Phones: the sheet shrinks but keeps its shape */
@media (max-width: 600px) {
  body { padding: 1rem .75rem 2rem; }
  .sheet { padding: 6% 7% 5%; }
  .sheet-logo { width: 10%; height: auto; }
  h1 { font-size: 6.2cqw; }
  .sheet-sub { font-size: 3.2cqw; margin: 1.5% 0 5%; }
  .dear, .love { font-size: 4.6cqw; }
  .lines span { height: 2.4em; font-size: 3.2cqw; }
  .draw { min-height: 0; border-radius: 12px; margin: 5% 0; }
  .draw span { font-size: 3cqw; }
  .sheet-foot { font-size: 2.4cqw; margin-top: 4%; }
  .tool-print { padding: .65rem 1.1rem; }
}
@page { size: A4; margin: 0; }
@media print {
  body { background: #fff; padding: 0; }
  .letter-tools { display: none; }
  .sheet { width: 210mm; height: 297mm; max-width: none; aspect-ratio: auto; box-shadow: none; border-radius: 0; padding: 16mm 18mm 12mm; }
  h1 { font-size: 30pt; } .sheet-sub { font-size: 13pt; } .dear, .love { font-size: 20pt; }
  .lines span { height: 12mm; }
  .draw span { font-size: 11pt; }
  .sheet-foot { font-size: 9pt; }
}
