:root {
  color-scheme: light;
  --paper: #fffbf2;
  --paper-light: #fffdf7;
  --paper-deep: #f4ebd7;
  --pine: #214d3c;
  --pine-soft: #385646;
  --red: #ae353b;
  --red-dark: #8d2c35;
  --ochre: #ae8039;
  --muted: #556452;
  --rule: #d8cfb6;
  --rule-dark: #b6a98e;
  --display: 'Young Serif', 'Spectral', Georgia, serif;
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  --gutter: clamp(1.25rem, 4.8vw, 4.5rem);
  --page-width: 73.75rem;
  --focus: #276c76;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  min-width: 280px;
  min-height: 100%;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--paper);
  color: var(--pine);
  font: 400 1.125rem/1.52 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body > main {
  flex: 1 0 auto;
}
.airmail,
.masthead,
.site-foot {
  flex: none;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
input,
textarea,
select,
a {
  -webkit-tap-highlight-color: transparent;
}
button,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
img,
picture {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
svg {
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
}
::selection {
  color: var(--pine);
  background: #e9d9b4;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.shell {
  width: min(calc(100% - var(--gutter) - var(--gutter)), var(--page-width));
  margin-inline: auto;
}
.icon {
  display: inline-block;
  flex: none;
  width: 1.16em;
  height: 1.16em;
  vertical-align: -0.18em;
}
.skip {
  position: absolute;
  z-index: 12;
  top: 0.45rem;
  left: var(--gutter);
  padding: 0.5rem 0.8rem;
  transform: translateY(-150%);
  background: var(--pine);
  color: white;
  font-size: 0.88rem;
}
.skip:focus {
  transform: translateY(0);
}

/* Masthead and post office stationery */
.airmail {
  height: 6px;
  background: repeating-linear-gradient(
    125deg,
    #b84045 0 10px,
    #ffefd4 10px 19px,
    #427460 19px 29px,
    #ffefd4 29px 38px
  );
}
.masthead {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--rule);
}
.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.7vw, 2.6rem);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  width: clamp(8.75rem, calc(40vw + 0.75rem), 13.25rem);
  min-width: 0;
  min-height: 2.75rem;
  text-decoration: none;
}
.brand-lockup {
  display: block;
  width: 100%;
  height: auto;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.inbox-shortcut {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--pine-soft);
}
.inbox-shortcut:hover {
  background: var(--paper-deep);
  border-color: var(--pine-soft);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  margin-left: auto;
}
.nav-links a,
.nav-code,
.mobile-menu a {
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-links a {
  padding-block: 0.62rem;
  text-underline-offset: 0.35rem;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--red);
  text-decoration: underline;
}
.nav-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 2.75rem;
  padding: 0.46rem 0.86rem;
  border: 1px solid var(--rule-dark);
  border-radius: 4px;
  background: transparent;
  color: var(--pine);
  white-space: nowrap;
}
.nav-code:hover {
  background: var(--paper-deep);
  border-color: var(--pine-soft);
}
.nav-toggle,
.mobile-menu,
.mobile-only {
  display: none;
}
.eyebrow,
.label,
.code-label {
  color: var(--red);
  font: 700 0.78rem/1.4 var(--sans);
  letter-spacing: 0.115em;
  text-transform: uppercase;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.58rem;
}
.eyebrow .icon {
  width: 1.3em;
  height: 1.3em;
}

/* The illustrated holiday post */
.hero,
.hero > .shell {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 3.7vw, 3.65rem);
}
.hero {
  padding-block: clamp(3.1rem, 5.1vw, 4.5rem) clamp(3.45rem, 5.4vw, 4.8rem);
}
.hero:has(> .shell) {
  display: block;
}
.hero-copy {
  min-width: 0;
  container-type: inline-size;
}
.hero-copy .eyebrow {
  margin-bottom: 1.05rem;
}
.hero-copy .eyebrow:not(:has(svg))::before {
  content: '';
  width: 1.65rem;
  height: 1px;
  background: currentColor;
}
.hero-title {
  font-size: clamp(2rem, 4.95vw, 4.55rem);
  font-size: clamp(2rem, 11.8cqi, 4.55rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.hero-title em {
  display: block;
  color: var(--red);
  font-weight: 500;
  letter-spacing: -0.045em;
}
.hero-title:has(em) br {
  display: none;
}
.hero-desc {
  max-width: 42ch;
  margin-top: 1.16rem;
  color: var(--pine-soft);
  font-size: clamp(1.12rem, 1.45vw, 1.32rem);
  line-height: 1.45;
  text-wrap: pretty;
}
.actions,
.form-actions,
.mini-actions,
.owner-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}
.hero .actions {
  margin-top: 1.45rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.52rem;
  min-height: 2.95rem;
  padding: 0.66rem 1.14rem;
  border: 1px solid var(--rule-dark);
  border-radius: .7rem;
  background: var(--paper-light);
  color: var(--pine);
  font: 650 1.04rem/1.25 var(--sans);
  text-align: center;
  text-decoration: none;
  transition:
    background-color 140ms,
    border-color 140ms,
    transform 140ms;
}
.btn:hover {
  border-color: var(--pine-soft);
  background: var(--paper-deep);
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn.primary {
  border-color: var(--red);
  background: var(--red);
  color: #fffaf1;
  box-shadow: 0 2px 0 #792b2d;
}
.btn.primary:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
}
.btn.secondary {
  border-color: #a6aa99;
  background: transparent;
}
.btn.secondary:hover {
  border-color: var(--pine);
  background: #f0eee3;
}
.btn.text-btn,
.text-btn:not(.btn) {
  border: 0;
  background: transparent;
  color: var(--red);
  font: 650 1rem/1.35 var(--sans);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}
.btn.small {
  min-height: 2.75rem;
  padding: 0.38rem 0.75rem;
  font-size: 0.94rem;
}
.btn.danger {
  border-color: #d6a7a0;
  background: #fff6f1;
  color: var(--red-dark);
}
.btn.danger:hover {
  border-color: var(--red);
  background: #f4e0d9;
}
.btn:disabled,
.btn[aria-disabled='true'] {
  opacity: 0.56;
  cursor: default;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.55rem;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.35;
}
.hero-meta > span {
  color: var(--ochre);
}
.hero-meta .icon {
  color: var(--pine-soft);
}
.gallery,
.steps {
  padding-block: clamp(2.4rem, 4vw, 3.6rem);
  border-top: 1px solid var(--rule);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  margin-bottom: 1.65rem;
}
.section-head .eyebrow,
.page-head .eyebrow,
.inbox-head .eyebrow {
  margin-bottom: 0.55rem;
}
.section-head h2,
.section h2,
.steps > h2 {
  font-size: clamp(1.95rem, 3vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
  font-weight: 500;
  text-wrap: balance;
}
.section-head p:not(.eyebrow) {
  max-width: 37rem;
  margin-top: 0.48rem;
  color: var(--muted);
  font-size: 1.04rem;
}
.section-head a:not(.btn),
.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  color: var(--red);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.section-head a:not(.btn) {
  padding-block: 0.34rem;
  font-size: 1rem;
}
button.inline-link {
  padding: 0.32rem 0;
  border: 0;
  background: transparent;
  font: 600 1rem/1.4 var(--sans);
}
.card-grid,
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.1vw, 1.7rem);
}
.card-tile {
  display: block;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper-light);
  color: var(--pine);
  text-align: left;
  text-decoration: none;
}
:is(a, button).card-tile {
  transition:
    border-color 150ms,
    box-shadow 150ms,
    transform 150ms;
}
:is(a, button).card-tile:hover,
.card-tile:focus-within {
  border-color: #a59c87;
  box-shadow: 0 4px 10px #4436290d;
}
.card-tile > a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.card-art {
  display: block;
  width: 100%;
  aspect-ratio: 1.67;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-deep);
  object-fit: cover;
}
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tile-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.4rem 0.7rem;
  padding: 0.88rem 1.02rem 0.95rem;
}
.tile-title {
  min-width: 0;
  font: 500 clamp(1.25rem, 1.82vw, 1.65rem)/1.18 var(--serif);
  letter-spacing: -0.035em;
}
.tile-tag {
  flex: none;
  color: var(--muted);
  font: 600 0.65rem/1.4 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tile-tag .icon {
  width: 1.03rem;
  height: 1.03rem;
  color: var(--pine-soft);
}
.step-grid {
  gap: clamp(1.1rem, 2.7vw, 2.3rem);
}
.step {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 0.3rem clamp(0.7rem, 1.1vw, 1rem);
}
.step-stamp {
  grid-row: span 2;
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  margin-top: 0.04rem;
}
.step h3 {
  font-weight: 500;
  font-size: clamp(1.24rem, 1.63vw, 1.5rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.step p {
  max-width: 30rem;
  color: var(--pine-soft);
  font-size: 1.055rem;
  line-height: 1.4;
  text-wrap: pretty;
}
.home-steps {
  padding-block: clamp(1.95rem, 3.3vw, 2.9rem) clamp(2.1rem, 3.4vw, 3rem);
}
.home-steps .section-head {
  margin-bottom: 1.4rem;
}
.site-foot {
  border-top: 1px dashed #a9bca4;
  background: #eaf0df;
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: 5.15rem;
  padding-block: 1.1rem;
  color: var(--muted);
  font-size: 0.96rem;
}
.foot-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
}
.foot-inner a:not(.brand) {
  text-underline-offset: 0.21em;
}

/* Forms and reusable paper panels */
.inner {
  padding-block: clamp(2.65rem, 5vw, 4.75rem) clamp(3.8rem, 7vw, 6.2rem);
}
.inner:not(.shell):not(:has(> .shell)) {
  width: min(calc(100% - var(--gutter) - var(--gutter)), var(--page-width));
  margin-inline: auto;
}
.shell.narrow {
  max-width: 48rem;
}
.page-head,
.inbox-head {
  margin-bottom: clamp(1.5rem, 3vw, 2.35rem);
}
.page-head h1,
.inbox-head h1,
.reveal h1 {
  font-weight: 500;
  font-size: clamp(2.38rem, 4.9vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: -0.048em;
  text-wrap: balance;
}
.page-head h1 em,
.inbox-head h1 em,
.reveal h1 em {
  color: var(--red);
  font-weight: 500;
}
.page-head p:not(.eyebrow),
.inbox-head p:not(.eyebrow) {
  max-width: 62ch;
  margin-top: 0.7rem;
  color: var(--pine-soft);
  font-size: clamp(1.1rem, 1.4vw, 1.2rem);
  line-height: 1.45;
}
.inner .section + .section,
.inner .section + .paper {
  margin-top: 2.25rem;
}
.paper {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid var(--rule);
  border-radius: .9rem;
  background: var(--paper-light);
  box-shadow: 0 2px 1px #4e382805;
}
.paper h2,
.dialog h2,
.reveal h2 {
  font-size: clamp(1.65rem, 2.5vw, 2.32rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
}
.paper h3 {
  font-size: 1.65rem;
  line-height: 1.15;
}
.paper > .field + .field,
.paper > .field + .hint {
  margin-top: 1.1rem;
}
.paper > :is(.notice, .error):not(:empty) {
  margin-top: 0.85rem;
}
.info-copy h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.7rem, 2.5vw, 2.25rem);
}
.info-copy p + h2 {
  margin-top: 1.6rem;
}
.info-copy p {
  color: var(--pine-soft);
}
.sample-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: #eff0e5;
}
.sample-panel::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 7px;
  border: 1px dashed #b3b8a3;
  border-radius: 2px;
}
.sample-panel .eyebrow {
  margin-bottom: 0.55rem;
}
.sample-panel p:not(.eyebrow) {
  max-width: 27rem;
  margin: 0.65rem 0 1.1rem;
  color: var(--pine-soft);
}
.sample-stamp {
  width: 4rem;
  margin-bottom: 0.9rem;
  transform: rotate(3deg);
}
.sample-stamp img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 3px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem 1.35rem;
  align-items: start;
}
.maker-grid {
  align-items: stretch;
}
.form-grid > :is(.full, .wide, .span-2, .form-actions, .notice, .error) {
  grid-column: 1 / -1;
}
.field,
.preview-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  gap: 0.4rem;
}
fieldset.field {
  margin: 0;
  padding: 0;
  border: 0;
}
.field > label,
.field > legend,
.field > span:first-child:not(.hint),
.preview-field > label {
  color: var(--pine);
  font-weight: 650;
  font-size: 1.04rem;
  line-height: 1.35;
}
.field > legend {
  padding: 0;
  margin-bottom: 0.4rem;
}
input:not([type='radio'], [type='checkbox'], [type='button'], [type='submit'], [type='hidden']),
textarea,
select {
  width: 100%;
  min-width: 0;
  min-height: 2.95rem;
  padding: 0.61rem 0.8rem;
  border: 1px solid #a9a38f;
  border-radius: .5rem;
  background: #fffef9;
  color: var(--pine);
  font: 400 1.08rem/1.45 var(--sans);
}
input::placeholder,
textarea::placeholder {
  color: #656d61;
  opacity: 1;
}
textarea {
  display: block;
  min-height: 7.5rem;
  resize: vertical;
}
select {
  padding-right: 1.85rem;
}
input[type='radio'],
input[type='checkbox'] {
  accent-color: var(--pine);
}
input[aria-invalid='true'],
textarea[aria-invalid='true'] {
  border-color: var(--red);
}
.hint,
.detail-list small {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
}
.field .hint {
  font-weight: 400;
}
.form-actions {
  margin-top: 1.3rem;
}
.form-grid > .form-actions {
  margin-top: 0.25rem;
}
.error:not(:empty),
.notice:not(:empty) {
  padding: 0.72rem 0.88rem;
  border: 1px solid;
  border-radius: 3px;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
.error:not(:empty) {
  border-color: #dfbcb4;
  background: #faece5;
  color: #882b27;
}
.notice:not(:empty) {
  border-color: #bac9b6;
  background: #eef3e9;
  color: #294c34;
}
.theme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.theme-option,
.template-choice {
  position: relative;
  border: 1px solid var(--rule-dark);
  border-radius: 4px;
  background: #fffdf7;
  color: var(--pine);
  cursor: pointer;
}
.theme-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 2.8rem;
  padding: 0.43rem 0.78rem;
  font-size: 1rem;
  font-weight: 600;
}
.swatch {
  display: inline-block;
  flex: none;
  width: 0.92rem;
  height: 0.92rem;
  border: 1px solid #203a2c30;
  border-radius: 50%;
  background: var(--swatch, var(--theme-color, var(--red)));
}
.swatch.holly {
  --swatch: #9d302c;
}
.swatch.evergreen {
  --swatch: #45664d;
}
.swatch.frost {
  --swatch: #7294a6;
}
.theme-option input[type='radio'],
.template-choice input[type='radio'] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
:is(.theme-option, .template-choice):is(:hover, :focus-within) {
  border-color: var(--pine-soft);
}
:is(.theme-option, .template-choice):is(:has(input:checked), [aria-pressed='true'], .selected) {
  border-color: var(--pine);
  box-shadow: inset 0 0 0 1px var(--pine);
  background: #eff0e7;
}
:is(.theme-option, .template-choice):has(input:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.selection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.template-choice {
  display: block;
  min-width: 0;
  padding: 4px;
  overflow: hidden;
  text-align: left;
  font: 600 0.98rem/1.3 var(--sans);
}
.template-choice img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 1px;
}
.template-choice > :is(span, strong, small):not(.sr-only) {
  display: block;
  padding: 0.45rem 0.35rem 0.25rem;
}
.code-form {
  display: grid;
  gap: 1rem;
  max-width: 33rem;
}
.code-form > .btn {
  justify-self: start;
}
.input-row {
  display: flex;
  align-items: stretch;
  gap: 0.55rem;
}
.input-row > :is(input, .field) {
  flex: 1;
  min-width: 0;
}
.input-row > button {
  flex: none;
}
.wrap {
  flex-wrap: wrap;
  overflow-wrap: break-word;
}
.card-composer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: stretch;
}
.card-composer > *,
.inbox-head > * {
  min-width: 0;
}
.card-preview {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #faf4e5;
}
.card-preview.paper {
  padding: 0;
}
.card-preview > img,
.card-preview > picture img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.card-preview .preview-field {
  display: block;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  border-top: 1px solid var(--rule);
}
.card-preview .label {
  margin-bottom: 0.7rem;
}
.preview-message,
.note-letter {
  color: #3a4637;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.preview-message {
  padding: 1.25rem 1.4rem;
  font: 400 clamp(1.1rem, 1.5vw, 1.3rem)/1.53 var(--serif);
}
.preview-field .preview-message {
  margin: 0.75rem 0 1.05rem;
  padding: 0;
}
.preview-field > p:last-child:not(.preview-message) {
  font: italic 500 1.1rem/1.45 var(--serif);
  color: var(--pine-soft);
}
.reveal {
  min-width: 0;
}
.reveal > p {
  margin-block: 0.65rem 1rem;
  color: var(--muted);
}
.inbox-head {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.inbox-head:has(> h1) {
  display: block;
}
.inbox-head h1,
.page-head h1,
.preview-field h2,
.card-sign {
  overflow-wrap: anywhere;
}
.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 6px;
  background: #e7e1d3;
}
.progress-track > * {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--pine-soft);
}
.day-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.55rem, 1.25vw, 1rem);
}
.board-heading {
  margin: 2rem 0 1rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.day-grid + .hint {
  margin-top: 0.85rem;
}
.door {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.33rem;
  min-width: 0;
  min-height: clamp(6.3rem, 8.8vw, 7.7rem);
  padding: 0.85rem 0.95rem;
  isolation: isolate;
  border: 1px solid #c7bfac;
  border-radius: 3px;
  background: #f4efe3;
  color: var(--pine);
  border-color: color-mix(in srgb, var(--door-color, #6d735e) 23%, #d5cdbb);
  background: color-mix(in srgb, var(--door-color, #6d735e) 4%, #f9f5e9);
  font: 600 0.9rem/1.25 var(--sans);
  text-align: left;
  text-decoration: none;
}
.door::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 4px;
  border: 1px dashed currentColor;
  border-radius: 1px;
  opacity: 0.28;
  pointer-events: none;
}
.door :is(strong, b, .door-number, .day-number),
.door > span:first-child {
  font: 500 clamp(1.875rem, 2.9vw, 2.65rem)/1 var(--serif);
  letter-spacing: -0.045em;
  font-variant-numeric: lining-nums tabular-nums;
}
.door small {
  font-size: 0.92rem;
  line-height: 1.25;
}
.day-grid .door small {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 100%;
}
.door:not(.filled) small {
  color: var(--muted);
}
.door.filled {
  border-color: var(--door-color, #9faa94);
  background: #e9ede1;
  background: color-mix(in srgb, var(--door-color, #71836d) 13%, var(--paper));
  color: color-mix(in srgb, var(--door-color, #314d35) 85%, #131c16);
}
.door.ready {
  border-color: var(--door-color, #385942);
  background: var(--door-color, #36543d);
  color: #fffae9;
}
.door.open {
  border-color: #c5b491;
  background: #f4e9d0;
  color: #66512b;
}
.door.today {
  border: 2px solid var(--red);
}
.door.chosen,
.door[aria-pressed='true'] {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}
.door:enabled:hover {
  border-color: var(--pine);
  transform: translateY(-1px);
}
.door:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.door:disabled {
  cursor: default;
}
.share-box {
  margin-block: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ochre);
  border-radius: 3px;
  background: #f6f0df;
  overflow-wrap: anywhere;
}
.share-box.paper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.4rem;
}
.share-box .code-label {
  display: block;
  margin-bottom: 0.3rem;
}
.mini-actions,
.owner-tools {
  gap: 0.5rem;
}
details.owner-tools {
  display: block;
  margin-top: 1rem;
  padding: 1.15rem 1.3rem;
}
.owner-tools summary {
  cursor: pointer;
  font-weight: 650;
}
.owner-tools p {
  margin: 0.65rem 0 0.85rem;
  color: var(--muted);
}
.paper > h2 + p {
  margin-top: 0.5rem;
  color: var(--pine-soft);
}
.inbox-list,
.detail-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.inbox-list > :is(a, li, article) {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem 1.3rem;
  padding: 1rem 0;
}
.inbox-list > :is(a, li, article) + :is(a, li, article) {
  border-top: 1px solid var(--rule);
}
.detail-list > * + * {
  margin-top: 0.65rem;
}
.letter-divider {
  height: 1px;
  margin: 1.35rem 0;
  border: 0;
  background: var(--rule);
}
.empty-state {
  padding: 2rem 1rem;
  border: 1px dashed var(--rule-dark);
  border-radius: 4px;
  text-align: center;
}
.empty-state p {
  margin: 0.55rem auto 1rem;
  max-width: 35rem;
  color: var(--muted);
}

/* Reading a card */
.dialog {
  position: relative;
  width: min(43rem, calc(100% - 2.5rem));
  max-height: min(88vh, 52rem);
  max-height: min(88dvh, 52rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--rule-dark);
  border-radius: 6px;
  background: var(--paper-light);
  color: var(--pine);
  box-shadow: 0 16px 65px #17261c40;
}
dialog.dialog {
  position: fixed;
  inset: 0;
}
dialog.dialog:not([open]) {
  display: none;
}
.dialog::backdrop {
  background: #17251cd1;
  background: rgb(26 39 30 / 52%);
}
.dialog-close {
  position: absolute;
  z-index: 2;
  top: 0.8rem;
  right: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--rule-dark);
  border-radius: 50%;
  background: var(--paper-light);
  color: var(--pine);
}
.dialog-close:hover {
  border-color: var(--pine);
}
#dialog-body:not(:has(> .note-letter, > .card-reader)) {
  padding: clamp(1.35rem, 4vw, 2.5rem);
}
#dialog-body > :is(h2, .eyebrow):first-child,
.dialog .note-letter > .eyebrow {
  padding-right: 2.5rem;
}
#dialog-body > p:not(.eyebrow, .error),
#dialog-body > .actions {
  margin-top: 0.8rem;
}
#dialog-body > form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
#dialog-body > .eyebrow {
  margin-bottom: 0.55rem;
}
#dialog-body > form > .btn {
  justify-self: start;
}
.card-reader {
  overflow: hidden;
}
.card-reader.paper {
  padding: 0;
}
.card-reader .preview-field {
  display: block;
  padding: clamp(1.4rem, 3.4vw, 2.55rem);
}
.card-reader .label {
  margin-bottom: 0.55rem;
}
.card-reader .letter-text {
  max-width: 54ch;
  margin: 0.95rem 0 1.3rem;
  font: 400 clamp(1.16rem, 1.8vw, 1.45rem)/1.53 var(--serif);
}
.card-actions {
  margin-top: 1.15rem;
}
.art-cover,
.art-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 1.8;
  object-fit: cover;
}
.art-cover {
  overflow: hidden;
}
.art-cover img {
  height: 100%;
}
.note-letter {
  padding: clamp(1.3rem, 4.3vw, 2.6rem);
  font: 400 clamp(1.16rem, 1.8vw, 1.4rem)/1.53 var(--serif);
  white-space: normal;
}
.note-letter p + p {
  margin-top: 0.75em;
}
.note-letter > .eyebrow {
  margin-bottom: 0.55rem;
}
.note-letter > h2 + p,
.note-letter > .actions {
  margin-top: 0.8rem;
}
.note-letter .letter-text + .label {
  margin: 1.25rem 0 0.35rem;
}
.toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 2rem);
  padding: 0.68rem 1.02rem;
  border-radius: 4px;
  background: var(--pine);
  color: #fffbed;
  font: 550 1rem/1.35 var(--sans);
  text-align: center;
  box-shadow: 0 3px 13px #17251c28;
}

@media (max-width: 960px) {
  .hero,
  .hero > .shell {
    gap: 2rem;
  }
  .day-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .card-composer {
    gap: 1.25rem;
  }
}
@media (min-width: 761px) and (max-width: 920px) {
  .hero .actions {
    gap: 0.5rem;
  }
  .hero .btn {
    gap: 0.4rem;
    padding-inline: 0.65rem;
    font-size: 1rem;
  }
}
@media (max-width: 920px) {
  .header-inner {
    min-height: 64px;
    justify-content: space-between;
    gap: 0.75rem;
  }
  .nav-links {
    display: none;
  }
  .header-inner > .nav-code {
    margin-left: auto;
  }
  .header-actions {
    margin-left: auto;
    gap: 0.5rem;
  }
  .inbox-shortcut {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.52rem;
    border: 1px solid var(--rule-dark);
    border-radius: 4px;
    background: transparent;
    color: var(--pine);
  }
  .nav-toggle .icon {
    width: 1.2rem;
    height: 1.2rem;
  }
  .mobile-only {
    display: initial;
  }
  .mobile-menu {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    display: grid;
    gap: 0.2rem;
    padding: 0.55rem var(--gutter) 0.8rem;
    border-block: 1px solid var(--rule);
    background: var(--paper);
    box-shadow: 0 6px 12px #263c270d;
  }
  .mobile-menu a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding-inline: 0.25rem;
  }
}
@media (max-width: 760px) {
  :root {
    --gutter: clamp(1rem, 5.2vw, 2.25rem);
  }
  .hero,
  .hero > .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }
  .hero {
    padding-block: clamp(2rem, 6vw, 2.75rem) clamp(2.6rem, 7vw, 3.4rem);
  }
  .hero-copy .eyebrow {
    margin-bottom: 1rem;
  }
  .hero-desc {
    max-width: 44ch;
    margin-top: 1rem;
  }
  .hero .actions {
    margin-top: 1.3rem;
  }
  .hero-art {
    justify-self: center;
    max-width: 32rem;
    width: 94%;
    margin: 0.15rem 0 0.6rem;
    padding-inline: 0.3rem;
  }
  .stamp-frame {
    padding: 0.9rem;
    transform: rotate(2deg);
  }
  .postmark {
    right: -0.4rem;
  }
  .card-grid,
  .step-grid {
    gap: 0.9rem;
  }
  .tile-caption {
    align-items: center;
    gap: 0.32rem;
    padding: 0.75rem;
  }
  .step-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .step {
    gap: 0.25rem 0.95rem;
    padding-block: 0.85rem;
  }
  .step + .step {
    border-top: 1px solid var(--rule);
  }
  .home-steps .section-head {
    margin-bottom: 0.45rem;
  }
  .step h3 {
    font-size: 1.35rem;
  }
  .step p {
    max-width: 50ch;
  }
  .card-composer {
    grid-template-columns: minmax(0, 1fr);
  }
  .inbox-head {
    align-items: start;
  }
}
@media (max-width: 570px) {
  .gallery,
  .steps {
    padding-block: 2.1rem 2.55rem;
  }
  .section-head {
    gap: 0.45rem 1rem;
    margin-bottom: 1.18rem;
  }
  .card-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.05rem;
  }
  .tile-caption {
    flex-direction: row;
    align-items: center;
    padding: 0.82rem 0.95rem;
  }
  .tile-title {
    font-size: 1.42rem;
  }
  .home-steps {
    padding-block: 1.75rem 1.2rem;
  }
  .foot-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
    padding-block: 1.35rem;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
  .inner {
    padding-block: 2.15rem 3rem;
  }
  .paper {
    padding: 1.1rem;
  }
  .form-actions {
    align-items: stretch;
  }
  .form-actions > .btn {
    flex: 1 1 8rem;
  }
  .share-box .mini-actions {
    width: 100%;
  }
  .share-box .mini-actions > .btn {
    flex: 1 1 8.2rem;
    padding-inline: 0.65rem;
  }
  .selection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .door {
    padding: 0.65rem;
    min-height: 6.15rem;
  }
  .door small {
    font-size: 0.875rem;
  }
  .dialog {
    width: calc(100% - 1.1rem);
    max-height: 92vh;
    max-height: 92dvh;
  }
  .dialog-close {
    top: 0.55rem;
    right: 0.55rem;
  }
  input:not([type='radio'], [type='checkbox'], [type='button'], [type='submit'], [type='hidden']),
  textarea,
  select {
    font-size: 1.0625rem;
  }
}
@media (max-width: 440px) {
  .day-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.52rem;
  }
  .header-inner {
    gap: 0.45rem;
  }
  .nav-code {
    min-height: 2.75rem;
    padding-inline: 0.62rem;
    font-size: 0.97rem;
  }
  .nav-code > .icon {
    display: none;
  }
  .hero .actions {
    gap: 0.5rem;
  }
  .hero .btn {
    padding-inline: 0.78rem;
    font-size: 1rem;
  }
  .input-row {
    flex-wrap: wrap;
  }
  .input-row > :is(input, .field) {
    flex-basis: 10rem;
  }
}
@media (max-width: 360px) {
  .header-inner {
    width: calc(100% - 1.5rem);
    gap: 0.3rem;
  }
  .header-actions {
    gap: 0.28rem;
  }
  .nav-code {
    padding-inline: 0.34rem;
    font-size: 0.94rem;
  }
  .door {
    padding-inline: 0.47rem;
  }
  .hero .actions .btn {
    flex: 1 1 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
@media (forced-colors: active) {
  :is(.theme-option, .template-choice):is(:has(input:checked), [aria-pressed='true']),
  .door[aria-pressed='true'] {
    outline: 2px solid Highlight;
  }
}
