/* Softspell Studio · dark pastel reading room */
:root {
  color-scheme: dark;
  --paper: #18131f;
  --ink: #f6eff9;
  --muted: #c1b5c8;
  --line: #55445f;
  --panel: #241c2c;
  --raised: #302337;
  --lilac: #d7c6ed;
  --rose: #e6b9d2;
  --sage: #bedccc;
  --button-ink: #261b2e;
  --control-border: #8e789c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 9% 4%, #31233d 0, transparent 30%),
              radial-gradient(ellipse at 96% 33%, #2b1f30 0, transparent 25%), var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
a { color: inherit; }
button, a, input { touch-action: manipulation; }
button { font: inherit; cursor: pointer; color: inherit; }
button:focus-visible, a:focus-visible, audio:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--sage); outline-offset: 4px;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; line-height: 1.06; letter-spacing: -.035em; }
h1 { font-size: clamp(48px, 5.3vw, 80px); margin: 23px 0; }
h2 { font-size: clamp(36px, 4vw, 56px); margin: 17px 0 26px; }
h3 { font-family: Georgia, serif; font-weight: 400; font-size: 24px; line-height: 1.25; }
em { color: var(--lilac); font-weight: 400; }
img { max-width: 100%; display: block; }
.prototype-bar {
  font-size: 10px; letter-spacing: .09em; background: #211827; color: var(--muted);
  padding: 9px 4.5%; display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line);
}
.prototype-bar a { text-decoration: none; color: var(--lilac); }
.site-header { display: flex; justify-content: space-between; align-items: center; padding: 30px 4.5% 27px; max-width: 1500px; margin: auto; }
.brand { display: flex; align-items: center; gap: 13px; font-size: 12px; letter-spacing: .15em; line-height: 1.2; text-decoration: none; font-weight: 600; color: var(--lilac); }
.brand img { border-radius: 11px; }
nav { display: flex; gap: 34px; font-size: 13px; color: var(--muted); }
nav a { text-decoration: none; padding: 7px 0; }
nav a:hover { color: var(--rose); }
.text-link:hover { color: var(--ink); text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1fr 1.05fr; position: relative; max-width: 1500px; margin: auto; padding: 0 4.5% 58px; gap: 6%; }
.hero-copy { padding: 42px 0 20px; position: relative; }
.hero-copy::after { content: '✧'; position: absolute; right: 24px; bottom: 32px; color: var(--rose); font-size: 37px; line-height: 1; opacity: .7; pointer-events: none; }
.eyebrow { font-size: 10px; letter-spacing: .17em; text-transform: uppercase; font-weight: 600; line-height: 1.5; color: var(--sage); }
.intro { font-family: Georgia, serif; font-size: 23px; line-height: 1.5; max-width: 400px; margin: 25px 0 15px; color: #e8d9ef; }
.hero-description { color: var(--muted); font-size: 15px; max-width: 380px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 19px; margin: 27px 0 19px; }
.button {
  display: inline-flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 48px;
  padding: 14px 20px; text-decoration: none; font-size: 13px; font-weight: 600; border: 1px solid transparent;
  border-radius: 13px; line-height: 1.4; transition: background-color .18s, border-color .18s, box-shadow .18s;
}
.primary { background: var(--rose); color: var(--button-ink); box-shadow: 0 4px 24px #e6b9d21a; }
.primary:hover { background: #f0cce0; box-shadow: 0 5px 29px #e6b9d22b; }
.secondary { background: #2b2132; border-color: var(--control-border); color: var(--lilac); }
.secondary:hover { background: #3a2c44; border-color: var(--lilac); }
.button span { font-size: 18px; }
.text-link { font-size: 12px; text-underline-offset: 5px; color: var(--lilac); }
.tiny { font-size: 11px; color: var(--muted); max-width: 410px; }
.hero-art {
  position: relative; overflow: hidden; min-height: 525px; background: var(--panel);
  border-radius: 250px 250px 24px 24px; border: 1px solid #7c6489;
  box-shadow: 0 20px 65px #0c091750, 0 0 65px #c9aee610;
}
.hero-art::after {
  content: ''; position: absolute; inset: 12px; border: 1px solid #e6d0f140;
  border-radius: 240px 240px 17px 17px; pointer-events: none;
}
.hero-art > img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; object-position: 70% 50%; }
.art-caption {
  position: absolute; bottom: 0; left: 0; width: 100%; display: flex; justify-content: space-between;
  padding: 30px; color: #f5e4f4; background: linear-gradient(transparent, #19111edb);
  font-size: 10px; letter-spacing: .14em;
}
.ribbon {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex;
  align-items: center; justify-content: center; gap: 36px; font-size: 10px; letter-spacing: .15em;
  padding: 18px; color: var(--muted); background: #241c2c66;
}
.ribbon span[aria-hidden] { color: var(--rose); }
.section { max-width: 1500px; margin: auto; padding: 78px 4.5%; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 27px; }
.section-heading > p { color: var(--muted); font-size: 14px; max-width: 350px; }
.track-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; }
.track { --track-accent: var(--rose); background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 16px; min-width: 0; }
.track[data-track='rain-at-the-threshold'] { --track-accent: var(--sage); }
.track[data-track='moon-in-the-window'] { --track-accent: var(--lilac); }
.cover { width: 100%; aspect-ratio: 1.28; object-fit: cover; border-radius: 14px; }
.track-heading { display: flex; align-items: center; gap: 12px; margin: 23px 0 13px; }
.track-heading h3 { margin: 0; font-size: 22px; }
.track-number { font-size: 10px; color: var(--track-accent); }
.track > p { font-size: 13px; color: var(--muted); min-height: 65px; margin-bottom: 17px; }
.edition-toggle { display: flex; border: 1px solid var(--control-border); border-radius: 13px; padding: 3px; gap: 3px; margin-bottom: 15px; background: var(--paper); }
.edition-toggle button { width: 50%; border: 0; border-radius: 9px; background: none; color: var(--muted); font-size: 11px; padding: 10px 6px; min-height: 40px; }
.edition-toggle [aria-pressed='true'] { background: var(--track-accent); color: var(--button-ink); }
audio { display: block; width: 100%; height: 42px; color-scheme: dark; accent-color: var(--track-accent); border-radius: 13px; }
.track > p.track-meta { min-height: 0; font-size: 10px; letter-spacing: .03em; margin: 10px 0; }
.preview-download { font-size: 10px; text-underline-offset: 3px; color: var(--track-accent); }
.track .audio-error { min-height: 0; color: #f4b5bb; }
.free-strip {
  display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line);
  border-radius: 22px; margin-top: 38px; padding: 27px 30px; gap: 25px;
  background: linear-gradient(115deg, #2d2335, #25282b);
}
.free-strip h3 { margin: 8px 0; font-size: 26px; color: #f2deec; }
.free-strip p { margin-bottom: 0; font-size: 12px; color: var(--muted); }
.free-strip .eyebrow { font-size: 9px; color: var(--sage); }
.ritual-section {
  display: grid; grid-template-columns: 1fr 1fr; gap: 11%; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); background: linear-gradient(120deg, #252031, #241c2c);
  max-width: none; padding-left: max(4.5%, calc((100vw - 1365px)/2)); padding-right: max(4.5%, calc((100vw - 1365px)/2));
}
.ritual-steps { list-style: none; padding: 0; margin: 0; }
.ritual-steps li { display: flex; gap: 22px; padding: 14px 0; }
.ritual-steps li > span { font-size: 10px; border: 1px solid var(--control-border); color: var(--rose); border-radius: 50%; width: 30px; height: 30px; text-align: center; padding: 5px; flex-shrink: 0; }
.ritual-steps h3 { font-size: 23px; margin: 0 0 9px; }
.ritual-steps p { font-size: 13px; color: var(--muted); max-width: 380px; margin-bottom: 13px; }
.bundle { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12%; padding-top: 92px; padding-bottom: 92px; }
.bundle-details > p { font-size: 14px; max-width: 510px; color: var(--muted); }
.bundle-details > p.eyebrow { font-size: 10px; color: var(--sage); }
.bundle ul { list-style: none; padding: 0; margin: 28px 0; }
.bundle li { border-bottom: 1px solid var(--line); padding: 9px 0; font-size: 13px; }
.bundle li::before { content: '✦'; font-size: 10px; margin-right: 13px; color: var(--rose); }
.price-card {
  background: radial-gradient(ellipse at 50% 0, #483148 0, #302337 65%); border: 1px solid #896785;
  border-radius: 110px 110px 24px 24px; padding: 43px 35px 35px; text-align: center; align-self: start;
  box-shadow: 0 15px 60px #09060e40;
}
.mini-mark { font-size: 32px; display: block; color: var(--rose); }
.price { font-family: Georgia, serif; font-size: 73px; line-height: 1.2; margin: 16px 0; color: #f1d7e7; }
.price span { font-family: Arial, sans-serif; font-size: 11px; letter-spacing: .1em; margin-left: 10px; color: var(--muted); }
.price-card > p { font-size: 14px; }
.price-card .eyebrow { color: var(--rose); }
.price-card .button { width: 100%; margin: 10px 0; }
.price-card .launch-note { font-size: 11px; color: var(--muted); line-height: 1.6; }
.delivery-note { border-top: 1px solid var(--line); margin-top: 23px; padding-top: 23px; text-align: left; font-size: 12px; }
.delivery-note strong { color: var(--lilac); }
.delivery-note p { color: var(--muted); margin: 6px 0 0; }
.notes { border-top: 1px solid var(--line); }
.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9%; margin: 28px 0 35px; }
.notes-grid h3 { font-size: 22px; color: #e7d9f1; }
.notes-grid p { font-size: 13px; color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 11px; text-align: left; }
caption { text-align: left; font-family: Georgia, serif; font-size: 20px; padding-bottom: 17px; color: var(--lilac); }
td, th { padding: 12px 5px; border-bottom: 1px solid var(--line); }
th { font-size: 10px; font-weight: 600; color: var(--sage); }
.small { font-size: 11px; line-height: 1.7; color: var(--muted); }
.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
summary { cursor: pointer; font-size: 14px; color: #e5d4ee; }
summary::marker { color: var(--rose); }
details p { font-size: 13px; max-width: 830px; margin: 15px 0 0; color: var(--muted); }
footer { background: #211827; border-top: 1px solid var(--line); color: #e5d4ee; padding: 35px 4.5%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
footer .brand { font-size: 10px; }
footer p { font-family: Georgia, serif; margin: 0; font-size: 18px; color: var(--rose); }
footer small { font-size: 9px; color: var(--muted); }
dialog {
  border: 1px solid var(--control-border); border-radius: 24px; background: var(--panel); color: var(--ink);
  padding: 45px; max-width: 570px; width: calc(100% - 28px); max-height: 90vh; overflow: auto;
  box-shadow: 0 24px 90px #07040e85;
}
dialog::backdrop { background: #100b18c9; }
dialog h2 { font-size: 39px; }
.close-modal { position: absolute; right: 15px; top: 9px; font-size: 27px; border: 0; background: none; min-width: 40px; min-height: 40px; color: var(--rose); }
.order-line { display: flex; justify-content: space-between; gap: 15px; padding: 19px 0; margin-bottom: 15px; border-block: 1px solid var(--line); font-size: 13px; }
.order-line small { font-size: 10px; color: var(--muted); }
dialog p { font-size: 13px; }
dialog .button { width: 100%; justify-content: center; }
.cancel-button { border: 0; background: transparent; display: block; margin: 15px auto; padding: 8px; font-size: 12px; text-decoration: underline; color: var(--lilac); }
.download-list { padding: 0; list-style: none; }
.download-list li { border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 12px; }
.download-list a { display: flex; justify-content: space-between; gap: 10px; color: var(--lilac); }
#toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); background: #3b2b45; color: var(--ink); border: 1px solid var(--control-border); border-radius: 14px; padding: 12px 20px; font-size: 12px; opacity: 0; pointer-events: none; max-width: 90vw; box-shadow: 0 8px 30px #0005; }
#toast.visible { opacity: 1; }
.receipt-label { padding: 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 11px; }
.dashboard { max-width: 960px; }
.dashboard-card { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); margin: 20px 0; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metric { padding: 20px; background: var(--raised); border: 1px solid var(--line); border-radius: 18px; }
.metric strong { display: block; font-family: Georgia, serif; font-size: 34px; color: var(--rose); }
.metric span { font-size: 11px; color: var(--muted); }
input[type='number'] { width: 95px; padding: 9px; border: 1px solid var(--control-border); border-radius: 9px; background: var(--paper); color: var(--ink); font: inherit; }
input[type='file'] { max-width: 100%; color: var(--muted); }
input::file-selector-button { font: inherit; color: var(--button-ink); background: var(--lilac); border: 0; border-radius: 8px; padding: 9px 12px; margin-right: 10px; cursor: pointer; }
.ops-fields { display: flex; gap: 20px; flex-wrap: wrap; }
.ops-fields label { font-size: 12px; display: grid; gap: 8px; color: var(--muted); }
.status-line { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.overflow-table { overflow: auto; }
@media (max-width: 950px) {
  .hero { gap: 4%; }
  .hero-copy { padding-top: 20px; }
  h1 { font-size: 58px; }
  .hero-art { min-height: 480px; border-radius: 210px 210px 24px 24px; }
  .hero-art::after { border-radius: 200px 200px 17px 17px; }
  .hero-actions { gap: 14px; }
  .track-grid { gap: 16px; }
  .track { padding: 13px; }
  .track-heading { gap: 8px; }
  .track-heading h3 { font-size: 19px; }
  .track > p { min-height: 85px; }
  .edition-toggle button { font-size: 10px; padding-inline: 2px; }
  .bundle { gap: 6%; }
  .price-card { padding: 36px 26px 26px; }
  .section { padding-top: 60px; padding-bottom: 60px; }
}
@media (max-width: 700px) {
  .prototype-bar { font-size: 8px; padding: 10px 5%; }
  .site-header { padding: 24px 5%; }
  .brand { font-size: 10px; gap: 9px; }
  nav { gap: 14px; font-size: 11px; }
  nav a:last-child { display: none; }
  .hero { display: flex; flex-direction: column; padding: 0 5% 30px; }
  .hero-copy { padding: 21px 0 20px; }
  .hero-copy::after { right: 13px; bottom: 17px; font-size: 27px; }
  h1 { font-size: clamp(44px, 9.8vw, 58px); }
  .intro { font-size: 21px; max-width: 350px; }
  .hero-art { min-height: 0; height: 350px; border-radius: 190px 190px 22px 22px; }
  .hero-art::after { inset: 11px; border-radius: 180px 180px 15px 15px; }
  .hero-art img { object-position: 60% 50%; }
  .art-caption { padding: 25px; font-size: 9px; }
  .ribbon { gap: 12px; font-size: 8px; letter-spacing: .1em; flex-wrap: wrap; }
  .section { padding: 48px 5%; }
  .section-heading { display: block; margin-bottom: 27px; }
  .section-heading > p { font-size: 13px; }
  .track-grid { grid-template-columns: 1fr; gap: 24px; }
  .track { padding: 17px; }
  .cover { aspect-ratio: 1.4; }
  .track > p { min-height: 0; font-size: 14px; }
  .track-heading { gap: 12px; }
  .track-heading h3 { font-size: 23px; }
  .edition-toggle button { font-size: 12px; padding-inline: 6px; }
  .track-meta { font-size: 11px; }
  .free-strip { display: block; margin-top: 30px; padding: 24px; }
  .free-strip .button { margin-top: 20px; }
  .ritual-section, .bundle, .notes-grid { grid-template-columns: 1fr; gap: 28px; }
  .ritual-section h2 { margin-bottom: 6px; }
  .bundle { padding-top: 55px; padding-bottom: 55px; }
  .price-card { padding: 38px 29px 29px; }
  .notes-grid { gap: 22px; }
  .notes-grid p { font-size: 14px; }
  .notes-grid table { font-size: 10px; }
  td, th { padding: 11px 3px; }
  .notes-grid .small { font-size: 12px; }
  footer { flex-direction: column; align-items: start; padding: 30px 5%; }
  dialog { padding: 35px 22px; border-radius: 20px; }
  dialog h2 { font-size: 34px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { padding: 16px; }
  .metric strong { font-size: 27px; }
  .dashboard h1 { font-size: 43px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
