@font-face {
  font-family: Walkway;
  src: url("/assets/fonts/Walkway-SemiBold.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Special Elite";
  src: url("/assets/fonts/SpecialElite-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  --scene-paper: #fff;
  --scene-ink: #000;
  --paper-ink: #25231f;
  --paper-texture: 0.055;
  --scene-blur: 4px;
  --paper-enter: 620ms;
  --paper-leave: 420ms;
  --flap-time: 650ms;
  --ui-font: Walkway, "Helvetica Neue", sans-serif;
  --letter-font: "Special Elite", "Courier New", monospace;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--scene-paper);
  color: var(--scene-ink);
  font-family: var(--ui-font);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100svh;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.46;
}
a {
  color: inherit;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.15;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible,
select:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}
input:focus-visible,
textarea:focus-visible {
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
h1,
h2,
p {
  margin: 0;
}
h1,
h2 {
  font-weight: 400;
}
.text-button {
  padding: 5px 0;
  font-size: 14px;
  text-decoration: underline;
  text-decoration-thickness: 0.6px;
  text-underline-offset: 4px;
}
.text-button:hover {
  opacity: 0.65;
}
.ink-button {
  border: 1px solid currentColor;
  border-radius: 2px;
  padding: 11px 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-size: 16px;
  background: transparent;
}
.ink-button:hover {
  background: color-mix(in srgb, currentColor 6%, transparent);
}
.ink-button span {
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1;
}
.quiet-button {
  font-size: 15px;
  padding: 10px 15px;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
}
.icon-button svg {
  width: 27px;
  height: 27px;
}
.eyebrow {
  font-family: var(--letter-font);
  font-size: 11px;
  letter-spacing: 0.03em;
  opacity: 0.6;
}
.form-status {
  font-family: var(--ui-font);
  font-size: 14px;
  line-height: 1.5;
  min-height: 22px;
}
.form-status:not(:empty) {
  margin-top: 13px;
}
.error {
  color: #9e3428;
}
.initial-state {
  padding-top: 45px;
  text-align: center;
  font-family: var(--letter-font);
  font-size: 12px;
  opacity: 0.6;
}
.small-envelope {
  display: block;
  width: 48px;
  height: 30px;
  border: 1px solid currentColor;
  margin: 0 auto 25px;
  position: relative;
  transform: rotate(-4deg);
}
.small-envelope:after {
  content: "";
  position: absolute;
  width: 32px;
  height: 32px;
  left: 7px;
  top: -17px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: rotate(45deg);
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
body {
  transition:
    background-color var(--scene-fade, 0ms) linear,
    color var(--scene-fade, 0ms) linear;
}
#desk {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  transition:
    filter var(--paper-enter),
    transform var(--paper-enter),
    opacity var(--paper-enter);
  transform-origin: 50% 42%;
}
.masthead {
  position: absolute;
  z-index: 3;
  top: 27px;
  left: 38px;
  right: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--letter-font);
  font-size: 22px;
  letter-spacing: -0.07em;
  text-decoration: none;
}
.wordmark-dot {
  margin-left: 2px;
}
.masthead-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.weather-caption {
  font-family: var(--letter-font);
  font-size: 10px;
  letter-spacing: 0.02em;
  opacity: 0.63;
}
.arrival {
  width: min(560px, 100% - 40px);
  margin: 0 auto;
  padding-top: clamp(124px, 19svh, 205px);
  padding-bottom: 285px;
  text-align: center;
}
.home h1 {
  font-size: 33px;
  letter-spacing: 0.01em;
  margin: 12px 0 26px;
}
.envelope-stack {
  width: 288px;
  height: 190px;
  position: relative;
  margin: 0 auto;
  perspective: 1000px;
  isolation: isolate;
}
.envelope-stack .stack-back {
  position: absolute;
  inset: 28px 14px 13px;
  background: #fff;
  border: 1px solid #272622;
  transform: rotate(-6deg);
  z-index: -1;
  box-shadow: 0 2px 2px #00000008;
}
.envelope-stack .stack-back.second {
  transform: rotate(5deg);
  inset: 29px 14px 14px;
}
.envelope {
  position: absolute;
  width: 264px;
  height: 164px;
  left: 12px;
  top: 15px;
  padding: 0;
  overflow: visible;
  color: #272622;
  isolation: isolate;
  perspective: 900px;
  text-align: center;
  transform: rotate(-2deg);
  transition: transform 0.5s;
}
.envelope:hover {
  transform: rotate(0) translateY(-3px);
}
.envelope:focus-visible {
  outline-offset: 12px;
}
.envelope .envelope-back {
  position: absolute;
  inset: 0;
  background: #fdfdfb;
  border: 1px solid #38352d;
  box-shadow: 0 3px 8px #00000008;
  z-index: -1;
}
.envelope .envelope-insert {
  position: absolute;
  inset: 16px 15px 8px;
  background: #fff;
  border: 1px solid #dad8d0;
  transform: translateY(0);
  transition: transform 0.65s 0.1s;
  z-index: 0;
  overflow: hidden;
}
.envelope .envelope-insert:before {
  content: "";
  position: absolute;
  left: 23px;
  top: 22px;
  width: 140px;
  height: 46px;
  background: repeating-linear-gradient(
    transparent 0 13px,
    #aaa79b66 13px 14px,
    transparent 14px 16px
  );
}
.envelope .envelope-front {
  position: absolute;
  inset: 0;
  background: #fdfdfb;
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%);
  border: 1px solid #38352d;
  z-index: 2;
}
.envelope .envelope-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  stroke-width: 0.7;
  stroke: #484338;
  pointer-events: none;
}
.envelope .envelope-flap {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 85px;
  transform-origin: 50% 0;
  transform: rotateX(0);
  transition:
    transform var(--flap-time),
    z-index 0s 0.3s;
  z-index: 5;
  backface-visibility: visible;
}
.envelope-flap svg {
  width: 100%;
  height: 100%;
  fill: #fdfdfb;
  stroke: #484338;
  stroke-width: 0.7;
}
.envelope .envelope-seal {
  position: absolute;
  top: 62px;
  left: calc(50% - 13px);
  height: 26px;
  width: 26px;
  border: 1px solid #8d887c;
  border-radius: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  transition: opacity 0.2s;
  background: #f4f3ee;
}
.envelope-seal svg {
  width: 15px;
  height: 15px;
  stroke-width: 1;
}
.envelope .envelope-address {
  position: absolute;
  top: 105px;
  left: 18px;
  right: 18px;
  z-index: 4;
  font-family: var(--letter-font);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.envelope .envelope-stamp {
  position: absolute;
  top: 13px;
  right: 12px;
  z-index: 4;
  width: 23px;
  height: 28px;
  border: 1px dashed #77715f;
  transform: rotate(3deg);
  font-family: var(--letter-font);
  font-size: 15px;
  display: grid;
  place-items: center;
  opacity: 0.45;
}
.envelope.is-open {
  transform: rotate(0);
}
.envelope.is-open .envelope-flap {
  transform: rotateX(180deg);
  z-index: -1;
}
.envelope.is-open .envelope-seal {
  opacity: 0;
}
.envelope.is-open .envelope-insert {
  transform: translateY(-42px);
}
.envelope.is-open:hover .envelope-insert {
  transform: translateY(-49px);
}
.envelope.is-open .envelope-stamp {
  opacity: 0;
}
.stack-caption {
  font-family: var(--letter-font);
  font-size: 11px;
  margin-top: 9px;
  min-height: 18px;
  opacity: 0.6;
}
.refresh-letters {
  font-size: 12px;
  opacity: 0.5;
  padding: 2px 8px;
  margin-top: 5px;
}
.desk-actions {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 73px;
  margin-top: 28px;
}
.desk-action {
  min-width: 108px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  transition: transform 0.25s;
}
.desk-action:hover {
  transform: translateY(-3px);
}
.desk-action > svg {
  width: 44px;
  height: 40px;
  margin-bottom: 8px;
  stroke-width: 1;
}
.action-detail {
  font-family: var(--letter-font);
  font-size: 9px;
  opacity: 0.45;
  line-height: 1.8;
}
.archive-button .box-lid {
  transform-origin: 50% 19px;
  transition: transform 0.35s;
}
.archive-button:hover .box-lid {
  transform: rotate(-7deg) translateY(-2px);
}
.empty-envelope {
  opacity: 0.65;
  transform: rotate(-3deg);
  position: absolute;
  inset: 35px 12px 10px;
  border: 1px solid currentColor;
  background: var(--scene-paper);
}
.empty-envelope svg {
  width: 100%;
  height: 100%;
  stroke-width: 0.7;
}
.empty-sprig {
  position: absolute;
  width: 80px;
  height: 100px;
  top: 18px;
  left: 110px;
  transform: rotate(14deg);
  background: var(--scene-paper);
}
.empty-sprig svg {
  width: 100%;
  height: 100%;
  stroke-width: 1;
}
.empty-envelope-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  font-family: var(--letter-font);
  font-size: 12px;
}
.scene-footer {
  position: absolute;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 25px;
  right: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  pointer-events: none;
}
.scene-footer > * {
  pointer-events: auto;
}
.scene-footer .text-button {
  font-size: 10px;
  opacity: 0.6;
  background: var(--scene-paper);
  padding: 3px 6px;
}
#connection-status:not(:empty) {
  background: var(--scene-paper);
  padding: 4px 7px;
}
.auth {
  width: 310px;
  max-width: 100%;
  margin: 0 auto;
  text-align: left;
}
.auth-flower {
  height: 55px;
  width: 48px;
  display: block;
  margin: 0 auto 22px;
  stroke-width: 0.8;
}
.auth h1 {
  font-size: 31px;
  line-height: 1.2;
  text-align: center;
}
.auth .intro {
  text-align: center;
  font-size: 16px;
  opacity: 0.65;
  margin: 10px 0 29px;
}
.auth label:not(.check-label) {
  font-size: 12px;
  display: block;
  margin: 0 0 7px;
  opacity: 0.7;
}
.auth input[type="email"],
.auth input[type="text"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  border-radius: 0;
  background: transparent;
  color: inherit;
  padding: 10px 2px;
  font-size: 18px;
  box-shadow: none;
  line-height: 1.6;
}
.auth input::placeholder {
  color: inherit;
  opacity: 0.35;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin: 16px 0 24px;
  cursor: pointer;
}
.check-label input {
  accent-color: currentColor;
  width: 13px;
  height: 13px;
  margin: 0;
}
.auth .ink-button {
  width: 100%;
  margin-top: 5px;
}
.auth .text-button {
  font-size: 12px;
  margin: 13px 14px 0 0;
}
.code-explanation {
  font-size: 14px;
  margin-bottom: 21px;
  opacity: 0.7;
}
.auth-status {
  padding-top: 4px;
}
.auth #code {
  letter-spacing: 0.2em;
  font-family: var(--letter-font);
  font-size: 20px;
}
.auth #code::placeholder {
  font-family: var(--ui-font);
  letter-spacing: 0;
  font-size: 17px;
}
body.paper-focus #desk {
  filter: blur(var(--scene-blur));
  transform: scale(1.035);
  pointer-events: none;
}
body.paper-focus #scene {
  filter: blur(var(--scene-blur));
  transform: scale(1.025);
}
#scene {
  transition:
    filter var(--paper-enter),
    transform var(--paper-enter);
  transform-origin: 50% 45%;
}
dialog {
  border: 0;
  color: var(--paper-ink);
  background: transparent;
  padding: 0;
}
dialog::backdrop {
  background: transparent;
}
#paper-layer {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 27px 24px 50px;
  scrollbar-width: thin;
}
.paper-shell {
  width: min(690px, 100%);
  margin: 0 auto;
  opacity: 0;
  transform: translate(var(--origin-x, 0px), var(--origin-y, 90px)) scale(0.68)
    rotate(-3deg);
  transform-origin: 50% 35%;
  transition:
    opacity var(--paper-enter),
    transform var(--paper-enter) cubic-bezier(0.2, 0.65, 0.15, 1);
}
#paper-layer.is-visible .paper-shell {
  opacity: 1;
  transform: translate(0, 0) scale(1) rotate(0);
}
#paper-layer.is-closing .paper-shell {
  opacity: 0;
  transform: translate(var(--origin-x, 0px), var(--origin-y, 70px)) scale(0.78)
    rotate(-2deg);
  transition-duration: var(--paper-leave);
}
.paper-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 3px;
  color: var(--scene-ink);
  background: var(--scene-paper);
  box-shadow: 0 7px 10px var(--scene-paper);
  transition:
    background-color var(--scene-fade) linear,
    color var(--scene-fade) linear;
  min-height: 35px;
  gap: 20px;
}
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 7px 0;
  min-height: 40px;
}
.back-button svg {
  width: 35px;
  height: 21px;
}
.save-status {
  font-family: var(--letter-font);
  font-size: 10px;
  opacity: 0.65;
  text-align: right;
  line-height: 1.6;
}
.save-status.error {
  opacity: 1;
}
.letter-paper {
  position: relative;
  isolation: isolate;
  background: #fff;
  color: var(--paper-ink);
  min-height: 530px;
  padding: 49px 58px 56px;
  box-shadow:
    0 3px 35px #0000000d,
    0 1px 2px #00000008;
  border: 1px solid #f1f0eb;
  overflow-wrap: anywhere;
}
.letter-paper:before,
.utility-paper:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--paper-texture);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
}
.letter-header {
  margin-bottom: 35px;
}
.letter-header h2 {
  font-family: var(--letter-font);
  font-size: 17px;
  line-height: 1.6;
}
.letter-header p {
  font-family: var(--letter-font);
  font-size: 10px;
  opacity: 0.53;
  margin-top: 10px;
}
.letter-body,
.letter-editor,
.letter-signature {
  font-family: var(--letter-font);
  font-size: 18px;
  line-height: 1.85;
  letter-spacing: 0.015em;
  text-shadow: 0.15px 0 0.4px #28251b29;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-synthesis: none;
}
.letter-editor {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  resize: none;
  background: transparent;
  color: var(--paper-ink);
  min-height: 300px;
  overflow: hidden;
  border-radius: 0;
  outline: none !important;
  caret-color: #222;
  box-shadow: none;
}
.letter-editor::placeholder {
  color: #8d887e;
  font-size: 16px;
  opacity: 0.7;
}
.letter-body:focus {
  outline: none;
}
.letter-signature {
  margin-top: 34px;
}
.paper-actions {
  display: flex;
  justify-content: flex-end;
  gap: 17px;
  align-items: center;
  margin: 21px 1px 0;
  color: var(--scene-ink);
  flex-wrap: wrap;
}
.paper-actions .action-note {
  font-size: 12px;
  opacity: 0.6;
  margin-right: auto;
  max-width: 240px;
}
.paper-error {
  font-size: 14px;
  margin: 12px 2px 0;
  color: var(--scene-ink);
}
.notice-panel {
  background: #fff;
  color: #27231b;
  padding: 17px 20px;
  font-size: 14px;
  margin-bottom: 13px;
  border: 1px solid #c8c4b7;
}
.notice-panel p {
  margin-bottom: 11px;
}
.notice-panel button {
  margin-right: 16px;
}
.notice-panel details {
  margin: 12px 0;
}
.notice-panel summary {
  cursor: pointer;
  font-size: 13px;
}
.notice-panel pre {
  white-space: pre-wrap;
  max-height: 170px;
  overflow: auto;
  font-family: var(--letter-font);
  font-size: 12px;
  border-top: 1px solid #ddd9cf;
  padding-top: 12px;
}
.notice-panel h3 {
  font-weight: 400;
  font-size: 12px;
  margin: 12px 0 5px;
}
.sent-note {
  text-align: center;
  padding: 67px 0 38px;
}
.sent-note svg {
  display: block;
  width: 110px;
  height: 100px;
  margin: 0 auto 34px;
  stroke-width: 0.8;
}
.sent-note h3 {
  font-family: var(--ui-font);
  font-weight: 400;
  font-size: 34px;
  margin: 0 0 12px;
}
.sent-note p {
  font-size: 17px;
  opacity: 0.6;
}
.sent-note .seal {
  transform-origin: 50% 50%;
  animation: seal-in 700ms both;
}
@keyframes seal-in {
  from {
    transform: scale(1.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
body[data-theme="dark"] .letter-paper,
body[data-theme="dark"] .utility-paper {
  box-shadow: none;
  border-color: #f8f7f2;
}
#utility-layer {
  width: min(580px, calc(100% - 36px));
  max-height: calc(100dvh - 70px);
  overflow: auto;
  padding: 2px;
  margin: auto;
  overscroll-behavior: contain;
}
.utility-paper {
  position: relative;
  isolation: isolate;
  background: #fff;
  color: var(--paper-ink);
  padding: 43px 39px 38px;
  min-height: 220px;
  box-shadow: 0 2px 30px #0000000d;
  border: 1px solid #f1f0eb;
}
.utility-paper h2 {
  font-size: 30px;
  margin: 0 0 24px;
}
.utility-paper p {
  font-size: 15px;
  line-height: 1.65;
  margin: 12px 0;
}
.utility-paper a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.close-button {
  position: absolute;
  right: 15px;
  top: 10px;
  font-family: var(--ui-font);
  font-size: 28px;
  width: 36px;
  height: 36px;
  line-height: 1;
}
.archive-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #dedbd3;
  margin-bottom: 17px;
}
.archive-tabs button {
  font-size: 16px;
  padding: 10px 0;
  border-bottom: 1px solid transparent;
  margin-bottom: -1px;
}
.archive-tabs button[aria-selected="true"] {
  border-bottom-color: #222;
}
.archive-list {
  display: grid;
  gap: 3px;
  max-height: 50dvh;
  overflow: auto;
  padding: 4px 0;
}
.archive-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 17px;
  text-align: left;
  padding: 17px 0;
  border-bottom: 1px solid #eeece6;
}
.archive-item > svg {
  height: 39px;
  width: 52px;
  flex-shrink: 0;
  stroke-width: 0.75;
}
.archive-item .archive-info {
  min-width: 0;
  flex: 1;
}
.archive-item .archive-name {
  font-size: 17px;
  display: block;
}
.archive-item .archive-date {
  font-family: var(--letter-font);
  font-size: 10px;
  opacity: 0.55;
  display: block;
  margin-top: 6px;
}
.archive-item .archive-preview {
  font-size: 13px;
  opacity: 0.55;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 330px;
  margin-top: 7px;
}
.archive-empty {
  padding: 34px 10px 25px;
  text-align: center;
}
.archive-empty svg {
  width: 70px;
  height: 60px;
  display: block;
  margin: 0 auto 15px;
}
.settings-detail {
  font-family: var(--letter-font);
  font-size: 11px !important;
  opacity: 0.58;
}
.settings-group {
  border-top: 1px solid #e5e2da;
  padding-top: 18px;
  margin-top: 25px;
}
.settings-group button {
  display: block;
  text-align: left;
  margin: 8px 0;
}
.settings-confirm {
  border: 1px solid #c6c1b3;
  padding: 15px;
  margin-top: 20px;
}
.settings-confirm p {
  margin: 0 0 12px;
}
.toast {
  position: fixed;
  bottom: max(30px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: var(--scene-paper);
  color: var(--scene-ink);
  border: 1px solid currentColor;
  padding: 11px 23px;
  max-width: calc(100% - 30px);
  font-size: 14px;
  text-align: center;
  box-shadow: 0 2px 8px #00000008;
}
.review-tools {
  position: fixed;
  z-index: 8;
  left: 13px;
  bottom: 12px;
  width: 280px;
  background: #fffffff5;
  color: #222;
  border: 1px solid #c5c5c5;
  font-family: system-ui, sans-serif;
  font-size: 11px;
}
.review-tools summary {
  padding: 8px 12px;
  cursor: pointer;
}
.review-fields {
  padding: 7px 12px 12px;
}
.review-fields label {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
  align-items: center;
  margin: 7px 0;
}
.review-fields input,
.review-fields select {
  width: 100%;
}
.review-fields output {
  grid-column: 2;
}
.review-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.review-buttons button {
  border: 1px solid #aaa;
  padding: 6px;
  font-size: 11px;
}
.review-fields p {
  margin-top: 8px;
  opacity: 0.65;
}
.noscript {
  margin: 120px auto;
  width: 300px;
  text-align: center;
}
@media (min-width: 1100px) and (min-height: 850px) {
  .arrival {
    padding-top: 23svh;
  }
  .desk-actions {
    margin-top: 41px;
  }
  .home h1 {
    margin-bottom: 34px;
  }
  .envelope-stack {
    margin-top: 4px;
  }
}
@media (max-width: 600px) {
  :root {
    --scene-blur: 2.5px;
  }
  .masthead {
    top: max(18px, env(safe-area-inset-top));
    left: 23px;
    right: 12px;
  }
  .wordmark {
    font-size: 21px;
  }
  .weather-caption {
    font-size: 9px;
    max-width: 150px;
    text-align: right;
  }
  .masthead-right {
    gap: 5px;
  }
  .arrival {
    padding-top: clamp(112px, 19svh, 170px);
    padding-bottom: 240px;
  }
  .home h1 {
    font-size: 29px;
    margin: 10px 0 24px;
  }
  .eyebrow {
    font-size: 10px;
  }
  .envelope-stack {
    width: 258px;
    height: 178px;
  }
  .envelope {
    width: 242px;
    height: 151px;
    left: 8px;
  }
  .envelope .envelope-flap {
    height: 78px;
  }
  .envelope .envelope-seal {
    top: 57px;
  }
  .envelope .envelope-address {
    top: 98px;
    font-size: 12px;
  }
  .envelope-stack .stack-back {
    inset: 25px 8px 12px;
  }
  .envelope-stack .stack-back.second {
    inset: 25px 10px 10px;
  }
  .desk-actions {
    gap: 56px;
    margin-top: 21px;
  }
  .desk-action {
    font-size: 16px;
  }
  .scene-footer {
    left: 12px;
    right: 12px;
  }
  .empty-sprig {
    left: 96px;
  }
  .auth {
    width: 300px;
  }
  .auth h1 {
    font-size: 29px;
  }
  .auth-flower {
    height: 45px;
    margin-bottom: 18px;
  }
  .auth .intro {
    margin-bottom: 22px;
  }
  #paper-layer {
    padding: 12px 12px max(35px, env(safe-area-inset-bottom));
  }
  .paper-shell {
    width: 100%;
  }
  .paper-toolbar {
    margin-bottom: 9px;
    padding: 0 5px;
  }
  .save-status {
    font-size: 9px;
    max-width: 165px;
  }
  .back-button {
    font-size: 12px;
  }
  .letter-paper {
    padding: 34px 26px 40px;
    min-height: calc(100svh - 190px);
  }
  .letter-header {
    margin-bottom: 26px;
  }
  .letter-header h2 {
    font-size: 16px;
  }
  .letter-body,
  .letter-editor,
  .letter-signature {
    font-size: 16px;
    line-height: 1.85;
  }
  .letter-editor {
    min-height: 260px;
  }
  .paper-actions {
    gap: 8px;
    margin-top: 16px;
  }
  .paper-actions .ink-button {
    padding: 11px 16px;
    font-size: 15px;
  }
  .paper-actions .action-note {
    max-width: 170px;
    font-size: 11px;
  }
  .paper-actions .quiet-button {
    padding: 9px 8px;
    font-size: 14px;
  }
  .utility-paper {
    padding: 37px 24px 28px;
  }
  .utility-paper h2 {
    font-size: 28px;
  }
  .archive-item .archive-preview {
    max-width: 220px;
  }
  .notice-panel {
    padding: 14px;
  }
  .notice-panel button {
    font-size: 12px;
  }
  .scene-footer #about-weather {
    font-size: 9px;
  }
  .review-tools {
    width: 240px;
    opacity: 0.95;
  }
}
@media (max-height: 730px) and (min-width: 601px) {
  .arrival {
    padding-top: 110px;
  }
  .home h1 {
    margin-bottom: 17px;
    font-size: 29px;
  }
  .desk-actions {
    margin-top: 14px;
  }
  .desk-action > svg {
    height: 32px;
  }
  .auth-flower {
    height: 36px;
    margin-bottom: 12px;
  }
  .auth .intro {
    margin-bottom: 18px;
  }
  .auth h1 {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    --paper-enter: 1ms;
    --paper-leave: 1ms;
    --flap-time: 1ms;
  }
  *,
  *:before,
  *:after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .envelope .envelope-insert,
  .envelope,
  .desk-action,
  .archive-button .box-lid {
    transition-duration: 1ms;
  }
  .paper-shell,
  #paper-layer.is-closing .paper-shell {
    transform: none !important;
  }
}
