@charset "UTF-8";

:root {
  --paper: #fff8e8;
  --paper-light: #fffef8;
  --ink: #1e2b27;
  --muted: #6f7167;
  --coral: #f26b4f;
  --coral-dark: #d9553c;
  --sage: #dce6cf;
  --line: rgba(30, 43, 39, 0.2);
  --serif: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --sans: "Noto Sans CJK SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 700; letter-spacing: -0.8px; }
.main-nav { display: flex; align-items: center; gap: 48px; margin-left: auto; margin-right: 34px; font-size: 15px; }
.main-nav a, .site-footer a { transition: color 160ms ease; }
.main-nav a:hover, .site-footer a:hover { color: var(--coral-dark); }

.button {
  appearance: none;
  border: 1px solid var(--coral);
  border-radius: 5px;
  background: var(--coral);
  color: #fffdf8;
  min-height: 44px;
  padding: 11px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  box-shadow: 0 5px 12px rgba(130, 66, 43, 0.08);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { background: var(--coral-dark); border-color: var(--coral-dark); transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button:focus-visible, a:focus-visible, summary:focus-visible, .upload-button:focus-visible { outline: 3px solid rgba(242, 107, 79, 0.35); outline-offset: 4px; }
.button:disabled { opacity: 0.65; cursor: wait; transform: none; }
.button-small { min-height: 42px; padding: 9px 24px; }
.button-large { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.button-outline { color: var(--ink); background: transparent; border-color: var(--line); box-shadow: none; }
.button-outline:hover { color: var(--ink); background: rgba(30, 43, 39, 0.06); border-color: var(--ink); }
.button-quiet { color: var(--ink); background: transparent; border-color: transparent; box-shadow: none; }
.button-quiet:hover { color: var(--coral-dark); background: transparent; border-color: transparent; }
.text-link { display: inline-flex; gap: 10px; align-items: center; font-size: 15px; border-bottom: 1px solid transparent; }
.text-link:hover { color: var(--coral-dark); border-bottom-color: currentColor; }

.hero { display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: 64px; padding-top: 72px; padding-bottom: 94px; min-height: 650px; }
.hero-copy h1 { margin: 0 0 24px; font-family: var(--serif); font-size: clamp(50px, 5.25vw, 72px); line-height: 1.22; letter-spacing: -0.045em; font-weight: 700; }
.hero-copy h1 span { white-space: nowrap; }
.hero-copy > p { margin: 0; color: #565f58; font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 32px; }
.hero-stage { position: relative; display: flex; justify-content: center; padding: 8px 16px 22px; }
.hero-stage::after { content: ""; position: absolute; z-index: -1; bottom: 4px; left: 15%; right: 4%; height: 34px; border-radius: 50%; background: rgba(61, 53, 34, 0.14); filter: blur(18px); }
.hero-paper { width: min(100%, 440px); transform: rotate(3.2deg); box-shadow: 0 24px 52px rgba(64, 52, 27, 0.18); }

.newspaper { container-type: inline-size; position: relative; width: 100%; aspect-ratio: 1 / 1.4142; padding: 5.6cqw 6.2cqw 4.5cqw; background: var(--paper-light); border: 1px solid rgba(30, 43, 39, 0.18); color: #202823; overflow: hidden; font-family: var(--serif); }
.paper-meta { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1.8cqw; border-bottom: 1px solid currentColor; font-family: var(--sans); font-size: 2.1cqw; letter-spacing: 0.08em; }
.paper-masthead { margin: 2.4cqw 0 0; text-align: center; font-size: 10.8cqw; line-height: 1.05; letter-spacing: 0.05em; font-weight: 900; }
.paper-english { margin: 1.2cqw 0 2cqw; text-align: center; font-family: Georgia, serif; font-size: 2.25cqw; letter-spacing: 0.28em; }
.paper-rule { height: 0.65cqw; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.paper-headline { margin: 2.7cqw 0 1.4cqw; font-size: 5.15cqw; line-height: 1.25; letter-spacing: -0.025em; text-align: left; }
.paper-deck { margin: 0 0 2.3cqw; font-family: var(--sans); font-size: 2.15cqw; line-height: 1.5; color: #5e625b; }
.paper-photo { width: 100%; background: #e6eadf; overflow: hidden; }
.paper-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-feature { aspect-ratio: 1.72; padding: 4cqw; background: var(--sage); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.hero-feature > span { font-family: var(--sans); font-size: 1.9cqw; letter-spacing: 0.14em; color: #566052; }
.hero-feature strong { margin: 2.2cqw 0; font-size: 7.2cqw; line-height: 1.2; }
.hero-feature p { margin: 0; font-size: 2.15cqw; line-height: 1.6; }
.preview-photo { aspect-ratio: 2.05; }
.photo-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4cqw; color: #687064; background: #edf0e7; font-family: var(--sans); }
.photo-empty::before { content: "+"; display: grid; place-items: center; width: 6cqw; height: 6cqw; margin-bottom: 0.5cqw; border: 1px solid #9ca693; border-radius: 50%; font-size: 4cqw; font-weight: 300; }
.photo-empty span { font-size: 2.4cqw; }
.photo-empty small { font-size: 1.8cqw; }
.photo-caption { margin: 1.2cqw 0 2.2cqw; padding-bottom: 1.4cqw; border-bottom: 1px solid rgba(30, 43, 39, 0.35); font-family: var(--sans); font-size: 1.85cqw; color: #666b63; }
.hero-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw; margin-top: 2.5cqw; }
.hero-columns p { margin: 0; font-size: 2.2cqw; line-height: 1.65; text-align: justify; }
.hero-columns strong { display: block; margin-bottom: 0.8cqw; font-size: 2.35cqw; }
.paper-quote { margin: 3.2cqw 0; padding: 2.4cqw 2cqw; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; text-align: center; font-size: 5.6cqw; line-height: 1.25; font-weight: 700; }
.paper-quote span { display: block; margin-bottom: 1cqw; font-family: var(--sans); font-size: 1.8cqw; font-weight: 400; letter-spacing: 0.16em; color: #6b6e66; }
.paper-quote strong { display: block; font-weight: 700; }
.paper-footer { position: absolute; bottom: 2.8cqw; left: 6.2cqw; right: 6.2cqw; display: flex; justify-content: space-between; padding-top: 1.4cqw; border-top: 1px solid currentColor; font-family: var(--sans); font-size: 1.65cqw; letter-spacing: 0.04em; }

.maker-section { padding: 84px 0 108px; border-top: 1px solid rgba(30, 43, 39, 0.1); }
.section-heading { margin-bottom: 44px; }
.section-heading h2 { margin: 0 0 10px; font-family: var(--serif); font-size: 39px; line-height: 1.35; letter-spacing: -0.025em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.maker-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 0.82fr); gap: 68px; align-items: start; }
.memory-form { min-width: 0; }
.form-section { min-width: 0; margin: 0; padding: 25px 0 28px; border: 0; border-top: 1px solid var(--line); }
.form-section legend { width: 100%; padding: 0 0 21px; font-size: 20px; font-weight: 600; }
.form-section legend span { display: inline-block; margin-right: 10px; font-family: Georgia, serif; font-size: 18px; font-weight: 400; }
.basic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; font-size: 14px; }
.field-wide { grid-column: 1 / -1; max-width: calc(50% - 11px); }
.field input, .numbered-field input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid rgba(30, 43, 39, 0.15);
  border-radius: 3px;
  background: rgba(255, 254, 248, 0.72);
  color: var(--ink);
  padding: 9px 12px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field input:focus, .numbered-field input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(242, 107, 79, 0.12); }
.input-suffix { position: relative; display: block; }
.input-suffix input { padding-right: 36px; }
.input-suffix > span { position: absolute; top: 11px; right: 13px; color: var(--muted); pointer-events: none; }
input[type="date"] { color-scheme: light; }
.memory-inputs { display: grid; gap: 12px; }
.numbered-field { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; gap: 8px; }
.numbered-field > span { font-family: Georgia, serif; font-size: 14px; color: var(--muted); text-align: center; }
.saying-field { margin-top: 21px; }
.photo-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; }
.upload-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 19px; border: 1px solid var(--ink); border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 600; }
.upload-button:hover { background: var(--ink); color: var(--paper); }
#photo-name { color: var(--muted); font-size: 13px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remove-photo { border: 0; border-bottom: 1px solid currentColor; background: transparent; padding: 2px 0; color: var(--coral-dark); cursor: pointer; font-size: 13px; }
.field-note, .local-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.tone-options { display: flex; gap: 10px; }
.tone-options label { cursor: pointer; }
.tone-options input { position: absolute; opacity: 0; pointer-events: none; }
.tone-options span { display: block; min-width: 108px; padding: 10px 17px; border: 1px solid var(--line); border-radius: 4px; text-align: center; font-size: 14px; transition: all 160ms ease; }
.tone-options input:checked + span { color: #fff; background: var(--coral); border-color: var(--coral); }
.tone-options input:focus-visible + span { outline: 3px solid rgba(242, 107, 79, 0.28); outline-offset: 3px; }

.preview-column { min-width: 0; scroll-margin-top: 100px; }
.preview-label { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; color: var(--muted); font-size: 11px; letter-spacing: 0.06em; }
.preview-paper { box-shadow: 0 16px 40px rgba(64, 52, 27, 0.13); }
.memory-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.6cqw; }
.memory-columns article + article { border-left: 1px solid rgba(30, 43, 39, 0.25); padding-left: 2.6cqw; }
.memory-columns h5, .paper-bottom h5 { margin: 0 0 1.2cqw; font-family: var(--sans); font-size: 2.1cqw; line-height: 1.3; }
.memory-columns p { margin: 0; font-size: 2.1cqw; line-height: 1.7; text-align: justify; }
.preview-paper .paper-quote { margin-block: 2.5cqw; padding-block: 1.8cqw; }
.paper-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; }
.paper-bottom > div { padding: 1.8cqw; border: 1px solid rgba(30, 43, 39, 0.5); }
.paper-bottom p { margin: 0; font-size: 1.85cqw; line-height: 1.55; }
.preview-toolbar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.preview-toolbar .button { min-height: 40px; padding: 9px 13px; font-size: 13px; }
.local-note { text-align: center; max-width: 420px; margin-inline: auto; }
.preview-paper.is-rewriting { animation: paperPulse 320ms ease; }
@keyframes paperPulse { 50% { transform: translateY(-4px); box-shadow: 0 22px 46px rgba(64, 52, 27, 0.18); } }

.privacy-section { padding: 92px 0; background: var(--sage); }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 112px; align-items: start; }
.privacy-copy h2 { margin: 8px 0 80px; font-family: var(--serif); font-size: 47px; line-height: 1.3; letter-spacing: -0.035em; }
.privacy-copy > p { margin: 0 0 30px; font-size: 16px; line-height: 1.9; }
details { max-width: 430px; font-size: 14px; }
summary { display: inline-block; color: var(--coral-dark); border-bottom: 1px solid currentColor; cursor: pointer; line-height: 1.8; }
details p { margin: 16px 0 0; color: #4f5d51; line-height: 1.8; }
.steps-list { list-style: none; margin: 0; padding: 0; }
.steps-list li { display: grid; grid-template-columns: 46px 1fr; gap: 8px; padding: 20px 0 25px; border-bottom: 1px solid rgba(30, 43, 39, 0.35); }
.steps-list li:first-child { padding-top: 4px; }
.steps-list > li > span { padding-top: 5px; font-family: Georgia, serif; font-size: 18px; }
.steps-list h3 { margin: 0 0 8px; font-size: 25px; line-height: 1.35; font-weight: 600; }
.steps-list p { margin: 0; font-size: 14px; line-height: 1.7; }

.closing-section { padding-top: 86px; overflow: hidden; }
.closing-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.closing-inner h2 { margin: 0 0 12px; font-family: var(--serif); font-size: 43px; line-height: 1.35; letter-spacing: -0.03em; }
.closing-inner > p { margin: 0 0 26px; color: var(--muted); font-size: 15px; }
.beta-note { margin-top: 14px; color: var(--muted); font-size: 12px; }
.paper-strip { display: flex; justify-content: center; gap: 16px; height: 110px; margin-top: 48px; padding: 0 24px; }
.mini-paper { flex: 0 0 190px; height: 138px; padding: 12px; border: 1px solid rgba(30, 43, 39, 0.3); background: var(--paper-light); transform: rotate(-2deg); }
.mini-paper:nth-child(even) { transform: rotate(2deg) translateY(8px); }
.mini-paper b { display: block; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 2px solid var(--ink); font-family: var(--serif); text-align: center; font-size: 20px; }
.mini-paper i { display: block; height: 3px; margin-top: 8px; background: rgba(30, 43, 39, 0.2); }
.mini-paper i:last-child { width: 68%; }
.site-footer { padding: 48px 0 30px; background: #102824; color: #f8f3e5; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; }
.footer-brand { font-family: Georgia, serif; font-size: 43px; font-weight: 700; letter-spacing: -1px; }
.footer-product { margin: 8px 0 12px !important; font-size: 17px !important; }
.site-footer p { margin: 0; font-size: 13px; line-height: 1.7; color: rgba(248, 243, 229, 0.8); }
.site-footer nav { display: flex; gap: 15px; align-items: center; margin-top: 22px; font-size: 13px; }
.site-footer nav span { color: rgba(248, 243, 229, 0.35); }
.site-footer .copyright { margin-top: 28px; color: rgba(248, 243, 229, 0.55); font-size: 12px; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 28px; max-width: min(480px, calc(100% - 40px)); padding: 12px 18px; border-radius: 5px; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); font-size: 14px; line-height: 1.5; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 1000px) {
  .preview-column { position: sticky; top: 26px; }
}

@media (max-width: 999px) {
  .hero { gap: 32px; }
  .maker-grid { grid-template-columns: 1fr; gap: 48px; }
  .memory-form { max-width: 680px; }
  .preview-column { width: min(100%, 560px); margin-inline: auto; }
  .privacy-grid { gap: 60px; }
}

@media (max-width: 760px) {
  .main-nav { gap: 24px; margin-right: 0; }
  .hero { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 70px; }
  .hero-copy { max-width: 580px; }
  .hero-copy h1 { font-size: clamp(46px, 9vw, 66px); }
  .hero-stage { width: min(100%, 520px); margin: 14px auto 0; }
  .hero-paper { width: min(88%, 430px); }
  .privacy-grid { grid-template-columns: 1fr; gap: 50px; }
  .privacy-copy h2 { margin-bottom: 36px; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 36px, 1180px); }
  .header-inner { min-height: 68px; gap: 16px; }
  .brand { font-size: 23px; }
  .main-nav { display: none; }
  .button-small { min-height: 38px; padding: 8px 17px; font-size: 13px; }
  .hero { min-height: auto; padding-top: 44px; gap: 38px; }
  .hero-copy h1 { margin-bottom: 20px; font-size: 43px; line-height: 1.28; }
  .hero-copy > p { font-size: 15px; line-height: 1.85; }
  .hero-copy > p br { display: none; }
  .hero-actions { margin-top: 26px; }
  .button-large { min-height: 48px; padding: 12px 22px; font-size: 15px; }
  .hero-stage { padding-inline: 0; }
  .hero-paper { width: 91%; }
  .maker-section { padding: 58px 0 70px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading h2 { font-size: 30px; }
  .section-heading p { font-size: 14px; line-height: 1.7; }
  .maker-grid { gap: 34px; }
  .form-section { padding-block: 22px 25px; }
  .form-section legend { font-size: 18px; }
  .basic-grid { gap: 16px 12px; }
  .field-wide { max-width: none; }
  .preview-label { font-size: 10px; }
  .preview-toolbar { display: grid; grid-template-columns: 1fr 1fr; }
  .preview-toolbar .button { padding-inline: 10px; }
  .preview-toolbar .button-quiet { grid-column: 1 / -1; }
  .privacy-section { padding: 62px 0; }
  .privacy-copy h2 { font-size: 38px; }
  .privacy-copy > p { font-size: 15px; }
  .privacy-copy > p br { display: none; }
  .steps-list h3 { font-size: 22px; }
  .steps-list li { grid-template-columns: 38px 1fr; }
  .closing-section { padding-top: 62px; }
  .closing-inner h2 { font-size: 32px; }
  .paper-strip { height: 84px; margin-top: 38px; gap: 10px; }
  .mini-paper { flex-basis: 130px; height: 108px; padding: 9px; }
  .mini-paper b { font-size: 15px; }
  .footer-brand { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@page { size: A4 portrait; margin: 0; }
@media print {
  html, body { width: 210mm; height: 297mm; margin: 0; background: #fff; }
  body * { visibility: hidden !important; }
  #newspaper, #newspaper * { visibility: visible !important; }
  #newspaper { position: fixed; inset: 0; width: 210mm; height: 297mm; aspect-ratio: auto; margin: 0; border: 0; box-shadow: none; transform: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
