/* Landing page: Apricity, the mashup machine. Warm light, apricot and plum. */

#about { display: block; overflow: auto; }

.landing {
  --sun: #f59e5b;
  --sun-2: #ffcf8a;
  --ember: #e0664b;
  --night: #fbf6ee;
  --ink: #2a1d18;
  --ink-soft: #6e5a50;
  --card: rgba(255, 255, 255, 0.72);
  --card-line: rgba(42, 29, 24, 0.09);
  /* Clip colors for the hero story, Live-style: a plum break, apricot horns. */
  --clip-a: #cf86c1;
  --clip-b: #f5a36b;
  --clip-ink: #2a1420; /* text and waveforms on a clip, as in Live */
  background: var(--night);
  color: var(--ink);
  min-height: 100%;
}
@media (prefers-color-scheme: dark) {
  .landing {
    --sun: #ffa866;
    --sun-2: #ffd59a;
    --ember: #ff7a5c;
    --night: #140e14;
    --ink: #f6ece2;
    --ink-soft: #b8a397;
    --card: rgba(255, 244, 232, 0.05);
    --card-line: rgba(255, 230, 205, 0.1);
    --clip-a: #d982c8;
    --clip-b: #ffa866;
  }
}

.landing .hero { position: relative; min-height: min(100vh, 1000px); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; isolation: isolate; padding-bottom: 56px; }
.landing .hero > canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
/* Let the light fade into the page instead of stopping at a line. */
.landing .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--night)); }
.landing .hero-inner { text-align: center; padding: 56px 20px 40px; max-width: 900px; }
.landing .eyebrow { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 18px; }
.landing .wordmark {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-weight: 500; font-size: clamp(56px, 11vw, 132px); line-height: 0.95; letter-spacing: -0.02em; margin: 0 0 22px;
  /* The gradient only paints inside the box, so give the descender of the "p" room; the negative margin keeps the layout where it was. */
  padding-bottom: 0.2em; margin-bottom: calc(22px - 0.2em);
  background: linear-gradient(100deg, var(--ember) 0%, var(--sun) 38%, var(--sun-2) 60%, var(--sun) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite alternate;
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.landing .say { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-style: italic; color: var(--ink-soft); font-size: 15px; margin: 10px 0 26px; }
.landing .tagline { font-size: clamp(19px, 2.6vw, 26px); line-height: 1.35; max-width: 640px; margin: 0 auto; font-weight: 450; }
.landing .tagline em { font-style: normal; color: var(--sun); }


.landing section.band { max-width: 1080px; margin: 0 auto; padding: 72px 24px; }
.landing h2 { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-weight: 500; font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; letter-spacing: -0.01em; }
.landing .lede { color: var(--ink-soft); font-size: 17px; max-width: 640px; margin: 0 0 36px; line-height: 1.55; }

.landing .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.landing .step { background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; padding: 22px; backdrop-filter: blur(6px); }
.landing .step .n { font-family: "Iowan Old Style", Palatino, Georgia, serif; color: var(--sun); font-size: 30px; line-height: 1; }
.landing .step h3 { margin: 10px 0 6px; font-size: 18px; font-weight: 600; }
.landing .step p { margin: 0; color: var(--ink-soft); line-height: 1.55; font-size: 14.5px; }

.landing .score { margin-top: 26px; background: var(--card); border: 1px solid var(--card-line); border-radius: 18px; overflow: hidden; }
.landing .score .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--card-line); font-size: 13px; color: var(--ink-soft); }
.landing .score pre { margin: 0; padding: 18px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--ink); }
.landing .score .t-keyword { color: var(--ember); }
.landing .score .t-chord { color: var(--sun); }

.landing .stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.landing .stat-big { padding: 22px 4px; border-top: 1px solid var(--card-line); }
.landing .stat-big b { display: block; font-family: "Iowan Old Style", Palatino, Georgia, serif; font-weight: 500; font-size: clamp(36px, 5vw, 54px); line-height: 1; color: var(--sun); }
.landing .stat-big span { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 14px; }

.landing .credits { border-top: 1px solid var(--card-line); color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }
.landing .credits a { color: var(--sun); text-decoration: none; }

@media (max-width: 760px) {
  .landing .steps, .landing .stats { grid-template-columns: 1fr 1fr; }
  .landing .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .landing .wordmark { animation: none; }
}

/* header: the name is a link home, in the landing page's apricot */
.brand .logo { background: radial-gradient(circle, #f59e5b 30%, transparent 32%, transparent 55%, color-mix(in srgb, #f59e5b 55%, transparent) 57%, transparent 62%); }
.brand.link { cursor: pointer; border: 0; background: none; padding: 4px 6px; margin: -4px -6px; border-radius: 8px; font: inherit; color: inherit; }
.brand.link:hover { background: var(--accent-soft); }

/* "See how it's made": one breakdown at a time, picked by name. */
.landing .gallery-picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 12px; }
.landing .gallery-picker button { border: 1px solid var(--card-line); background: var(--card); color: var(--ink-soft); border-radius: 999px; padding: 6px 14px; font: 500 13px inherit; font-family: inherit; cursor: pointer; }
.landing .gallery-picker button:hover { color: var(--ink); }
.landing .gallery-picker button.on { color: #2a1420; background: var(--sun); border-color: var(--sun); }
.landing .gallery .breakdown { width: 100%; }

/* Papyrus/Markus publication adaptation; original tokens and card geometry above. */
:root { --mono: ui-monospace, SFMono-Regular, monospace; }
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; }
a { color: var(--ember); }
.site-nav { display:flex; justify-content:space-between; padding: 18px 24px; max-width:1080px; margin:auto; }
.site-nav a { color:var(--ink); text-decoration:none; }
.markus-document { max-width:none; margin:0; padding:0; }
.landing .hero { min-height:760px; }
.landing .hero-inner { margin:auto; }
.landing .hero .wordmark { display:block; }
.markus-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.markus-card { background:var(--card); border:1px solid var(--card-line); border-radius:18px; padding:22px; }
.markus-card h3 { margin:0 0 10px; }
.markus-card p { color:var(--ink-soft); line-height:1.55; font-size:14.5px; }
.band > p:first-of-type { color:var(--ink-soft); line-height:1.55; font-size:17px; max-width:640px; }
.band pre { background:var(--card); padding:18px; border:1px solid var(--card-line); border-radius:18px; overflow:auto; line-height:1.6; }
.hero-demo { width:min(1080px,100%); padding:0 24px; margin:0 auto; }
.play-button { font:inherit; color:var(--ink); background:var(--card); border:1px solid var(--card-line); border-radius:8px; padding:8px 12px; cursor:pointer; }
.play-button:disabled { cursor:default; opacity:.7; }
@media(max-width:760px) { .markus-card-grid { grid-template-columns:1fr; } .landing .hero { min-height:auto; } }
