@font-face {
  font-family: "Bird Pretendard";
  src: url("fonts/PretendardVariable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 45 920;
  font-display: swap;
}

:root {
  --bg: #fff8f2;
  --paper: #fffdf9;
  --paper-soft: #fff2ea;
  --pink: #f4b8c8;
  --pink-strong: #df7f98;
  --rose: #b96273;
  --peach: #f4c58f;
  --butter: #ffe6a7;
  --sage: #a7bfa8;
  --ink: #4d3c3d;
  --muted: #806d6e;
  --line: rgba(185, 98, 115, 0.18);
  --shadow: 0 18px 55px rgba(166, 94, 111, 0.13);
  --soft-shadow: 0 8px 24px rgba(166, 94, 111, 0.09);
  --deep-shadow: 0 28px 80px rgba(92, 68, 64, 0.18);
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(244, 184, 200, 0.1), transparent 24rem),
    radial-gradient(circle at 92% 48%, rgba(255, 230, 167, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(255, 248, 242, 0.88), rgba(255, 253, 249, 0.9)),
    repeating-linear-gradient(90deg, rgba(185, 98, 115, 0.035) 0 1px, transparent 1px 80px);
  color: var(--ink);
  font-family: "Bird Pretendard", sans-serif;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-x: hidden;
}

body::selection {
  background: rgba(244, 184, 200, 0.5);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
optgroup,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
  padding: 10px max(22px, calc((100vw - var(--max)) / 2));
  background: rgba(255, 248, 242, 0.88);
  border-bottom: 1px solid rgba(185, 98, 115, 0.13);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(92, 68, 64, 0.045);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 190px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 61% 36%, #704f46 0 2px, transparent 3px),
    linear-gradient(135deg, #f4b8c8 0%, #f9d5df 58%, #f4c58f 100%);
  box-shadow: inset 0 -5px 12px rgba(185, 98, 115, 0.18), 0 5px 16px rgba(185, 98, 115, 0.16);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
}

.brand strong {
  font-size: 0.95rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover {
  color: var(--rose);
  background: rgba(244, 184, 200, 0.18);
}

.nav-alert-dot {
  position: absolute;
  top: 7px;
  right: 5px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 253, 249, 0.95);
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 2px rgba(185, 98, 115, 0.1);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-alert-dot.notice-alert {
  background: #e53f4f;
  box-shadow: 0 0 0 2px rgba(229, 63, 79, 0.12);
}

.nav-alert-dot[hidden] {
  display: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.88);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--rose);
}

.hero {
  position: relative;
  min-height: 76vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  padding: 92px 22px 32px;
  border-bottom: 1px solid rgba(185, 98, 115, 0.12);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 244, 209, 0.28), transparent 30%),
    linear-gradient(115deg, transparent 52%, rgba(255, 253, 249, 0.11) 68%, transparent 82%);
  mix-blend-mode: screen;
}

.hero::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  background: linear-gradient(180deg, transparent, rgba(255, 248, 242, 0.2));
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  background-image: url("hero-original.png");
  background-image: image-set(
    url("hero.webp") type("image/webp"),
    url("hero-original.png") type("image/png")
  );
  background-size: cover;
  background-position: center;
  transform: scale(1.025);
  filter: saturate(0.98) contrast(1.02);
  animation: hero-breathe 18s ease-in-out infinite alternate;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(70, 46, 44, 0.62) 0%, rgba(90, 57, 55, 0.34) 39%, rgba(255, 248, 242, 0.1) 100%),
    linear-gradient(0deg, rgba(255, 248, 242, 0.96) 0%, rgba(255, 248, 242, 0.24) 38%, rgba(255, 248, 242, 0.18) 100%);
}

.hero-content {
  position: relative;
  width: min(720px, 100%);
  margin: 0 auto 0 max(0px, calc((100vw - var(--max)) / 2));
  padding: clamp(24px, 3.4vw, 38px) clamp(24px, 4vw, 44px);
  border: 1px solid rgba(255, 253, 249, 0.2);
  border-left-color: rgba(255, 230, 167, 0.64);
  border-radius: 18px;
  background: linear-gradient(115deg, rgba(64, 43, 42, 0.35), rgba(82, 52, 50, 0.1));
  box-shadow: 0 24px 70px rgba(49, 32, 31, 0.18), inset 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(5px);
  color: #fffdf9;
  text-shadow: 0 3px 18px rgba(52, 31, 30, 0.32);
}

.hero-content::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 24px;
  bottom: 24px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 230, 167, 0), rgba(255, 230, 167, 0.9), rgba(244, 184, 200, 0));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.hero .eyebrow {
  color: #ffe6d7;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: 4.65rem;
  line-height: 1;
  font-weight: 900;
}

.hero-subtitle {
  margin-bottom: 12px;
  color: #ffe6a7;
  font-size: 1.85rem;
  font-weight: 800;
}

.hero-copy {
  max-width: 610px;
  margin-bottom: 24px;
  color: rgba(255, 253, 249, 0.92);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:focus-visible,
.message-open:focus-visible,
.sort-button:focus-visible,
.faq-toggle:focus-visible,
.letter-skip:focus-visible,
.letter-close:focus-visible {
  outline: 3px solid rgba(255, 230, 167, 0.72);
  outline-offset: 3px;
}

.button-primary {
  background: #fffdf9;
  color: var(--rose);
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 30px rgba(92, 68, 64, 0.18);
}

.button-soft {
  background: rgba(255, 253, 249, 0.18);
  color: #fffdf9;
  border-color: rgba(255, 253, 249, 0.42);
  backdrop-filter: blur(8px);
}

.section .button-soft,
.notice-section .button-soft {
  background: rgba(255, 242, 234, 0.92);
  color: var(--rose);
  border-color: var(--line);
}

.section .button-primary {
  background: var(--rose);
  color: #fffdf9;
  border-color: transparent;
}

.button-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(244, 184, 200, 0.28);
  line-height: 1;
}

.toggle-chevron {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.toggle-chevron::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease, top 180ms ease;
}

[aria-expanded="true"] > .toggle-chevron::before {
  top: 6px;
  transform: rotate(225deg);
}

.hero-note {
  width: min(var(--max), calc(100vw - 44px));
  margin: 36px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 26px;
}

.hero-note span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0 7px;
  border: 0;
  border-bottom: 1px solid rgba(255, 253, 249, 0.24);
  background: transparent;
  color: rgba(255, 253, 249, 0.86);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  text-shadow: 0 1px 10px rgba(72, 51, 49, 0.2);
}

.hero-note span::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 230, 167, 0.86);
  box-shadow: 0 0 0 4px rgba(255, 253, 249, 0.12);
}

.desktop-note {
  margin-top: 12px;
  color: rgba(255, 253, 249, 0.64);
  font-size: 0.78rem;
  line-height: 1.6;
}

.intro-band {
  padding: 44px 22px;
  background: linear-gradient(180deg, #fff8f2 0%, #fffdf9 100%);
  scroll-margin-top: 84px;
}

.section {
  padding: 82px 22px;
  scroll-margin-top: 84px;
  content-visibility: auto;
  contain-intrinsic-block-size: auto 820px;
}

.section:nth-of-type(odd) {
  background: rgba(255, 253, 249, 0.64);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: center;
}

.intro-panel h2,
.section-heading h2 {
  margin-bottom: 13px;
  font-size: 2.15rem;
  line-height: 1.25;
}

.intro-panel p,
.section-heading p,
.contact-box p,
.about-card p,
.highlight-card p,
.link-card p {
  color: var(--muted);
  line-height: 1.78;
}

.promise-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 26px;
  padding: 8px 0;
}

.promise-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: auto;
  padding: 8px 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(185, 98, 115, 0.18);
  border-radius: 0;
  background: transparent;
  color: var(--rose);
  font-weight: 800;
  box-shadow: none;
}

.promise-list span::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(244, 184, 200, 0.78);
  box-shadow: 0 0 0 4px rgba(244, 184, 200, 0.14);
}

.section-heading {
  position: relative;
  max-width: 720px;
  margin-bottom: 28px;
  padding-bottom: 4px;
}

.section-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink-strong), rgba(244, 197, 143, 0.5));
}

.noscript-archive {
  margin: -8px 0 28px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.8);
  color: var(--muted);
  line-height: 1.7;
}

.noscript-archive a {
  color: var(--rose);
  font-weight: 800;
  text-underline-offset: 3px;
}

.highlight-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.highlight-card,
.link-card,
.message-card,
.contact-box,
.faq-box,
.fanart-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: var(--soft-shadow);
}

.about-card {
  position: relative;
  min-height: 0;
  padding: 22px 12px 24px 28px;
  border: 0;
  border-bottom: 1px solid rgba(185, 98, 115, 0.18);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.about-card::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 29px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(232, 155, 173, 0.78);
  box-shadow: 0 0 0 5px rgba(244, 184, 200, 0.13);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 46px;
  max-width: 980px;
  border-top: 1px solid rgba(185, 98, 115, 0.18);
}

.about-card h3,
.highlight-card h3,
.contact-box h3 {
  margin-bottom: 10px;
  font-size: 1.07rem;
}

.messages-section {
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 230, 167, 0.24), transparent 24rem),
    linear-gradient(180deg, rgba(255, 242, 234, 0.76), rgba(255, 253, 249, 0.92)),
    linear-gradient(135deg, rgba(244, 184, 200, 0.22), rgba(167, 191, 168, 0.12));
}

.message-cloud {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 16px;
  align-items: start;
  margin-bottom: 22px;
}

.message-card {
  --note-paper: #fffdf8;
  --note-rule: rgba(185, 98, 115, 0.095);
  --note-tape: rgba(244, 184, 200, 0.42);
  --note-line-step: 30px;
  --note-rule-offset: 26px;
  position: relative;
  min-height: 174px;
  padding: 28px 20px 20px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border-color: rgba(150, 102, 91, 0.16);
  border-radius: 6px;
  background:
    repeating-linear-gradient(180deg, transparent 0 calc(var(--note-line-step) - 1px), var(--note-rule) calc(var(--note-line-step) - 1px) var(--note-line-step)),
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.8), transparent 34%),
    var(--note-paper);
  background-position: 0 -5px, 0 0, 0 0;
  box-shadow: 0 14px 34px rgba(121, 78, 82, 0.11), 0 2px 5px rgba(121, 78, 82, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.message-card::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 54px;
  height: 17px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 2px;
  background: var(--note-tape);
  box-shadow: 0 2px 7px rgba(92, 68, 64, 0.08);
  transform: translateX(-50%) rotate(-1.5deg);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.message-card.note-style-2,
.letter-dialog.note-style-2 {
  --note-paper: #fffaf1;
  --note-rule: rgba(205, 146, 79, 0.09);
  --note-tape: rgba(255, 218, 146, 0.46);
}

.message-card.note-style-3,
.letter-dialog.note-style-3 {
  --note-paper: #fff9f7;
  --note-tape: rgba(233, 171, 184, 0.43);
}

.message-card.note-style-4,
.letter-dialog.note-style-4 {
  --note-paper: #fbfdf7;
  --note-rule: rgba(110, 146, 112, 0.085);
  --note-tape: rgba(183, 205, 175, 0.42);
}

.message-card.note-style-5,
.letter-dialog.note-style-5 {
  --note-paper: #fffafc;
  --note-tape: rgba(226, 185, 211, 0.4);
}

.message-card:hover {
  border-color: rgba(185, 98, 115, 0.27);
  box-shadow: 0 18px 42px rgba(121, 78, 82, 0.14), 0 2px 5px rgba(121, 78, 82, 0.05);
}

.message-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 94px;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: var(--note-line-step);
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.message-card.hand-font-1 .message-body,
.letter-dialog.hand-font-1 .letter-body {
  font-family: "Poor Story", "Bird Pretendard", sans-serif;
  font-size: 1.12rem;
  letter-spacing: 0;
  word-spacing: 0;
}

.message-card.hand-font-2 .message-body,
.letter-dialog.hand-font-2 .letter-body {
  font-family: "Gamja Flower", "Bird Pretendard", sans-serif;
  font-size: 1.18rem;
  letter-spacing: 0;
  word-spacing: 0;
}

.message-card.hand-font-3 .message-body,
.letter-dialog.hand-font-3 .letter-body {
  font-family: "Single Day", "Bird Pretendard", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0;
  word-spacing: 0;
}

.message-card.hand-font-4 .message-body,
.letter-dialog.hand-font-4 .letter-body {
  font-family: "Gaegu", "Bird Pretendard", sans-serif;
  font-size: 1.12rem;
  letter-spacing: 0;
  word-spacing: 0;
}

.message-card.hand-font-5 .message-body,
.letter-dialog.hand-font-5 .letter-body {
  font-family: "Hi Melody", "Bird Pretendard", sans-serif;
  font-size: 1.18rem;
  letter-spacing: 0;
  word-spacing: 0;
}

.message-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(185, 98, 115, 0.15);
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 9px;
}

.message-name {
  margin-bottom: 0;
  color: var(--rose);
  font-size: 0.83rem;
  font-weight: 800;
}

.message-date {
  color: rgba(92, 68, 64, 0.48);
  font-size: 0.72rem;
  font-weight: 700;
}

.message-open {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(185, 98, 115, 0.18);
  border-radius: 8px;
  background: #fff2ea;
  color: var(--rose);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.message-open:hover {
  border-color: rgba(185, 98, 115, 0.35);
  background: #fff7ee;
}

.floating-message {
  animation: slow-drift 7s ease-in-out infinite;
  animation-delay: var(--delay);
}

.all-messages {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 16px;
  margin-top: 28px;
}

.all-messages.open {
  display: grid;
}

.message-sort-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.message-sort-controls[hidden] {
  display: none;
}

#showAllMessages {
  min-width: 184px;
  justify-content: space-between;
}

.sort-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.78);
  color: var(--muted);
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.sort-button[aria-pressed="true"] {
  background: var(--rose);
  color: #fffdf9;
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(185, 98, 115, 0.16);
}

body.letter-modal-open,
body.fanart-modal-open {
  overflow: hidden;
}

.letter-modal[hidden] {
  display: none;
}

.letter-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}

.letter-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(72, 51, 49, 0.28);
  backdrop-filter: blur(6px);
}

.letter-dialog {
  --note-paper: #fffdf8;
  --note-rule: rgba(185, 98, 115, 0.095);
  --note-tape: rgba(244, 184, 200, 0.42);
  --note-line-step: 30px;
  --note-rule-offset: 26px;
  --letter-inset-left: 42px;
  --letter-inset-right: 42px;
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  height: min(760px, calc(100vh - 48px));
  height: min(760px, calc(100dvh - 48px));
  min-height: min(680px, calc(100vh - 48px));
  min-height: min(680px, calc(100dvh - 48px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overflow-anchor: none;
  scroll-behavior: auto;
  display: flex;
  flex-direction: column;
  padding: 42px 42px 38px;
  border: 1px solid rgba(185, 98, 115, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 255, 255, 0.8), transparent 34%),
    var(--note-paper);
  box-shadow: 0 24px 60px rgba(92, 68, 64, 0.24);
}

.letter-dialog::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 54px;
  height: 17px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 2px;
  background: var(--note-tape);
  box-shadow: 0 2px 7px rgba(92, 68, 64, 0.08);
  transform: translateX(-50%) rotate(-1.5deg);
  pointer-events: none;
}

.letter-dialog.done-writing .letter-writing::after {
  display: none;
}

.letter-tools {
  position: sticky;
  top: 12px;
  z-index: 4;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: -18px -18px 10px 0;
  pointer-events: none;
}

.letter-tools > * {
  pointer-events: auto;
}

.letter-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(185, 98, 115, 0.16);
  border-radius: 50%;
  background: #fffdf9;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
}

.letter-dialog h2 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}

.letter-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin-bottom: 28px;
  color: var(--rose);
  font-size: 0.92rem;
  font-weight: 800;
}

.letter-date {
  color: rgba(92, 68, 64, 0.48);
  font-family: "Bird Pretendard", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.letter-body {
  position: relative;
  isolation: isolate;
  flex: 1 0 auto;
  padding-bottom: 54px;
  color: var(--ink);
  font-size: 1.06rem;
  line-height: var(--note-line-step);
}

.letter-body::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: calc(-1 * var(--letter-inset-left));
  right: calc(-1 * var(--letter-inset-right));
  background: repeating-linear-gradient(
    180deg,
    transparent 0 calc(var(--note-rule-offset) - 1px),
    var(--note-rule) calc(var(--note-rule-offset) - 1px) var(--note-rule-offset),
    transparent var(--note-rule-offset) var(--note-line-step)
  );
  pointer-events: none;
}

.letter-ghost,
.letter-writing {
  display: block;
  z-index: 1;
  white-space: pre-line;
}

.letter-ghost {
  visibility: hidden;
  pointer-events: none;
}

.letter-writing {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
}

.letter-writing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  border-radius: 999px;
  background: rgba(185, 98, 115, 0.62);
  vertical-align: -0.12em;
  animation: caret-blink 900ms steps(1) infinite;
}

.letter-writing.caret-resting::after {
  opacity: 0;
  animation: none;
}

.letter-skip {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(185, 98, 115, 0.18);
  border-radius: 8px;
  background: rgba(255, 242, 234, 0.86);
  color: var(--rose);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(166, 94, 111, 0.08);
}

.letter-skip[hidden] {
  display: none;
}

.fanart-layout {
  display: block;
}

.fanart-section {
  background:
    radial-gradient(circle at 10% 12%, rgba(244, 184, 200, 0.13), transparent 27rem),
    linear-gradient(180deg, rgba(255, 253, 249, 0.78), rgba(250, 244, 237, 0.84));
}

.fanart-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.fanart-heading-row .section-heading {
  margin-bottom: 0;
}

.fanart-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.fanart-gallery .fanart-card[hidden] {
  display: none;
}

.fanart-card {
  margin: 0;
  overflow: hidden;
}

.fanart-image-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

.fanart-image-button picture {
  display: block;
  width: 100%;
}

.fanart-image-button img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 420ms ease;
}

.fanart-image-button:hover img {
  transform: scale(1.015);
}

.fanart-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
}

.fanart-caption-main {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 12px;
}

.fanart-caption strong {
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.fanart-caption p {
  width: 100%;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.6;
}

.fanart-date {
  color: rgba(113, 91, 91, 0.68);
  font-size: 0.78rem;
  font-weight: 700;
}

.fanart-original {
  flex: 0 0 auto;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--rose);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.fanart-original:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fanart-toggle-row {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.fanart-toggle-row[hidden] {
  display: none;
}

.fanart-toggle {
  min-height: 44px;
}

.fanart-modal[hidden] {
  display: none;
}

.fanart-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
}

.fanart-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 31, 47, 0.76);
  backdrop-filter: blur(8px);
}

.fanart-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1500px, 100%, 145dvh);
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: #f6ede5;
  box-shadow: 0 28px 80px rgba(28, 24, 38, 0.34);
}

.fanart-modal-dialog img {
  display: block;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  min-height: 0;
  object-fit: contain;
}

.fanart-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(185, 98, 115, 0.2);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.94);
  color: var(--ink);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(28, 24, 38, 0.14);
}

.fanart-modal-caption {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 24px 34px;
  padding: 16px 20px 18px;
  border-top: 1px solid rgba(185, 98, 115, 0.12);
  background:
    linear-gradient(90deg, rgba(244, 184, 200, 0.07), transparent 36%),
    rgba(255, 253, 249, 0.98);
}

.fanart-modal-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px 28px;
}

.fanart-modal-detail {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.fanart-modal-label {
  color: var(--rose);
  font-size: 0.7rem;
  font-weight: 800;
}

.fanart-modal-detail strong,
.fanart-modal-detail time {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.fanart-modal-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
  white-space: pre-line;
}

.tab-list {
  display: inline-flex;
  gap: 8px;
  padding: 5px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.8);
  box-shadow: var(--soft-shadow);
}

.tab-list button {
  min-width: 104px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.tab-list button[aria-selected="true"] {
  background: var(--rose);
  color: #fffdf9;
  box-shadow: 0 6px 16px rgba(185, 98, 115, 0.18);
}

.highlight-grid {
  grid-template-columns: repeat(3, 1fr);
}

.highlight-card {
  min-height: 230px;
  padding: 24px;
}

.clip-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 180px;
  overflow: hidden;
  border: 1px solid rgba(185, 98, 115, 0.16);
  border-radius: 8px;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 230, 167, 0.46), transparent 25%),
    radial-gradient(circle at 18% 18%, rgba(244, 184, 200, 0.38), transparent 28%),
    linear-gradient(135deg, #fff7ee 0%, #fffdf9 48%, #ffe9dc 100%);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
}

.clip-preview::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px dashed rgba(185, 98, 115, 0.2);
  border-radius: 8px;
}

.clip-play {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--rose);
  color: #fffdf9;
  font-size: 1.4rem;
  box-shadow: 0 12px 28px rgba(185, 98, 115, 0.24);
}

.clip-title {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  z-index: 1;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.clip-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 242, 234, 0.92);
  color: var(--rose);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(185, 98, 115, 0.14);
  border-radius: 8px;
  background: rgba(255, 242, 234, 0.72);
  color: var(--rose);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-badge.soop {
  background: #ffffff;
  color: #202224;
  border-color: rgba(24, 156, 223, 0.18);
  box-shadow: 0 8px 18px rgba(24, 156, 223, 0.06);
}

.brand-badge .oo {
  color: #13a7ef;
  letter-spacing: -0.18em;
}

.brand-badge .p {
  margin-left: 0.08em;
}

.link-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(244, 184, 200, 0.2);
  color: var(--rose);
  font-weight: 900;
}

.tag,
.link-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: rgba(244, 197, 143, 0.22);
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
}

.links-section {
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.8), rgba(255, 248, 242, 0.95));
}

.link-grid {
  grid-template-columns: repeat(2, 1fr);
}

.link-card {
  min-height: 190px;
  display: block;
  padding: 24px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 98, 115, 0.34);
  box-shadow: var(--shadow);
}

.link-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.notice-section {
  background:
    linear-gradient(180deg, rgba(255, 242, 234, 0.85), rgba(255, 248, 242, 0.95));
}

.notice-layout {
  display: grid;
  grid-template-columns: 1fr 0.58fr;
  gap: 28px;
  align-items: start;
}

.notice-layout .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.notice-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: notice;
}

.notice-list li {
  counter-increment: notice;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.86);
  color: var(--ink);
  box-shadow: var(--soft-shadow);
}

.notice-list li::before {
  content: counter(notice);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(244, 184, 200, 0.33);
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 900;
}

.notice-side {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 14px;
}

.contact-box,
.faq-box {
  padding: 24px;
}

.faq-box {
  background: rgba(255, 253, 249, 0.72);
}

.faq-box h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.faq-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.faq-heading-row h3 {
  margin-bottom: 0;
}

.faq-new-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: var(--rose);
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
}

.faq-new-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e53f4f;
  box-shadow: 0 0 0 3px rgba(229, 63, 79, 0.09);
}

.faq-new-badge[hidden] {
  display: none;
}

.faq-help {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.7;
}

.faq-toggle {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 242, 234, 0.92);
  color: var(--rose);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}

.faq-toggle-icon {
  display: none;
}

.faq-toggle[aria-expanded="true"] .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list[hidden] {
  display: none;
}

.faq-item {
  padding: 14px;
  border: 1px solid rgba(185, 98, 115, 0.13);
  border-radius: 8px;
  background: rgba(255, 248, 242, 0.66);
}

.faq-question,
.faq-answer {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  line-height: 1.65;
}

.faq-question {
  margin-bottom: 7px;
  color: var(--ink);
  font-weight: 900;
}

.faq-answer {
  color: var(--muted);
  font-size: 0.88rem;
}

.faq-mark {
  color: var(--rose);
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 28px max(22px, calc((100vw - var(--max)) / 2));
  color: var(--muted);
  border-top: 1px solid rgba(185, 98, 115, 0.14);
  background: #fffdf9;
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

.footer-meta {
  display: grid;
  gap: 7px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.not-found-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.not-found-card {
  width: min(620px, 100%);
  padding: clamp(32px, 7vw, 64px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: var(--shadow);
  text-align: center;
}

.not-found-card h1 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 8vw, 4rem);
}

.not-found-card p:not(.eyebrow) {
  margin-bottom: 26px;
  color: var(--muted);
  line-height: 1.75;
}

.not-found-card .button {
  background: var(--rose);
  color: #fffdf9;
}

.footer-legal button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  text-decoration: underline;
  text-decoration-color: rgba(128, 109, 110, 0.35);
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-legal button:hover,
.footer-legal button:focus-visible {
  color: var(--rose);
  text-decoration-color: currentColor;
}

.site-version {
  color: rgba(128, 109, 110, 0.72);
  font-size: 0.74rem;
  white-space: nowrap;
}

.site-footer > a {
  color: var(--rose);
  font-weight: 800;
  text-decoration: none;
}

body.legal-modal-open {
  overflow: hidden;
}

.legal-modal[hidden] {
  display: none;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(55, 43, 47, 0.58);
  backdrop-filter: blur(5px);
}

.legal-dialog {
  position: relative;
  width: min(820px, 100%);
  max-height: min(88dvh, 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(185, 98, 115, 0.2);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 28px 80px rgba(55, 43, 47, 0.28);
}

.legal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.96);
  backdrop-filter: blur(12px);
}

.legal-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.legal-language {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper-soft);
}

.legal-language button {
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.legal-language button[aria-pressed="true"] {
  background: #fffdf9;
  color: var(--rose);
  box-shadow: 0 2px 9px rgba(166, 94, 111, 0.1);
}

.legal-close {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
}

.legal-content {
  padding: 26px 28px 38px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.78;
}

.legal-document[hidden],
.legal-language-panel[hidden] {
  display: none;
}

.legal-content h3 {
  margin: 26px 0 8px;
  color: var(--ink);
  font-size: 1rem;
}

.legal-content h3:first-child {
  margin-top: 0;
}

.legal-content p {
  margin: 0 0 10px;
}

.legal-content ul {
  margin: 7px 0 12px;
  padding-left: 20px;
}

.legal-content li + li {
  margin-top: 5px;
}

.legal-content a {
  color: var(--rose);
  text-underline-offset: 3px;
}

.legal-effective-date {
  margin-top: 28px !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 680ms ease, transform 680ms ease;
  transition-delay: var(--delay, 0ms);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slow-drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes hero-breathe {
  from {
    transform: scale(1.025);
  }
  to {
    transform: scale(1.045);
  }
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

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

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

  .letter-writing::after {
    animation-duration: 900ms !important;
    animation-iteration-count: infinite !important;
  }
}

@media (max-width: 980px) {
  .about-grid,
  .message-cloud {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .notice-layout {
    grid-template-columns: 1fr;
  }

  .notice-side,
  .contact-box {
    position: static;
  }
}

@media (max-width: 780px) {
  .site-header {
    min-height: 58px;
    padding-inline: 16px;
    background: rgba(255, 248, 242, 0.97);
    backdrop-filter: none;
  }

  .hero-content,
  .message-card::before,
  .letter-backdrop,
  .fanart-modal-backdrop,
  .legal-modal-backdrop,
  .legal-header {
    backdrop-filter: none;
  }

  .brand {
    min-width: auto;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .site-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 66px;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
  }

  .site-nav a {
    justify-content: center;
    background: rgba(255, 242, 234, 0.75);
  }

  .hero {
    min-height: 82vh;
    padding: 84px 18px 26px;
  }

  .hero-content {
    margin-left: 0;
    padding: 26px 24px;
    border-radius: 14px;
  }

  h1 {
    font-size: 3.1rem;
  }

  .hero-subtitle {
    font-size: 1.38rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-note {
    width: 100%;
    justify-content: flex-start;
    gap: 10px 18px;
  }

  .hero-note span {
    text-align: left;
  }

  .section {
    padding: 64px 18px;
  }

  .site-footer {
    align-items: flex-start;
    padding: 24px 18px;
  }

  .legal-modal {
    padding: 10px;
  }

  .legal-dialog {
    max-height: calc(100dvh - 20px);
  }

  .legal-header {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px 14px 12px;
  }

  .legal-header h2 {
    font-size: 1.02rem;
  }

  .legal-language {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }

  .legal-close {
    grid-column: 2;
    grid-row: 1;
  }

  .legal-content {
    padding: 22px 18px max(42px, env(safe-area-inset-bottom));
    font-size: 0.88rem;
  }

  .intro-band {
    padding-inline: 18px;
  }

  .intro-panel h2,
  .section-heading h2 {
    font-size: 1.72rem;
  }

  .promise-list,
  .highlight-grid,
  .link-grid,
  .all-messages {
    grid-template-columns: 1fr;
  }

  .fanart-heading-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .fanart-caption {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 17px 18px;
  }

  .fanart-original {
    margin-left: auto;
  }

  .fanart-modal {
    padding:
      max(8px, env(safe-area-inset-top))
      8px
      max(8px, env(safe-area-inset-bottom));
  }

  .fanart-modal-dialog {
    width: 100%;
    max-height: calc(
      100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom))
    );
  }

  .fanart-modal-dialog img {
    max-height: none;
  }

  .fanart-modal-close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
  }

  .fanart-modal-caption {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 15px 16px max(18px, env(safe-area-inset-bottom));
  }

  .fanart-modal-identity {
    gap: 12px 18px;
  }

  .fanart-modal-description {
    font-size: 0.9rem;
  }

  .tab-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .tab-list button {
    min-width: 0;
    padding-inline: 10px;
  }
}

@media (max-width: 560px) {
  .about-grid,
  .message-cloud {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .section-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  h1 {
    font-size: 2.65rem;
  }

  .hero-content {
    padding: 24px 20px;
  }

  .hero-content::before {
    top: 18px;
    bottom: 18px;
  }

  .message-sort-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .message-sort-controls[hidden] {
    display: none;
  }

  .message-card {
    min-height: 150px;
    padding: 25px 18px 18px;
  }

  .message-body {
    min-height: auto;
    -webkit-line-clamp: 3;
  }

  .message-card.hand-font-1 .message-body,
  .message-card.hand-font-4 .message-body {
    font-size: 1.02rem;
  }

  .message-card.hand-font-2 .message-body,
  .message-card.hand-font-3 .message-body,
  .message-card.hand-font-5 .message-body {
    font-size: 1.08rem;
  }

  .letter-modal {
    padding: 10px 10px max(24px, env(safe-area-inset-bottom));
  }

  .letter-dialog {
    --letter-inset-left: 34px;
    --letter-inset-right: 22px;
    height: calc(100vh - 54px);
    height: calc(100dvh - 54px);
    min-height: 0;
    max-height: calc(100vh - 54px);
    max-height: calc(100dvh - 54px);
    padding: 30px 22px max(68px, calc(48px + env(safe-area-inset-bottom))) 34px;
  }

  .letter-dialog h2 {
    font-size: 1.9rem;
  }

  .letter-name {
    margin-bottom: 18px;
  }

  .letter-dialog.hand-font-1 .letter-body,
  .letter-dialog.hand-font-4 .letter-body {
    font-size: 1.08rem;
    line-height: var(--note-line-step);
  }

  .letter-dialog.hand-font-2 .letter-body,
  .letter-dialog.hand-font-3 .letter-body,
  .letter-dialog.hand-font-5 .letter-body {
    font-size: 1.12rem;
    line-height: var(--note-line-step);
  }

  .letter-body {
    padding-bottom: 118px;
  }

  .letter-skip {
    width: auto;
  }

  .letter-tools {
    margin: -12px -8px 10px 0;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding-inline: 18px;
  }
}
