@font-face {
  font-family: "Zen Maru";
  src: url("assets/fonts/ZenMaruGothic-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zen Maru";
  src: url("assets/fonts/ZenMaruGothic-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Zen Maru";
  src: url("assets/fonts/ZenMaruGothic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Klee One";
  src: url("assets/fonts/KleeOne-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Yomogi";
  src: url("assets/fonts/Yomogi-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: oklch(96.6% 0.027 82);
  --paper-deep: oklch(92.5% 0.042 84);
  --paper-soft: oklch(98% 0.018 86);
  --ink: oklch(25% 0.024 61);
  --ink-muted: oklch(43% 0.045 60);
  --sepia: oklch(48% 0.067 58);
  --sakura: oklch(84% 0.075 13);
  --sakura-strong: oklch(72% 0.13 24);
  --butter: oklch(88% 0.09 87);
  --matcha: oklch(68% 0.07 126);
  --sage: oklch(84% 0.049 154);
  --mint: oklch(88% 0.043 162);
  --lavender: oklch(82% 0.055 308);
  --line: oklch(72% 0.047 68 / 52%);
  --shadow: 0 22px 80px oklch(37% 0.055 65 / 17%);
  --soft-shadow: 0 12px 38px oklch(38% 0.05 65 / 12%);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18px 18px, oklch(76% 0.06 72 / 18%) 0 1px, transparent 1.4px),
    linear-gradient(180deg, var(--paper-soft), var(--paper));
  background-size: 34px 34px, auto;
  color: var(--ink);
  font-family: "Zen Maru", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 22px 34px;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand-link {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  min-height: 48px;
}

.brand-icon {
  border-radius: 8px;
  height: 42px;
  object-fit: cover;
  width: 42px;
}

.brand-link strong {
  display: block;
  font-size: 1.02rem;
  line-height: 1.05;
}

.brand-link small {
  color: var(--sepia);
  display: block;
  font-size: 0.78rem;
  line-height: 1.2;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 8px;
}

.site-nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink-muted);
  display: inline-flex;
  font-size: 0.92rem;
  min-height: 42px;
  padding: 8px 15px;
}

.site-nav a:hover {
  border-color: var(--line);
  color: var(--ink);
}

.site-nav .nav-invite {
  background: var(--ink);
  color: var(--paper-soft);
}

.hero {
  align-items: center;
  background:
    linear-gradient(90deg, oklch(96% 0.026 82 / 96%) 0%, oklch(96% 0.026 82 / 91%) 25%, oklch(96% 0.026 82 / 54%) 48%, oklch(96% 0.026 82 / 8%) 74%),
    linear-gradient(180deg, oklch(98% 0.018 86 / 70%), oklch(94% 0.032 80 / 42%)),
    url("assets/hero-mogpic-table.png");
  background-position: center;
  background-size: cover;
  display: flex;
  min-height: 88svh;
  overflow: hidden;
  padding: 116px 34px 72px;
  position: relative;
}

.hero::after {
  background: linear-gradient(0deg, var(--paper) 0%, oklch(96% 0.027 82 / 0%) 100%);
  bottom: 0;
  content: "";
  height: 92px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.hero-inner {
  max-width: 610px;
  position: relative;
  z-index: 1;
}

.hero-kicker,
.section-kicker {
  color: var(--sepia);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 18px;
}

.hero-kicker {
  align-items: center;
  display: inline-flex;
  gap: 9px;
}

.hero-kicker::before {
  background: var(--sakura-strong);
  border-radius: 999px;
  content: "";
  height: 10px;
  width: 10px;
}

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

h1 {
  font-family: "Zen Maru", system-ui, sans-serif;
  font-size: 3.75rem;
  font-weight: 500;
  line-height: 1.18;
  margin-bottom: 22px;
  max-width: 39rem;
}

.hero-brandmark {
  align-items: baseline;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  font-size: 1.34rem;
  font-weight: 700;
  gap: 8px;
  line-height: 1.2;
  margin: 0 0 20px;
}

.hero-brand-latin {
  font-size: 1.08em;
}

.hero-brand-divider {
  color: var(--sepia);
}

.hero-brand-jp,
h1 span {
  white-space: nowrap;
}

.hero-copy {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 42rem;
}

.hero-copy-break {
  display: block;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 52px;
  padding: 13px 23px;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  white-space: nowrap;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.64;
  transform: none;
}

.button-primary,
.button-submit {
  background: var(--ink);
  box-shadow: var(--soft-shadow);
  color: var(--paper-soft);
}

.button-secondary {
  background: oklch(98% 0.018 86 / 68%);
  border-color: var(--line);
  color: var(--ink);
}

.hero-points {
  color: var(--sepia);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.hero-points li {
  align-items: center;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 500;
}

.hero-points li + li::before {
  color: oklch(63% 0.074 49 / 72%);
  content: "・";
  padding: 0 10px;
}

.notice-band {
  background: var(--butter);
  color: var(--sepia);
  padding: 16px 24px;
  text-align: center;
}

.notice-band p {
  margin: 0 auto;
  max-width: 880px;
}

.section {
  padding: 110px 34px;
}

.section-heading {
  margin: 0 auto 58px;
  max-width: var(--max-width);
}

.section-heading-narrow {
  max-width: 760px;
  text-align: center;
}

.section-heading h2 {
  font-family: "Klee One", "Zen Maru", system-ui, sans-serif;
  font-size: 3.05rem;
  line-height: 1.16;
  margin-bottom: 20px;
  max-width: 14ch;
}

.section-heading-narrow h2 {
  margin-left: auto;
  margin-right: auto;
}

.section-heading p:not(.section-kicker) {
  color: var(--ink-muted);
  font-size: 1.04rem;
  max-width: 67ch;
}

.story-section .section-heading h2 {
  font-family: "Zen Maru", system-ui, sans-serif;
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1.22;
  max-width: 18ch;
}

.story-section .section-heading p:not(.section-kicker) {
  font-size: 1.08rem;
  line-height: 1.9;
  max-width: 58ch;
}

.story-section .section-heading h2 span {
  display: inline-block;
  white-space: nowrap;
}

.story-layout {
  align-items: center;
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(300px, 0.92fr) minmax(340px, 1.08fr);
  margin: 0 auto;
  max-width: var(--max-width);
}

.receipt-flow {
  background:
    linear-gradient(90deg, transparent 0 22px, oklch(82% 0.05 62 / 28%) 22px 23px, transparent 23px),
    var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.receipt-flow ol {
  list-style: none;
  margin: 0;
  padding: 12px 26px;
}

.receipt-flow li {
  display: grid;
  gap: 20px;
  grid-template-columns: 52px 1fr;
  padding: 26px 0;
}

.receipt-flow li + li {
  border-top: 1px dashed var(--line);
}

.step-number {
  color: var(--sakura-strong);
  font-family: "Zen Maru", system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.receipt-flow h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin-bottom: 8px;
}

.receipt-flow p {
  color: var(--ink-muted);
  margin-bottom: 0;
}

.feature-image {
  margin: 0;
  position: relative;
}

.feature-image::before {
  background: repeating-linear-gradient(135deg, var(--butter) 0 8px, oklch(81% 0.09 79) 8px 12px);
  content: "";
  height: 42px;
  left: 12%;
  opacity: 0.9;
  position: absolute;
  top: -22px;
  transform: rotate(-2deg);
  width: 168px;
  z-index: 2;
}

.feature-image img {
  aspect-ratio: 1122 / 1402;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: auto;
  object-fit: contain;
  width: 100%;
}

.feature-image figcaption {
  color: var(--sepia);
  font-size: 0.94rem;
  margin-top: 14px;
}

.preview-section {
  background:
    radial-gradient(circle at 72% 18%, oklch(88% 0.068 152 / 42%) 0 18%, transparent 44%),
    linear-gradient(180deg, var(--paper-soft) 0%, oklch(94.5% 0.031 83) 58%, oklch(91% 0.043 151) 100%);
  overflow: hidden;
  position: relative;
}

.preview-section::before {
  background:
    linear-gradient(180deg, transparent 0 31px, oklch(74% 0.044 78 / 22%) 31px 32px),
    radial-gradient(circle at 14px 14px, oklch(79% 0.058 74 / 20%) 0 1px, transparent 1.5px);
  background-size: 100% 32px, 32px 32px;
  content: "";
  inset: 0;
  opacity: 0.58;
  pointer-events: none;
  position: absolute;
}

.preview-section::after {
  content: none;
}

.preview-section > * {
  position: relative;
  z-index: 1;
}

.preview-inner {
  align-items: center;
  display: grid;
  gap: clamp(36px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  margin: 0 auto;
  max-width: var(--max-width);
}

.preview-copy {
  max-width: 500px;
}

.preview-copy h2 {
  font-family: "Zen Maru", system-ui, sans-serif;
  font-size: clamp(2.2rem, 2.9vw, 3.1rem);
  font-weight: 500;
  line-height: 1.18;
  margin: 0 0 26px;
  max-width: 9.5em;
}

.preview-copy h2 span {
  display: block;
  white-space: normal;
}

.preview-copy p:not(.section-kicker) {
  color: var(--ink-muted);
  font-size: 1.08rem;
  line-height: 1.95;
  max-width: 38rem;
}

.preview-flow {
  counter-reset: preview-step;
  display: grid;
  gap: 0;
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
  position: relative;
}

.preview-flow li {
  align-items: baseline;
  border-top: 1px dashed oklch(71% 0.047 68 / 48%);
  counter-increment: preview-step;
  display: grid;
  font-weight: 700;
  gap: 16px;
  grid-template-columns: 76px 1fr;
  padding: 15px 0;
}

.preview-flow li:last-child {
  border-bottom: 1px dashed oklch(71% 0.047 68 / 48%);
}

.preview-flow li span {
  color: var(--sakura-strong);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}

.preview-flow li strong {
  color: var(--sepia);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.preview-stage {
  display: grid;
  gap: clamp(18px, 2.4vw, 26px);
  margin: 0;
  position: relative;
}

.preview-frame {
  position: relative;
}

.preview-tape {
  background: repeating-linear-gradient(135deg, var(--butter) 0 8px, oklch(81% 0.09 79) 8px 12px);
  border-radius: 2px;
  height: 38px;
  left: 50%;
  opacity: 0.82;
  position: absolute;
  top: -16px;
  transform: translateX(-50%) rotate(-1.6deg);
  width: 150px;
  z-index: 3;
}

.preview-print {
  aspect-ratio: 1024 / 1280;
  border: 1px solid oklch(75% 0.052 73 / 52%);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.preview-stage figcaption {
  color: var(--sepia);
  display: grid;
  gap: 4px;
  max-width: 30rem;
}

.preview-stage figcaption span {
  color: var(--sakura-strong);
  font-weight: 700;
}

.preview-stage figcaption strong {
  font-family: "Klee One", "Zen Maru", system-ui, sans-serif;
  font-size: 1.08rem;
  font-weight: 600;
}

.scenes-section {
  background:
    radial-gradient(circle at 16px 16px, oklch(79% 0.058 74 / 13%) 0 1px, transparent 1.6px),
    linear-gradient(180deg, var(--paper-soft) 0%, var(--paper) 72%);
  background-size: 30px 30px, auto;
  position: relative;
}

.notebook {
  margin: 0 auto;
  max-width: 760px;
  position: relative;
}

.notebook-page {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow:
    5px 8px 0 0 var(--paper),
    6px 9px 0 0 var(--line),
    11px 16px 0 0 var(--paper),
    12px 17px 0 0 var(--line),
    var(--shadow);
  padding: clamp(30px, 4.4vw, 52px) clamp(24px, 4vw, 48px) clamp(28px, 4vw, 44px);
  position: relative;
}

.notebook-tab {
  background: var(--sakura);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 9px 9px 0 0;
  color: var(--sepia);
  font-family: "Klee One", "Zen Maru", system-ui, sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  left: clamp(22px, 4vw, 44px);
  letter-spacing: 0.08em;
  margin: 0;
  padding: 7px 20px 8px;
  position: absolute;
  top: -17px;
}

.notebook-head {
  margin-bottom: 28px;
}

.notebook-head .section-kicker {
  margin-bottom: 12px;
}

.notebook-head h2 {
  font-family: "Zen Maru", system-ui, sans-serif;
  font-size: clamp(1.92rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.24;
  margin: 0 0 16px;
  max-width: 20ch;
}

/* Keep the second clause together so "旅先" never splits across lines.
   When it can't share a line with the first clause it wraps as a whole,
   giving a "ひとりごはんも、" / "旅先の一皿も。" rhythm on mobile. */
.notebook-head h2 .notebook-title-phrase {
  white-space: nowrap;
}

.notebook-lead {
  color: var(--ink-muted);
  font-size: 1.02rem;
  line-height: 1.9;
  margin: 0;
  max-width: 48ch;
}

.memory-index {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.memory-index::before {
  background: oklch(78% 0.1 22 / 40%);
  bottom: 6px;
  content: "";
  left: 66px;
  pointer-events: none;
  position: absolute;
  top: 6px;
  width: 1.5px;
}

.memory {
  align-items: baseline;
  column-gap: 22px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  padding: 24px 0;
}

.memory + .memory {
  border-top: 1px dashed oklch(71% 0.047 68 / 42%);
}

.memory-date {
  color: var(--sepia);
  font-family: "Klee One", "Zen Maru", system-ui, sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
  text-align: right;
  white-space: nowrap;
}

.memory-entry {
  min-width: 0;
}

.memory-line {
  align-items: flex-end;
  display: flex;
  gap: 10px;
  margin: 0 0 7px;
}

.memory-title {
  color: var(--ink);
  flex: 0 1 auto;
  font-family: "Klee One", "Zen Maru", system-ui, sans-serif;
  font-size: clamp(1.16rem, 2vw, 1.42rem);
  font-weight: 600;
  line-height: 1.26;
  min-width: 0;
}

.memory-dots {
  border-bottom: 2px dotted oklch(60% 0.05 60 / 50%);
  flex: 1 1 18px;
  min-width: 18px;
}

.memory-tag {
  border-bottom: 2px solid var(--sakura-strong);
  color: var(--sepia);
  flex: 0 0 auto;
  font-family: "Klee One", "Zen Maru", system-ui, sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.4;
  padding-bottom: 1px;
  white-space: nowrap;
}

.memory:nth-child(2) .memory-tag {
  border-bottom-color: var(--matcha);
}

.memory:nth-child(3) .memory-tag {
  border-bottom-color: var(--lavender);
}

.memory:nth-child(4) .memory-tag {
  border-bottom-color: oklch(74% 0.1 82);
}

.memory-note {
  color: var(--ink-muted);
  font-family: "Yomogi", "Zen Maru", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.notebook-sign {
  align-items: baseline;
  border-top: 1px dashed oklch(71% 0.047 68 / 42%);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  margin: 30px 0 0;
  padding-top: 22px;
}

.notebook-sign-note {
  color: var(--sepia);
  font-family: "Yomogi", "Zen Maru", system-ui, sans-serif;
  font-size: 1.06rem;
}

.notebook-sign-link {
  align-items: center;
  color: var(--sakura-strong);
  display: inline-flex;
  font-weight: 700;
  gap: 6px;
}

.notebook-sign-link::after {
  content: "\2192";
  transition: transform 180ms ease;
}

.notebook-sign-link:hover {
  color: var(--ink);
}

.notebook-sign-link:hover::after {
  transform: translateX(3px);
}

.invite-section {
  background:
    radial-gradient(circle at 50% 0%, oklch(86% 0.075 18 / 38%) 0 26%, transparent 58%),
    radial-gradient(circle at 18px 18px, oklch(74% 0.06 62 / 11%) 0 1px, transparent 1.5px),
    linear-gradient(180deg, var(--paper-soft) 0%, var(--paper-deep) 100%);
  background-size: auto, 32px 32px, auto;
  padding: 110px 34px 120px;
  position: relative;
}

.invite-card {
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 700px;
  padding: clamp(34px, 5vw, 60px) clamp(24px, 4.6vw, 58px) clamp(32px, 4.4vw, 52px);
  position: relative;
}

.invite-tape {
  border-radius: 1px;
  height: 30px;
  opacity: 0.82;
  position: absolute;
  top: -13px;
  width: 112px;
  z-index: 2;
}

.invite-tape-left {
  background: repeating-linear-gradient(135deg, oklch(89% 0.05 22 / 80%) 0 7px, oklch(83% 0.085 20 / 80%) 7px 12px);
  left: clamp(20px, 9%, 86px);
  transform: rotate(-4deg);
}

.invite-tape-right {
  background: repeating-linear-gradient(45deg, oklch(89% 0.045 150 / 72%) 0 7px, oklch(83% 0.07 150 / 72%) 7px 12px);
  right: clamp(20px, 9%, 86px);
  transform: rotate(3.4deg);
}

.invite-head {
  border-bottom: 1px dashed oklch(70% 0.05 60 / 50%);
  margin: 0 0 32px;
  padding-bottom: 26px;
  text-align: center;
}

.invite-head .section-kicker {
  margin-bottom: 14px;
}

.invite-head h2 {
  font-family: "Klee One", "Zen Maru", system-ui, sans-serif;
  font-size: clamp(1.6rem, 4.8vw, 2.7rem);
  font-weight: 600;
  line-height: 1.28;
  margin: 0 0 16px;
}

.invite-head h2 span {
  display: block;
}

.invite-lead {
  color: var(--ink-muted);
  font-size: 1.04rem;
  line-height: 1.9;
  margin: 0 auto;
  max-width: 46ch;
}

.invite-form {
  display: grid;
  gap: 26px;
}

.bot-field {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  white-space: nowrap;
  width: 1px;
}

.field-row {
  display: grid;
  gap: 8px;
}

.field-row label,
.scene-field legend {
  color: var(--sepia);
  font-weight: 700;
}

.field-row input,
.field-row textarea {
  background-color: transparent;
  border: 0;
  border-bottom: 2px solid oklch(70% 0.05 64 / 60%);
  border-radius: 0;
  color: var(--ink);
  min-height: 48px;
  outline: none;
  padding: 10px 4px;
  transition: border-color 160ms ease, background-color 160ms ease;
  width: 100%;
}

.field-row input::placeholder,
.field-row textarea::placeholder {
  color: oklch(60% 0.03 64 / 70%);
}

.field-row input:focus,
.field-row textarea:focus {
  background-color: oklch(88% 0.08 80 / 22%);
  border-bottom-color: var(--sakura-strong);
}

.field-row textarea {
  background-color: oklch(98% 0.014 86 / 55%);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0 29px,
    oklch(72% 0.05 66 / 30%) 29px 30px
  );
  background-attachment: local;
  background-origin: content-box;
  line-height: 30px;
  min-height: 120px;
  padding: 8px 8px;
  resize: vertical;
}

.field-row textarea:focus {
  background-color: oklch(88% 0.08 80 / 20%);
}

.scene-field {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.scene-field legend {
  margin-bottom: 12px;
  padding: 0;
}

.scene-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.scene-tag {
  cursor: pointer;
}

.scene-tag input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.scene-tag span {
  align-items: center;
  background: linear-gradient(transparent 64%, oklch(86% 0.07 82 / 30%) 64%);
  border-radius: 3px;
  box-sizing: border-box;
  color: var(--ink-muted);
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  height: 44px;
  line-height: 1;
  padding: 6px 12px 6px 10px;
  transition: background 160ms ease, color 160ms ease;
}

.scene-tag span::before {
  align-items: center;
  border: 2px solid oklch(66% 0.05 60 / 65%);
  border-radius: 50%;
  color: var(--paper-soft);
  content: "";
  display: inline-flex;
  flex: none;
  font-size: 0.78rem;
  font-weight: 700;
  height: 18px;
  justify-content: center;
  line-height: 1;
  width: 18px;
}

.scene-tag input:checked + span {
  background: linear-gradient(transparent 64%, oklch(83% 0.1 24 / 55%) 64%);
  color: var(--ink);
}

.scene-tag input:checked + span::before {
  background: var(--sakura-strong);
  border-color: var(--sakura-strong);
  content: "\2713";
}

.scene-tag input:focus-visible + span {
  outline: 3px solid oklch(72% 0.13 24 / 55%);
  outline-offset: 2px;
}

.scene-tag:hover span {
  color: var(--ink);
}

.consent-row {
  align-items: start;
  color: var(--ink-muted);
  display: grid;
  font-weight: 400;
  gap: 12px;
  grid-template-columns: 22px 1fr;
  line-height: 1.7;
}

.consent-row input {
  accent-color: var(--sakura-strong);
  height: 22px;
  margin-top: 4px;
  width: 22px;
}

.consent-row input:focus-visible {
  outline: 3px solid oklch(72% 0.13 24 / 55%);
  outline-offset: 2px;
}

.inline-link {
  color: var(--sakura-strong);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.inline-link:hover {
  color: var(--ink);
}

.invite-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 6px;
}

.invite-reassure {
  color: var(--sepia);
  font-size: 0.9rem;
  margin: 0;
}

.button-submit {
  border: 0;
  min-width: 200px;
}

.form-status {
  color: var(--sepia);
  font-weight: 700;
  margin: 6px 0 0;
  min-height: 28px;
}

.form-status[data-state="sending"] {
  color: var(--sepia);
}

.form-status[data-state="success"] {
  color: oklch(45% 0.07 135);
}

.form-status[data-state="error"] {
  color: var(--sakura-strong);
}

.legal-main {
  padding: 132px 24px 84px;
}

.legal-paper {
  background:
    linear-gradient(90deg, transparent 0 25px, oklch(82% 0.05 62 / 26%) 25px 26px, transparent 26px),
    linear-gradient(180deg, var(--paper-soft), oklch(97% 0.02 84));
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin: 0 auto;
  max-width: 880px;
  padding: clamp(34px, 6vw, 68px) clamp(24px, 5vw, 72px);
}

.legal-paper h1 {
  font-family: "Klee One", "Zen Maru", system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 18px;
}

.legal-lead {
  color: var(--ink-muted);
  font-size: 1.04rem;
  max-width: 64ch;
}

.legal-section {
  border-top: 1px dashed oklch(71% 0.047 68 / 48%);
  margin-top: 30px;
  padding-top: 26px;
}

.legal-section h2 {
  font-family: "Klee One", "Zen Maru", system-ui, sans-serif;
  font-size: 1.34rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
  color: var(--ink-muted);
}

.legal-section ul {
  margin: 0;
  padding-left: 1.25em;
}

.legal-section li + li {
  margin-top: 6px;
}

.legal-back {
  margin-top: 34px;
}

.site-footer {
  align-items: center;
  background: var(--ink);
  color: var(--paper-deep);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  padding: 28px 34px;
}

.site-footer p {
  margin: 0;
}

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

.site-footer a {
  color: var(--paper-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer a:hover {
  color: var(--butter);
}

[data-reveal] {
  transition: opacity 560ms cubic-bezier(0.16, 1, 0.3, 1), transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}

.reveal-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1020px) {
  .preview-inner {
    grid-template-columns: 1fr;
  }

  .preview-copy {
    max-width: 680px;
  }

  .preview-copy h2 {
    max-width: 9.5em;
  }

  .preview-stage {
    margin: 0 auto;
    max-width: 520px;
    width: 100%;
  }
}

@media (max-width: 940px) {
  .hero {
    background:
      linear-gradient(90deg, oklch(96% 0.026 82 / 97%) 0%, oklch(96% 0.026 82 / 86%) 52%, oklch(96% 0.026 82 / 20%) 100%),
      url("assets/hero-mogpic-table.png");
    background-position: 62% center;
    background-size: cover;
  }

  h1 {
    font-size: 3.35rem;
  }

  .story-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-header {
    padding: 16px 18px;
  }

  .brand-icon {
    height: 36px;
    width: 36px;
  }

  .site-nav a:not(.nav-invite) {
    display: none;
  }

  .site-nav .nav-invite {
    min-height: 40px;
    padding: 7px 13px;
  }

  .hero {
    align-items: end;
    background:
      linear-gradient(180deg, oklch(96% 0.026 82 / 65%) 0%, oklch(96% 0.026 82 / 84%) 34%, oklch(96% 0.026 82 / 98%) 100%),
      url("assets/hero-mogpic-table.png");
    background-position: 70% center;
    min-height: 88svh;
    padding: 106px 20px 58px;
  }

  h1 {
    font-size: 2.28rem;
    max-width: 100%;
  }

  .hero-brandmark {
    font-size: 1.08rem;
    margin-bottom: 16px;
  }

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

  .hero-copy-break {
    display: none;
  }

  .button {
    min-height: 50px;
    padding: 12px 18px;
  }

  .section {
    padding: 78px 20px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-heading h2 {
    font-size: 2.24rem;
  }

  .story-layout {
    gap: 44px;
  }

  .story-section .section-heading h2 {
    font-size: 1.96rem;
    max-width: 100%;
  }

  .story-section .section-heading h2 span {
    white-space: normal;
  }

  .receipt-flow ol {
    padding: 8px 20px;
  }

  .receipt-flow li {
    gap: 14px;
    grid-template-columns: 44px 1fr;
    padding: 22px 0;
  }

  .preview-section {
    background:
      radial-gradient(circle at 70% 40%, oklch(88% 0.068 152 / 38%) 0 18%, transparent 46%),
      linear-gradient(180deg, var(--paper-soft) 0%, oklch(94.5% 0.031 83) 58%, oklch(91% 0.043 151) 100%);
  }

  .preview-inner {
    gap: 40px;
  }

  .preview-copy h2 {
    font-size: 2.42rem;
    max-width: 100%;
  }

  .preview-flow {
    margin-top: 24px;
  }

  .preview-flow li {
    gap: 12px;
    grid-template-columns: 64px 1fr;
    padding: 13px 0;
  }

  .preview-stage {
    max-width: 440px;
  }

  .preview-tape {
    height: 32px;
    top: -13px;
    width: 122px;
  }

  .scenes-section {
    background-size: 26px 26px, auto;
  }

  .notebook-page {
    border-radius: 10px;
    box-shadow:
      4px 6px 0 0 var(--paper),
      5px 7px 0 0 var(--line),
      8px 12px 0 0 var(--paper),
      9px 13px 0 0 var(--line),
      var(--soft-shadow);
  }

  .notebook-tab {
    top: -15px;
  }

  .memory-index::before {
    display: none;
  }

  .memory {
    column-gap: 0;
    grid-template-columns: 1fr;
    padding: 20px 0;
    row-gap: 5px;
  }

  .memory-date {
    font-size: 0.9rem;
    text-align: left;
  }

  .invite-section {
    padding: 80px 18px 96px;
  }

  .invite-card {
    padding: clamp(26px, 6vw, 34px) clamp(18px, 5vw, 26px) 32px;
  }

  .invite-tape {
    width: 92px;
  }

  .invite-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button-submit {
    min-width: 0;
    width: 100%;
  }

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

@media (max-width: 410px) {
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-points li {
    font-size: 0.82rem;
  }
}
