:root {
  color-scheme: light;
  --paper: #fff8f5;
  --ink: #241f20;
  --muted: #796f71;
  --line: rgba(45, 34, 37, 0.09);
  --red: #ff2442;
  --red-dark: #e41634;
  --peach: #ffdfd5;
  --lavender: #e6ddff;
  --mint: #dff8eb;
  --shadow: 0 18px 50px rgba(75, 39, 46, 0.10);
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 187, 169, 0.28), transparent 28rem),
    linear-gradient(180deg, #fffaf7 0%, #fff6f4 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }

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

.ambient {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.58;
  pointer-events: none;
}

.ambient-one {
  width: 180px;
  height: 180px;
  top: 14vh;
  right: -90px;
  background: var(--lavender);
}

.ambient-two {
  width: 150px;
  height: 150px;
  bottom: 12vh;
  left: -85px;
  background: var(--mint);
}

.page-shell {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top)) 16px calc(42px + env(safe-area-inset-bottom));
}

.hero {
  padding: 8px 6px 28px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #51484a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 12px 0 0 #ffbe54, 24px 0 0 #7b61ff;
  margin-right: 24px;
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(38px, 11vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hero h1 em {
  color: var(--red);
  font-style: normal;
}

.issue-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.status-chip, .soft-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 700;
}

.content-card, .finish-card {
  width: 100%;
  min-width: 0;
  margin-bottom: 16px;
  border: 1px solid rgba(72, 52, 57, 0.07);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.content-card { padding: 20px; }

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-heading > div { min-width: 0; }

.eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.section-heading h2, .finish-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.cover-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #eee8e6;
  aspect-ratio: 3 / 4;
}

.cover-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: inherit;
  pointer-events: none;
}

.cover-frame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.action-button, .copy-button {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-weight: 800;
  transition: transform 120ms ease, opacity 120ms ease;
}

.action-button:active, .copy-button:active { transform: scale(0.97); }

.action-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.action-button.primary {
  background: var(--red);
  color: #fff;
}

.action-button.ghost {
  background: #fff0ed;
  color: var(--red-dark);
}

.action-button.dark {
  width: 100%;
  margin-top: 18px;
  background: #241f20;
  color: #fff;
}

.copy-button {
  flex: 0 0 auto;
  min-width: 62px;
  min-height: 36px;
  padding: 0 14px;
  background: #fff0ed;
  color: var(--red-dark);
}

.hint, .updated-at {
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.feature-copy {
  margin: 6px 0 18px;
  font-size: 27px;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.alternate-list {
  display: grid;
  gap: 9px;
}

.alternate-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffaf8;
  color: #51484a;
  text-align: left;
  cursor: pointer;
}

.alternate-item span:first-child {
  font-size: 14px;
  line-height: 1.5;
}

.alternate-item small {
  flex: 0 0 auto;
  color: var(--red);
  font-weight: 700;
}

.body-copy p {
  margin: 0 0 15px;
  font-size: 16px;
  line-height: 1.88;
  white-space: pre-wrap;
}

.body-copy p:last-child { margin-bottom: 0; }

.tag-copy {
  margin: 2px 0 0;
  color: #385d8a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.9;
}

.note-card {
  background: linear-gradient(145deg, #fff 0%, #fff4ef 100%);
}

.note-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.note-list li {
  position: relative;
  padding-left: 28px;
  color: #554b4d;
  font-size: 14px;
  line-height: 1.65;
}

.note-list li::before {
  content: "✓";
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--mint);
  color: #168354;
  font-size: 11px;
  font-weight: 900;
}

.finish-card {
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 36, 66, 0.18), transparent 38%),
    #fff;
}

.finish-card > span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.toast {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 18px);
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(36, 31, 32, 0.94);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

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

@media (min-width: 700px) {
  .page-shell { padding-left: 24px; padding-right: 24px; }
  .content-card { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
