@font-face {
  font-family: Instrument;
  src: url("/_a/instrument.5eb09b5ac0.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Instrument;
  src: url("/_a/instrument-italic.5a51946dff.woff2") format("woff2");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: DM;
  src: url("/_a/dm.9fea608a94.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --paper: #f6f3e9;
  --ink: #1b3f39;
  --muted: #54675c;
  --clay: #984e43;
  --pine: #30584e;
  --night-blue: #304655;
  --rosewood: #67494d;
  --cocoa: #59352f;
  --brass: #a38759;
  --gold: #d8aa72;
  --frost: #b4c8c4;
  --linen: #e8e3d4;
  --parchment: #fff1d5;
  --rule: #c9cbbd;
  --white: #ffffff;
  --shade: #142520;
  --serif: Instrument, Georgia, serif;
  --sans: DM, Arial, sans-serif;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
}
button,
input,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.62;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 5px;
}
button {
  border: 0;
  background: none;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
img {
  display: block;
  max-width: 100%;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1220px, calc(100% - clamp(44px, 9vw, 160px)));
  margin-inline: auto;
}
.skip {
  position: fixed;
  left: 12px;
  top: -90px;
  z-index: 10;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 12px;
}
header {
  background: var(--paper);
}
.topbar,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar {
  min-height: 78px;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 38px/0.95 var(--serif);
  letter-spacing: -1.7px;
}
.brand-mark {
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  outline: 1px solid var(--pine);
  outline-offset: 2px;
  border-radius: 50%;
  width: 31px;
  height: 31px;
  margin: 3px 3px 3px 1px;
  font: 28px/1 Georgia;
}
.navlinks {
  margin-left: auto;
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.navlinks a:hover,
.plain:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
#snow-toggle {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 40px;
  font-size: 13px;
  padding-inline: 3px;
}
#snow-toggle span {
  font: 18px/1 Georgia, serif;
}
#snow-toggle[aria-pressed="false"] {
  color: var(--muted);
  text-decoration: line-through;
}
#snowfall {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}
#snowfall i {
  position: absolute;
  top: -18px;
  color: var(--white);
  font: 12px/1 Georgia, serif;
  animation: snow-drift linear infinite;
}
#snowfall i:empty {
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: currentColor;
}
#snowfall.paused i {
  animation-play-state: paused;
}
@keyframes snow-drift {
  0% { transform: translate3d(0, 0, 0) rotate(-12deg); }
  52% { transform: translate3d(var(--drift), 54vh, 0) rotate(15deg); }
  100% { transform: translate3d(0, calc(100vh + 24px), 0) rotate(38deg); }
}
.small-button,
.solid-button,
.cream-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 650;
  transition:
    background 0.2s,
    transform 0.2s;
}
.small-button,
.solid-button {
  background: var(--ink);
  color: var(--paper);
}
.small-button {
  padding: 10px 19px;
}
.small-button span {
  font-size: 18px;
  line-height: 1;
}
.small-button:hover,
.solid-button:hover {
  background: var(--pine);
}
.cream-button {
  background: var(--parchment);
  color: var(--ink);
  padding: 16px 24px;
  box-shadow: 0 3px 0 color-mix(in srgb, var(--shade) 7%, transparent);
}
.cream-button:hover {
  background: var(--parchment);
  transform: translateY(-2px);
}
.envelope {
  position: relative;
  width: 20px;
  height: 14px;
  display: inline-block;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  overflow: hidden;
}
.envelope:before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  left: 2.2px;
  top: -7px;
  border: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.hero {
  position: relative;
  background: var(--ink) url("/_a/night.ea1d14766e.webp") center bottom/100% 100%
    no-repeat;
  color: var(--parchment);
  overflow: hidden;
}
.hero-layout {
  min-height: clamp(505px, 42vw, 630px);
  padding-block: 65px 58px;
  display: grid;
  grid-template-columns: 0.85fr 1.2fr;
  align-items: center;
  gap: clamp(30px, 6vw, 100px);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
.card-name {
  font-family: var(--serif);
  font-weight: 400;
}
.intro h1 {
  font-size: clamp(86px, 8.6vw, 140px);
  line-height: 0.84;
  letter-spacing: -0.038em;
  margin: 0 0 26px;
}
.intro h1 em {
  color: var(--rule);
  font-weight: 400;
}
.intro > p {
  color: var(--linen);
  max-width: 340px;
  font-size: clamp(15px, 1.18vw, 18px);
  line-height: 1.58;
  margin: 0 0 28px;
}
.display {
  position: relative;
  min-width: 0;
  padding: 5px 7px 0;
  max-width: 660px;
  width: 100%;
  justify-self: end;
}
.postcard {
  position: relative;
  isolation: isolate;
  padding: clamp(9px, 1.05vw, 16px);
  padding-bottom: 0;
  background: var(--paper);
  border-radius: 2px;
  transform: rotate(2.7deg);
  box-shadow:
    0 22px 32px -10px color-mix(in srgb, var(--shade) 50%, transparent),
    0 1px 3px color-mix(in srgb, var(--shade) 40%, transparent);
}
.postcard:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 8px 7px -5px -6px;
  background: var(--linen);
  transform: rotate(-2deg);
  box-shadow: 0 3px 9px color-mix(in srgb, var(--shade) 32%, transparent);
}
.postcard:after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--parchment);
  border-radius: 2px;
  z-index: -1;
}
.picture {
  position: relative;
  overflow: hidden;
  background: var(--frost);
  aspect-ratio: 1200/746;
}
.picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.picture canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  transition: opacity 0.75s ease;
}
.picture canvas:focus-visible {
  outline-offset: -4px;
}
.picture.thawed canvas {
  opacity: 0;
  pointer-events: none;
}
#swipe-hint {
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  color: var(--paper);
  background: color-mix(in srgb, var(--ink) 81%, transparent);
  border: 1px solid color-mix(in srgb, var(--linen) 45%, transparent);
  border-radius: 30px;
  font-size: 12px;
  letter-spacing: 0.025em;
  transition: opacity 0.2s;
}
.swipe-icon {
  font-size: 19px;
  line-height: 1;
}
.picture.working #swipe-hint,
.picture.thawed #swipe-hint {
  opacity: 0;
}
.postcard-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: clamp(59px, 5vw, 78px);
  gap: 10px;
  padding: 4px 2px;
  color: var(--night-blue);
}
.lettering {
  min-width: 0;
}
.lettering > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lettering > span:first-child {
  font: italic clamp(22px, 2.05vw, 32px)/1.15 var(--serif);
}
.sender {
  font-size: 12px;
  letter-spacing: 0.025em;
  color: var(--muted);
}
.postage {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
}
.postage img,
.large-stamp {
  height: 52px;
  width: 43px;
  object-fit: cover;
  mask:
    radial-gradient(circle at 3px 0, transparent 2px, var(--shade) 2.5px) 0 0/6px 51%,
    radial-gradient(circle at 3px 100%, transparent 2px, var(--shade) 2.5px) 0 100%/6px
      51%;
  mask-repeat: repeat-x;
}
.cancel-lines {
  font: 20px/0.22 Georgia;
  letter-spacing: -3px;
  color: var(--muted);
  transform: rotate(-8deg);
  margin-right: -3px;
}
.postmark {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 49px;
  height: 49px;
  border: 1px solid var(--muted);
  outline: 1px solid color-mix(in srgb, var(--muted) 48%, transparent);
  outline-offset: -4px;
  border-radius: 50%;
  font: 12px/1 var(--sans);
  letter-spacing: 0.08em;
  color: var(--muted);
  transform: rotate(-15deg);
  margin-right: -6px;
}
.postmark b {
  font: 17px/1.3 Georgia;
}
.display-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--linen);
  margin-top: 28px;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.display-caption button {
  font: inherit;
  color: inherit;
  padding: 4px 0;
  text-decoration: underline;
  text-decoration-color: var(--frost);
  text-underline-offset: 3px;
}
.caption-sep {
  opacity: 0.65;
}
.caption-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.airmail {
  height: 5px;
  background: repeating-linear-gradient(
    125deg,
    var(--brass) 0 14px,
    var(--linen) 14px 30px,
    var(--brass) 30px 44px,
    var(--linen) 44px 60px
  );
}
.collection {
  padding-top: clamp(40px, 4.4vw, 74px);
  padding-bottom: clamp(46px, 5vw, 80px);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.section-head h2,
.how h2 {
  font-size: clamp(43px, 4.2vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.032em;
  margin: 0;
}
.section-head p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 32px);
}
.scene-card {
  padding: 0;
  text-align: left;
}
.thumbnail {
  position: relative;
  aspect-ratio: 1.6;
  overflow: hidden;
  background: var(--rule);
  border-radius: 3px;
}
.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.scene-card:hover img {
  transform: scale(1.035);
}
.card-name {
  display: block;
  font-size: clamp(24px, 2.1vw, 34px);
  margin: 8px 0 0;
}
.scene-open {
  position: absolute;
  right: 11px;
  bottom: 11px;
  background: var(--paper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  font-size: 15px;
}
.how {
  border-top: 1px solid var(--rule);
  padding-block: 40px;
}
.how-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
}
.how h2 {
  font-size: 42px;
}
.how ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}
.how li {
  padding: 2px 0 8px 6px;
  font-size: 14px;
}
.how strong {
  color: var(--ink);
}
footer {
  border-top: 1px solid var(--rule);
}
.footer-inner {
  min-height: 70px;
}
.footer-inner .brand {
  font-size: 27px;
}
.footer-inner button,
.plain {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
dialog {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 9px;
  width: min(490px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  box-shadow: 0 25px 80px color-mix(in srgb, var(--shade) 39%, transparent);
}
dialog::backdrop {
  background: color-mix(in srgb, var(--shade) 68%, transparent);
  backdrop-filter: blur(4px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-inner {
  padding: 32px;
  position: relative;
}
.dialog-inner h2 {
  font-size: 46px;
  letter-spacing: -0.035em;
  line-height: 1.07;
  margin: 0 25px 24px 0;
}
.close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 34px;
  height: 34px;
  font: 26px/1 var(--sans);
  border-radius: 50%;
}
.close:hover {
  background: var(--linen);
}
fieldset {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
}
legend,
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
legend {
  padding: 0;
  margin-bottom: 7px;
}
.options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.options button {
  min-width: 0;
  padding: 4px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.55;
}
.options button[aria-pressed="true"] {
  border: 2px solid var(--ink);
  padding: 3px;
  background: var(--linen);
}
.options img,
.upload-img {
  display: block;
  width: 100%;
  height: 40px;
  object-fit: cover;
  border-radius: 2px;
}
.upload-img {
  display: grid;
  place-items: center;
  background: var(--linen) center/cover;
  font-size: 24px;
  font-weight: 400;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
input,
textarea {
  width: 100%;
  border: 1px solid var(--frost);
  border-radius: 4px;
  padding: 10px 11px;
  background: var(--white);
  color: var(--ink);
  font: 15px/1.4 var(--sans);
  margin-top: 4px;
}
textarea {
  resize: vertical;
  min-height: 83px;
}
input:focus,
textarea:focus {
  outline: 2px solid var(--muted);
  outline-offset: 1px;
}
.form-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.solid-button {
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
}
.error {
  margin: 8px 0 0;
  color: var(--clay);
  font-size: 13px;
}
.error:empty {
  display: none;
}
#sealed {
  text-align: center;
}
#sealed label {
  text-align: left;
}
#sealed h2 {
  margin: 12px 0;
}
#sealed p,
#about p {
  font-size: 15px;
}
.large-stamp {
  width: 57px;
  height: 70px;
  display: inline-block;
  transform: rotate(7deg);
}
.plain {
  display: inline-block;
  margin: 15px 6px 0;
}
.received-note {
  min-width: 0;
  width: 100%;
  max-width: 440px;
  perspective: 1000px;
}
.letter-paper {
  --rim: clamp(20px, 2.5vw, 38px);
  position: relative;
  padding: 19px var(--rim) 26px;
  color: var(--ink);
  background:
    linear-gradient(28deg, transparent 72%, color-mix(in srgb, var(--rule) 13%, transparent)),
    linear-gradient(to bottom, var(--paper), var(--parchment) 49.5%, var(--linen) 50%, var(--linen) 51%, var(--paper) 61%);
  box-shadow: 0 14px 26px -13px color-mix(in srgb, var(--shade) 66%, transparent), 0 1px 3px color-mix(in srgb, var(--shade) 31%, transparent);
  transform-origin: center top;
  animation: unfold-letter 1.45s cubic-bezier(.22,.67,.21,1) both;
}
.letter-paper::before {
  content: "";
  position: absolute;
  inset: 0 0 auto auto;
  width: 16px;
  height: 16px;
  background: linear-gradient(45deg, var(--rule) 48%, var(--frost) 49%, var(--night-blue) 52%, var(--night-blue));
}
.letter-ornament {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--brass);
  padding-bottom: 12px;
  font: 16px/1 Georgia, serif;
}
.letter-ornament::before, .letter-ornament::after {
  content: "";
  height: 1px;
  flex: 1;
  background: color-mix(in srgb, var(--gold) 50%, transparent);
}
.received-note p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  font: clamp(23px, 2.1vw, 30px)/1.3 var(--serif);
  text-align: start;
}
.received-note #note-sign {
  margin-top: 16px;
  font: italic 21px/1.3 var(--serif);
  color: var(--muted);
}
#reply {
  float: right;
  margin-top: 6px;
  padding: 8px 0 8px 9px;
  color: var(--linen);
  font-size: 12px;
  text-underline-offset: 4px;
  animation: appear-reply .4s ease-out backwards;
}
#reply span { margin-right: 4px; }
#reply:hover { text-decoration: underline; }
@keyframes appear-reply {
  from { opacity: 0; }
}
@keyframes unfold-letter {
  0% { clip-path: inset(0 0 88%); transform: rotateX(-53deg) translateY(12px); opacity: 0; }
  24% { opacity: 1; }
  65% { clip-path: inset(0 0 8%); transform: rotateX(4deg) translateY(0); }
  100% { clip-path: inset(0); transform: rotateX(0); }
}
@media (min-width: 761px) {
  .hero-layout:has(.received-note:not([hidden])) {
    grid-template-areas: "intro display" "letter display";
    grid-template-rows: auto auto;
    align-content: center;
    row-gap: 18px;
  }
  .hero-layout:has(.received-note:not([hidden])) .intro {
    grid-area: intro;
    align-self: end;
  }
  .hero-layout:has(.received-note:not([hidden])) .intro h1 { margin-bottom: 0; }
  .hero-layout:has(.received-note:not([hidden])) .display { grid-area: display; }
  .received-note { grid-area: letter; align-self: start; }
}
.recipient .navlinks, .recipient .topbar .small-button,
.recipient .collection, .recipient .how {
  display: none;
}
.recipient .intro h1 {
  font-size: clamp(48px, 5.4vw, 82px);
  line-height: 0.98;
  overflow-wrap: anywhere;
}
.recipient .hero-layout {
  grid-template-columns: 0.88fr 1.15fr;
  min-height: max(520px, calc(100svh - 154px));
}
.recipient .received-note {
  padding-bottom: 38px;
  position: relative;
}
.recipient #reply {
  position: absolute;
  right: 0;
}
@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .topbar {
    min-height: 63px;
    gap: 10px;
  }
  #snow-toggle { margin-left: auto; }
  #snowfall i:nth-child(n+27) { display: none; }
  .brand {
    font-size: 32px;
  }
  .brand-mark {
    width: 25px;
    height: 25px;
    font-size: 23px;
  }
  .small-button {
    font-size: 12px;
    padding: 8px 12px;
  }
  .navlinks {
    display: none;
  }
  .hero-layout,
  .recipient .hero-layout {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 34px 0 24px;
  }
  .intro {
    text-align: center;
  }
  .intro h1 {
    font-size: clamp(65px, 13.3vw, 95px);
    line-height: 0.96;
    margin: 0 0 12px;
  }
  .intro h1 br {
    display: none;
  }
  .intro h1 em:before {
    content: " ";
  }
  .intro > p {
    max-width: 330px;
    margin: 0 auto 16px;
    font-size: 14px;
    line-height: 1.52;
  }
  .cream-button {
    padding: 10px 17px;
    font-size: 13px;
  }
  .display {
    max-width: 470px;
    justify-self: center;
    padding-inline: 7px;
  }
  .postcard {
    transform: rotate(2deg);
  }
  .postcard-foot {
    min-height: 55px;
  }
  .postage img {
    height: 40px;
    width: 34px;
  }
  .postmark {
    height: 39px;
    width: 39px;
    font-size: 12px;
  }
  .postmark b {
    font-size: 14px;
  }
  .display-caption {
    margin-top: 17px;
    font-size: 12px;
  }
  .hero {
    background-size: auto 100%;
  }
  .section-head {
    display: block;
    margin-bottom: 17px;
  }
  .section-head p {
    margin-top: 4px;
  }
  .gallery {
    gap: 13px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .scene-open {
    right: 6px;
    bottom: 6px;
    width: 22px;
    height: 22px;
  }
  .card-name {
    font-size: 21px;
  }
  .how-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .received-note {
    width: calc(100% - 14px);
    margin: 0 auto;
    text-align: left;
  }
  .recipient .hero-layout {
    min-height: calc(100svh - 138px);
    align-content: start;
    gap: 19px;
    padding-block: 32px;
  }
  .recipient .intro > p { margin-bottom: 0; }
  .recipient .intro h1 {
    font-size: 43px;
    margin-bottom: 5px;
  }
  .collection {
    padding-top: 33px;
  }
}
@media (max-width: 520px) {
  .gallery {
    gap: 14px 12px;
  }
  .thumbnail {
    aspect-ratio: 1.55;
  }
  .card-name {
    font-size: clamp(20px, 5.4vw, 26px);
    margin: 4px 0 6px;
  }
  .section-head h2 {
    font-size: 41px;
  }
  .collection {
    padding-bottom: 24px;
  }
  .dialog-inner {
    padding: 25px 20px 22px;
  }
  .dialog-inner h2 {
    font-size: 39px;
    margin-bottom: 20px;
  }
  .how h2 {
    font-size: 35px;
  }
  .how {
    padding: 28px 0;
  }
  .picture {
    aspect-ratio: 1.64;
  }
  .letter-paper { padding-block: 15px 20px; }
  .options { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
  .letter-paper, #reply { animation: none; }
}
.picture.loading {
  background: var(--frost) url("/_a/frost.be14d5b98c.webp") center/cover;
}
.picture.loading img,
.picture.loading canvas,
.picture.loading #swipe-hint {
  visibility: hidden;
}
.info-page { max-width:720px; padding-block:clamp(38px,7vw,85px); }
.info-page h1 { font-size:clamp(48px,6vw,78px); line-height:1.05; margin-bottom:28px; }
.info-page h2 { font-size:32px; margin:28px 0 6px; }
.info-page p { max-width:65ch; }
.post-office { max-width: 750px; padding-block: clamp(36px, 6vw, 72px); }
.post-office h2 { margin: 0 0 18px; font: 44px/1.1 var(--serif); }
.post-office details { border-top: 1px solid var(--rule); }
.post-office summary { cursor: pointer; padding: 15px 0; font-weight: 600; }
.post-office details p { margin: 0 0 18px; color: var(--muted); }
.post-office a, .info-page p a { text-decoration: underline; text-underline-offset: 3px; }
.recipient .post-office { display: none; }
.footer-inner nav { display: flex; flex-wrap: wrap; column-gap: 1.2rem; }
.footer-inner nav a { padding-block: 8px; font-size: 14px; }
.footer-inner nav a:hover { text-decoration: underline; }
#delivery-hint, #counter { font-size: 12px; }
#counter { white-space: nowrap; }

.scene-purpose { display:block; color:var(--muted); font-size:13px; margin-top:2px }
#editor:has(#maker:not([hidden])) { width:min(925px,calc(100% - 32px)); border-radius:7px; border:0 }
#editor:has(#maker:not([hidden])) .dialog-inner { padding:0 }
#editor .close { z-index:2; background:color-mix(in srgb, var(--paper) 81%, transparent) }
.desk { display:grid; grid-template-columns: .87fr 1.13fr; --desk-bg:var(--cocoa); --desk-ink:var(--parchment); --accent:var(--clay); --sheet:var(--paper) }
[data-theme=cabin] { --desk-bg:var(--night-blue); --desk-ink:var(--paper); --accent:var(--rosewood); --sheet:var(--paper) }
[data-theme=village] { --desk-bg:var(--rosewood); --desk-ink:var(--parchment); --accent:var(--clay); --sheet:var(--paper) }
[data-theme=forest] { --desk-bg:var(--pine); --desk-ink:var(--paper); --accent:var(--pine); --sheet:var(--paper) }
[data-theme=photo] { --desk-bg:var(--night-blue); --desk-ink:var(--parchment); --accent:var(--muted); --sheet:var(--paper) }
.cover-desk { min-width:0; padding:38px 29px 31px; color:var(--desk-ink); background:radial-gradient(ellipse at 10% 0%,color-mix(in srgb, var(--white) 9%, transparent),transparent 70%),var(--desk-bg); display:flex; flex-direction:column; justify-content:center }
#editor-heading { font:normal clamp(37px,4.4vw,60px)/.97 var(--serif); letter-spacing:-.03em; margin:0 0 25px }
#editor-heading em { font-weight:400 }
.desk-print { position:relative; margin:7px 2px 30px; padding:8px 8px 0; background:var(--parchment); color:var(--night-blue); transform:rotate(-3deg); box-shadow:2px 9px 18px color-mix(in srgb, var(--shade) 33%, transparent) }
.desk-print::before { content:""; position:absolute; width:64px; height:18px; top:-8px; left:39%; background:color-mix(in srgb, var(--rule) 60%, transparent); transform:rotate(4deg); z-index:1 }
#draft-cover { width:100%; aspect-ratio:1.54; object-fit:cover }
.desk-print figcaption { display:flex; justify-content:space-between; align-items:center; padding:8px 3px 10px; gap:4px; font:italic clamp(21px,2vw,28px)/1 var(--serif) }
.desk-cancel { font:19px/1 Georgia; letter-spacing:-4px; color:var(--brass); padding-right:4px }
.cover-desk fieldset { margin:0; min-width:0 }
.cover-desk legend { font-weight:500; font-size:12px; margin-bottom:9px }
.cover-desk .options { gap:5px }
.cover-desk .options button { color:inherit; background:color-mix(in srgb, var(--white) 5%, transparent); border-color:color-mix(in srgb, var(--white) 32%, transparent); padding:3px; line-height:1.5; font-size:12px }
.cover-desk .options button[aria-pressed=true] { outline:1px solid var(--linen); border:1px solid var(--linen); background:color-mix(in srgb, var(--parchment) 13%, transparent) }
.cover-desk .options img,.cover-desk .upload-img { height:32px }
.cover-desk .upload-img { color:var(--parchment); background-color:color-mix(in srgb, var(--white) 11%, transparent) }
.writing-desk { min-width:0; padding:48px 31px 28px; background:var(--linen) }
.writing-paper { position:relative; isolation:isolate; background:var(--sheet); box-shadow:0 4px 10px color-mix(in srgb, var(--cocoa) 9%, transparent),0 0 0 1px color-mix(in srgb, var(--rule) 40%, transparent); padding:18px 22px 24px; color:var(--night-blue) }
.paper-head { height:44px; display:flex; justify-content:space-between; align-items:flex-start; border-bottom:1px solid color-mix(in srgb, var(--gold) 38%, transparent); margin-bottom:14px; color:var(--accent) }
.paper-head span { font:24px/1 Georgia,serif }
.paper-head img { height:36px; width:29px; transform:rotate(5deg) }
.ink-name { display:flex; align-items:baseline; gap:6px; font:italic 25px/1.3 var(--serif) }
.ink-name input,.writing-paper textarea { color:var(--ink); border:0; border-radius:0; background:transparent; margin:0; padding:0; min-width:0; font:inherit }
.ink-name input { flex:1; width:0 }
.writing-paper :is(input,textarea):focus { outline:0; box-shadow:0 2px 0 var(--accent,var(--clay)) }
.writing-paper :is(input,textarea):focus-visible { outline:1px dashed color-mix(in srgb, var(--brass) 30%, transparent); outline-offset:3px }
.ink-name input::placeholder,.writing-paper textarea::placeholder { color:var(--muted); opacity:.87 }
.writing-paper textarea { margin:10px 0 14px; width:100%; min-height:124px; font:22px/31px var(--serif); background:repeating-linear-gradient(to bottom,transparent 0 30px,color-mix(in srgb, var(--gold) 42%, transparent) 30px 31px); resize:vertical }
.ink-name.sign { color:var(--accent); font-size:22px }
.writing-desk .form-bottom { margin:8px 1px 15px; gap:8px }
#extras,#recovery { border-block:1px solid var(--frost); padding:10px 0 }
#extras summary,#recovery summary { cursor:pointer; font-size:13px; font-weight:600 }
#extras summary small { float:right; color:var(--muted); font-size:12px; font-weight:500; margin-top:2px }
.extras-content p,#mailbox p { font-size:13px; line-height:1.5; margin:9px 0 }
.extras-content p:empty { display:none }
.desk-action,.text-link { font-size:12px; font-family:var(--sans) }
.desk-action { display:inline-block; padding:6px 10px; border:1px solid var(--brass); border-radius:4px; margin:3px 4px 4px 0; background:var(--paper) }
.text-link { padding:6px 1px; text-decoration:underline; text-underline-offset:3px }
.check { display:flex; align-items:center; gap:7px; margin-block:6px; font-weight:400 }
.check input { width:auto; margin:0 }
#extra-thumbs { display:flex; gap:6px; flex-wrap:wrap }
#extra-thumbs button { position:relative; padding:0; margin-block:5px }
#extra-thumbs img { width:54px; height:43px; object-fit:cover }
#extra-thumbs span { position:absolute; top:-3px; right:-3px; border-radius:50%; background:var(--ink); color:white; padding:0 4px; line-height:15px }
#record-status { font-size:12px }
audio { display:block; width:100%; max-width:100%; margin-block:8px; height:38px }
#receipt-notice { font-size:12px; text-align:center; color:var(--linen); margin:4px 0 0 }
#enclosures { margin-top:18px; padding-top:10px; border-top:1px solid var(--gold) }
#album { margin:0 }
#album img { width:100%; max-height:290px; object-fit:contain; background:var(--linen) }
#album figcaption { display:flex; align-items:center; justify-content:center; gap:14px; font:12px/1.5 var(--sans) }
#album button { min-width:36px; min-height:34px }
#mail-list { padding:0; list-style:none; margin:14px 0 }
#mail-list li { display:flex; gap:10px; align-items:baseline; justify-content:space-between; border-bottom:1px solid var(--rule); padding:8px 0; overflow-wrap:anywhere }
#mail-list small { flex-shrink:0; color:var(--muted) }
#mail-list a { text-decoration:underline }
#mailbox #recovery { margin:16px 0 0 }
#record[aria-pressed=true] { background:var(--rosewood); color:white }
#received-note[data-theme] .letter-ornament { color:var(--accent,var(--brass)) }
#received-note[data-theme] .letter-paper { background-color:var(--sheet,var(--paper)); background-image:linear-gradient(to bottom,transparent 49%,color-mix(in srgb, var(--gold) 15%, transparent) 50%,transparent 56%) }
@media(max-width:700px) {
  #editor:has(#maker:not([hidden])) { width:min(465px,calc(100% - 16px)); max-height:calc(100dvh - 16px) }
  .desk { grid-template-columns:1fr }
  .cover-desk { display:grid; grid-template-columns:minmax(0,1fr) 36%; gap:10px 18px; align-items:center; padding:22px 20px 15px }
  #editor-heading { margin:0; font-size:38px; max-width:175px }
  .desk-print { margin:6px 13px 4px 0; padding:4px 4px 0; grid-column:2; grid-row:1 }
  .desk-print figcaption { padding:3px 0 5px; font-size:14px }
  .desk-cancel { display:none }
  .desk-print::before { width:32px; height:10px; top:-5px }
  .cover-desk fieldset { grid-column:1/-1 }
  .cover-desk legend { margin-bottom:4px }
  .cover-desk .options img,.cover-desk .upload-img { height:25px }
  .writing-desk { padding:18px 15px }
  .writing-paper { padding:13px 15px 18px }
  .writing-paper textarea { min-height:90px; height:90px; line-height:30px; background:repeating-linear-gradient(to bottom,transparent 0 29px,color-mix(in srgb, var(--gold) 42%, transparent) 29px 30px) }
  .paper-head { height:31px; margin-bottom:8px }
  .paper-head img { height:28px; width:23px }
  .scene-purpose { font-size:12px }
  .footer-inner { flex-wrap:wrap; gap:8px; padding-block:12px }
  .footer-inner button { font-size:12px }
}

