/* Cosmic Lawncare — sticker theme
   Colors and stripes come straight from the official sticker.
   Edit the palette in :root to retheme every page. */

:root {
  --sky: #c2dcff;        /* sticker background */
  --blue: #3992ff;
  --indigo: #3533cd;
  --red: #e13333;
  --amber: #f8ad00;
  --ink: #1d1a5c;        /* deep indigo for body text */
  --ink-soft: #4b4a8a;
  --page: #eaf3ff;
  --white: #fff;
  --red-text: #c22525;   /* darker red that passes contrast on white */
  --radius: 14px;

  /* the four racing stripes, in sticker order */
  --bands: linear-gradient(90deg, var(--blue) 0 25%, var(--indigo) 25% 50%, var(--red) 50% 75%, var(--amber) 75% 100%);
  --bands-v: linear-gradient(180deg, var(--blue) 0 25%, var(--indigo) 25% 50%, var(--red) 50% 75%, var(--amber) 75% 100%);

  --display: "Racing Sans One", "Arial Black", Impact, sans-serif;
  --body: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
  --notes: "Libre Baskerville", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
}

a { color: var(--indigo); font-weight: 700; }
a:hover { color: var(--red-text); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */
.topbar {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 20px; padding: 16px 0;
}
/* brand and nav sit on white pills so they stay readable over the stripes */
.brand {
  font-family: var(--display); font-size: 1.25rem; letter-spacing: .02em;
  color: var(--ink); text-decoration: none; font-weight: 400;
  background: var(--white); border: 3px solid var(--ink); border-radius: 999px; padding: 3px 16px;
}
.nav { background: var(--white); border: 3px solid var(--ink); border-radius: 999px; padding: 2px 8px; }
.nav a { color: var(--ink); text-decoration: none; margin: 0; padding: 4px 11px; display: inline-block; font-weight: 700; font-size: .98rem; }
.nav a:hover { color: var(--red-text); }
@media (max-width: 520px) {
  .brand { font-size: 1.05rem; padding: 2px 12px; }
  .nav { padding: 1px 4px; }
  .nav a { padding: 4px 7px; font-size: .88rem; }
}

/* ---------- hero: the sticker on a field of racing stripes ---------- */
.hero-wrap { position: relative; background: var(--sky); overflow: hidden; }

.stripes {
  position: absolute; top: 0; bottom: 0; left: -60px;
  width: clamp(130px, 34vw, 440px);
  display: flex; pointer-events: none; z-index: 0;
}
.stripes span { flex: 1; transform: skewX(-14deg); transform-origin: bottom left; }
.stripes span:nth-child(1) { background: var(--blue); }
.stripes span:nth-child(2) { background: var(--indigo); }
.stripes span:nth-child(3) { background: var(--red); }
.stripes span:nth-child(4) { background: var(--amber); }

.hero { position: relative; z-index: 1; text-align: center; padding: 20px 0 54px; }

.badge {
  display: inline-block; background: var(--white); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 999px; padding: 4px 16px;
  font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase;
  margin: 0 0 22px; transform: rotate(-1deg);
}

h1.sticker-title { margin: 0; line-height: 0; }
.sticker {
  display: block; width: min(100%, 880px); height: auto; margin: 0 auto;
  background: var(--sky);
  border: 10px solid var(--white); border-radius: 18px;
  box-shadow: 0 8px 0 rgba(29,26,92,.30), 0 22px 40px rgba(29,26,92,.28);
  transform: rotate(-1.5deg);
}
.tagline {
  display: inline-block; margin: 30px 0 0; font-weight: 700; font-size: 1.15rem; color: var(--ink);
  background: var(--white); border: 3px solid var(--ink); border-radius: 12px; padding: 6px 18px;
}

/* ---------- sections ---------- */
section { padding: 56px 0; }
section.alt { background: var(--white); }

h2 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem); margin: 0 0 14px; color: var(--ink);
  position: relative; padding-bottom: 14px;
}
h2::after {                     /* stripe underline */
  content: ""; position: absolute; left: 0; bottom: 0; width: 120px; height: 8px;
  background: var(--bands); transform: skewX(-14deg);
}
.kicker { color: var(--ink-soft); margin: 6px 0 26px; font-weight: 600; }
.tag {
  margin: 0 0 6px; font-weight: 700; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--red-text);
}

/* about */
.about { display: grid; gap: 34px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 760px) { .about { grid-template-columns: 1.2fr 1fr; } }
.about p.lede { font-size: 1.3rem; line-height: 1.55; font-weight: 600; }

.photo {
  margin: 0; background: var(--white); padding: 10px; border-radius: 12px;
  border: 3px solid var(--ink);
  box-shadow: 7px 8px 0 var(--indigo);
  transform: rotate(2deg); max-width: 360px; justify-self: center;
}
.photo img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }
.photo figcaption { text-align: center; font-weight: 700; padding-top: 10px; color: var(--ink); font-size: .95rem; }

.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.links a {
  display: inline-block; text-decoration: none; font-weight: 700; color: var(--ink);
  background: var(--white); border: 3px solid var(--ink); border-radius: 999px; padding: 6px 18px;
}
.links a:hover { background: var(--indigo); border-color: var(--indigo); color: var(--white); }

/* services = songs */
.menu { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.service {
  position: relative; display: block; text-decoration: none; color: var(--ink);
  background: var(--page); border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 22px 22px 18px 34px; box-shadow: 6px 7px 0 var(--indigo);
  transition: transform .15s ease;
}
.service::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px;
  background: var(--bands-v); border-radius: 10px 0 0 10px;
}
a.service:hover { transform: translate(-2px, -3px); color: var(--ink); }
.service .label {
  font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--red-text); margin: 0 0 4px;
}
.service h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin: 0 0 8px; line-height: 1.1; }
.service p { margin: 0 0 8px; }
.service .more { font-weight: 700; color: var(--indigo); }
.service.soon { border-style: dashed; box-shadow: none; opacity: .85; }
.service.soon::before { opacity: .45; }

/* appointments = shows */
.appointments { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.appt {
  display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center;
  background: var(--page); border: 3px solid var(--ink); border-radius: var(--radius); padding: 12px 16px;
}
.appt .date {
  text-align: center; color: var(--white); border-radius: 10px; padding: 6px 4px;
  font-family: var(--display); line-height: 1.05; background: var(--indigo);
}
.appt:nth-child(3n+2) .date { background: var(--red-text); }
.appt:nth-child(3n+3) .date { background: #8a5a00; }
.appt .date .m { display: block; font-size: .85rem; letter-spacing: .1em; }
.appt .date .d { display: block; font-size: 1.8rem; }
.appt h3 { margin: 0; font-size: 1.15rem; }
.appt p { margin: 2px 0 0; }
.empty {
  border: 3px dashed var(--ink-soft); border-radius: var(--radius); padding: 22px;
  color: var(--ink-soft); font-weight: 600; background: var(--page);
}

/* signup */
.visit {
  background: var(--indigo); color: var(--white); border-radius: 18px; padding: 32px;
  box-shadow: 9px 9px 0 var(--amber);
  display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center;
  position: relative; overflow: hidden;
}
@media (min-width: 760px) { .visit { grid-template-columns: 1.3fr 1fr; } }
.visit h2 { color: var(--white); }
.visit h2::after { background: linear-gradient(90deg, var(--blue) 0 25%, var(--white) 25% 50%, var(--red) 50% 75%, var(--amber) 75% 100%); }
.visit .kicker { color: #d6e5ff; }
.visit form { display: flex; flex-wrap: wrap; gap: 10px; }
.visit input[type=email] {
  flex: 1 1 240px; padding: 13px 16px; border: 3px solid var(--white); border-radius: 12px;
  font: inherit; font-weight: 600; background: var(--white); color: var(--ink);
}
.visit button {
  font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem;
  background: var(--amber); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px;
  padding: 11px 24px; cursor: pointer; font-weight: 400;
}
.visit button:hover { background: var(--white); }
.visit form[hidden] { display: none; }
.signup-msg { margin: 12px 0 0; font-weight: 700; color: var(--white); background: rgba(255,255,255,.14); padding: 10px 14px; border-radius: 10px; }
.signup-msg.bad { background: var(--red); }
.fineprint { font-size: .88rem; margin: 12px 0 0; color: #d6e5ff; font-weight: 600; }
.visit .pic {
  margin: 0; justify-self: center; max-width: 330px; transform: rotate(2.5deg);
  background: var(--white); padding: 8px; border-radius: 12px; box-shadow: 0 8px 0 rgba(0,0,0,.25);
}
.visit .pic img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }
.visit .pic figcaption { text-align: center; color: var(--ink); font-weight: 700; padding-top: 8px; font-size: .95rem; }

/* footer */
.band {                         /* racing-stripe band above the footer */
  height: 16px;
  background: repeating-linear-gradient(115deg, var(--blue) 0 22px, var(--indigo) 22px 44px, var(--red) 44px 66px, var(--amber) 66px 88px);
}
footer { background: var(--ink); color: #dfe9ff; padding: 30px 0 40px; text-align: center; }
footer a { color: var(--white); }
footer .small { font-size: .9rem; margin-top: 8px; font-weight: 600; }

/* ================= liner notes (song pages) ================= */
.liner-page { background: var(--white); }
.liner-page .topbar { background: var(--sky); padding: 14px 20px; }

.sleeve { max-width: 760px; margin: 0 auto; padding: 44px 22px 20px; }
.sleeve .back { font-weight: 700; font-size: .95rem; }
.sleeve h1 {
  font-family: var(--notes); font-weight: 700; font-style: italic;
  font-size: clamp(2.2rem, 7vw, 3.8rem); line-height: 1.05; margin: 18px 0 8px; color: var(--ink);
}
.sleeve .subtitle {
  text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; font-weight: 700;
  color: var(--red-text); margin: 0 0 8px;
}
.sleeve .stripe { height: 10px; width: 170px; background: var(--bands); transform: skewX(-14deg); margin: 16px 0 24px; }
.sleeve hr { border: 0; border-top: 3px solid var(--ink); margin: 26px 0; }
.sleeve hr.thin { border-top: 1px solid #b7c8e8; }

.sleeve .cover { margin: 0 0 26px; max-width: 360px; background: var(--white); padding: 8px; border-radius: 12px; box-shadow: 6px 6px 0 var(--amber); transform: rotate(-1.5deg); }
.sleeve .cover img { display: block; width: 100%; height: auto; border-radius: 6px; }
.sleeve .listen { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.sleeve .listen a {
  background: var(--indigo); color: var(--white); text-decoration: none; font-weight: 700;
  padding: 10px 22px; border-radius: 999px; border: 3px solid var(--ink);
}
.sleeve .listen a:hover { background: var(--amber); color: var(--ink); }

.sleeve h2 { font-family: var(--body); font-weight: 700; text-transform: uppercase; letter-spacing: .16em; font-size: .9rem; color: var(--indigo); padding-bottom: 0; margin: 0 0 12px; }
.sleeve h2::after { display: none; }
.sleeve section { padding: 0; }
.sleeve .story { font-family: var(--notes); font-size: 1.12rem; line-height: 1.8; }
.sleeve .story p { margin: 0 0 1.1em; }
.sleeve .story p:first-of-type::first-letter {
  font-size: 3.4rem; float: left; line-height: .9; padding: 6px 10px 0 0; color: var(--red-text); font-weight: 700;
}
/* A one-paragraph story reads better without the drop cap; it appears once there are two or more. */
.sleeve .story p:only-child::first-letter { font-size: inherit; float: none; line-height: inherit; padding: 0; color: inherit; font-weight: inherit; }
.sleeve .note-draft {
  font-family: var(--body); font-size: .9rem; font-weight: 600; background: #fff3b8; border: 2px dashed #a58200;
  padding: 10px 14px; border-radius: 8px; color: #3b2d00;
}

.credits { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; margin: 0; font-family: var(--notes); }
.credits dt { font-style: italic; color: var(--ink-soft); }
.credits dd { margin: 0; font-weight: 700; }

.liner-page .sleeve { padding-bottom: 56px; }

/* ================= subpages: song list + interactive services ================= */
.subpage { background: var(--page); }
.subpage .topbar { background: var(--sky); padding: 14px 20px; }
.subpage section.plain { padding: 28px 0 60px; }
.subpage section.plain .wrap { max-width: 760px; padding: 0 22px; }

.page-head { max-width: 760px; margin: 0 auto; padding: 44px 22px 6px; }
.page-head .back { font-weight: 700; font-size: .95rem; }
.page-head .tag { margin-top: 18px; }
.page-head h1 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: 1.05; margin: 10px 0 14px; color: var(--ink);
}
.page-head .lede { font-size: 1.2rem; font-weight: 600; margin: 0; }
.page-head .stripe { height: 10px; width: 170px; background: var(--bands); transform: skewX(-14deg); margin: 22px 0 4px; }

.workshop { max-width: 760px; margin: 0 auto; padding: 4px 22px 64px; }

.panel {
  margin-top: 26px; background: var(--white); border: 3px solid var(--ink); border-radius: 18px;
  padding: 26px; box-shadow: 8px 9px 0 var(--indigo);
}
.field { margin: 0 0 24px; }
.field label { display: block; font-weight: 700; margin: 0 0 8px; }
.field input[type=text] {
  width: 100%; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 12px;
  font: inherit; font-weight: 600; color: var(--ink); background: var(--page);
}
.field input[type=range] { width: 100%; height: 30px; margin: 0; accent-color: var(--indigo); }
.slider-ends { display: flex; justify-content: space-between; gap: 12px; font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
details.upgrade { margin: 0 0 24px; border: 3px dashed var(--ink-soft); border-radius: 12px; padding: 12px 16px; }
details.upgrade summary { cursor: pointer; font-weight: 700; color: var(--indigo); }
details.upgrade[open] summary { margin-bottom: 14px; }
details.upgrade .field { margin: 0; }
.slider-read { display: block; margin-top: 8px; font-weight: 700; color: var(--indigo); }
input:focus-visible, button:focus-visible, .ticket:focus-visible { outline: 4px solid var(--amber); outline-offset: 2px; }

.btn {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem;
  background: var(--amber); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px;
  padding: 12px 26px; cursor: pointer;
}
.btn:hover { background: var(--indigo); color: var(--white); }
.btn.small { font-size: 1rem; padding: 9px 18px; }
.btn.ghost { background: var(--white); }
.btn.ghost:hover { background: var(--indigo); color: var(--white); }

/* the work order */
.ticket {
  margin-top: 36px; background: #fffdf4; color: var(--ink); border: 3px solid var(--ink); border-radius: 6px;
  font-family: "Courier Prime", "Courier New", monospace; font-size: 1.02rem; line-height: 1.55;
  box-shadow: 8px 9px 0 var(--amber); overflow: hidden;
}
.ticket[hidden] { display: none; }
.ticket::before {
  content: ""; display: block; height: 16px;
  background: repeating-linear-gradient(115deg, var(--blue) 0 22px, var(--indigo) 22px 44px, var(--red) 44px 66px, var(--amber) 66px 88px);
}
.ticket-inner { padding: 20px 26px 26px; }
.ticket-top {
  display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: .85rem;
  text-transform: uppercase; letter-spacing: .12em; color: var(--ink-soft);
}
.ticket h2 { font-size: clamp(1.4rem, 4.5vw, 1.9rem); margin: 10px 0 14px; padding-bottom: 0; }
.ticket h2::after { display: none; }
.rows {
  display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0 0 6px;
  border-top: 2px dashed var(--ink); border-bottom: 2px dashed var(--ink); padding: 12px 0;
}
.rows dt { color: var(--ink-soft); }
.rows dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.ticket h3 {
  font-family: var(--body); font-size: .85rem; text-transform: uppercase; letter-spacing: .16em;
  color: var(--indigo); margin: 22px 0 8px; font-weight: 700;
}
.ticket ul { margin: 0; padding-left: 1.2em; }
.ticket li { margin: 0 0 8px; overflow-wrap: anywhere; }
:where(.ticket p) { margin: 0; }
.ticket p { overflow-wrap: anywhere; }

/* ten-notch meter, stair-stepped like a signal bar */
.meter { display: flex; align-items: flex-end; gap: 6px; height: 80px; max-width: 360px; }
.seg {
  flex: 1; max-width: 32px; height: calc(14px + var(--i) * 6px); border-radius: 4px;
  border: 3px dashed #b7c8e8; transform: skewX(-14deg);
}
.seg[data-band="blue"]   { --c: var(--blue); }
.seg[data-band="indigo"] { --c: var(--indigo); }
.seg[data-band="red"]    { --c: var(--red); }
.seg[data-band="amber"]  { --c: var(--amber); }
.seg.on, .seg.new { background: var(--c); border: 3px solid var(--ink); }
.seg.ghost { border-color: var(--red-text); background: transparent; }
.meter-caption { margin-top: 10px; font-weight: 700; }

.signoff { margin: 22px 0 0; padding-left: 14px; border-left: 6px solid var(--amber); font-style: italic; }
.signoff .by { display: block; margin-top: 4px; font-style: normal; font-weight: 700; font-size: .9rem; color: var(--ink-soft); }

.seed { margin: 22px 0 0; border: 3px solid var(--ink); border-radius: 10px; background: var(--white); padding: 12px 16px 14px; }
.seed-label {
  margin: 0 0 4px; font-family: var(--body); font-weight: 700; font-size: .8rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red-text);
}
.seed p:last-child { font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cross { margin-top: 22px; font-family: var(--body); font-weight: 600; }
.fine { margin-top: 18px; font-size: .82rem; color: var(--ink-soft); }

@keyframes pop  { from { transform: skewX(-14deg) scale(.5); } to { transform: skewX(-14deg) scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .seg.new { animation: pop .5s ease-out; }
  .ticket.rise { animation: rise .35s ease-out; }
}

@media (max-width: 520px) {
  .panel { padding: 20px; }
  .ticket-inner { padding: 18px 18px 22px; }
  .rows { grid-template-columns: 1fr; gap: 0; }
  .rows dd { margin-bottom: 8px; }
  .slider-ends { font-size: .78rem; }
}
