:root {
  --facts-ink: #27231f;
  --facts-paper: #f7f2e8;
  --facts-card: #fffdf8;
  --facts-soft: #eee5d8;
  --facts-red: #8a352f;
  --facts-red-dark: #6f2925;
  --facts-gold: #b28a53;
  --facts-muted: #6f675d;
  --facts-border: #d8cdbd;
  --facts-shadow: 0 14px 34px rgba(52, 43, 33, 0.09);
  --facts-width: 1120px;
  --facts-radius: 8px;
}

html {
  min-height: 100%;
  color-scheme: light;
  background: var(--facts-paper);
}

body {
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 14% 4%, rgba(178, 138, 83, 0.14), transparent 30rem),
    linear-gradient(rgba(84, 67, 51, 0.025) 1px, transparent 1px),
    var(--facts-paper);
  background-size: auto, 100% 32px, auto;
  color: var(--facts-ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.68;
}

body::before {
  content: "";
  display: block;
  height: 76px;
  background: #202124;
  border-bottom: 1px solid #34363a;
}

.wrap {
  width: min(calc(100% - 40px), var(--facts-width));
  max-width: none;
  margin: -76px auto 0;
  padding: 0 0 72px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.wrap::before {
  display: none;
}

.content {
  position: relative;
  z-index: 1;
  overflow: visible;
  overflow-wrap: anywhere;
}

.top-links {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  margin: 0 0 54px;
  background: #202124;
  box-shadow: 0 0 0 100vmax #202124;
  clip-path: inset(0 -100vmax);
}

.top-links::before {
  content: "BOB DYLAN FACTS";
  margin-right: auto;
  color: #f6f1e8;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.top-links a,
a {
  color: var(--facts-red);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.top-links a {
  color: #bcb8b1;
  border: 0;
  font-size: 0.84rem;
  text-decoration: none;
}

.top-links a:hover {
  color: #fff;
}

a:hover {
  color: var(--facts-red-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--facts-red);
  outline-offset: 3px;
}

.eyebrow,
.section-label {
  color: var(--facts-red);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 15px;
}

h1,
h2,
h3,
.featured-date,
.result-heading,
.report-title {
  color: var(--facts-ink);
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.muted {
  max-width: 780px;
  margin: 23px 0 0;
  color: var(--facts-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.72;
}

.muted strong,
.meta-line strong,
.summary-line strong {
  color: var(--facts-ink);
}

.section {
  margin-top: 28px;
  padding: 28px 30px;
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--facts-border);
  border-radius: var(--facts-radius);
  box-shadow: 0 4px 14px rgba(52, 43, 33, 0.045);
}

.section + .section {
  margin-top: 20px;
}

.section-label {
  display: block;
  margin: 0 0 12px;
}

.featured-date,
.result-heading,
.report-title {
  margin: 0;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.featured-date {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.result-heading,
.report-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.meta-line,
.summary-line,
.note,
.search-hint,
.no-results {
  color: var(--facts-muted);
  line-height: 1.65;
}

.meta-line {
  margin-top: 15px;
}

.pills {
  gap: 8px;
  margin-top: 18px;
}

.pill {
  min-height: 32px;
  padding: 6px 11px;
  background: var(--facts-soft);
  color: #5f5144;
  border: 1px solid #d5c5b0;
  border-radius: 999px;
  font-size: 0.76rem;
}

.tool-links {
  gap: 10px;
  margin-top: 18px;
}

.tool-link,
.search-form button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  background: var(--facts-red);
  color: #fff;
  border: 1px solid var(--facts-red);
  border-radius: 5px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.tool-link:hover,
.search-form button:hover {
  background: var(--facts-red-dark);
  color: #fff;
  border-color: var(--facts-red-dark);
}

.setlist {
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid var(--facts-border);
  list-style: none;
  counter-reset: setlist;
}

.setlist li {
  position: relative;
  min-height: 45px;
  margin: 0;
  padding: 10px 12px 10px 48px;
  color: var(--facts-ink);
  border-bottom: 1px solid #e5ddd1;
  line-height: 1.55;
  counter-increment: setlist;
}

.setlist li::before {
  content: counter(setlist);
  position: absolute;
  left: 12px;
  top: 11px;
  width: 24px;
  color: #8a8074;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.setlist small {
  color: var(--facts-muted);
}

.alt-list,
.report-list {
  margin-top: 14px;
}

.alt-list li,
.report-list li {
  border-color: var(--facts-border);
}

.date-link {
  padding: 15px 4px;
  color: var(--facts-muted);
  border: 0;
}

.date-link strong,
.item-title {
  color: var(--facts-ink);
}

.date-link:hover {
  color: var(--facts-red);
}

.search-form {
  max-width: 760px;
  gap: 10px;
}

.search-form input[type="text"] {
  min-height: 46px;
  padding: 10px 13px;
  background: #fff;
  color: var(--facts-ink);
  border: 1px solid #cbbdac;
  border-radius: 5px;
}

.search-form input[type="text"]::placeholder {
  color: #91877b;
}

.examples {
  gap: 8px;
}

.examples a {
  min-height: 36px;
  padding: 7px 11px;
  background: var(--facts-soft);
  color: #665b50;
  border: 1px solid var(--facts-border);
  border-radius: 999px;
  font-size: 0.82rem;
}

.examples a:hover {
  color: var(--facts-red);
  border-color: #bfae99;
}

.result-card {
  margin-top: 22px;
  padding: 22px 0 0;
  border-color: var(--facts-border);
}

.result-card h3 {
  color: var(--facts-ink);
  font-size: 1.5rem;
  font-weight: 600;
}

.summary-grid {
  gap: 12px;
}

.summary-box {
  padding: 17px;
  background: var(--facts-soft);
  border: 1px solid var(--facts-border);
  border-radius: 6px;
}

.summary-box p {
  color: var(--facts-muted);
}

.summary-number {
  color: var(--facts-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.report-grid {
  gap: 14px;
}

.report-link {
  min-height: 150px;
  padding: 20px;
  background: var(--facts-card);
  color: var(--facts-ink);
  border: 1px solid var(--facts-border);
  border-radius: 7px;
  box-shadow: 0 3px 9px rgba(52, 43, 33, 0.04);
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.report-link:hover {
  color: var(--facts-ink);
  border-color: #b9a58e;
  box-shadow: var(--facts-shadow);
  transform: translateY(-2px);
}

.report-link strong {
  color: var(--facts-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.report-link span {
  color: var(--facts-muted);
}

.report-list li {
  padding: 16px 0;
}

.rank {
  min-width: 32px;
  min-height: 32px;
  background: var(--facts-soft);
  color: var(--facts-red);
  border: 1px solid #d3c2ad;
  border-radius: 999px;
}

.item-meta {
  color: var(--facts-muted);
}

.map-link {
  color: var(--facts-red);
  border-color: #c6ad91;
}

@media (max-width: 760px) {
  body::before {
    height: auto;
    min-height: 68px;
  }

  .wrap {
    width: min(calc(100% - 24px), var(--facts-width));
    margin-top: -68px;
    padding-bottom: 48px;
  }

  .top-links {
    min-height: 68px;
    gap: 13px;
    margin-bottom: 38px;
  }

  .top-links::before {
    font-size: 0.76rem;
  }

  .top-links a {
    font-size: 0.78rem;
  }

  .summary-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding: 0;
  }

  body::before {
    min-height: 112px;
  }

  .wrap {
    margin-top: -112px;
  }

  .top-links {
    min-height: 112px;
    align-content: center;
    justify-content: flex-start;
    margin-bottom: 30px;
    padding: 13px 0;
  }

  .top-links::before {
    width: 100%;
    margin: 0;
  }

  .top-links a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 3px 0;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .section {
    padding: 21px 18px;
  }

  .tool-links,
  .search-form {
    flex-direction: column;
  }

  .tool-link,
  .search-form input[type="text"],
  .search-form button {
    width: 100%;
  }

  .examples {
    flex-direction: column;
  }

  .examples a {
    width: 100%;
    border-radius: 5px;
  }

  .setlist {
    padding-left: 0;
  }

  .date-link {
    padding-block: 15px;
  }

  .report-link {
    min-height: auto;
  }
}
