/* Ditty website. One stylesheet, no build step, no external fonts or scripts. */

:root {
  color-scheme: light dark;
  --bg: #FFF6EC;
  --ink: #1E1512;
  --soft: #5E4F47;
  --card: #FFFFFF;
  --line: #F0DFCD;
  --tomato: #FF5A36;
  --grape: #7B5CFF;
  --link: #B9300C;        /* tomato, darkened to read on cream */
  --grape-ink: #5A3FD6;   /* grape, darkened to read on cream */
  --on-tomato: #1E1512;
  --groove: #2C211C;
  --radius: 24px;
  --font: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN", "Nunito", system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120F;
    --ink: #FFF3E6;
    --soft: #C9B8A8;
    --card: #241C17;
    --line: #3A2E26;
    --link: #FF8466;
    --grape-ink: #A893FF;
    --groove: #0D0A08;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--grape-ink); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -100px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: 68rem; margin: 0 auto; padding: 0 20px; }

/* ---- Header and footer ---- */

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 6px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); font-size: 1.5rem; font-weight: 900; letter-spacing: -0.01em; text-decoration: none;
}
.brand::before {
  content: ""; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle, var(--bg) 0 14%, var(--tomato) 15% 44%, var(--groove) 45% 100%);
}

.top nav { display: flex; gap: 4px; }
.top nav a, .foot a { color: var(--ink); font-weight: 700; }
.top nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; }
.top nav a:hover { background: var(--line); }

main { flex: 1; }

.foot { padding-top: 20px; padding-bottom: 28px; color: var(--soft); font-size: 0.9375rem; }
.foot ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 8px; padding: 0; list-style: none; }
.foot p { margin: 0; }

/* ---- Landing ---- */

.hero { display: grid; gap: 28px; align-items: center; padding-top: 28px; padding-bottom: 12px; }

.pill {
  display: inline-block; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px;
  border: 2px solid var(--grape-ink); color: var(--grape-ink); font-size: 0.9375rem; font-weight: 800;
}

h1 { margin: 0; font-size: clamp(2.5rem, 9vw, 4.5rem); line-height: 1.02; font-weight: 900; letter-spacing: -0.03em; text-wrap: balance; }
h1 em { font-style: normal; text-decoration: underline; text-decoration-color: var(--tomato); text-decoration-thickness: 0.12em; text-underline-offset: 0.12em; }

.lede { margin: 18px 0 0; max-width: 30rem; font-size: clamp(1.15rem, 3.4vw, 1.4rem); line-height: 1.4; font-weight: 600; color: var(--soft); }

/* The clip ladder: six clip lengths, the first one lit. Decorative. */
.ladder { display: flex; gap: 6px; margin: 26px 0 0; padding: 0; list-style: none; max-width: 26rem; }
.ladder li {
  flex: 1; padding: 9px 0; border-radius: 12px; border: 2px solid var(--line); background: var(--card);
  text-align: center; font-size: 0.875rem; font-weight: 800; color: var(--soft);
}
.ladder li:first-child { background: var(--tomato); border-color: var(--tomato); color: var(--on-tomato); }

/* A vinyl record with a year on the label. Drawn in CSS: no artwork, no logo. */
.art { justify-self: center; position: relative; width: min(64vw, 300px); aspect-ratio: 1; }
.disc {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, var(--card) 0 3.5%, transparent 3.6%),
    radial-gradient(circle, var(--tomato) 0 34%, transparent 34.4%),
    repeating-radial-gradient(circle, var(--groove) 0 3px, #44352D 3.5px 4px);
  box-shadow: 0 0 0 2px var(--line), 0 18px 40px rgba(30, 21, 18, 0.25);
}
.year {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, 34%);
  color: var(--on-tomato); font-weight: 900; font-size: clamp(1rem, 4.5vw, 1.35rem); letter-spacing: 0.04em;
}
.note {
  position: absolute; right: -4%; top: 2%; padding: 8px 14px; border-radius: 999px; transform: rotate(8deg);
  background: #5A3FD6; color: #FFFFFF; font-weight: 900; font-size: 1.25rem;
  box-shadow: 0 8px 18px rgba(30, 21, 18, 0.2);
}

.features { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.features li { padding: 18px 20px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--card); }
.features h3 { margin: 0 0 4px; font-size: 1.125rem; line-height: 1.25; font-weight: 800; }
.features p { margin: 0; color: var(--soft); font-size: 1rem; line-height: 1.45; }
.features h3::before {
  content: ""; display: inline-block; width: 0.6em; height: 0.6em; margin-right: 0.5em; border-radius: 50%;
  background: var(--tomato);
}
.features li:nth-child(even) h3::before { background: var(--grape); }

.music { margin: 22px 0 0; max-width: 46rem; color: var(--soft); font-size: 0.9375rem; line-height: 1.5; }

@media (min-width: 40rem) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 60rem) {
  .hero { grid-template-columns: 1.25fr 0.75fr; padding-top: 40px; }
  .art { width: min(30vw, 340px); }
  .features { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Text pages (privacy, terms, support) ---- */

.doc { max-width: 44rem; padding-top: 24px; padding-bottom: 24px; }
.doc h1 { font-size: clamp(2rem, 7vw, 2.75rem); line-height: 1.1; letter-spacing: -0.02em; }
.doc .dated { margin: 10px 0 0; color: var(--soft); font-size: 0.9375rem; font-weight: 600; }
.doc .summary {
  margin: 22px 0 0; padding: 18px 20px; border-radius: var(--radius);
  border: 2px solid var(--line); background: var(--card); font-weight: 600;
}
.doc h2 { margin: 34px 0 8px; font-size: 1.3rem; line-height: 1.25; font-weight: 800; }
.doc p, .doc ul { margin: 0 0 14px; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: 6px; }
.doc address { font-style: normal; }
