:root {
  color: #17211d;
  background: #f6f4ec;
  font-family: ui-rounded, "Hiragino Maru Gothic ProN", "Hiragino Sans",
    "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; }
.page-shell { width: min(100% - 2rem, 62rem); margin: 0 auto; padding: 2rem 0 4rem; }
.hero { padding: 2rem 0 3rem; }
.wordmark { color: #154d3e; font-size: 1.4rem; font-weight: 800; text-decoration: none; }
.eyebrow { margin: 3.5rem 0 .4rem; color: #557269; font-weight: 700; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
h1 { max-width: 16ch; margin: 0; font-family: ui-serif, "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
h1 span { display: inline-block; }
h2 { margin-top: 0; font-family: ui-serif, "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: clamp(1.5rem, 3vw, 2rem); text-wrap: balance; }
.lede { max-width: 42rem; font-size: 1.15rem; }
.how-it-works, .prompt-card, .studio-card, .upload-card { margin-top: 1.5rem; border-radius: 1.25rem; padding: clamp(1.25rem, 4vw, 2.5rem); }
.how-it-works { background: #dceadb; }
.how-it-works ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding: 0; list-style: none; counter-reset: steps; }
.how-it-works li { counter-increment: steps; display: grid; gap: .25rem; }
.how-it-works li::before { content: counter(steps); width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; background: #154d3e; color: white; font-weight: 800; }
.how-it-works span { color: #456057; }
.prompt-card { background: #f0d9b6; }
.studio-card { display: flex; align-items: center; justify-content: space-between; gap: 2rem; background: #e7e1f4; }
.studio-card p { max-width: 40rem; margin-bottom: 0; }
.studio-card .button { flex: 0 0 auto; }
.studio-eyebrow { margin: 0 0 .35rem; color: #66577c; }
pre { overflow-x: auto; margin: 1rem 0 0; padding: 1rem; border-radius: .75rem; background: #fff8ed; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92rem; }
.upload-card { background: #fff; box-shadow: 0 15px 40px #1d29221a; }
.upload-intro { color: #536158; }
.drop-zone { padding: 2rem; border: 2px dashed #6e9a89; border-radius: 1rem; text-align: center; background: #f5fbf6; outline-offset: 4px; }
.drop-zone.is-dragging { background: #dceadb; border-color: #154d3e; }
.drop-zone.is-invalid { border-color: #a42d2d; background: #fff2f0; }
.drop-zone.is-disabled { opacity: .65; }
.selected-file { margin: 0; font-weight: 700; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .65rem 1rem; border: 1px solid transparent; border-radius: .65rem; cursor: pointer; font: inherit; font-weight: 750; text-align: center; text-decoration: none; }
.button:focus-visible, .drop-zone:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #d06d00; outline-offset: 3px; }
.button-primary { background: #154d3e; color: #fff; }
.button-primary:disabled { background: #7e9389; cursor: not-allowed; }
.button-secondary { background: #fff; color: #154d3e; border-color: #477762; }
.actions { margin-top: 1rem; text-align: right; }
.status { min-height: 1.5rem; margin: 1rem 0 0; font-weight: 650; }
.status.error { color: #8c2020; }
.confirmation-panel { margin-top: 1rem; padding: 1rem; border-radius: .75rem; }
.confirmation-panel h3 { margin: 0 0 .5rem; }
.confirmation-panel { border: 2px solid #154d3e; background: #f4f8f4; }
.confirmation-panel dl { display: grid; gap: .45rem; margin: .8rem 0; }
.confirmation-panel dl div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .5rem; }
.confirmation-panel dt { font-weight: 800; }
.confirmation-panel dd { margin: 0; overflow-wrap: anywhere; }
.confirmation-checkbox { display: flex; align-items: flex-start; gap: .55rem; margin: 1rem 0; font-weight: 700; }
.confirmation-checkbox input { flex: 0 0 auto; margin-top: .28rem; }
.confirmation-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.success-panel { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid #d7dfda; }
.share-controls { display: flex; gap: .75rem; margin-top: .4rem; }
#share-url { flex: 1; min-width: 0; padding: .65rem; border: 1px solid #84958c; border-radius: .5rem; font: inherit; }
.copy-feedback { min-height: 1.5rem; margin: .65rem 0; }
.notice { max-width: 42rem; margin: 2rem auto 0; color: #536158; text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 42rem) {
  .page-shell { width: min(100% - 1.25rem, 62rem); padding-top: 1rem; }
  .hero { padding-bottom: 2rem; }
  .eyebrow { margin-top: 2.5rem; }
  .how-it-works ol { grid-template-columns: 1fr; }
  .how-it-works li { grid-template-columns: 2rem 1fr; column-gap: .75rem; }
  .how-it-works li strong, .how-it-works li span { grid-column: 2; }
  .how-it-works li::before { grid-row: span 2; }
  .share-controls { align-items: stretch; flex-direction: column; }
  .studio-card { align-items: stretch; flex-direction: column; gap: 1.25rem; }
  .studio-card .button { width: 100%; }
  .actions { text-align: stretch; }
  .actions .button, #view-page { width: 100%; }
  .confirmation-actions { flex-direction: column; }
}
