@font-face {
  font-family: Fraunces;
  src: url("/assets/Fraunces.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/DMSans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --green: #1b3d2d;
  --green-2: #2a543d;
  --ink: #263d30;
  --muted: #566358;
  --berry: #943047;
  --berry-dark: #762139;
  --cream: #faf5e9;
  --white: #fffdf7;
  --border: #d9d7c9;
  --sage: #e9eee3;
  --gold: #e7c478;
  --field-bg: #fffcf3;
  --display: Fraunces, Georgia, serif;
  --body: "DM Sans", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--cream);
  scroll-padding-top: 1rem;
}
::view-transition-group(root),
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
}
::view-transition-old(root) {
  display: none;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
textarea,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--berry-dark);
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 590;
  line-height: 1.12;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.65rem, 7vw, 5.3rem);
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  letter-spacing: -0.037em;
}
h3 {
  font-size: 1.25rem;
  letter-spacing: -0.018em;
}
p + p {
  margin-top: 0.65rem;
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #a44355;
  outline-offset: 3px;
}
.shell {
  width: min(calc(100% - 3.75rem), 72rem);
  margin-inline: auto;
}
.icon {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  flex: none;
  vertical-align: middle;
}
.sr-only,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: absolute;
  z-index: 10;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.6rem 1rem;
  background: white;
}
.button {
  --button-edge: #1a3628;
  --button-top: #2e6249;
  --button-bottom: #204734;
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.58rem 0.94rem;
  border: 1px solid transparent;
  border-radius: 0.62rem 0.62rem 0.62rem 0.26rem;
  cursor: pointer;
  text-align: center;
  line-height: 1.23;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}
.button.primary {
  color: #fffdf6;
  background: linear-gradient(
    170deg,
    var(--button-top),
    var(--button-bottom) 74%
  );
  border-color: var(--button-edge);
  box-shadow:
    inset 0 1px 0 #fff4,
    0 3px 0 var(--button-edge),
    0 0.37rem 0.75rem #29211726;
}
.button.primary:hover:not(:disabled) {
  filter: brightness(1.1);
}
.button.primary .icon,
.brand-mark .icon {
  filter: invert(1);
}
.button.outline {
  background: #fff9e9;
  border-color: #bcad8e;
  color: var(--green);
  box-shadow:
    inset 0 0 0 2px #fffdf5,
    0 2px 0 #b2a38668;
}
.button.outline:hover,
.button.outline[aria-pressed="true"] {
  background: var(--sage);
  border-color: var(--green-2);
}
.button.quiet {
  color: var(--green);
  background: transparent;
  padding-inline: 0.6rem;
}
.button.quiet:hover {
  background: var(--sage);
}
.button:is(.primary, .outline):hover:not(:disabled, [aria-disabled="true"]) {
  transform: translateY(-2px);
}
.button:is(.primary, .outline):active:not(:disabled, [aria-disabled="true"]) {
  transform: translateY(2px);
  box-shadow: inset 0 1px 3px #17191338;
}
.action-icon {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 50%;
  border: 1px solid currentColor;
}
.button.primary .action-icon {
  border-color: #fff4;
  background: #fff2;
}
.button.outline .action-icon {
  border-color: #b8ad90;
  background: #f0e7d0;
}
.action-icon .icon {
  width: 1rem;
  height: 1rem;
  transition: transform 180ms ease;
}
.button:hover:not(:disabled) .action-icon .icon {
  transform: rotate(-9deg) scale(1.12);
}
.button.danger {
  color: var(--berry-dark);
  border-color: #c48a94;
  background: #fff8f5;
}
.button.danger:hover {
  background: #f5e3e4;
}
.button:disabled {
  opacity: 0.58;
  cursor: wait;
}
.text-button {
  min-height: 2.8rem;
  flex: none;
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: var(--berry-dark);
  font-size: 0.91rem;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.24em;
  cursor: pointer;
}

.site-header {
  background: #142d22;
  color: var(--white);
  border-bottom: 1px solid #e7c47856;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.45rem;
  gap: 1rem;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  font: 550 1.15rem/0.94 var(--display);
  letter-spacing: -0.025em;
  text-decoration: none;
}
.wordmark strong {
  font-weight: 680;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.65rem;
  border: 1px solid var(--gold);
  border-radius: 9rem 9rem 0.6rem 0.6rem;
}
.brand-mark .icon {
  width: 1.28rem;
  height: 1.28rem;
}
.masthead nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.65rem;
  align-items: center;
}
.masthead nav a {
  display: flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 2rem;
  color: #fefaf0;
  text-decoration: none;
  font-weight: 590;
}
.masthead nav a:hover,
.masthead nav a[aria-current] {
  background: #f9eacb;
  color: var(--green);
}
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  background: #efece0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.2rem;
  gap: 1rem;
}
.footer-inner p {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--display);
  font-weight: 650;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
}

.page-intro {
  --hero: #173327;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 1.3rem;
  color: #fff9e9;
  background: var(--hero);
  border-bottom: 3px solid var(--gold);
}
.page-intro::after {
  position: absolute;
  content: "";
  inset: auto 0 0;
  height: 4px;
  background: repeating-linear-gradient(
    126deg,
    #fcebd1 0 5px,
    #9e3747 5px 10px
  );
}
.print-intro {
  --hero: #592230;
}
.intro-inner {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 13.5rem;
}
.intro-copy {
  position: relative;
  z-index: 1;
  width: min(67%, 48rem);
  padding-block: 1.85rem 2rem;
}
.intro-art {
  position: absolute;
  inset: 0.75rem 0.5rem 1.05rem auto;
  width: 43%;
  overflow: hidden;
  border: 3px solid #f5e1ac;
  border-radius: 0.45rem;
  box-shadow:
    0 0 0 1px #7e5c37,
    0 0.9rem 1.8rem #101a1459;
  transform: rotate(1.65deg);
}
.intro-art::before {
  position: absolute;
  z-index: 1;
  content: "";
  top: 1.4rem;
  right: -2.15rem;
  width: 8rem;
  height: 0.72rem;
  background: repeating-linear-gradient(
    110deg,
    #fff5d5 0 5px,
    #9c354d 5px 10px
  );
  box-shadow: 0 1px 4px #20150f80;
  transform: rotate(43deg);
}
.intro-art img,
.intro-art::after {
  width: 100%;
  height: 100%;
}
.intro-art img {
  object-fit: cover;
  object-position: center 51%;
}
.intro-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, #15221980, transparent 46%);
}
.hero-seal {
  position: absolute;
  z-index: 2;
  left: 56%;
  bottom: 1.1rem;
  width: 3.6rem;
  height: 3.6rem;
  display: grid;
  place-items: center;
  border-radius: 48% 53% 47% 52%;
  border: 1px solid #db8190;
  background: radial-gradient(circle at 34% 30%, #a34857, #782039 72%);
  box-shadow:
    0 0.32rem 0.55rem #1e101573,
    inset 0 0 0 0.22rem #a84154;
  transform: rotate(-13deg);
}
.hero-seal .icon {
  width: 1.65rem;
  height: 1.65rem;
  filter: invert(1);
  opacity: 0.91;
}
.share-intro .intro-art img {
  object-position: center 57%;
}
.page-intro h1 {
  color: #fff9e9;
  margin: 0 0 0.55rem;
  font-size: clamp(2.65rem, 6.4vw, 4.85rem);
  text-wrap: initial;
}
.print-intro h1,
.share-intro h1 {
  font-size: clamp(2.55rem, 5.5vw, 4.2rem);
}
.page-intro p {
  max-width: 34rem;
  color: #f9eed9;
  font-size: clamp(1.025rem, 2vw, 1.18rem);
}
.page-intro .button.primary {
  --button-top: #fff8e4;
  --button-bottom: #f0d9a5;
  --button-edge: #b38c55;
  margin-top: 0.75rem;
  color: #472631;
}
.page-intro .primary .icon {
  filter: none;
}
.page-intro .primary .action-icon {
  border-color: #b18a56;
  background: #e9d09f;
}
.site-header :focus-visible,
.page-intro :focus-visible,
.print-preview :focus-visible {
  outline-color: var(--gold);
}
.workspace,
.print-workspace,
.sharing-demo {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr);
  align-items: start;
  gap: 1.15rem;
}
.workspace {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.workspace .panel {
  border-radius: 0.85rem;
}
.workspace .editor {
  border-top: 4px solid #ba6070;
}
.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.72rem;
  min-width: 0;
  box-shadow: 0 0.32rem 1.05rem #3a342409;
}
.panel-head {
  min-height: 3.65rem;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  border-bottom: 1px solid var(--border);
}
.panel-head h2 {
  min-width: 0;
}
#editor-title .icon {
  width: 1.45rem;
  height: 1.45rem;
  margin-inline-end: 0.25rem;
}
.editor,
.print-controls,
.demo-main {
  border-top: 3px solid #bb8855;
}
.save-state {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  color: var(--muted);
  font-weight: 690;
  font-size: 0.84rem;
  text-align: right;
}
.save-state .icon {
  width: 1rem;
  height: 1rem;
  opacity: 0.76;
}
.editor-body,
.demo-inner {
  padding: 1.1rem 1.25rem 1.25rem;
}
.field {
  display: grid;
  gap: 0.25rem;
  align-content: start;
  min-width: 0;
}
.field label,
.share-link label {
  font-size: 0.92rem;
  font-weight: 760;
}
.field :is(input, textarea, select),
.share-link input {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.62rem 0.82rem;
  background: var(--field-bg);
  color: var(--ink);
  border: 1px solid #a9ad99;
  border-radius: 0.5rem;
  box-shadow: inset 0 1px 2px #573a160a;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}
.field :is(input, textarea, select):hover,
.share-link input:hover {
  border-color: #58705a;
}
.field :is(input, textarea, select):focus,
.share-link input:focus {
  background-color: #fffefa;
  border-color: #2e6044;
  outline: 2px solid #2e6044;
  outline-offset: 1px;
}
.share-link input[readonly] {
  background-color: #f2eee2;
}
.field textarea {
  resize: vertical;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #6a7267;
  opacity: 1;
}
.field select {
  appearance: none;
  padding-inline-end: 2rem;
  background: var(--field-bg) url("/assets/chevron-down.svg") right 0.65rem
    center / 1.05rem no-repeat;
  cursor: pointer;
}
.price-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.35rem;
}
.price-field select {
  width: auto;
}
summary {
  cursor: pointer;
  font-weight: 740;
}
.rename-toggle {
  min-height: 2.75rem;
  width: max-content;
  color: var(--berry-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.24rem 0.56rem;
  border-radius: 5rem;
  border: 1px solid #e2c7b8;
  background: #fff3e9;
  font-size: 0.9rem;
  font-weight: 740;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
}
.rename-toggle .icon {
  width: 0.9rem;
  height: 0.9rem;
}
.rename-toggle:hover,
.rename-toggle[aria-expanded="true"] {
  background: #f5e4d5;
}
.manage-name-setting {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.gift-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.6rem;
}
.gift-name-field input {
  min-height: 3.3rem;
}
.gift-entry .button.primary {
  min-height: 3.3rem;
  --button-top: #387157;
  --button-bottom: #22503a;
}
.gift-tools {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  margin-top: 0.3rem;
}
.gift-more {
  flex: 1;
  min-width: 0;
}
.gift-more[open] {
  flex-basis: 100%;
}
.gift-more summary,
.draft-tools summary {
  min-height: 2.8rem;
  padding-block: 0.57rem;
  color: var(--green);
  font-size: 0.94rem;
}
.gift-ideas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.22rem 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px dashed #e2d4b9;
}
.gift-ideas p {
  font-weight: 720;
  color: #51503d;
  font-size: 0.92rem;
}
.gift-ideas > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.idea-chip {
  min-height: 2.75rem;
  padding: 0.25rem 0.58rem;
  border: 1px solid #e1c59e;
  border-radius: 5rem;
  background: #fff2d9;
  color: #593d2a;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 690;
  cursor: pointer;
}
.idea-chip:hover {
  border-color: #a36558;
  background-color: #fae0d7;
}
.gift-detail-fields {
  display: grid;
  gap: 0.75rem;
  background: #f8f3e6;
  border: 1px solid #ebe2cf;
  border-radius: 0.55rem;
  padding: 0.8rem;
  margin-bottom: 0.7rem;
}
.gift-price-field {
  max-width: 15rem;
}
.backup-actions {
  display: flex;
  gap: 0.5rem 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}
.gift-count {
  margin-inline-start: auto;
  align-self: center;
  color: var(--muted);
  font-size: 0.84rem;
}
.status {
  margin: 0.5rem 0 0;
  color: var(--green);
  font-weight: 690;
  overflow-wrap: anywhere;
}
.status:empty {
  height: 0;
  margin: 0;
}
.status.error {
  color: var(--berry-dark);
}
.edit-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.edit-items:not(:empty) {
  margin-top: 0.65rem;
  border-top: 1px solid var(--border);
}
.edit-items[tabindex] {
  max-height: 16rem;
  overflow: auto;
  scrollbar-gutter: stable;
}
.edit-items li {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-bottom: 1px solid #ecebdd;
}
.edit-items li span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 0.45rem 0;
}
.edit-items .remove {
  color: var(--berry-dark);
}
.preview {
  background: #eaf2e4;
  border-color: #c1ccbb;
}
.preview .panel-head {
  border-bottom-color: #cfd6c7;
}
.preview-body {
  padding: 1.02rem 1.15rem 1.15rem;
}
.preview-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
}
.preview-tools .rename-field {
  grid-column: 1 / -1;
}
.paper-color {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.paper-choice {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.24rem 0.65rem;
  color: var(--green);
  background: #f9faf1;
  border: 1px solid #b9c2b0;
  border-radius: 5rem;
  font-size: 0.88rem;
  font-weight: 750;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease;
}
.paper-choice[aria-pressed="true"] {
  box-shadow: inset 0 0 0 1px var(--green);
  border-color: var(--green);
}
.paper-choice:hover {
  background-color: white;
}
.paper-choice span {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 50%;
  background: #31604a;
}
.paper-choice[data-paper-theme="berry"] span {
  background: var(--berry);
}
.stationery {
  position: relative;
  min-height: 17rem;
  background: var(--paper, #fffcf2);
  color: var(--paper-ink, var(--green));
  border: 1px solid var(--paper-line, #a6ac91);
  text-align: center;
  padding: 1.15rem 1.6rem 0.85rem;
  box-shadow:
    0.25rem 0.3rem 0 #fff9de,
    0.32rem 0.37rem 0 #a9b19d,
    0 0.55rem 1rem #132b2019;
  overflow-wrap: anywhere;
}
.stationery::before,
.stationery::after {
  content: "";
  position: absolute;
  inset: 0.32rem;
  border: 1px solid var(--paper-line, #cbd4bc);
  pointer-events: none;
}
.stationery::after {
  inset: 0.48rem;
  border-color: var(--paper-rule, #e5e3d2);
}
.paper-stamp {
  display: grid;
  place-items: center;
  margin: 0 auto 0.27rem;
  width: 2rem;
  height: 2rem;
  border: 1px dashed #a24756;
  border-radius: 50%;
  background: #f7e8dc;
}
.paper-stamp .icon {
  width: 1.12rem;
  height: 1.12rem;
}
.paper-kicker,
.sheet-kicker {
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--berry-dark);
}
.paper-title {
  font-size: clamp(1.7rem, 3.3vw, 2.35rem);
  margin: 0.22rem 0 0.12rem;
}
.paper-divider {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: min(100%, 10rem);
  margin: 0.33rem auto 0.45rem;
  color: var(--berry);
}
.paper-divider::before,
.paper-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #b5b9a1;
}
.paper-empty {
  color: var(--muted);
  margin: 0.5rem 0 0.2rem;
  font-size: 0.85rem;
}
.preview-gifts {
  list-style: none;
  margin: 0.22rem 0 0;
  padding: 0;
  text-align: left;
}
.preview-gifts[tabindex] {
  max-height: 15rem;
  overflow: auto;
  padding-inline: 0.16rem 0.4rem;
  scrollbar-gutter: stable;
}
.preview-gifts li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #e5e2d1;
}
.paper-gift-actions {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.paper-gift-actions .button {
  font-size: 0.88rem;
}
.paper-gift-actions .remove {
  color: var(--berry-dark);
}
.paper-check {
  display: inline-block;
  width: 0.74rem;
  height: 0.74rem;
  border: 1px solid #6b7b69;
  border-radius: 0.13rem;
}
.preview-gifts li strong {
  display: block;
}
.preview-gifts li div span {
  color: var(--muted);
  font-size: 0.86rem;
  margin-right: 0.4rem;
}
.preview-price {
  font-size: 0.88rem;
  font-weight: 710;
}
.priority {
  color: var(--berry-dark) !important;
  font-weight: 760;
}
.totals {
  font-size: 0.9rem;
  padding-top: 0.5rem;
  text-align: left;
  overflow-wrap: anywhere;
}
.preview-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1.15rem;
}
.preview-actions .button {
  min-height: 3.15rem;
}
.preview-actions .primary,
.print-controls .primary {
  --button-top: #a83e55;
  --button-bottom: #752139;
  --button-edge: #611c30;
}
.draft-tools {
  margin-top: 0.65rem;
  color: #4d5139;
}
.draft-tools p {
  margin: 0.5rem 0;
}
.backup-actions input[type="file"] {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
}
.backup-actions:has(input[type="file"]:focus-visible) .import-label {
  outline: 3px solid var(--berry);
  outline-offset: 3px;
}

.editorial {
  margin-top: 3.15rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.4rem, 6vw, 5rem);
}
.guide section {
  padding: 1rem 0 1.1rem;
  border-top: 1px solid #cdcdbd;
}
.guide section:first-child {
  padding-top: 0;
  border: 0;
}
.guide h2,
.faq h2,
.prose h2 {
  margin-bottom: 0.55rem;
}
.guide a {
  display: inline-block;
  margin-top: 0.38rem;
  font-weight: 730;
}
.guide-aside {
  min-width: 0;
}
.example-card {
  padding: 1.2rem 1.3rem;
  background: #f4e8e5;
  border-left: 3px solid #a66270;
  border-radius: 0.24rem;
}
.example-label {
  color: var(--berry-dark);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}
.example-card h2 {
  margin: 0.3rem 0 0.5rem;
}
.faq {
  margin-top: 1.35rem;
}
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
}
.faq summary {
  min-height: 2.35rem;
  padding: 0.35rem 0;
}
.faq details p {
  margin: 0.22rem 0 0.55rem;
}
.notice {
  padding: 1rem;
  background: #f4e8e5;
}
.prose,
.private-page {
  padding-top: 2.25rem;
  min-height: 55vh;
}
.prose h1,
.private-page h1 {
  font-size: clamp(2.3rem, 6vw, 4.35rem);
  margin-bottom: 0.7rem;
}
.prose {
  max-width: 52rem;
}
.prose h2 {
  margin-top: 1.4rem;
}

.print-workspace {
  grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.2fr);
}
.stack {
  display: grid;
  gap: 0.85rem;
  justify-items: stretch;
}
.print-format {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.print-controls .button.primary {
  min-height: 3.2rem;
}
.print-preview {
  background:
    radial-gradient(ellipse at center, #31513d, transparent 74%),
    repeating-linear-gradient(128deg, #ebd6980c 0 1px, transparent 1px 7px),
    #1c392b;
  color: #fff8e5;
  border-color: #1c392b;
}
.print-preview > .panel-head {
  border-bottom-color: #eee1bc33;
}
.print-preview > .panel-head .button.quiet {
  color: #ffebbb;
  border: 1px solid #e7c47866;
  padding-inline: 0.7rem;
}
.print-preview > .panel-head .button.quiet:hover {
  background: #f3e3b620;
}
.print-preview > .panel-head .icon {
  filter: invert(1);
  width: 1rem;
  height: 1rem;
}
.preview-pagination {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  padding: 0.3rem 0.65rem 0;
  gap: 0.15rem;
}
.preview-pagination .button.quiet {
  color: #fff8e5;
  width: max-content;
  padding-inline: 0.5rem;
}
.preview-pagination .button.quiet:hover {
  background: #f3e3b620;
}
.preview-pagination .button[aria-disabled="true"] {
  opacity: 0.57;
  cursor: default;
  background: transparent;
}
.page-arrow {
  background: url("/assets/chevron-right.svg") center / contain no-repeat;
  filter: invert(1);
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
}
.previous-arrow {
  background-image: url("/assets/chevron-left.svg");
}
#page-count {
  white-space: nowrap;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fae8b5;
}
#print-preview {
  padding: 1rem 1.35rem 1.55rem;
  display: grid;
  justify-items: center;
  overflow: hidden;
}
.paper-deck {
  position: relative;
  isolation: isolate;
  width: min(100%, 21rem);
  aspect-ratio: var(--sheet-ratio, 186 / 272.3);
  background: #fffcf2;
  border-radius: 0.14rem;
}
#print-preview[data-multiple] .paper-deck::before,
#print-preview[data-multiple] .paper-deck::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid #ae9b78;
  border-radius: 0.14rem;
}
#print-preview[data-multiple] .paper-deck::before {
  background: #dfd1af;
  transform: translate(0.32rem, 0.42rem) rotate(1.3deg);
}
#print-preview[data-multiple] .paper-deck::after {
  background: #f3e5c7;
  transform: translate(-0.24rem, 0.27rem) rotate(-1.15deg);
}
.preview-sheet-layer {
  position: absolute;
  inset: 0;
  border-radius: 0.14rem;
  overflow: hidden;
  box-shadow: 0 0.55rem 1.2rem #10201955;
}
.preview-leaf {
  z-index: 1;
}
.preview-sheet-layer > .print-sheet {
  width: var(--sheet-width);
  transform: scale(var(--page-scale, 1));
  transform-origin: top left;
}
.preview-leaf[data-direction="forward"] {
  --turn-offset: 1.2rem;
  --turn-angle: 3deg;
  animation: paper-turn 280ms cubic-bezier(0.21, 0.75, 0.3, 1) both;
}
.preview-leaf[data-direction="back"] {
  --turn-offset: -1.2rem;
  --turn-angle: -3deg;
  animation: paper-turn 280ms cubic-bezier(0.21, 0.75, 0.3, 1) both;
}
@keyframes paper-turn {
  from {
    transform: translateX(var(--turn-offset)) rotate(var(--turn-angle))
      scale(0.98);
  }
  to {
    transform: none;
  }
}
.initial-sample {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.paper-detail {
  width: min(42rem, calc(100% - 1.4rem));
}
.paper-detail .print-sheet {
  grid-template-rows: auto 1fr auto;
}
.paper-detail :focus-visible {
  outline-color: var(--berry-dark);
}
.sample-gallery {
  margin-top: 2.4rem;
}
.sample-gallery h2 {
  margin-bottom: 0.8rem;
}
.sample-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}
.sample {
  min-width: 0;
  padding: 0.65rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0.3rem;
}
.sample img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: contain;
  background: #eeebdf;
}
.sample h3 {
  margin-top: 0.65rem;
}
.sample p {
  margin-top: 0.42rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.theme-evergreen {
  --paper-ink: #204433;
  --paper: #fffcf2;
  --paper-line: #abb698;
  --paper-rule: #d9ddc8;
}
.theme-berry {
  --paper-ink: #793343;
  --paper: #fff7f4;
  --paper-line: #bc8693;
  --paper-rule: #e9c7cc;
}
.theme-mono {
  --paper-ink: #242424;
  --paper: #fff;
}
.theme-large-print {
  --paper-ink: #182d24;
  --paper: #fffef9;
}
.print-sheet {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  min-width: 0;
  background: var(--paper);
  color: var(--paper-ink);
  border: 1px solid currentColor;
  padding: 1.25rem 1.4rem;
  border-radius: 0.12rem;
}
.sheet-header {
  text-align: center;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.45rem;
  overflow-wrap: anywhere;
}
.sheet-header .icon {
  margin: 0 auto 0.15rem;
}
.sheet-header h3 {
  font-size: clamp(1.62rem, 3.1vw, 2.1rem);
  margin: 0.2rem 0 0.12rem;
}
.sheet-footer {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid currentColor;
  padding-top: 0.28rem;
  font-size: 0.8rem;
}
.sheet-gift {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 0.58rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid #b7baad;
  break-inside: avoid;
  page-break-inside: avoid;
}
.sheet-gift .gift-details h3 {
  font-size: 1.12rem;
}
.sheet-gift .gift-details p,
.sheet-gift .gift-meta {
  font-size: 0.9rem;
}
.gift-details {
  min-width: 0;
  overflow-wrap: anywhere;
}
.gift-details p {
  margin: 0.21rem 0 0;
}
.gift-details a {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  margin: 0;
}
.sheet-gift .paper-url {
  display: block;
  min-height: 0;
  margin-top: 0.23rem;
  color: inherit;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
.gift-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.7rem;
  margin-top: 0.23rem;
  color: var(--muted);
  font-size: 0.94rem;
}
.writing-line {
  display: flex;
  align-items: flex-end;
  min-height: 1.75rem;
  border-bottom: 1px solid #9fa498;
}
.writing-line span {
  align-self: end;
  width: 0.6rem;
  height: 0.6rem;
  margin-bottom: 0.28rem;
  border: 1px solid #7a8172;
  border-radius: 0.1rem;
}
.theme-large-print .writing-line {
  min-height: 2.4rem;
}
.theme-large-print .sheet-gift .gift-details h3 {
  font-size: 1.41rem;
}
.theme-large-print .sheet-gift .gift-details p,
.theme-large-print .sheet-gift .gift-meta {
  font-size: 1.1rem;
}
.theme-mono :is(.sheet-kicker, .gift-meta, .priority) {
  color: #242424 !important;
}
.empty-sheet {
  margin-block: 0.55rem;
}
#print-output {
  position: fixed;
  top: 0;
  left: -10000px;
  width: var(--sheet-width, 186mm);
  visibility: hidden;
  pointer-events: none;
  contain: layout style;
}
:is(#print-output, .preview-sheet-layer) .print-sheet {
  height: var(--sheet-height, 272mm);
  padding: 8mm;
  box-shadow: none;
  font-size: 11pt;
  border-radius: 0;
}
:is(#print-output, .preview-sheet-layer) .sheet-header h3 {
  font-size: 22pt;
}
:is(#print-output, .preview-sheet-layer) .sheet-gift .gift-details h3 {
  font-size: 13pt;
}
:is(#print-output, .preview-sheet-layer) .theme-mono .sheet-gift {
  padding-block: 0.33rem;
}
:is(#print-output, .preview-sheet-layer)
  .theme-large-print
  .sheet-gift
  .gift-details
  h3 {
  font-size: 17pt;
}
:is(#print-output, .preview-sheet-layer) .sheet-gift .gift-details p,
:is(#print-output, .preview-sheet-layer) .sheet-gift .gift-meta {
  font-size: 10.5pt;
}
:is(#print-output, .preview-sheet-layer)
  .theme-large-print
  .sheet-gift
  .gift-details
  p,
:is(#print-output, .preview-sheet-layer)
  .theme-large-print
  .sheet-gift
  .gift-meta {
  font-size: 13pt;
}
:is(#print-output, .preview-sheet-layer) .writing-line {
  min-height: 14mm;
}
:is(#print-output, .preview-sheet-layer) .theme-large-print .writing-line {
  min-height: 19mm;
}

.sharing-demo {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
}
.role-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}
.role-items {
  padding: 0;
  margin: 0.55rem 0 0;
  list-style: none;
}
.role-items li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--border);
}
.role-items .button,
.state {
  flex: none;
}
.gift-actions {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 0.3rem;
  flex: none;
}
.state {
  display: flex;
  align-items: center;
  gap: 0.36rem;
  color: var(--green);
  font-weight: 770;
}
.state.reserved {
  color: var(--berry-dark);
}
.sharing-aside {
  display: grid;
  justify-items: start;
  gap: 0.7rem;
  background: var(--green);
  color: var(--white);
  border-radius: 0.43rem;
  padding: 1.25rem 1.4rem;
}
.sharing-aside a:not(.button) {
  color: #f4dfb7;
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
}
.sharing-aside .primary {
  --button-top: #fff8e4;
  --button-bottom: #f0d9a5;
  --button-edge: #b38c55;
  color: var(--green);
}
.sharing-aside .primary .icon {
  filter: none;
}
.sharing-aside .primary .action-icon {
  border-color: #b18a56;
  background: #e9d09f;
}
.aside-icon {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid #b1bca6;
  border-radius: 50%;
}
.aside-icon .icon {
  filter: invert(1);
}
.private-page {
  max-width: 54rem;
}
.private-list,
.private-page .editor,
.manage-panel {
  margin-top: 0.9rem;
}
.private-list {
  background: var(--paper, var(--white));
  border-top: 3px solid var(--paper-line, #bb8855);
}
.private-list .panel-head {
  color: var(--paper-ink, var(--green));
}
.private-intro {
  color: var(--muted);
}
#private-content > button {
  margin-top: 1rem;
}
.manage-note {
  margin-top: 1rem;
}
dialog {
  max-height: calc(100% - 2rem);
  width: min(33rem, calc(100% - 1.4rem));
  color: var(--ink);
  background: var(--white);
  border: 1px solid #919e8c;
  border-radius: 0.55rem;
  padding: 0;
  box-shadow: 0 1rem 2.5rem #18271c40;
}
dialog::backdrop {
  background: #19281dd1;
}
.dialog-body {
  padding: 1.05rem 1.25rem 1.3rem;
}
.dialog-body > .panel-head {
  padding: 0 0 0.35rem;
  margin-bottom: 0.65rem;
  min-height: auto;
}
.dialog-body > p:not(.status),
.dialog-body > .backup-actions {
  margin-block: 0.55rem;
}
.share-link {
  margin: 0.55rem 0;
  padding: 0.65rem;
  border: 1px solid #e0d6c1;
  border-radius: 0.55rem;
  background: var(--cream);
}
.share-link p {
  font-size: 0.91rem;
  margin-bottom: 0.26rem;
}
.share-link > div {
  display: flex;
  gap: 0.38rem;
}
.share-link .button {
  flex: none;
}
#manage-shared-link,
#manage-links {
  margin: 0.55rem 0;
}
#import-preview {
  margin: 0.65rem 0;
  padding: 0.6rem;
  border: 1px solid var(--border);
  text-align: center;
  max-height: 15rem;
  overflow: auto;
}

@media (max-width: 52rem) {
  .shell {
    width: calc(100% - 2.1rem);
  }
  .page-intro h1 {
    font-size: clamp(2.35rem, 6.8vw, 4rem);
  }
  .panel-head,
  .editor-body,
  .demo-inner {
    padding-inline: 0.85rem;
  }
  .preview-body {
    padding-inline: 0.8rem;
  }
  .stationery {
    padding-inline: 1rem;
  }
}
@media (max-width: 41rem) {
  .shell {
    width: calc(100% - 1.6rem);
  }
  .masthead {
    min-height: 3.4rem;
    gap: 0.5rem;
  }
  .masthead nav {
    flex-wrap: nowrap;
    justify-content: end;
    gap: 0.2rem;
  }
  .masthead nav a {
    font-size: 0.94rem;
    padding-inline: 0.65rem;
    white-space: nowrap;
  }
  .brand-mark {
    width: 1.8rem;
    height: 2.15rem;
  }
  .wordmark > span:last-child {
    display: none;
  }
  .page-intro h1 {
    font-size: clamp(2.5rem, 10.7vw, 4.2rem);
  }
  .intro-inner {
    min-height: 9.5rem;
  }
  .intro-copy {
    width: 100%;
    padding-block: 1.2rem 1.45rem;
  }
  .intro-art {
    inset: 0 -0.8rem 0 auto;
    width: 67%;
    opacity: 0.51;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }
  .hero-seal,
  .intro-art::before {
    display: none;
  }
  .intro-art::after {
    background: linear-gradient(90deg, var(--hero), transparent 75%);
  }
  .page-intro p {
    max-width: 29rem;
  }
  .workspace,
  .print-workspace,
  .sharing-demo,
  .editorial {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }
  .panel-head {
    min-height: 3.2rem;
  }
  .panel-head h2 {
    font-size: 1.55rem;
  }
  .editor-body,
  .demo-inner {
    padding-top: 0.75rem;
    padding-bottom: 0.85rem;
  }
  .gift-entry .button.primary {
    padding-inline: 0.58rem;
    gap: 0.32rem;
  }
  .gift-entry .action-icon {
    width: 1.55rem;
    height: 1.55rem;
  }
  .gift-entry .action-icon .icon {
    width: 0.9rem;
    height: 0.9rem;
  }
  .stationery {
    min-height: 0;
  }
  .stationery[data-example="true"] {
    padding-block: 0.75rem 0.65rem;
  }
  .stationery[data-example="true"]
    :is(.paper-stamp, .paper-divider, .preview-gifts li:nth-child(n + 2)) {
    display: none;
  }
  .preview-actions {
    margin-top: 0.85rem;
  }
  .editorial {
    margin-top: 2rem;
  }
  .sample-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .print-sheet {
    padding: 0.75rem 0.8rem;
  }
  #print-preview {
    padding: 0.8rem 1.15rem 1.4rem;
  }
  .paper-deck {
    width: min(100%, 17rem);
  }
  .role-items li {
    flex-wrap: wrap;
  }
  .role-items .gift-details {
    flex: 1 0 100%;
  }
  .gift-actions {
    align-items: flex-start;
  }
  .footer-inner {
    min-height: 0;
    flex-wrap: wrap;
    padding-block: 0.65rem;
    gap: 0.12rem 1rem;
  }
}
@media (max-width: 23rem) {
  .save-state .icon {
    display: none;
  }
  .field select {
    padding-inline: 0.55rem 1.55rem;
    background-position: right 0.35rem center;
  }
  .preview-pagination {
    padding-inline: 0.4rem;
  }
  .paper-choice,
  .rename-toggle {
    padding-inline: 0.38rem;
    font-size: 0.85rem;
  }
  .paper-color {
    gap: 0.25rem;
  }
  .preview-actions .button {
    padding-inline: 0.52rem;
    gap: 0.36rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .button:is(.primary, .outline):is(:hover, :active):not(
      :disabled,
      [aria-disabled="true"]
    ),
  .button:hover:not(:disabled) .action-icon .icon {
    transform: none;
  }
}
/* The maker is a writing desk with a finished letter beside the form. */
.post-office {
  background: radial-gradient(ellipse at 10% 14%, #fffdf4, transparent 65%), #f6eedc;
  border-bottom: 1px solid #d8c9ac;
}
html:has(.mail-desk) { overflow-anchor: none; }
.post-office::after {
  display: block;
  content: "";
  height: 6px;
  background: repeating-linear-gradient(125deg, #9b3145 0 14px, #fff8e5 14px 26px, #285b47 26px 40px, #fff8e5 40px 52px);
}
.mail-desk {
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
  grid-template-areas: "write letter" "stamps letter";
  gap: 1.05rem clamp(2rem, 5vw, 5rem);
  align-content: center;
  padding-block: clamp(1.8rem, 4vw, 3.6rem);
}
.writing-desk { grid-area: write; align-self: end; }
.writing-desk h1 {
  font-size: clamp(3.8rem, 6.9vw, 6.35rem);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.065em;
  color: #163e32;
}
.writing-desk h1 em {
  display: block;
  color: #9e3141;
  font: italic 540 .97em/.99 var(--display);
}
.desk-intro { max-width: 30rem; margin-block: 1rem 1.35rem; font-size: 1.1rem; color: #425446; }
.writing-desk .editor {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.writing-desk .panel-head { min-height: 2.5rem; padding: 0; border: 0; }
.writing-desk .panel-head h2, .stamp-book h2 { font-size: 1.4rem; }
.writing-desk #editor-title .icon { display: none; }
.writing-desk .editor-body { padding: .4rem 0 0; }
.writing-desk .gift-name-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.writing-desk .gift-name-field input { border: 1.5px solid #738273; background: #fffefa; }
.writing-desk .gift-entry .primary { --button-top: #ac3b4c; --button-bottom: #922b3d; --button-edge: #672437; }
.writing-desk .gift-ideas { border: 0; padding: 0; }
.stamp-book { grid-area: stamps; align-self: start; border-top: 1px dashed #b6a889; padding-top: 1rem; }
.stamp-choices { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.stamp-choices button {
  display: grid;
  justify-items: center;
  gap: .3rem;
  min-width: 5.5rem;
  padding: .5rem .45rem .3rem;
  border: 1px solid transparent;
  border-radius: .4rem;
  background: transparent;
  color: #394b3d;
  font: 700 .82rem/1.3 var(--body);
  cursor: pointer;
}
.stamp-choices button[aria-pressed="true"] { background: #fffaf0; border-color: #467056; box-shadow: 0 2px 0 #467056; }
.stamp-choices button:hover .post-stamp { transform: translateY(-2px) rotate(-4deg); }
.post-stamp {
  --stamp-fill: #ccdbbb;
  display: inline-grid;
  flex: none;
  width: 3rem;
  height: 3.55rem;
  place-items: center;
  padding: 5px;
  background: var(--stamp-fill);
  outline: 1px dashed #6c765b;
  outline-offset: -5px;
  mask: linear-gradient(#000 0 0) center / calc(100% - 7px) calc(100% - 7px) no-repeat,
    radial-gradient(circle at 3px 3px, transparent 2.2px, #000 2.7px) -3px -3px / 7px 7px;
}
.stamp-sled { --stamp-fill: #c5dfed; }
.stamp-bear { --stamp-fill: #f2cc9c; }
.post-stamp img { width: 80%; height: 80%; object-fit: contain; }
.mail-desk .preview {
  grid-area: letter;
  align-self: start;
  padding: clamp(1rem, 2.6vw, 2.2rem);
  border: 1px solid #17372f;
  border-radius: .38rem;
  background: repeating-linear-gradient(0deg, transparent 0 31px, #c8b78a14 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, #c8b78a14 31px 32px), #204738;
  box-shadow: 0 .7rem 1.8rem #39341a27;
}
.mail-desk .preview .panel-head {
  min-height: 2rem;
  margin-bottom: .85rem;
  padding: 0;
  border: 0;
  color: #fff8de;
}
.mail-desk .preview .panel-head h2 { font-size: 1.48rem; }
.mail-desk .preview .text-button { color: #f4deb0; }
.mail-desk .preview-body { padding: 0; }
.mail-desk .stationery {
  text-align: left;
  min-height: 18rem;
  padding: 1.25rem clamp(1rem, 2.7vw, 2.25rem) 1.4rem;
  border: 6px solid transparent;
  background: linear-gradient(var(--paper, #fffcf2) 0 0) padding-box,
    repeating-linear-gradient(125deg, #b84e51 0 11px, #faf1dc 11px 22px, #688c80 22px 33px, #faf1dc 33px 44px) border-box;
  box-shadow: 3px 4px 0 #ded5ba, 5px 7px 0 #f7f0da, 5px 10px 14px #102c2466;
}
.mail-desk .stationery::before, .mail-desk .stationery::after { content: none; }
.letter-postage { display: flex; justify-content: flex-end; align-items: center; gap: .32rem; margin-bottom: .5rem; }
.letter-postage .post-stamp { transform: rotate(5deg); width: 3.6rem; height: 4.2rem; }
.postmark {
  display: grid;
  align-content: center;
  width: 3.75rem;
  height: 3.75rem;
  border: 3px double currentColor;
  border-radius: 50%;
  color: #6a7463;
  transform: rotate(-15deg);
  text-align: center;
  font: 700 .53rem/1.25 var(--body);
  text-transform: uppercase;
  letter-spacing: .09em;
}
.mail-desk .paper-title { font-size: clamp(1.7rem, 3.1vw, 2.8rem); }
.mail-desk .paper-divider { width: 100%; margin: .6rem 0; }
.mail-desk .preview-tools { margin: 1.25rem 0 0; }
.mail-desk .preview-actions { margin-top: .7rem; }
.mail-desk .preview .rename-field label { color: #fff9e9; }
.sheet-header .post-stamp { width: 2rem; height: 2.25rem; }
.theme-mono .post-stamp { filter: grayscale(1); }
@media (max-width: 49rem) {
  .mail-desk { grid-template-columns: minmax(0, 1fr); grid-template-areas: "write" "letter" "stamps"; gap: .9rem; padding-block: 1.15rem; }
  .writing-desk h1 { font-size: clamp(2.05rem, 8.8vw, 3.5rem); }
  .writing-desk h1 em { display: inline; }
  .desk-intro { margin-block: .45rem .75rem; font-size: 1rem; }
  .mail-desk .preview { padding: .8rem; }
  .mail-desk .preview .panel-head { margin-bottom: .5rem; }
  .mail-desk .stationery { min-height: 0; padding: .7rem .9rem; }
  .letter-postage { float: right; margin: 0 0 .25rem .45rem; }
  .letter-postage .post-stamp { width: 2.3rem; height: 2.8rem; }
  .letter-postage .postmark { display: none; }
  .mail-desk .preview-gifts, .mail-desk .paper-empty { clear: both; }
  .mail-desk .preview-tools { margin-top: .9rem; }
  .stamp-book { padding-top: .75rem; }
  .preview .stamp-book { display: flex; align-items: center; justify-content: space-between; gap: .3rem; border: 0; margin-top: .7rem; padding: 0; }
  .preview .stamp-book h2 { color: #fff6dd; font: 650 .87rem/1.2 var(--body); }
  .preview .stamp-choices { flex-wrap: nowrap; gap: .3rem; margin: 0; }
  .preview .stamp-choices button { position: relative; min-width: 2.9rem; min-height: 2.9rem; padding: .15rem; }
  .preview .stamp-choices button[aria-pressed="true"] { border-color: #fbe1a3; background: #456448; box-shadow: none; }
  .preview .stamp-choices button > span:last-child { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; }
  .preview .stamp-choices .post-stamp { width: 1.85rem; height: 2.18rem; }
  .mail-desk .preview-tools { margin-top: .5rem; }
}
@media print {
  html,
  body {
    margin: 0;
    padding: 0;
    background: white;
    color: black;
  }
  body:has(#print-output) :is(#site, .skip-link) {
    display: none !important;
  }
  #print-output {
    position: static;
    visibility: visible;
    pointer-events: auto;
    contain: none;
  }
  #print-output .print-sheet {
    break-after: page;
    page-break-after: always;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  #print-output .print-sheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }
}
