:root {
  color-scheme: light;
  --ink: #201b17;
  --muted: #6c6258;
  --paper: #fffaf1;
  --surface: #ffffff;
  --line: #ded5c7;
  --red: #b9362f;
  --green: #2f6f5e;
  --gold: #d89a25;
  --blue: #2c5f8e;
  --shadow: 0 18px 40px rgb(43 31 18 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgb(185 54 47 / 8%) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(var(--paper), #f7efe2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgb(255 250 241 / 88%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--red);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgb(43 31 18 / 8%);
}

.brand-mark svg {
  width: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.08rem;
  letter-spacing: 0;
}

.brand small,
.eyebrow {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  min-height: 40px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  color: var(--ink);
  background: rgb(216 154 37 / 16%);
  outline: none;
}

main {
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 48px) 52px;
}

.hero {
  display: grid;
  gap: 24px;
  align-items: center;
  min-height: calc(100svh - 74px);
  padding: 22px 0 34px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 8px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 10vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 7vw, 3.1rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow),
.submit-band p {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1rem, 3vw, 1.2rem);
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
}

.hero-art svg {
  width: min(86vw, 360px);
  filter: drop-shadow(0 18px 22px rgb(43 31 18 / 14%));
}

.sun {
  fill: var(--gold);
  opacity: 0.36;
}

.bellows {
  fill: #f2d99d;
  stroke: var(--ink);
  stroke-width: 5;
}

.folds,
.key-lines {
  fill: none;
  stroke: var(--red);
  stroke-linecap: round;
  stroke-width: 5;
}

.keys {
  fill: #fbf7ea;
  stroke: var(--ink);
  stroke-width: 5;
}

.button {
  fill: var(--green);
}

.ornament {
  width: min(72vw, 300px);
  height: 20px;
  background:
    linear-gradient(135deg, transparent 30%, var(--red) 30% 42%, transparent 42%),
    linear-gradient(45deg, transparent 30%, var(--green) 30% 42%, transparent 42%);
  background-size: 24px 20px;
  opacity: 0.9;
}

.ornament-top {
  transform: translateY(10px);
}

.ornament-bottom {
  transform: rotate(180deg) translateY(10px);
}

.toolbar {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 14px;
  background: rgb(255 255 255 / 82%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
}

label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

input:focus,
select:focus {
  border-color: var(--blue);
  outline: 3px solid rgb(44 95 142 / 18%);
}

.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.result-count {
  flex: 0 0 auto;
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 700;
}

.score-grid {
  display: grid;
  gap: 12px;
}

.score-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgb(43 31 18 / 8%);
}

.score-main {
  display: grid;
  gap: 8px;
}

.score-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.2;
}

.meta,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.meta span,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 8px;
  color: var(--muted);
  background: #fbf7ea;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.tag {
  color: #173f35;
  background: rgb(47 111 94 / 12%);
  border-color: rgb(47 111 94 / 24%);
}

.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 13px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.download:hover,
.download:focus-visible {
  background: #235546;
  outline: 3px solid rgb(47 111 94 / 22%);
}

.download svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state,
.submit-band {
  padding: 22px;
  background: rgb(255 255 255 / 78%);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.empty-state {
  margin-top: 14px;
  color: var(--muted);
  text-align: center;
}

.submit-band {
  margin-top: 38px;
  border-style: solid;
  border-top: 6px solid var(--gold);
}

code {
  padding: 2px 5px;
  background: rgb(216 154 37 / 16%);
  border-radius: 5px;
  font-size: 0.94em;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 22px clamp(16px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer p {
  margin: 0;
}

@media (min-width: 720px) {
  .hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    min-height: min(760px, calc(100svh - 74px));
    padding-top: 40px;
  }

  .toolbar {
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.8fr);
    align-items: end;
    padding: 18px;
  }

  .score-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 18px;
  }

  .download {
    min-width: 132px;
  }
}

@media (min-width: 980px) {
  .score-grid {
    grid-template-columns: 1fr 1fr;
  }
}
