@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/spectral-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/spectral-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/spectral-400italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/spectral-400italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/spectral-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/spectral-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Special Elite';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/special-elite-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Special Elite';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/special-elite-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Patrick Hand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/patrick-hand-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Patrick Hand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/patrick-hand-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Architects Daughter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/architects-daughter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Architects Daughter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/architects-daughter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #40342a;
  --ink-dim: #5b4c3d;
  --ink-faint: rgba(91, 76, 61, 0.8);
  --ink-ghost: rgba(64, 52, 42, 0.38);
  --paper-top: #fbf6e6;
  --paper-mid: #f5eeda;
  --paper-bot: #efe4c9;
  --paper-field: rgba(255, 252, 242, 0.8);
  --rule: rgba(120, 96, 54, 0.16);
  --rule-soft: rgba(120, 96, 54, 0.26);
  --rule-hair: rgba(120, 96, 54, 0.14);
  --brass: rgba(168, 132, 47, 0.75);
  --brass-soft: rgba(168, 132, 47, 0.45);
  --green: #5f8a3a;
  --green-deep: #456628;
  --ember: #b8541f;
  --hand: 'Patrick Hand', 'Architects Daughter', cursive;
  --serif: Spectral, Georgia, serif;
  --type: 'Special Elite', 'Courier New', monospace;
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --pad: clamp(26px, 5.5vw, 56px);
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-anchor: none;
}

body {
  user-select: none;
  -webkit-user-select: none;
  background-color: #e6e6dc;
  background-image:
    radial-gradient(72% 46% at 82% 4%, rgba(242, 205, 210, 0.38) 0%, rgba(242, 205, 210, 0) 62%),
    radial-gradient(90% 60% at 14% 2%, rgba(255, 253, 245, 0.7) 0%, rgba(255, 253, 245, 0) 60%),
    linear-gradient(179deg, #dde9ed 0%, #e8e7db 44%, #f0e2c6 100%),
    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='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.12' numOctaves='3'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23c)' opacity='0.04'/%3E%3C/svg%3E");
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a {
  color: var(--green-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green);
}

::selection {
  background: rgba(95, 138, 58, 0.22);
}

::placeholder {
  color: var(--ink-ghost);
}

:focus-visible {
  outline: 2px dashed var(--green);
  outline-offset: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

input,
textarea {
  user-select: text;
  -webkit-user-select: text;
}

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper-0);
  font-family: var(--type);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip:focus {
  left: 8px;
  top: 8px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 6px clamp(14px, 4vw, 40px) clamp(28px, 4vw, 48px);
}

.band {
  width: 100%;
  max-width: 880px;
  box-sizing: border-box;
}

.desk {
  flex: 1 1 auto;
  display: flex;
}

.sheet {
  --line: 36px;
  --margin: 64px;
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-height: calc(100vh - 230px);
  box-sizing: border-box;
  padding: calc(var(--line) * 1.5) clamp(22px, 5vw, 56px) calc(var(--line) * 2) calc(var(--margin) + 18px);
  border: 1px solid var(--rule);
  border-radius: 4px;
  background-color: var(--paper-top);
  background-image: repeating-linear-gradient(180deg, transparent 0 calc(var(--line) - 1px), rgba(47, 93, 140, 0.22) calc(var(--line) - 1px) var(--line));
  background-position: 0 calc(var(--line) * 0.5);
  box-shadow: 0 26px 64px -30px rgba(58, 44, 26, 0.55), 0 2px 0 rgba(255, 255, 255, 0.5) inset;
  animation: tf-settle 480ms var(--ease-soft) both;
}

.sheet::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--margin);
  width: 2px;
  background: rgba(184, 84, 31, 0.36);
  pointer-events: none;
}

.sheet > * {
  position: relative;
}

.sheet[hidden] {
  display: none;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.salutation {
  margin: 0;
  padding-right: 120px;
}

.greet {
  display: block;
  font-family: var(--hand);
  font-size: 29px;
  line-height: var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.greet.is-writing {
  animation: tf-write 0.7s var(--ease-soft) 1.05s both;
}

.greet--old {
  position: relative;
  color: var(--ink-faint);
  width: fit-content;
  max-width: 100%;
}

.greet[hidden] {
  display: none;
}

.greet--old[hidden] {
  display: none;
}

.scribble {
  position: absolute;
  left: -6px;
  right: -6px;
  top: 4px;
  width: calc(100% + 12px);
  height: calc(var(--line) - 8px);
  overflow: visible;
  pointer-events: none;
}

.scribble path {
  fill: none;
  stroke: var(--ember);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  opacity: 0.85;
}

.greet--old.is-struck .scribble path {
  animation: tf-scribble 0.9s cubic-bezier(0.4, 0, 0.6, 1) both;
}

.letter__body {
  font-family: var(--hand);
  font-size: 22px;
  line-height: var(--line);
  margin: 0;
  padding-right: 120px;
  min-height: var(--line);
  text-wrap: pretty;
}

.phrase {
  cursor: pointer;
  border-radius: 3px;
  padding: 0 1px;
  text-decoration: underline dotted var(--brass);
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
  transition: background-color 0.2s var(--ease-soft), text-decoration-color 0.2s var(--ease-soft);
}

.phrase:hover {
  background-color: rgba(95, 138, 58, 0.13);
  text-decoration-color: var(--green);
}

.caret {
  display: inline-block;
  width: 0.62em;
  border-bottom: 2px solid rgba(64, 52, 42, 0.42);
  vertical-align: baseline;
}

.caret[hidden] {
  display: none;
}

.doodle {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 72px;
  color: rgba(64, 52, 42, 0.34);
  z-index: 1;
}

.doodle[hidden] {
  display: none;
}

.doodle svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.dial__art {
  transform: rotate(-4deg);
  transform-origin: 36px 36px;
}

.dial__track {
  opacity: 0.55;
}

.dial__arc {
  transition: stroke-dashoffset 560ms var(--ease-soft), stroke 320ms linear;
}

.ask {
  margin: var(--line) 0 0;
  animation: tf-ink 360ms var(--ease-soft) both;
}

.ask[hidden] {
  display: none;
}

.ask__legend {
  display: block;
  margin: 0;
  font-family: var(--type);
  font-size: 12.5px;
  line-height: var(--line);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(91, 76, 61, 0.92);
}

.ask__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
}

.ask__opt {
  box-sizing: border-box;
  height: var(--line);
  margin: 0;
  padding: 0 14px;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: calc(var(--line) - 2px);
  text-align: left;
  color: var(--ink);
  background: var(--paper-field);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-soft), border-color 0.2s var(--ease-soft);
}

.ask__opt:hover {
  background-color: rgba(95, 138, 58, 0.11);
  border-color: rgba(95, 138, 58, 0.55);
}

.ask__opt:active {
  background-color: rgba(69, 102, 40, 0.16);
}

.ask__row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ask__field {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  height: var(--line);
  margin: 0;
  padding: 0 12px;
  font-family: var(--hand);
  font-size: 21px;
  line-height: calc(var(--line) - 2px);
  color: var(--ink);
  background: var(--paper-field);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  outline: none;
}

.ask__field:focus-visible {
  outline: 2px dashed var(--green);
  outline-offset: 3px;
}

.pick {
  position: relative;
  flex: none;
}

.pick[hidden] {
  display: none;
}

.pick__btn {
  box-sizing: border-box;
  min-width: 112px;
  height: var(--line);
  margin: 0;
  padding: 0 34px 0 16px;
  font-family: var(--type);
  font-size: 13.5px;
  line-height: calc(var(--line) - 2px);
  letter-spacing: 0.12em;
  text-align: left;
  color: var(--ink);
  background-color: var(--paper-field);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b4c3d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 11px 8px;
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease-soft), background-color 0.2s var(--ease-soft);
}

.pick__btn:hover,
.pick.is-open .pick__btn {
  border-color: rgba(95, 138, 58, 0.55);
  background-color: rgba(95, 138, 58, 0.08);
}

.pick__btn:focus-visible {
  outline: 2px dashed var(--green);
  outline-offset: 3px;
}

.pick__list {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 20;
  min-width: 100%;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--paper-top);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  box-shadow: 0 18px 36px -18px rgba(58, 44, 26, 0.6);
}

.pick__list[hidden] {
  display: none;
}

.pick__opt {
  padding: 0 14px;
  height: 32px;
  line-height: 32px;
  font-family: var(--type);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--ink);
  border-radius: 5px;
  cursor: pointer;
  outline: none;
}

.pick__opt:hover,
.pick__opt:focus {
  background: rgba(95, 138, 58, 0.12);
}

.pick__opt[aria-selected="true"] {
  color: var(--green-deep);
}

.review__turnstile {
  display: flex;
  justify-content: flex-start;
}

.review__turnstile:not(:empty) {
  margin-top: var(--line);
}

.note {
  margin: 0;
  font-size: 15px;
  line-height: var(--line);
  color: var(--ink-dim);
}

.note[hidden] {
  display: none;
}

.aside {
  margin: 0;
  padding: 0 14px;
  font-size: 15px;
  line-height: var(--line);
  color: var(--ink-dim);
  border-left: 2px solid var(--brass-soft);
  background-color: rgba(255, 252, 242, 0.6);
}

.aside[hidden] {
  display: none;
}

.aside--warn {
  border-left-color: rgba(184, 84, 31, 0.4);
  background-color: rgba(224, 129, 47, 0.06);
}

.write {
  margin: var(--line) 0 0;
  animation: tf-ink 400ms var(--ease-soft) both;
}

.write[hidden] {
  display: none;
}

.write__label {
  display: block;
  margin: 0;
  font-family: var(--type);
  font-size: 12.5px;
  line-height: var(--line);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(91, 76, 61, 0.92);
}

.write__area {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--hand);
  font-size: 22px;
  line-height: var(--line);
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  resize: none;
  overflow: hidden;
  outline: none;
}

.write__area:focus-visible {
  outline: 2px dashed var(--green);
  outline-offset: 6px;
}

.hint,
.err,
.field__hint {
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: var(--line);
  color: var(--ink-faint);
}

.err {
  color: var(--ember);
}

.hint[hidden],
.err[hidden],
.field__hint[hidden] {
  display: none;
}

.sign {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: var(--line) 0 0;
}

.sign__word {
  font-family: var(--hand);
  font-size: 22px;
  line-height: var(--line);
  white-space: nowrap;
}

.sign__line {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  height: var(--line);
  margin: 0;
  padding: 0 4px;
  font-family: var(--hand);
  font-size: 22px;
  line-height: var(--line);
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: none;
}

.sign__line:focus-visible {
  outline: 2px dashed var(--green);
  outline-offset: 2px;
}

.fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 24px;
  margin: var(--line) 0 0;
}

.field {
  display: flex;
  flex-direction: column;
  min-height: calc(var(--line) * 3);
}

.field[hidden] {
  display: none;
}

.field__label {
  margin: 0;
  font-family: var(--type);
  font-size: 11.5px;
  line-height: var(--line);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(91, 76, 61, 0.92);
}

.field__input {
  box-sizing: border-box;
  height: var(--line);
  margin: 0;
  padding: 0 12px;
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: calc(var(--line) - 2px);
  color: var(--ink);
  background: var(--paper-field);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  outline: none;
}

.field__input:focus-visible {
  outline: 2px dashed var(--green);
  outline-offset: 3px;
}

.btn {
  box-sizing: border-box;
  height: var(--line, 36px);
  margin: 0;
  padding: 0 24px;
  font-family: var(--type);
  font-size: 12.5px;
  line-height: calc(var(--line, 36px) - 2px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(69, 102, 40, 0.65);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s var(--ease-soft), transform 0.2s var(--ease-soft);
}

.btn:hover {
  background-color: rgba(95, 138, 58, 0.12);
  transform: translateY(-1px);
}

.btn:active {
  background-color: rgba(69, 102, 40, 0.18);
  transform: translateY(0);
}

.btn[disabled] {
  cursor: default;
  opacity: 0.7;
  transform: none;
}

.btn--quiet {
  border-color: rgba(120, 96, 54, 0.5);
}

.btn--quiet:hover {
  background-color: rgba(95, 138, 58, 0.1);
}

.btn--small {
  padding: 0 14px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.send {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 16px;
  margin: var(--line) 0 0;
}

.send__aside {
  font-size: 14px;
  line-height: var(--line);
  color: var(--ink-faint);
}

.btn--copy {
  position: relative;
  text-align: center;
}

.btn--copy::after {
  content: "Copied successfully";
  display: block;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

.btn__dots {
  display: inline-block;
  min-width: 1.9em;
  white-space: nowrap;
  text-align: left;
}

.btn__dots::after {
  content: " .";
  animation: tf-copydots 0.9s steps(1, end) forwards;
}

@keyframes tf-copydots {
  0% {
    content: " .";
  }
  33% {
    content: " . .";
  }
  66%, 100% {
    content: " . . .";
  }
}

.btn--copy.is-copying {
  color: var(--ink-faint);
}

.btn--copy.is-copied {
  border-color: var(--green);
  background-color: rgba(95, 138, 58, 0.14);
  animation: tf-pop 320ms var(--ease-soft) both;
}

.fail {
  margin: var(--line) 0 0;
  padding: 0 14px;
  border-left: 2px solid rgba(184, 84, 31, 0.5);
  background-color: rgba(224, 129, 47, 0.07);
}

.fail[hidden] {
  display: none;
}

.fail p {
  font-size: 15px;
  line-height: var(--line);
  margin: 0;
}

.draft {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin: 8px 0 0;
  padding: 10px 16px;
  border: 1px solid rgba(120, 96, 54, 0.28);
  border-radius: 10px;
  background-color: rgba(255, 252, 242, 0.72);
}

.draft[hidden] {
  display: none;
}

.draft__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.draft__acts {
  display: flex;
  gap: 10px;
  --line: 34px;
}

.review {
  animation: tf-ink 400ms var(--ease-soft) both;
}

.review[hidden] {
  display: none;
}

.review__letter {
  font-family: var(--hand);
  font-size: 22px;
  line-height: var(--line);
  padding-right: 24px;
  user-select: text;
}

.review__letter p {
  margin: 0;
  text-wrap: pretty;
  white-space: pre-wrap;
}

.review__greet {
  font-size: 29px;
}

.review__gap {
  height: var(--line);
}

.review__ask {
  margin: var(--line) 0 0;
  font-family: var(--type);
  font-size: 12.5px;
  line-height: var(--line);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(91, 76, 61, 0.92);
}

.review__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  margin: 0;
}

.sent {
  text-align: center;
  padding: var(--line) 0 0;
  animation: tf-ink 400ms var(--ease-soft) both;
}

.sent[hidden] {
  display: none;
}

.sent__seal {
  display: block;
  width: auto;
  height: calc(var(--line) * 4);
  margin: 0 auto var(--line);
  transform-origin: 50% 100%;
  animation: tf-hop 0.6s var(--ease-heavy) 0.12s both;
}

@keyframes tf-hop {
  0% {
    transform: translateY(0);
  }
  32% {
    transform: translateY(-14px) scale(1.02, 0.98);
  }
  52% {
    transform: translateY(0) scale(0.98, 1.03);
  }
  72% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}

.sent__title {
  margin: 0;
  font-family: var(--hand);
  font-size: 30px;
  font-weight: 400;
  line-height: var(--line);
}

.sent__lede {
  margin: 0 auto;
  max-width: 44ch;
  font-size: 17px;
  line-height: var(--line);
  color: var(--ink-dim);
}

.sent__note {
  margin: 0 auto;
  max-width: 40ch;
  font-size: 14px;
  line-height: var(--line);
  color: rgba(91, 76, 61, 0.85);
}

.sent__acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 12px;
  margin: var(--line) 0 0;
}

.sending {
  text-align: center;
  padding: calc(var(--line) * 2) 0 0;
}

.sending[hidden] {
  display: none;
}

.sending__env {
  display: block;
  width: auto;
  height: calc(var(--line) * 5);
  margin: 0 auto var(--line);
  overflow: visible;
}

.sending__paper {
  transform-box: view-box;
  transform: translateY(22px);
}

.sending__flap {
  transform-box: fill-box;
  transform-origin: 50% 0;
  transform: scaleY(-1);
}

.sending__line {
  margin: 0;
  font-family: var(--type);
  font-size: 13px;
  line-height: var(--line);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.sending__line::after {
  content: "";
  display: inline-block;
  width: 1.4em;
  white-space: nowrap;
  text-align: left;
  animation: tf-linedots 1.2s steps(4, end) infinite;
}

@keyframes tf-linedots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: ". .";
  }
  75% {
    content: ". . .";
  }
  100% {
    content: "";
  }
}

@keyframes tf-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes tf-scribble {
  from {
    stroke-dashoffset: 100;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes tf-write {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes tf-ink {
  from {
    transform: translateY(4px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes tf-settle {
  from {
    transform: translateY(6px);
  }
  to {
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .sheet {
    --margin: 40px;
    padding-left: calc(var(--margin) + 14px);
    padding-right: 16px;
    min-height: calc(100vh - 260px);
  }

  .salutation,
  .letter__body {
    padding-right: 0;
  }

  .greet {
    font-size: 24px;
  }

  .letter__body,
  .write__area,
  .sign__word,
  .sign__line,
  .ask__field {
    font-size: 20px;
  }

  .doodle {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sheet,
  .ask,
  .write,
  .sent,
  .review,
  .sent__seal,
  .sending__line::after,
  .btn--copy.is-copied {
    animation: none;
  }

  .greet.is-writing,
  .greet--old.is-struck .scribble path,
  .btn__dots::after {
    animation: none;
  }

  .greet--old.is-struck .scribble path {
    stroke-dashoffset: 0;
  }

  .dial__arc,
  .phrase,
  .ask__opt,
  .btn {
    transition: none;
  }
}

.ns {
  --ns-bg: #241d16;
  --ns-card: #f5edd6;
  --ns-ink: #40342a;
  --ns-dim: rgba(64, 52, 42, 0.6);
  --ns-line: rgba(96, 76, 52, 0.24);
  --ns-acc: #8a5a2e;
  --ns-hover: rgba(138, 90, 46, 0.08);
  --ns-font: "Spectral", Georgia, serif;
  --ns-head: "Architects Daughter", "Patrick Hand", cursive;
}

.ns {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  scrollbar-width: none;
  padding: clamp(16px, 5vw, 56px) clamp(14px, 4vw, 32px);
  background: var(--ns-bg);
  color: var(--ns-ink);
  font-family: var(--ns-font);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.ns::-webkit-scrollbar {
  display: none;
}

.ns__defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ns__card {
  width: 100%;
  max-width: 620px;
  margin: auto;
  padding: clamp(26px, 5vw, 44px) clamp(20px, 5vw, 40px);
  border: 1px solid var(--ns-line);
  border-radius: 14px;
  background: var(--ns-card);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}

.ns__brand {
  margin: 0;
  font-family: var(--ns-head);
  font-size: clamp(24px, 5vw, 31px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ns-ink);
}

.ns__kicker {
  margin: 8px 0 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ns-acc);
}

.ns__lede {
  margin: 18px 0 0;
  font-size: 14.5px;
  color: var(--ns-dim);
}

.ns__rule {
  height: 1px;
  margin: 24px 0;
  border: 0;
  background: var(--ns-line);
}

.ns__label {
  margin: 0 0 10px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ns-dim);
}

.ns__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ns__nav a {
  font-size: 14px;
  color: var(--ns-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ns-line);
}

.ns__nav a:hover,
.ns__nav a:focus-visible {
  color: var(--ns-acc);
  border-bottom-color: var(--ns-acc);
}

.ns__socials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(122px, 1fr));
  gap: 6px 10px;
}

.ns__soc {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ns-ink);
  text-decoration: none;
}

.ns__soc:hover,
.ns__soc:focus-visible {
  border-color: var(--ns-line);
  color: var(--ns-acc);
  background: var(--ns-hover);
}

.ns__ico {
  width: 16px;
  height: 16px;
  flex: none;
  fill: currentColor;
  opacity: 0.85;
}

.ns__cta {
  display: inline-block;
  margin-top: 4px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--ns-acc);
  color: var(--ns-card);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ns__cta:hover,
.ns__cta:focus-visible {
  filter: brightness(1.08);
}

.ns__foot {
  margin: 22px 0 0;
  font-size: 12px;
  color: var(--ns-dim);
}

.ns__foot a {
  color: var(--ns-dim);
}

@media (prefers-reduced-motion: no-preference) {
  .ns__soc,
  .ns__nav a,
  .ns__cta {
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, filter 0.18s ease;
  }
}

.ns__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 16px 0 0;
  font-size: 12.5px;
}

.ns__legal a {
  color: var(--ns-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.ns__legal a:hover,
.ns__legal a:focus-visible {
  color: var(--ns-acc);
  border-bottom-color: var(--ns-acc);
}

.ns__founder {
  margin: 14px 0 0;
  font-size: 12px;
}

.ns__founder a {
  color: var(--ns-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.ns__founder a:hover,
.ns__founder a:focus-visible {
  color: var(--ns-acc);
  border-bottom-color: var(--ns-acc);
}

:root {
  --moss: var(--green);
  --moss-deep: var(--green-deep);
  --paper-0: var(--paper-top);
  --font-type: var(--type);
  --font-hand: var(--hand);
  --font-body: var(--serif);
  --edge: var(--rule);
  --edge-2: var(--rule-soft);
  --ease-heavy: cubic-bezier(0.2, 0.8, 0.3, 1);
  --sb-size: 12px;
  --sb-mid: var(--green);
  --sb-hi: var(--green-deep);
  --sb-rail: rgba(240, 232, 214, 0.1);
  --sb-grip: rgba(18, 22, 12, 0.42);
}

.ctx {
  position: fixed;
  z-index: 9500;
  min-width: 244px;
  max-width: 292px;
  padding: 18px 10px 20px;
  background-color: #fffbee;
  clip-path: polygon(0% 2.2%, 6% 0.5%, 13% 1.8%, 21% 0.3%, 29% 1.6%, 38% 0.4%, 47% 1.7%, 56% 0.5%, 65% 1.8%, 74% 0.4%, 83% 1.6%, 92% 0.6%, 100% 2%, 98.9% 12%, 100% 24%, 98.6% 36%, 100% 48%, 98.8% 60%, 100% 72%, 98.7% 84%, 100% 96%, 93% 98.4%, 85% 100%, 76% 98.2%, 67% 99.8%, 58% 98.4%, 49% 100%, 40% 98.5%, 31% 99.9%, 22% 98.3%, 13% 99.8%, 5% 98.4%, 0% 97%, 1.2% 86%, 0% 74%, 1.4% 62%, 0% 50%, 1.1% 38%, 0% 26%, 1.3% 14%);
  filter: drop-shadow(0 0 1px rgba(64, 52, 42, 0.7)) drop-shadow(0 18px 30px rgba(20, 12, 4, 0.72));
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95) rotate(-0.7deg);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.15s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.15s cubic-bezier(0.33, 1, 0.68, 1),
    visibility 0s linear 0.15s;
}

.ctx.is-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1) rotate(-0.7deg);
  pointer-events: auto;
  transition-delay: 0s;
}

.ctx.is-flip-x { transform-origin: top right; }
.ctx.is-flip-y { transform-origin: bottom left; }
.ctx.is-flip-x.is-flip-y { transform-origin: bottom right; }

.ctx__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 14px 11px;
  font-family: "Special Elite", "Courier Prime", "Courier New", monospace;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a5a2e;
}

.ctx__item {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 8px 14px;
  border-radius: 7px;
  font-family: "Spectral", Georgia, serif;
  font-size: 14.5px;
  color: #241f18;
  background: none;
  border: 0;
  cursor: pointer;
  transition: background 0.16s cubic-bezier(0.33, 1, 0.68, 1),
    color 0.16s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.16s cubic-bezier(0.33, 1, 0.68, 1);
}

.ctx__item:hover,
.ctx__item:focus-visible {
  background: rgba(138, 90, 46, 0.14);
  color: #5d3a17;
  transform: translateX(3px);
}

.ctx__ico {
  flex: none;
  width: 18px;
  text-align: center;
  font-size: 13px;
  opacity: 0.72;
}

.ctx__svg {
  width: 15px;
  height: 15px;
  display: block;
}

.ctx__item:hover .ctx__ico {
  opacity: 1;
}

.ctx__ext {
  margin-left: auto;
  font-family: "Special Elite", "Courier Prime", "Courier New", monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: rgba(36, 31, 24, 0.45);
}

.ctx__sep {
  height: 2px;
  margin: 8px 12px;
  background: repeating-linear-gradient(90deg, rgba(28, 26, 22, 0.22) 0 5px, transparent 5px 12px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 90;
  padding: 11px 22px;
  border-radius: 20px;
  background: var(--moss);
  color: var(--paper-0);
  font-family: var(--font-type);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.22s var(--ease-soft), transform 0.22s var(--ease-soft);
}

.toast.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
}

.opt {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  font-family: inherit;
}

.opt[hidden] {
  display: none;
}

.opt__scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 10, 0.52);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.opt__panel {
  position: relative;
  width: min(92vw, 360px);
  box-sizing: border-box;
  padding: 22px 22px 18px;
  border-radius: 6px;
  background: #f7efd9;
  border: 1px solid rgba(120, 96, 54, 0.16);
  box-shadow: 0 26px 60px -30px rgba(20, 16, 10, 0.8);
  color: #1c1a16;
}

.opt__head {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1c1a16;
}

.opts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.opt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 38px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(120, 96, 54, 0.14);
}

.opt-row:last-child {
  border-bottom: 0;
}

.opt__text {
  min-width: 0;
}

.opt__name {
  font-size: 13.5px;
  color: #1c1a16;
}

.opt__ctl {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.tickbox {
  position: relative;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex: none;
}

.tickbox__box {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  border: 1px solid rgba(28, 26, 22, 0.4);
  background: rgba(255, 253, 244, 0.7);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tickbox__tick {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 15px;
  line-height: 1;
  color: #456628;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.tickbox[aria-checked="true"] .tickbox__tick {
  opacity: 1;
  transform: none;
}

.tickbox[aria-checked="true"] .tickbox__box {
  border-color: #5f8a3a;
  background: rgba(95, 138, 58, 0.14);
}

.tickbox:hover .tickbox__box {
  border-color: rgba(28, 26, 22, 0.7);
}

.tickbox:focus-visible {
  outline: 2px solid #5f8a3a;
  outline-offset: 3px;
  border-radius: 5px;
}

.dial {
  -webkit-appearance: none;
  appearance: none;
  width: 116px;
  height: 20px;
  flex: none;
  background: none;
  cursor: pointer;
}

.dial::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #a8842f, rgba(120, 96, 54, 0.24));
}

.dial::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #a8842f, rgba(120, 96, 54, 0.24));
}

.dial::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e3c07a, #a8842f);
  border: 1px solid rgba(28, 26, 22, 0.35);
}

.dial::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e3c07a, #a8842f);
  border: 1px solid rgba(28, 26, 22, 0.35);
}

.dial:focus-visible {
  outline: 2px solid #5f8a3a;
  outline-offset: 4px;
}

.dial__val {
  min-width: 2.6ch;
  font-size: 11.5px;
  color: rgba(28, 26, 22, 0.62);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.opt__foot {
  margin: 14px 0 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(28, 26, 22, 0.62);
}

.opt__close {
  margin-top: 16px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 4px;
  border: 1px solid rgba(28, 26, 22, 0.4);
  background: rgba(255, 253, 244, 0.6);
  color: #1c1a16;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.opt__close:hover {
  background: rgba(95, 138, 58, 0.12);
  border-color: #5f8a3a;
}

.opt__close:focus-visible {
  outline: 2px solid #5f8a3a;
  outline-offset: 2px;
}

:root {
  --sb-size: 12px;
  --sb-mid: var(--moss);
  --sb-hi: var(--moss-deep);
  --sb-rail: rgba(120, 96, 54, 0.2);
  --sb-grip: rgba(247, 239, 217, 0.55);
}

::-webkit-scrollbar {
  width: var(--sb-size);
  height: var(--sb-size);
}

::-webkit-scrollbar-track {
  background-color: transparent;
  background-image: linear-gradient(var(--sb-rail), var(--sb-rail));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1px 84%;
}

::-webkit-scrollbar-track:horizontal {
  background-size: 84% 1px;
}

::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 99px;
  background-clip: padding-box;
  background-color: var(--sb-mid);
  background-image:
    linear-gradient(var(--sb-grip), var(--sb-grip)),
    linear-gradient(var(--sb-grip), var(--sb-grip)),
    linear-gradient(var(--sb-grip), var(--sb-grip));
  background-repeat: no-repeat;
  background-position: center calc(50% - 4px), center 50%, center calc(50% + 4px);
  background-size: 4px 1px;
  transition: background-color 0.18s ease;
}

::-webkit-scrollbar-thumb:horizontal {
  min-height: 0;
  min-width: 44px;
  background-position: calc(50% - 4px) center, 50% center, calc(50% + 4px) center;
  background-size: 1px 4px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--sb-hi);
}

::-webkit-scrollbar-corner {
  background: transparent;
}

@supports (-moz-appearance: none) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--sb-mid) transparent;
  }

  html.has-sb {
    scrollbar-width: none;
  }
}

.sb {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 9400;
  width: var(--sb-size);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.sb.is-live,
.sb.is-drag,
.sb:hover {
  opacity: 1;
}

.sb.is-off {
  display: none;
}

.sb__track {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--sb-rail), var(--sb-rail));
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1px 84%;
}

.sb__thumb {
  position: absolute;
  top: 0;
  left: 2px;
  right: 2px;
  min-height: 44px;
  border-radius: 99px;
  background-color: var(--sb-mid);
  background-image:
    linear-gradient(var(--sb-grip), var(--sb-grip)),
    linear-gradient(var(--sb-grip), var(--sb-grip)),
    linear-gradient(var(--sb-grip), var(--sb-grip));
  background-repeat: no-repeat;
  background-position: center calc(50% - 4px), center 50%, center calc(50% + 4px);
  background-size: 4px 1px;
  cursor: grab;
  touch-action: none;
  transition: background-color 0.18s ease;
}

.sb__thumb:hover,
.sb.is-drag .sb__thumb {
  background-color: var(--sb-hi);
}

.sb.is-drag .sb__thumb {
  cursor: grabbing;
}

@media (prefers-reduced-motion: reduce) {
  .sb,
  .sb__thumb {
    transition: none;
  }
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 46px);
}

.masthead__mid {
  min-height: 1px;
}

.masthead__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.masthead__mark {
  display: inline-block;
  flex: none;
  width: clamp(52px, 5vw, 68px);
  transform-origin: 50% 88%;
  filter: drop-shadow(0 4px 8px rgba(64, 44, 26, 0.25));
  transition: transform 0.3s var(--ease-soft), filter 0.3s var(--ease-soft);
}

.masthead__mark img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1243 / 848;
  object-fit: contain;
  transform-origin: 50% 88%;
  transform: rotate(-3deg);
}

.masthead__mark:hover {
  transform: scale(1.12);
  filter: drop-shadow(0 7px 12px rgba(64, 44, 26, 0.35));
}

.masthead__mark:active {
  transform: scale(0.93);
}

.masthead__text {
  min-width: 0;
  line-height: 1;
}

.masthead__name {
  display: block;
  font-family: "Architects Daughter", var(--hand), cursive;
  font-size: clamp(21px, 3vw, 30px);
  font-weight: 400;
  color: var(--ink);
}

.masthead__tag {
  display: block;
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.masthead__brand:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
  border-radius: 4px;
}

.masthead__aside {
  display: flex;
  align-items: center;
  justify-self: end;
  flex: none;
}

.ghost-btn {
  box-sizing: border-box;
  line-height: 1.65;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1.8px solid var(--rule-soft);
  background: none;
  box-shadow: none;
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-faint);
  transition: transform 0.18s var(--ease-soft), color 0.18s var(--ease-soft),
    border-color 0.2s var(--ease-soft);
}

.ghost-btn:hover {
  color: var(--ink);
  border-color: var(--ink-faint);
  transform: translateY(-1px);
}

.ghost-btn:focus-visible {
  outline: 2px dashed var(--green);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .masthead {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .masthead__mid {
    display: none;
  }

  .masthead__aside {
    justify-self: start;
  }

  .ghost-btn {
    min-height: 44px;
  }
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px clamp(20px, 3.5vw, 60px) calc(12px + env(safe-area-inset-bottom));
  font-family: var(--type);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-dim);
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-soft);
}

.footer > * {
  pointer-events: auto;
}

.footer:hover,
.footer:focus-within {
  opacity: 1;
}

.legal {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  text-align: right;
}

.legal__link {
  font-family: var(--type);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  text-decoration: none;
  opacity: 0.78;
  transition: opacity 0.3s var(--ease-soft), color 0.3s var(--ease-soft);
}

.legal__link:hover {
  opacity: 1;
  color: var(--ink);
}

.legal__sep {
  color: var(--ink-ghost);
  font-size: 10px;
}

@media (max-width: 640px) {
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal {
    text-align: left;
  }
}

html {
  -webkit-tap-highlight-color: rgba(95, 138, 58, 0.18);
}

.page {
  min-height: 100vh;
  min-height: 100svh;
}

main {
  padding-left: max(clamp(14px, 4vw, 40px), env(safe-area-inset-left));
  padding-right: max(clamp(14px, 4vw, 40px), env(safe-area-inset-right));
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

@media (max-width: 640px) {
  main {
    padding-bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

@media (hover: none) {
  .ask__opt:hover {
    background-color: var(--paper-field);
    border-color: var(--rule-soft);
  }

  .btn:hover {
    transform: none;
    background-color: transparent;
  }

  .btn--quiet:hover {
    background-color: transparent;
  }

  .ghost-btn:hover {
    transform: none;
    color: var(--ink-faint);
    border-color: var(--rule-soft);
  }

  .phrase:hover {
    background-color: transparent;
    text-decoration-color: var(--brass);
  }

  .masthead__mark:hover {
    transform: none;
  }

  .legal__link:hover {
    opacity: 0.78;
  }
}

@media (pointer: coarse) {
  .legal__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .ask__opt,
  .btn,
  .field__input,
  .ask__field {
    min-height: 44px;
  }

  .sheet {
    --line: 44px;
  }
}
