:root {
  color-scheme: light;
  --ivory: #fff4e4;
  --cream: #f8e6c8;
  --off-white: #fffaf0;
  --paper: #fff8e9;
  --paper-warm: #f9eddb;
  --milky-pink: #f3cfd0;
  --tulip-pink: #eaa0ad;
  --salmon: #e88976;
  --coral: #d95e49;
  --butter: #efd060;
  --light-yellow: #f8e8a7;
  --mint: #a9ceb4;
  --light-green: #d6e5c3;
  --deep-green: #1f4e3a;
  --moss: #5f7549;
  --deep-red: #a13f36;
  --blue: #2f62a2;
  --ink-soft: rgba(31, 78, 58, 0.42);
  --ink-faint: rgba(31, 78, 58, 0.14);
  --paper-shadow: rgba(86, 58, 43, 0.16);
  --blue-shadow: rgba(47, 98, 162, 0.16);
  --display: "Bodoni 72", Didot, "Times New Roman", serif;
  --poster: "Cooper Black", "Bookman Old Style", Georgia, serif;
  --body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  --jp-serif: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", "Noto Serif JP", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.56), rgba(243, 207, 208, 0.06) 34%, rgba(248, 230, 200, 0.42) 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0 1px, transparent 1px 19px),
    var(--milky-pink);
  color: var(--deep-green);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(95, 117, 73, 0.055) 0 1px, transparent 1px 8px),
    linear-gradient(115deg, transparent 0 41%, rgba(255, 244, 228, 0.52) 41% 42.4%, transparent 42.4% 100%);
  content: "";
  mix-blend-mode: multiply;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  padding: 10px 14px;
  border: 1px solid var(--deep-green);
  background: var(--off-white);
  color: var(--deep-green);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  display: grid;
  min-height: 94vh;
  min-height: 94dvh;
  padding: max(22px, env(safe-area-inset-top)) clamp(18px, 5vw, 64px) 42px;
  place-items: center;
  align-content: center;
  gap: 15px;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 18px 14px;
  z-index: -1;
  border: 1px solid rgba(31, 78, 58, 0.18);
  border-radius: 8px;
  box-shadow:
    inset 0 0 0 7px rgba(255, 250, 240, 0.2),
    0 0 0 1px rgba(161, 63, 54, 0.08);
  content: "";
  transform: rotate(-0.4deg);
}

.hero::after {
  position: absolute;
  right: 12%;
  bottom: 13%;
  z-index: -1;
  width: 120px;
  height: 28px;
  background:
    repeating-linear-gradient(90deg, rgba(47, 98, 162, 0.22) 0 7px, rgba(255, 244, 228, 0.72) 7px 14px);
  content: "";
  opacity: 0.52;
  transform: rotate(9deg);
}

.hero-visual {
  position: relative;
  width: min(88vw, 430px);
  height: 162px;
  margin: 0 auto 0;
  padding: 7px;
  border: 1.3px solid var(--deep-green);
  border-radius: 8px;
  background: var(--paper);
  box-shadow:
    8px 9px 0 var(--blue-shadow),
    0 16px 38px rgba(86, 58, 43, 0.1);
  transform: rotate(-1.6deg);
  clip-path: polygon(0.6% 1.8%, 99.2% 0.3%, 100% 97.8%, 1.1% 100%);
}

.hero-visual::before {
  position: absolute;
  top: -10px;
  left: 18%;
  z-index: 2;
  width: 88px;
  height: 20px;
  background:
    repeating-linear-gradient(90deg, rgba(217, 94, 73, 0.55) 0 8px, rgba(255, 250, 240, 0.78) 8px 16px);
  border: 1px solid rgba(31, 78, 58, 0.22);
  content: "";
  transform: rotate(3deg);
}

.hero-visual img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  object-fit: cover;
  object-position: 50% 61%;
  filter: saturate(0.94) contrast(0.98);
}

.hero-copy {
  width: min(100%, 760px);
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.letter-kicker {
  margin: 0 0 10px;
  color: var(--deep-red);
  font-family: var(--display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0;
}

h1 {
  color: var(--deep-green);
  font-size: 4.35rem;
  line-height: 0.82;
  text-transform: lowercase;
}

h1 span {
  display: block;
  color: var(--deep-red);
  font-size: 0.34em;
  font-style: italic;
  line-height: 1.02;
  text-transform: none;
}

h1 .no-break {
  color: var(--deep-green);
  font-size: 1em;
  font-style: normal;
}

.no-break {
  white-space: nowrap;
}

.hero-subtitle,
.messages-subtitle {
  margin: 16px 0 0;
  color: var(--blue);
  font-family: var(--poster);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.15;
}

.message-count {
  font-variant-numeric: lining-nums;
}

.editorial-mark {
  position: absolute;
  z-index: -1;
  border: 1px solid var(--deep-green);
  border-radius: 8px;
  background: var(--light-yellow);
  color: var(--deep-green);
  font-family: var(--display);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1;
  transform: rotate(-9deg);
  white-space: nowrap;
  clip-path: polygon(4% 0, 98% 6%, 100% 88%, 3% 100%, 0 18%);
}

.mark-one {
  top: 8%;
  left: 5%;
  padding: 10px 18px;
}

.mark-two {
  right: 4%;
  bottom: 17%;
  padding: 12px 16px;
  background: var(--mint);
  transform: rotate(8deg);
}

.ribbon-line {
  position: absolute;
  top: 14%;
  right: 7%;
  z-index: -1;
  width: min(42vw, 236px);
  fill: none;
  stroke: var(--deep-red);
  stroke-linecap: round;
  stroke-width: 2.2;
  opacity: 0.75;
}

.envelope-stage {
  width: min(88vw, 430px);
  margin: 0 auto;
}

.envelope-button {
  display: block;
  width: 100%;
  min-height: 228px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  perspective: 900px;
  -webkit-tap-highlight-color: transparent;
}

.envelope-button:focus-visible,
.primary-action:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 5px;
}

.envelope {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.48;
  transform: translateZ(0) rotate(0.2deg);
}

.envelope-shadow {
  position: absolute;
  right: 7%;
  bottom: -7%;
  left: 8%;
  height: 20%;
  background: rgba(31, 78, 58, 0.12);
  filter: blur(13px);
  transform: skewX(-10deg);
}

.envelope-back,
.envelope-front,
.envelope-flap {
  position: absolute;
  right: 2%;
  left: 2%;
  border: 1.4px solid var(--deep-green);
}

.envelope-back {
  top: 19%;
  bottom: 5%;
  border-radius: 7px 5px 8px 6px;
  background:
    repeating-linear-gradient(0deg, rgba(31, 78, 58, 0.035) 0 1px, transparent 1px 9px),
    var(--off-white);
  clip-path: polygon(0 2%, 99% 0, 100% 100%, 1% 99%);
}

.letter-peek {
  position: absolute;
  top: 1%;
  right: 10%;
  left: 10%;
  z-index: 1;
  display: grid;
  height: 66%;
  place-items: center;
  border: 1.2px solid rgba(31, 78, 58, 0.32);
  border-radius: 7px 5px 6px 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent),
    var(--ivory);
  color: var(--deep-red);
  font-family: var(--display);
  font-size: 1.18rem;
  font-style: italic;
  line-height: 1;
  transform: translateY(34%) scale(0.93) rotate(-0.6deg);
  transition: transform 650ms cubic-bezier(0.2, 0.75, 0.17, 1);
}

.letter-peek::before {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--deep-red);
  border-radius: 50%;
  content: "";
  opacity: 0.45;
}

.envelope-front {
  bottom: 5%;
  z-index: 3;
  height: 62%;
  border-radius: 4px 7px 8px 5px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 250, 240, 0.18) 0 1px, transparent 1px 11px),
    var(--tulip-pink);
  clip-path: polygon(0 4%, 50% 48%, 100% 2%, 99% 100%, 1% 99%);
}

.envelope-front::before,
.envelope-front::after {
  position: absolute;
  bottom: -1px;
  width: 51%;
  height: 100%;
  background: rgba(216, 94, 73, 0.68);
  content: "";
}

.envelope-front::before {
  left: 0;
  clip-path: polygon(0 0, 100% 74%, 100% 100%, 0 100%);
}

.envelope-front::after {
  right: 0;
  clip-path: polygon(0 74%, 100% 0, 100% 100%, 0 100%);
}

.envelope-flap {
  top: 19%;
  z-index: 4;
  height: 58%;
  border-radius: 7px 7px 4px 4px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 250, 240, 0.16) 0 1px, transparent 1px 10px),
    var(--coral);
  clip-path: polygon(0 0, 100% 0, 51% 73%, 49% 73%);
  transform-origin: 50% 0;
  transition: transform 620ms cubic-bezier(0.2, 0.75, 0.17, 1), filter 620ms ease;
}

.seal {
  position: absolute;
  z-index: 5;
  top: 42%;
  left: 50%;
  display: grid;
  width: 84px;
  aspect-ratio: 1;
  place-items: center;
  border: 1.4px solid var(--deep-green);
  border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, rgba(31, 78, 58, 0.04) 0 1px, transparent 1px 8px),
    var(--butter);
  color: var(--deep-green);
  font-family: var(--display);
  font-size: 1.02rem;
  line-height: 0.78;
  box-shadow: 0 0 0 5px rgba(255, 250, 240, 0.28);
  transform: translate(-50%, -50%) rotate(-6deg);
  transition: transform 620ms cubic-bezier(0.22, 1, 0.36, 1), opacity 360ms ease;
}

.seal span:first-child {
  align-self: end;
  font-style: italic;
}

.seal span:last-child {
  align-self: start;
}

.envelope-button:hover .seal,
.envelope-button:focus-visible .seal {
  transform: translate(-50%, -50%) rotate(2deg) scale(1.04);
}

.envelope-button.is-open {
  cursor: default;
}

.envelope-button.is-open .seal {
  opacity: 0;
  transform: translate(66%, -128%) rotate(28deg) scale(0.68);
}

.envelope-button.is-open .envelope-flap {
  filter: brightness(1.03);
  transform: rotateX(168deg);
}

.envelope-button.is-open .letter-peek {
  transform: translateY(-18%) scale(0.98) rotate(-0.6deg);
}

.letter-stage,
.messages-section {
  padding: clamp(60px, 14vw, 130px) clamp(18px, 5vw, 72px);
}

.letter-stage {
  background:
    repeating-linear-gradient(90deg, rgba(47, 98, 162, 0.04) 0 1px, transparent 1px 18px),
    var(--ivory);
}

.letter-wrap {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
}

.paper-label {
  position: absolute;
  top: -28px;
  right: 10px;
  z-index: 2;
  border: 1px solid var(--deep-green);
  border-radius: 8px;
  background: var(--mint);
  padding: 9px 14px;
  color: var(--deep-green);
  font-family: var(--poster);
  font-size: 0.84rem;
  line-height: 1.05;
  transform: rotate(5deg);
  clip-path: polygon(2% 7%, 98% 0, 100% 92%, 3% 100%, 0 20%);
}

.letter-paper {
  position: relative;
  z-index: 1;
  border: 1.4px solid var(--deep-green);
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, rgba(31, 78, 58, 0.035) 0 1px, transparent 1px 11px),
    var(--off-white);
  box-shadow:
    12px 13px 0 rgba(239, 208, 96, 0.72),
    0 22px 42px rgba(86, 58, 43, 0.12);
  padding: clamp(36px, 8vw, 74px) clamp(24px, 7vw, 72px);
  clip-path: polygon(0.7% 0, 99.4% 0.7%, 100% 98.7%, 1.1% 100%);
}

.letter-paper::before {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 42px;
  height: 34px;
  border: 1.2px solid var(--deep-red);
  border-radius: 50% 46% 54% 44%;
  content: "";
  transform: rotate(-7deg);
}

.letter-paper::after {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 74px;
  height: 18px;
  background:
    repeating-linear-gradient(90deg, rgba(47, 98, 162, 0.35) 0 7px, rgba(255, 250, 240, 0.72) 7px 14px);
  border: 1px solid rgba(31, 78, 58, 0.16);
  content: "";
  opacity: 0.7;
  transform: rotate(-5deg);
}

.letter-paper h2,
.messages-intro h2 {
  color: var(--deep-green);
  font-size: 3.2rem;
  line-height: 0.88;
  text-transform: lowercase;
}

.letter-body {
  margin: 30px 0 32px;
  color: #254634;
  font-family: var(--jp-serif);
  font-size: 1rem;
  line-height: 1.82;
}

.letter-body p {
  margin: 0 0 20px;
}

.primary-action {
  min-height: 48px;
  border: 1.3px solid var(--deep-green);
  border-radius: 999px;
  background: var(--deep-green);
  color: var(--off-white);
  cursor: pointer;
  font-family: var(--poster);
  font-size: 1rem;
  line-height: 1;
  padding: 15px 24px 16px;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.primary-action:hover {
  background: var(--butter);
  color: var(--deep-green);
}

.primary-action:active {
  transform: scale(0.98);
}

.tulip-line {
  position: absolute;
  right: -18px;
  bottom: -54px;
  z-index: 2;
  width: min(24vw, 96px);
  fill: var(--milky-pink);
  stroke: var(--deep-green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.messages-section {
  background:
    linear-gradient(180deg, rgba(255, 244, 228, 0.52), transparent 28%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 9px),
    var(--milky-pink);
}

.messages-intro {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto clamp(36px, 10vw, 78px);
}

.messages-intro::after {
  position: absolute;
  right: 8px;
  bottom: -22px;
  width: 110px;
  height: 22px;
  background:
    repeating-linear-gradient(90deg, rgba(239, 208, 96, 0.78) 0 9px, rgba(255, 250, 240, 0.7) 9px 18px);
  border: 1px solid rgba(31, 78, 58, 0.16);
  content: "";
  transform: rotate(3deg);
}

.messages-intro .eyebrow {
  color: var(--blue);
}

.messages-subtitle {
  color: var(--deep-red);
}

.messages-list {
  display: grid;
  width: min(100%, 760px);
  margin: 0 auto;
  gap: clamp(22px, 7vw, 42px);
}

.message-card {
  position: relative;
  width: 100%;
  border: 1.2px solid var(--ink-soft);
  border-radius: 8px;
  background:
    repeating-linear-gradient(0deg, rgba(31, 78, 58, 0.028) 0 1px, transparent 1px 10px),
    #fffaf0;
  color: var(--deep-green);
  box-shadow:
    7px 8px 0 rgba(255, 250, 240, 0.72),
    0 12px 25px rgba(86, 58, 43, 0.1);
  padding: clamp(30px, 8vw, 54px) clamp(22px, 7vw, 48px) clamp(30px, 8vw, 56px);
  overflow: hidden;
  clip-path: polygon(0.5% 0.7%, 99.5% 0, 100% 99.1%, 0.7% 100%);
}

.message-card::before {
  position: absolute;
  top: 16px;
  right: 17px;
  color: rgba(31, 78, 58, 0.2);
  content: attr(data-letter);
  font-family: var(--display);
  font-size: 2.65rem;
  line-height: 0.8;
}

.message-card::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 9px;
  height: 100%;
  background: var(--accent);
  content: "";
}

.message-card[data-tone="pink"] {
  --accent: var(--tulip-pink);
  --accent-soft: rgba(234, 160, 173, 0.34);
}

.message-card[data-tone="green"] {
  --accent: var(--mint);
  --accent-soft: rgba(169, 206, 180, 0.42);
}

.message-card[data-tone="yellow"] {
  --accent: var(--butter);
  --accent-soft: rgba(239, 208, 96, 0.4);
}

.message-card[data-tone="coral"] {
  --accent: var(--coral);
  --accent-soft: rgba(217, 94, 73, 0.28);
}

.message-card[data-tone="blue"] {
  --accent: var(--blue);
  --accent-soft: rgba(47, 98, 162, 0.22);
}

.message-card[data-shape="postcard"] {
  width: 94%;
  margin-left: auto;
  background:
    linear-gradient(90deg, transparent 0 72%, rgba(31, 78, 58, 0.1) 72% 72.4%, transparent 72.4%),
    repeating-linear-gradient(0deg, rgba(31, 78, 58, 0.025) 0 1px, transparent 1px 10px),
    var(--paper);
  transform: rotate(0.45deg);
}

.message-card[data-shape="label"] {
  width: 97%;
  margin-right: auto;
  box-shadow:
    8px 8px 0 var(--accent-soft),
    0 12px 25px rgba(86, 58, 43, 0.1);
  clip-path: polygon(1% 0, 98.6% 0.8%, 100% 10%, 99% 21%, 100% 34%, 99% 47%, 100% 60%, 99% 73%, 100% 88%, 98.6% 100%, 1% 99.2%, 0 88%, 1% 74%, 0 60%, 1% 47%, 0 34%, 1% 20%, 0 9%);
}

.message-card[data-shape="portrait"] {
  width: 92%;
  margin-left: 5%;
  padding-top: clamp(40px, 9vw, 62px);
}

.message-card[data-shape="wide"] {
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 74px),
    repeating-linear-gradient(0deg, rgba(31, 78, 58, 0.025) 0 1px, transparent 1px 10px),
    #fffaf0;
}

.message-card[data-shape="note"] {
  width: 95%;
  margin: 0 auto;
  transform: rotate(-0.35deg);
}

.message-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 9px 14px;
  margin-bottom: 22px;
}

.message-meta::before {
  position: absolute;
  content: "";
  pointer-events: none;
}

.message-card[data-trim="tape-left"] .message-meta::before,
.message-card[data-trim="tape-right"] .message-meta::before {
  top: -38px;
  width: 76px;
  height: 18px;
  border: 1px solid rgba(31, 78, 58, 0.14);
  background:
    repeating-linear-gradient(90deg, rgba(217, 94, 73, 0.38) 0 8px, rgba(255, 250, 240, 0.78) 8px 16px);
  opacity: 0.86;
}

.message-card[data-trim="tape-left"] .message-meta::before {
  left: 8px;
  transform: rotate(-6deg);
}

.message-card[data-trim="tape-right"] .message-meta::before {
  right: 48px;
  background:
    repeating-linear-gradient(90deg, rgba(47, 98, 162, 0.32) 0 8px, rgba(255, 250, 240, 0.78) 8px 16px);
  transform: rotate(5deg);
}

.message-card[data-trim="stamp"] .message-meta::before {
  top: -32px;
  right: 34px;
  width: 42px;
  height: 42px;
  border: 1.2px solid var(--accent);
  border-radius: 50%;
  box-shadow: inset 0 0 0 7px rgba(255, 250, 240, 0.62);
  opacity: 0.88;
  transform: rotate(7deg);
}

.message-card[data-trim="line"] .message-meta::before {
  top: -24px;
  left: 8px;
  width: 118px;
  height: 18px;
  border-top: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0.72;
  transform: rotate(-3deg);
}

.message-card[data-trim="flower"] .message-meta::before {
  top: -30px;
  right: 52px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--deep-green);
  border-radius: 48% 52% 44% 56%;
  background: var(--accent);
  box-shadow:
    -12px 4px 0 -3px var(--accent),
    12px 4px 0 -3px var(--accent),
    0 15px 0 -4px var(--accent);
  opacity: 0.75;
  transform: rotate(-10deg);
}

.brand {
  margin: 0;
  border: 1px solid var(--deep-green);
  border-radius: 8px;
  background: var(--accent);
  padding: 5px 11px 6px;
  color: var(--deep-green);
  font-family: var(--poster);
  font-size: 0.88rem;
  line-height: 1;
  clip-path: polygon(3% 0, 98% 5%, 100% 90%, 2% 100%, 0 18%);
}

.name {
  margin: 0;
  color: var(--deep-green);
  font-family: var(--display);
  font-size: 1.62rem;
  font-weight: 700;
  line-height: 1;
}

.message-body {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #263f33;
  font-size: 1rem;
  line-height: 1.78;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.message-card.is-entering {
  animation: cardIn 520ms cubic-bezier(0.2, 0.75, 0.17, 1) both;
  animation-delay: min(calc(var(--i) * 34ms), 680ms);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 760px) {
  .hero {
    min-height: 96vh;
    min-height: 96dvh;
    gap: 18px;
    padding-top: max(30px, env(safe-area-inset-top));
  }

  .hero-visual {
    width: 500px;
    height: 210px;
  }

  .eyebrow,
  .letter-kicker {
    font-size: 1.28rem;
  }

  h1 {
    font-size: 7.6rem;
  }

  .hero-subtitle,
  .messages-subtitle {
    font-size: 1.55rem;
  }

  .editorial-mark {
    font-size: 1.2rem;
  }

  .envelope-button {
    min-height: 286px;
  }

  .letter-peek {
    font-size: 1.72rem;
  }

  .seal {
    width: 102px;
    font-size: 1.28rem;
  }

  .paper-label {
    font-size: 1rem;
  }

  .letter-paper {
    box-shadow:
      18px 19px 0 rgba(239, 208, 96, 0.72),
      0 24px 48px rgba(86, 58, 43, 0.12);
  }

  .letter-paper h2,
  .messages-intro h2 {
    font-size: 5.8rem;
  }

  .letter-body {
    font-size: 1.08rem;
  }

  .message-card::before {
    font-size: 3.72rem;
  }

  .brand {
    font-size: 0.98rem;
  }

  .name {
    font-size: 2.18rem;
  }

  .message-body {
    font-size: 1.06rem;
  }
}

@media (min-width: 1100px) {
  .hero {
    gap: 20px;
  }

  .hero-visual {
    width: 560px;
    height: 230px;
  }

  .eyebrow,
  .letter-kicker {
    font-size: 1.38rem;
  }

  h1 {
    font-size: 9.5rem;
  }

  .hero-subtitle,
  .messages-subtitle {
    font-size: 1.85rem;
  }

  .editorial-mark {
    font-size: 1.36rem;
  }

  .letter-paper h2,
  .messages-intro h2 {
    font-size: 7.35rem;
  }

  .message-card::before {
    font-size: 4.4rem;
  }

  .name {
    font-size: 2.48rem;
  }

  .message-body {
    font-size: 1.1rem;
  }
}

@media (max-width: 430px) {
  .hero {
    gap: 12px;
  }

  .hero::after {
    right: -6%;
    bottom: 10%;
  }

  .hero-visual {
    height: 146px;
  }

  .mark-one {
    top: 7%;
    left: 8px;
  }

  .mark-two {
    display: none;
  }

  .ribbon-line {
    top: 13%;
    right: -10%;
  }

  .paper-label {
    right: 0;
  }

  .message-card[data-shape="portrait"],
  .message-card[data-shape="postcard"],
  .message-card[data-shape="label"],
  .message-card[data-shape="note"] {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 3.92rem;
  }

  .letter-paper h2,
  .messages-intro h2 {
    font-size: 2.82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
