/* melorynt.com — the site in the desktop app's look: warm white, dark green, a lime accent (docs/BRAND.md). */
:root {
  --bg: #f6f7f2; --text: #232a23; --head: #293a21; --muted: #7b886d; --soft-text: #8a9381;
  --line: #e1e5d9; --card: #ffffff; --soft: #f9faf6; --hero: #e7eddb; --hero-line: #d7e0c8;
  --pill-bg: #eef2e3; --pill-line: #cbd7b9; --pill-text: #5f704d;
  --icon-bg: #edf1e4; --icon: #6e805c;
  --primary: #263922; --primary-hover: #3c5430; --on-primary: #f3f7ed;
  --secondary: #e9eede; --secondary-hover: #dde7ca; --on-secondary: #435837;
  --link: #55734a; --lime: #d9efa8; --lime-dot: #b5d46f;
  --dark: #151c17; --dark-2: #202b21; --dark-line: #2b342b; --dark-text: #abb4aa; --dark-head: #f2f4eb;
  --bot: #ece6f5; --bot-text: #6b5a8c;
  --sleeve: #cad5b5; --sleeve-line: #bdcaa5; --sleeve-text: #536843; --vinyl: #202620; --vinyl-2: #30372e;
  --shadow: 0 18px 40px -24px rgba(48, 66, 36, .45);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121813; --text: #e4e9dc; --head: #f2f4eb; --muted: #9aa58f; --soft-text: #8e9886;
    --line: #273027; --card: #182019; --soft: #19211a; --hero: #1c261d; --hero-line: #2a362a;
    --pill-bg: #202b21; --pill-line: #34422f; --pill-text: #c3d6a0;
    --icon-bg: #222d22; --icon: #b5cb8d;
    --primary: #d9efa8; --primary-hover: #e6f6c2; --on-primary: #1b2a17;
    --secondary: #222d22; --secondary-hover: #2a382a; --on-secondary: #d3e3b8;
    --link: #b5d46f; --lime-dot: #d8f1a4;
    --dark: #0d120e; --dark-2: #172018; --dark-line: #263026;
    --bot: #2b2638; --bot-text: #cbbcef;
    --sleeve: #3a4732; --sleeve-line: #4a5a3f; --sleeve-text: #d3e3b8; --vinyl: #0b0f0b; --vinyl-2: #222a21;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--link); text-underline-offset: 3px; }
img { display: block; }
.i { flex-shrink: 0; }
:focus-visible { outline: 3px solid #8eaf3d; outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Header: the app's brand mark and «melorynt.» */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--head); text-decoration: none; font-size: 24px; font-weight: 650; letter-spacing: -1px; }
.brand-dot { color: var(--lime-dot); }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 7px; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--head); background: var(--secondary); }
.lang { display: flex; padding: 3px; background: var(--secondary); border-radius: 8px; }
.lang a { color: var(--on-secondary); text-decoration: none; font-size: 12px; font-weight: 650; letter-spacing: .5px; padding: 6px 10px; border-radius: 6px; }
.lang a[aria-current] { background: var(--primary); color: var(--on-primary); }

/* Hero: the app's home card with the record and its sleeve */
.hero { margin-top: 36px; border-radius: 16px; background: var(--hero); border: 1px solid var(--hero-line); min-height: 430px; position: relative; overflow: hidden; display: flex; }
.hero-copy { padding: 48px 48px 40px; position: relative; z-index: 2; max-width: 560px; }
.pill { display: inline-flex; gap: 7px; align-items: center; border: 1px solid var(--pill-line); color: var(--pill-text); background: var(--pill-bg); padding: 6px 10px; border-radius: 5px; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; }
h1 { color: var(--head); font-size: clamp(36px, 4.6vw, 54px); font-weight: 550; letter-spacing: -2px; line-height: 1.05; margin: 22px 0 16px; }
.lead { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0 0 28px; max-width: 470px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.primary-button, .secondary-button { border: 0; border-radius: 8px; padding: 13px 18px; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; transition: background .16s; }
.primary-button { background: var(--primary); color: var(--on-primary); }
.primary-button.is-soon { cursor: default; }
.primary-button em { font-style: normal; font-weight: 500; font-size: 11px; letter-spacing: .4px; padding: 3px 7px; border-radius: 4px; background: color-mix(in srgb, var(--on-primary) 16%, transparent); }
.secondary-button { background: var(--secondary); color: var(--on-secondary); }
.secondary-button:hover { background: var(--secondary-hover); }
.hero-note { margin: 16px 0 0; font-size: 13px; color: var(--soft-text); }
.hero-footnote { margin-top: 30px; font-size: 12px; color: var(--soft-text); letter-spacing: .2px; }
.record-art { position: absolute; right: 0; top: 0; width: 48%; height: 100%; }
.record-sleeve { position: absolute; width: 230px; height: 260px; background: var(--sleeve); left: 2%; top: 74px; transform: rotate(-12deg); border: 1px solid var(--sleeve-line); box-shadow: -10px 17px 28px rgba(101, 113, 77, .1); padding: 28px 22px; z-index: 2; }
.record-sleeve > span:first-child { font-size: 26px; font-weight: 350; letter-spacing: -1px; line-height: .96; color: var(--sleeve-text); display: block; }
.record-sleeve b { font-weight: 750; }
.sleeve-line { width: 168px; height: 38px; border-top: 1px solid #9aaf83; border-bottom: 1px solid #9aaf83; position: absolute; bottom: 40px; transform: skewY(-20deg); }
.sleeve-caption { position: absolute; bottom: 16px; font-size: 7px; letter-spacing: 2px; color: #6f825b; }
.vinyl { width: 280px; height: 280px; position: absolute; border-radius: 50%; top: 78px; left: 30%; background: repeating-radial-gradient(circle, var(--vinyl) 0px, var(--vinyl) 2px, var(--vinyl-2) 3px, var(--vinyl) 4px); box-shadow: 10px 16px 24px rgba(51, 75, 49, .15); transform: rotate(15deg); animation: spin 18s linear infinite; }
.vinyl::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(transparent 15%, rgba(255,255,255,.045) 23%, transparent 29%, transparent 64%, rgba(255,255,255,.07) 74%, transparent 85%); }
.vinyl-label { border-radius: 50%; width: 100px; height: 100px; background: var(--lime); position: absolute; top: 90px; left: 90px; display: grid; place-items: center; color: #435134; }
.vinyl-label i { position: absolute; height: 10px; width: 10px; background: #161d16; border: 2px solid var(--lime); border-radius: 50%; }
.orbit { border: 1px solid rgba(195, 209, 175, .4); border-radius: 50%; position: absolute; width: 380px; height: 380px; top: -40px; left: 2%; }
.orbit-two { width: 500px; height: 500px; left: -10%; top: -100px; }
.art-star { color: #88a26a; position: absolute; font-size: 24px; }
.star-one { right: 14%; top: 34px; } .star-two { left: 0; bottom: 30px; font-size: 14px; }
.art-caption { font-size: 8px; letter-spacing: 2px; color: #7b8d67; position: absolute; right: 24px; bottom: 24px; }
@keyframes spin { to { transform: rotate(375deg); } }

/* Steps: the app's three cards with an icon and a number */
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 44px 0 18px; }
.section-heading h2 { font-size: 20px; font-weight: 600; letter-spacing: -.4px; margin: 0; color: var(--head); }
.section-heading > span, .eyebrow { font-size: 11px; color: var(--soft-text); letter-spacing: 1.8px; font-weight: 700; text-transform: uppercase; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps article, .feature { border: 1px solid var(--line); background: var(--soft); padding: 24px 22px 22px; border-radius: 10px; position: relative; }
.step-icon { display: grid; place-items: center; width: 42px; height: 42px; color: var(--icon); background: var(--icon-bg); border-radius: 10px; }
.step-number { position: absolute; right: 20px; top: 24px; font-size: 12px; color: #bcc4b0; }
.steps h3, .feature h3 { margin: 16px 0 8px; font-size: 16px; font-weight: 600; color: var(--head); }
.steps p, .feature p { margin: 0; font-size: 14px; line-height: 1.75; color: var(--soft-text); }

/* Sections */
.block { padding-top: 72px; } /* top only: a .wrap section keeps its side padding */
.block-title { font-size: clamp(26px, 3.2vw, 36px); font-weight: 550; letter-spacing: -1.2px; line-height: 1.15; margin: 10px 0 12px; color: var(--head); }
.block-title.small { font-size: clamp(22px, 2.6vw, 28px); }
.block-sub { font-size: 16px; line-height: 1.75; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); }

/* Charts: a window of the app's Charts page */
.charts-block { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.points li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.points li::before { content: '✦'; position: absolute; left: 0; top: 0; color: #88a26a; }
.app-window { background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--dark); color: var(--dark-text); font-size: 12px; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--dark-line); }
.window-bar span { margin-left: 10px; letter-spacing: .2px; }
.window-bar b { color: var(--lime-dot); }
.window-body { padding: 18px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: var(--soft); color: var(--muted); border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.chip.small { padding: 4px 11px; font-size: 12px; }
.chip.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.select { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px 6px 12px; font-size: 12px; color: var(--text); background: var(--soft); }
.rows { list-style: none; margin: 4px 0 0; padding: 0; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); }
.rank { width: 18px; text-align: center; font-size: 12px; color: var(--soft-text); }
.cover { width: 38px; height: 38px; border-radius: 7px; flex-shrink: 0; }
.cover.c1 { background: radial-gradient(circle at 30% 30%, #f4f7ec, transparent 55%), linear-gradient(135deg, #b9cf8e, #5d7b45); }
.cover.c2 { background: radial-gradient(circle at 70% 30%, #ffd7c2, transparent 55%), linear-gradient(135deg, #e07b5a, #8c2f2f); }
.cover.c3 { background: radial-gradient(circle at 30% 70%, #fff0c4, transparent 55%), linear-gradient(135deg, #e3b64f, #9b6a1f); }
.cover.c4 { background: radial-gradient(circle at 60% 40%, #dde6ff, transparent 55%), linear-gradient(135deg, #7b8fd6, #3a477e); }
.meta { min-width: 0; flex: 1; display: grid; }
.meta strong { font-size: 13px; font-weight: 600; color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta span { font-size: 11px; color: var(--soft-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offered { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; color: var(--link); background: var(--icon-bg); padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
.play { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--secondary); color: var(--on-secondary); }
.play.library { background: var(--primary); color: var(--on-primary); }
.play.bot { background: var(--bot); color: var(--bot-text); }
.play.find { background: transparent; border: 1px solid var(--line); color: var(--soft-text); }

/* Catalog: the app's dark sidebar colours */
.band { margin-top: 80px; background: var(--dark); color: var(--dark-text); padding: 72px 0; }
.band .eyebrow { color: #718073; }
.band .block-title { color: var(--dark-head); }
.band .block-sub { color: var(--dark-text); }
.steps.dark article { background: var(--dark-2); border-color: var(--dark-line); }
.steps.dark h3 { color: var(--dark-head); margin-top: 6px; }
.steps.dark p { color: var(--dark-text); }
.steps.dark .step-number { position: static; display: inline-block; color: var(--dark); background: var(--lime); font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 5px; }
.rights { padding-bottom: 24px; }

/* Privacy */
.prose { max-width: 760px; padding: 56px 0 24px; }
.prose h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -1.4px; margin: 14px 0 12px; }
.prose h2 { font-size: 20px; font-weight: 600; letter-spacing: -.3px; margin: 36px 0 10px; color: var(--head); }
.prose p, .prose li { font-size: 15px; line-height: 1.8; }
.prose ul { padding-left: 20px; margin: 0; display: grid; gap: 6px; }
.prose li::marker { color: #88a26a; }
.prose strong { color: var(--head); font-weight: 600; }
.muted { color: var(--muted); }
code { font: 13px/1.4 ui-monospace, 'Cascadia Code', Consolas, monospace; background: var(--secondary); color: var(--on-secondary); padding: 2px 6px; border-radius: 5px; }

/* Footer */
.site-footer { margin-top: 64px; border-top: 1px solid var(--line); }
.footer-row { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; padding: 26px 24px 40px; font-size: 13px; color: var(--soft-text); }
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-links a { color: var(--muted); }

@media (max-width: 960px) {
  .hero { flex-direction: column; min-height: 0; }
  .hero-copy { padding: 36px 28px 0; max-width: none; }
  .record-art { position: relative; width: 100%; height: 340px; }
  .record-sleeve { left: 8%; top: 40px; }
  .vinyl { left: 38%; top: 40px; }
  .charts-block { grid-template-columns: 1fr; gap: 28px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .lang { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { margin-top: 20px; }
  .hero-copy { padding: 28px 20px 0; }
  h1 { letter-spacing: -1.2px; }
  .record-art { height: 300px; }
  .record-sleeve { width: 170px; height: 196px; left: 4%; top: 36px; padding: 20px 16px; }
  .record-sleeve > span:first-child { font-size: 20px; }
  .sleeve-line { width: 120px; bottom: 30px; }
  .vinyl { width: 210px; height: 210px; left: 36%; top: 40px; }
  .vinyl-label { width: 76px; height: 76px; top: 67px; left: 67px; }
  .orbit { width: 300px; height: 300px; } .orbit-two { width: 380px; height: 380px; }
  .steps, .features { grid-template-columns: 1fr; }
  .section-heading { flex-direction: column; gap: 6px; }
  .select { margin-left: 0; }
  .offered { display: none; }
  .band { padding: 56px 0; margin-top: 64px; }
  .footer-row { padding: 22px 16px 32px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
