/* Xander Paul site theme
   Palette:
   - Dark teal: #004D4F
   - Mustard:   #FDB73E
   Typography:
   - Garamond throughout
*/

:root {
  --ink: #123638;
  --muted: #70561f;
  --paper: #fdb73e;
  --card: #fdb73e;
  --field: #ffd37a;
  --line: rgba(0, 77, 79, 0.30);
  --accent: #004d4f;
  --header-ink: #fdb73e;
  --max: 1120px;
  --font-serif: Garamond, "Adobe Garamond Pro", "EB Garamond", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
  font-family: var(--font-serif) !important;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-family: var(--font-serif);
}

a {
  color: inherit;
}

header {
  border-bottom: 1px solid rgba(253, 183, 62, 0.36);
  background: #004d4f;
  color: var(--header-ink);
  position: sticky;
  top: 0;
  z-index: 5;
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 24px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
}

.navlinks {
  display: flex;
  gap: 20px;
  font-size: 1rem;
}

.navlinks a {
  text-decoration: none;
}

.navlinks a:hover,
.brand:hover {
  color: #ffe0a1;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.hero {
  max-width: 760px;
  padding: 28px 0 42px;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: .98;
  margin: 0 0 18px;
  font-weight: 500;
}

h2 {
  font-size: 1.8rem;
  margin: 36px 0 14px;
}

h3 {
  margin-bottom: 8px;
}

p.lede {
  font-size: 1.25rem;
  color: var(--ink);
}

.kicker {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--muted);
  font-weight: 700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.card,
.weight-chip,
.archive-table-wrap {
  background: var(--card) !important;
  border-color: var(--line) !important;
}

.card {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 3px;
}

.stat {
  font-size: 2rem;
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0;
}

input,
select,
textarea,
button {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid rgba(0, 77, 79, 0.46);
  background: var(--field);
  color: var(--ink);
  border-radius: 3px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(18, 54, 56, 0.66);
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input,
select {
  min-height: 42px;
}

button {
  cursor: pointer;
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  font-weight: 700;
}

button:hover {
  background: #003c3e;
}

button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--accent);
}

button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
}

th[data-sort]:hover,
.archive-table th[data-sort]:hover {
  background: rgba(0, 77, 79, 0.08) !important;
}

.rating,
.rating-cell {
  font-weight: 700;
  white-space: nowrap;
}

.tag {
  display: inline-block;
  margin: 2px 4px 2px 0;
  padding: 2px 7px;
  border: 1px solid rgba(0, 77, 79, 0.40);
  border-radius: 999px;
  font-size: .78rem;
  color: var(--ink);
  background: rgba(255, 224, 161, 0.32);
}

.bar-row {
  display: grid;
  grid-template-columns: 180px 1fr 80px;
  gap: 12px;
  align-items: center;
  margin: 9px 0;
}

.bar-track,
.taste-track {
  background: rgba(0, 77, 79, 0.14) !important;
}

.bar-track {
  height: 16px;
}

.bar-fill,
.taste-fill {
  background: var(--accent) !important;
}

.bar-fill {
  height: 100%;
}

.result {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 14px;
  margin: 8px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.result strong {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .wide {
  grid-column: 1 / -1;
}

.notice {
  padding: 12px 14px;
  background: rgba(255, 224, 161, 0.42);
  border-left: 4px solid var(--accent);
  margin: 16px 0;
}

/* Page-level UI added after the base stylesheet */
.sort-note,
.taste-stat span,
.taste-count,
.taste-share,
.archive-table td.rating-cell {
  color: var(--ink);
}

.taste-stat {
  border-top-color: var(--line) !important;
}

.taste-row,
.taste-bars,
.archive-table-wrap,
.archive-table th,
.archive-table td {
  border-color: var(--line) !important;
}

.tier-tabs button {
  background: transparent !important;
  color: var(--ink) !important;
  border-color: var(--accent) !important;
}

.tier-tabs button.active {
  background: var(--accent) !important;
  color: var(--paper) !important;
}

.empty-state {
  color: var(--muted) !important;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px 48px;
  color: var(--muted);
  font-size: .9rem;
}

@media (max-width: 700px) {
  .nav {
    align-items: flex-start;
  }

  .navlinks {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 110px 1fr 60px;
  }

  table {
    font-size: .9rem;
  }
}
/* Readability patch for teal/mustard/Garamond theme.
   Append to the end of public/css/site.css.
*/

:root {
  --ink: #003c3e;
  --muted: #5f4a18;
}

body {
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
}

.brand,
.navlinks a {
  font-weight: 700;
}

h1,
h2,
h3 {
  font-weight: 700;
}

.kicker {
  font-weight: 700;
  color: #4f3d12;
}

p,
.lede,
.method-note,
.taste-section-head p,
.notice {
  font-weight: 500;
}

th {
  font-weight: 700;
}

td {
  font-weight: 500;
}

.artist-cell,
.album-cell {
  font-weight: 600;
}

.rating-cell {
  font-weight: 700 !important;
}

.taste-label {
  font-weight: 700;
  font-size: 1.06rem;
}

.taste-share {
  font-weight: 700;
  font-size: .92rem;
}

.taste-count {
  font-weight: 600;
  font-size: .88rem;
}

.taste-stat strong {
  font-weight: 700;
}

.taste-stat span {
  font-weight: 600;
}

input,
select,
textarea,
button {
  font-weight: 600;
}

input::placeholder,
textarea::placeholder {
  font-weight: 500;
}

.tag {
  font-weight: 600;
}

/* BEGIN COMPENDIUM MUSIC NAV PATCH */
/* Make the main Compendium easily reachable from every Music page. */
.nav { flex-wrap: wrap; }
.navlinks { display: flex; align-items: center; flex-wrap: wrap; row-gap: 9px; }
.navlinks .comp-return {
  color: var(--header-ink, #fdb73e);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding-right: 15px;
  border-right: 1px solid rgba(253, 183, 62, .55);
}
.navlinks .comp-return:hover { color: #ffe7b5; }
@media (max-width: 680px) {
  .navlinks { justify-content: flex-start; }
  .nav { align-items: flex-start; }
}
/* END COMPENDIUM MUSIC NAV PATCH */
