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

:root {
  --paper: #f7f5eb;
  --white: #fffefa;
  --ink: #263b2a;
  --muted: #596351;
  --line: #c7ccbd;
  --blue: #263b2a;
  --blue-dark: #405540;
  --coral: #8d654c;
  --leaf: #617254;
  --danger: #963c30;
  --serif: "Songti SC", "STSong", "SimSun", Georgia, serif;
  --english: Merriweather, Georgia, serif;
  --content: 1240px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
}

body { background: var(--paper); }
.skip-link { top: -120px; transform: none; }
.skip-link:focus-visible { top: 8px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.015em; line-height: 1.4; }
.app-shell { width: 100%; }
.topbar { min-height: 92px; padding-inline: clamp(28px, 5vw, 96px); border-bottom: 0; background: var(--paper); }
.wordmark { font: 1.55rem/1 var(--serif); letter-spacing: .03em; }
.mark { width: 27px; height: 27px; border: 2px dotted var(--ink); border-radius: 50%; }
.mark i { display: none; }
.site-nav { font-size: .83rem; }
.local-note { font-size: .73rem; }
.local-note i { background: var(--leaf); }
.nav-action, .button-primary, .button-secondary, .generate-action { border: 1px solid var(--ink); background: var(--ink); color: var(--paper); }
.nav-action:hover, .button-primary:hover, .button-secondary:hover, .generate-action:hover { background: var(--blue-dark); }
.nav-action { padding-inline: 20px; }

/* A: one generous image and a quiet editorial introduction. */
.hero {
  position: relative;
  display: block;
  width: calc(100% - 48px);
  max-width: none;
  min-height: min(760px, calc(100svh - 116px));
  margin-inline: auto;
  padding: 0;
  overflow: hidden;
  background: #263b2a;
  color: var(--paper);
  border-radius: 3px;
}
.hero-copy { position: relative; z-index: 1; width: min(760px, 68%); padding: clamp(60px, 7vw, 110px) 0 95px clamp(45px, 7vw, 130px); }
.hero .opening-line { display: block; margin-bottom: 30px; color: var(--paper); font: 1rem/1.5 var(--english); letter-spacing: 0; }
.hero h1 { max-width: 15ch; margin-bottom: 27px; font-size: clamp(3.4rem, 5.6vw, 6.2rem); line-height: 1.32; white-space: normal; }
.hero h1 span { color: inherit; white-space: nowrap; }
.hero-lede { max-width: 28rem; margin-bottom: 27px; color: #f4f4e9; font-size: 1rem; line-height: 2; }
.hero-note { color: #eceddf; }
.hero .button-primary { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.hero .button-primary:hover { background: #e1e3d4; }
.hero .text-link { color: var(--paper); text-decoration: underline; text-underline-offset: 6px; }
.sound-field { position: absolute; inset: 0; z-index: 0; width: 100%; max-width: none; height: 100%; margin: 0; border: 0; border-radius: 0; }
.sound-field::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 28, 16, .81) 0%, rgba(15, 28, 16, .53) 40%, rgba(15, 28, 16, .08) 80%); }
.sound-field img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.sound-field figcaption { position: absolute; z-index: 1; right: 38px; bottom: 28px; color: var(--paper); font-size: .76rem; }

.story-section { padding-block: clamp(74px, 9vw, 130px); border: 0; }
.section-heading { grid-template-columns: minmax(0, 1fr) minmax(360px, .8fr); align-items: start; gap: 22px clamp(36px, 6vw, 88px); }
.section-heading .section-kicker, .section-kicker { color: var(--muted); letter-spacing: .03em; }
.section-heading h2 { max-width: none; font-size: clamp(2.6rem, 4vw, 4.2rem); text-wrap: balance; }
.section-heading > p:last-child { max-width: none; padding-top: 10px; line-height: 2; }
.story-headline-line { white-space: nowrap; }
.role-stories { border-top-color: var(--line); border-bottom-color: var(--line); }
.role-story { padding-block: 33px; }
.role-title h3 { font-size: 1.65rem; }
.role-color-mark { width: 2px; background: var(--coral); }
.role-story-texture .role-color-mark { background: var(--leaf); }
.score-illustration { opacity: .58; }
.process-section { background: var(--ink); }
.process-inner { grid-template-columns: minmax(230px, .7fr) 1.5fr auto; padding-block: 72px; }
.process-intro .section-kicker { color: #cbd8bf; }
.process-intro h2 { font-size: clamp(2rem, 2.7vw, 2.8rem); }
.process-steps li { border-color: #738372; }
.step-title { display: flex; align-items: baseline; gap: 13px; }
.step-number { color: #b9c4b4; font-size: .78rem; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.step-name { color: #e4ecdb; font-family: var(--serif); font-size: 1.3rem; font-weight: 400; }
.process-inner .button-secondary { min-width: 148px; min-height: 54px; justify-content: center; padding-inline: 22px; border: 1px solid rgba(247, 245, 235, .76); background: rgba(247, 245, 235, .04); }
.process-inner .button-secondary:hover { border-color: var(--paper); background: rgba(247, 245, 235, .14); }
.example-section { display: grid; grid-template-columns: minmax(260px, .77fr) minmax(430px, 1.23fr); gap: clamp(45px, 7vw, 110px); align-items: start; padding-block: clamp(80px, 10vw, 140px); }
.example-intro h2 { max-width: 13ch; margin: 0 0 26px; font-size: clamp(2.5rem, 3.6vw, 3.8rem); }
.example-intro > p:not(.section-kicker) { max-width: 29rem; color: var(--muted); line-height: 1.95; }
.example-intro .example-truth { margin-top: 27px; font-size: .78rem; }
.example-tracks { min-width: 0; padding: 24px 32px 18px; background: #e4e9de; }
.example-track { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(230px, 1.2fr); align-items: center; gap: 18px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.example-track span { color: var(--muted); font-size: .74rem; }
.example-track h3 { margin: 2px 0 0; font-size: 1.3rem; }
.example-track p { margin: 3px 0 0; color: var(--muted); font-size: .76rem; }
.example-track audio { display: block; width: 100%; min-width: 0; }
.example-track-final { border-bottom: 0; }
.example-audio-note { margin: 6px 0 0; color: var(--muted); font-size: .72rem; line-height: 1.7; }
.method-note { padding-block: 28px; border-bottom: 1px solid var(--line); color: var(--muted); }
.method-note p { max-width: 72rem; margin: 0; font-size: .82rem; line-height: 1.85; }

/* B: the studio uses rows so the next action remains obvious. */
.setup-stage { padding-block: 78px 96px; }
.create-heading { grid-template-columns: minmax(0, 1.45fr) minmax(220px, .55fr); align-items: end; gap: 35px; margin-bottom: 56px; }
.create-heading h1 { max-width: none; font-size: clamp(2.4rem, 4.6vw, 4.8rem); text-wrap: balance; }
.create-title-phrase { white-space: nowrap; }
.create-heading > p { max-width: 23rem; line-height: 1.9; }
.role-grid { grid-template-columns: 1fr; gap: 0; }
.role-card, .role-card + .role-card {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(240px, .85fr) minmax(160px, .55fr);
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 26px;
  min-height: 0;
  padding: 30px 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
}
.role-card + .role-card { border-bottom: 1px solid var(--line); }
.role-card-head { grid-column: 1; grid-row: 1 / 4; display: block; }
.role-card h2 { font-size: clamp(1.5rem, 2vw, 2.1rem); }
.role-index { color: var(--muted); letter-spacing: .03em; }
.status-pill { display: inline-flex; width: fit-content; margin-top: 16px; border: 0; padding: 0; font-size: .78rem; }
.role-guidance { grid-column: 2; grid-row: 1 / 4; display: flex; min-width: 0; width: min(100%, 26rem); flex-direction: column; align-self: stretch; justify-content: center; justify-self: start; text-align: left; }
.role-guidance .role-meta { margin: 0 0 4px; }
.role-guidance .role-explanation { min-height: 0; margin: 0; }
.role-error { grid-column: 2 / 4; grid-row: 3; }
.role-preview { grid-column: 2; grid-row: 3; margin: 10px 0 0; }
.role-actions { grid-column: 3; grid-row: 1 / 4; justify-content: flex-end; margin: 0; }
.role-actions button, .upload-action, .restart-action, .generate-action, .retry-action { border-radius: 3px; border-color: var(--ink); }
.record-action { background: var(--ink); }
.record-action:hover { background: var(--blue-dark); }
.upload-action, .replace-action { color: var(--ink); }
.upload-action:hover, .replace-action:hover { background: #e4e8dc; }
.arrangement-card { margin-top: 0; border: 0; padding: 30px; background: #e3e8db; }
.arrangement-copy h2 { font-size: 1.6rem; }
.timeline-bar { background: #d1d9ca; }
.timeline-bar::before { background: var(--coral); }
.timeline-bar::after { background: var(--leaf); }
.rhythm-swatch { background: var(--coral); }
.texture-swatch { background: var(--leaf); }
.result-stage { padding-block: 76px 100px; }
.result-title-row h1 { max-width: none; }
.hero-player { background: var(--ink); }
.download-link { background: #dce6d2; }
.download-link:hover { background: #eaf0e3; }
.site-footer { width: min(1280px, 88vw); flex-direction: row; align-items: flex-end; gap: 24px; margin-inline: auto; padding: 34px 0; padding-inline: 0; border-top: 0; background: var(--paper); }
.footer-signature { display: flex; flex-direction: row; align-items: center; gap: 16px; }
.footer-brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font: 400 25px/1 var(--serif); letter-spacing: .05em; }
.footer-brand .mark { width: 27px; height: 27px; flex: none; border: 2px dotted var(--ink); border-radius: 50%; }
.footer-brand .mark i { display: none; }
.footer-tagline { margin: 0; color: var(--muted); font: 400 13px/1.6 "Microsoft YaHei", "PingFang SC", sans-serif; }
.site-footer > a { text-decoration: none; font-size: .78rem; }

@media (max-width: 1000px) {
  .example-section { grid-template-columns: 1fr; gap: 32px; }
  .section-heading .wide-copy-break { display: none; }
  .process-inner { grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); padding-block: 60px; }
  .process-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-column: auto; grid-row: auto; gap: clamp(16px, 3vw, 30px); }
  .process-inner .button-secondary { grid-column: 1; justify-self: start; }
  .create-heading { grid-template-columns: 1fr; gap: 18px; }
  .role-card, .role-card + .role-card { grid-template-columns: minmax(210px, 1fr) minmax(240px, 1fr); }
  .role-actions { grid-column: 2; grid-row: 3; justify-content: flex-start; margin-top: 15px; }
  .role-preview { grid-row: 4; }
}

@media (max-width: 760px) {
  .topbar { padding-inline: 20px; }
  .example-section { padding-block: 68px; }
  .example-intro h2 { font-size: clamp(2.25rem, 8vw, 3rem); }
  .example-tracks { padding: 13px 21px 18px; }
  .example-track { grid-template-columns: 1fr; gap: 10px; padding: 20px 0; }
  .topbar { min-height: 70px; }
  .wordmark { font-size: 1.4rem; }
  .hero { width: calc(100% - 24px); min-height: 670px; }
  .hero-copy { width: 100%; padding: 48px 26px 140px; }
  .hero .opening-line { margin-bottom: 20px; font-size: .82rem; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 4.3rem); }
  .hero h1 span { white-space: normal; }
  .hero-lede { max-width: 20rem; font-size: .93rem; }
  .sound-field img { object-position: 63% 50%; }
  .sound-field::after { background: linear-gradient(180deg, rgba(15, 28, 16, .8), rgba(15, 28, 16, .38) 65%, rgba(15, 28, 16, .12)); }
  .sound-field figcaption { right: 24px; bottom: 18px; }
  .story-section { padding-block: 68px; }
  .section-heading { grid-template-columns: 1fr; gap: 17px; }
  .section-heading h2 { font-size: clamp(2.4rem, 9vw, 3.3rem); }
  .section-heading .wide-copy-break { display: none; }
  .process-steps { grid-template-columns: 1fr; gap: 17px; }
  .process-inner { grid-template-columns: 1fr; gap: 30px; padding-block: 60px; }
  .process-steps { grid-column: 1; grid-row: auto; }
  .process-inner .button-secondary { grid-column: 1; }
  .setup-stage { padding-block: 62px 80px; }
  .create-heading { margin-bottom: 32px; }
  .create-heading h1 { font-size: clamp(2.3rem, 9vw, 3.4rem); }
  .role-card, .role-card + .role-card { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 27px 0; }
  .role-card-head { display: flex; align-items: flex-start; }
  .role-card h2 { font-size: 1.6rem; }
  .status-pill { margin: 0; }
  .role-guidance { display: block; width: auto; align-self: stretch; justify-self: auto; grid-column: auto; grid-row: auto; }
  .role-guidance .role-meta { margin: 18px 0 7px; }
  .role-guidance .role-explanation { margin: 4px 0 15px; }
  .role-preview { margin: 0 0 16px; }
  .role-actions { justify-content: flex-start; margin: 0; }
  .arrangement-card { padding: 23px; }
  }

@media (max-width: 480px) {
  .site-footer { align-items: flex-start; flex-direction: column; padding: 28px 0; }
  .footer-signature { gap: 10px; }
  .footer-tagline { font-size: 12px; }
}

@media (max-width: 360px) {
  .hero { min-height: 680px; }
  .hero-copy { padding-inline: 20px; }
  .hero h1 { font-size: 2.35rem; }
  .create-heading h1 { font-size: 1.9rem; }
  .role-card-head { display: block; }
  .status-pill { margin-top: 9px; }
}

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

/* Introduction: idea, audible result, process, invitation. */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--paper); }
.site-nav .nav-section { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.landing-page .story-section .section-heading { margin-bottom: 0; }
.idea-copy { color: var(--muted); line-height: 2; padding-top: 10px; }
.idea-copy p:last-child { margin-bottom: 0; }
.features-section { border-top: 1px solid var(--line); }
.landing-page .example-intro h2 { max-width: none; }
.feature-heading-line { white-space: nowrap; }
.landing-page .process-inner { grid-template-columns: minmax(210px, .65fr) 1.65fr; }
.process-intro h3 { margin: 0; font-size: clamp(1.8rem, 2.7vw, 2.8rem); }
.process-method { grid-column: 2; margin: -20px 0 0; color: #cbd8bf; font-size: .78rem; line-height: 1.9; }
.closing-invitation { padding-block: clamp(72px, 9vw, 120px); text-align: center; }
.closing-invitation h2 { margin-bottom: 28px; font-size: clamp(2rem, 4vw, 3.7rem); }
.closing-invitation p { margin: 20px 0 0; color: var(--muted); font-size: .8rem; }
@media (max-width: 1000px) {
  .landing-page .process-inner { grid-template-columns: 1fr; }
  .process-method { grid-column: 1; margin: 0; }
}
@media (max-width: 760px) {
  .topbar { gap: 10px; }
  .site-nav { gap: 14px; }
  .nav-action { padding-inline: 14px; white-space: nowrap; }
  .idea-copy { padding-top: 0; }
}
@media (max-width: 360px) {
  .topbar { padding-inline: 16px; }
  .wordmark { gap: 7px; font-size: 1.2rem; }
  .site-nav { gap: 10px; font-size: .78rem; }
  .nav-action { padding-inline: 10px; }
}
