/* Trents Stuff — design tokens · moody/sleek dark */
:root {
  /* Surfaces */
  --cream: #0E0D0B;       /* page bg */
  --paper: #161412;       /* primary card surface */
  --cream-2: #1E1B17;     /* lifted surface */
  --cream-3: #2A2620;     /* highest surface */
  --ink: #EDE4D2;         /* primary text */
  --ink-2: #A89B85;       /* secondary text */
  --ink-3: #6E6557;       /* tertiary text */
  --line: #2D2822;        /* hairline borders */
  --line-2: #3D362E;      /* stronger borders */

  /* Section accents (legible on dark) */
  --acc-games: #D86A48;
  --acc-books: #7B92C0;
  --acc-food: #D4A85A;
  --acc-golf: #8FA876;
  --acc-vacations: #B07AA0;
  --gold: #7B92C0;
  --rust: #C25A3F;

  /* Tier colors (tuned for dark BG) */
  --tier-s: #E04B4B;
  --tier-a: #E8923D;
  --tier-b: #D9B23F;
  --tier-c: #92B25A;
  --tier-d: #5BA98F;
  --tier-f: #5A544D;

  /* Type */
  --font-display: "Newsreader", "Times New Roman", serif;
  --font-sans: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: var(--gold); color: var(--cream); }

/* ===== Shared nav ===== */
.tn-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 13, 11, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.tn-nav__brand {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  font-style: italic;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.tn-nav__brand::before {
  content: "✦";
  font-style: normal;
  font-size: 14px;
  color: var(--gold);
  margin-right: 2px;
}
.tn-nav__links {
  display: flex;
  gap: 2px;
  margin-left: auto;
  flex-wrap: wrap;
}
.tn-nav__link {
  text-decoration: none;
  color: var(--ink-2);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: color 0.15s, background 0.15s;
}
.tn-nav__link:hover { color: var(--ink); background: var(--cream-2); }
.tn-nav__link[aria-current="page"] {
  color: var(--ink);
  background: var(--cream-2);
}
.tn-nav__link[aria-current="page"]::before {
  content: "·";
  color: var(--gold);
  margin-right: 6px;
}

/* ===== Page header ===== */
.tn-pagehead {
  padding: 64px 32px 32px;
  max-width: 1400px;
  margin: 0 auto;
}
.tn-pagehead__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.tn-pagehead__eyebrow::before {
  content: "── ";
  color: var(--gold);
}
.tn-pagehead__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 112px);
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0;
}
.tn-pagehead__title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.tn-pagehead__sub {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 640px;
  margin-top: 18px;
  line-height: 1.5;
}

/* ===== Buttons / chips ===== */
.tn-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  white-space: nowrap;
  letter-spacing: 0.005em;
}
.tn-chip:hover { color: var(--ink); border-color: var(--ink-3); background: var(--cream-2); }
.tn-chip[aria-pressed="true"] {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.tn-chip__count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  opacity: 0.65;
}

.tn-select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23A89B85' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 7px 32px 7px 14px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
}
.tn-select:focus { outline: none; border-color: var(--gold); }

/* ===== Tier list ===== */
.tn-tierlist { display: flex; flex-direction: column; gap: 6px; }
.tn-tier-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  min-height: 110px;
}
.tn-tier-label {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 48px;
  color: var(--cream);
  background: var(--tier-s);
  border-right: 1px solid var(--line);
  line-height: 1;
  letter-spacing: -0.03em;
}
.tn-tier-row[data-tier="A"] .tn-tier-label { background: var(--tier-a); }
.tn-tier-row[data-tier="B"] .tn-tier-label { background: var(--tier-b); }
.tn-tier-row[data-tier="C"] .tn-tier-label { background: var(--tier-c); color: #1a1814; }
.tn-tier-row[data-tier="D"] .tn-tier-label { background: var(--tier-d); color: #1a1814; }
.tn-tier-row[data-tier="F"] .tn-tier-label { background: var(--tier-f); color: var(--cream); }
.tn-tier-items {
  display: flex;
  gap: 10px;
  padding: 10px;
  flex-wrap: wrap;
  align-content: center;
}
.tn-tier-row[data-empty="true"] .tn-tier-items::after {
  content: "no entries match filters";
  color: var(--ink-3);
  font-size: 12px;
  font-style: italic;
  font-family: var(--font-display);
}

/* ===== Item cards with cover photos ===== */
.tn-card {
  width: 110px;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  text-align: left;
  transition: transform 0.2s;
}
.tn-card:hover { transform: translateY(-3px); }
.tn-card__art {
  width: 110px;
  height: 140px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  display: flex;
  align-items: flex-end;
  padding: 8px;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-2);
  overflow: hidden;
  position: relative;
  color: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.tn-card__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.85) 100%);
}
.tn-card__art-title {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.tn-card__title {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-top: 6px;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: 0.005em;
}
.tn-card__meta {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-3);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.tn-card__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 8.5px;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.08em;
  border: 1px solid rgba(255,255,255,0.15);
  z-index: 1;
}
.tn-card__tier-corner {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  font-weight: 500;
  color: #1a1814;
  z-index: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.tn-card__tier-corner[data-tier="S"] { background: var(--tier-s); color: #fff; }
.tn-card__tier-corner[data-tier="A"] { background: var(--tier-a); }
.tn-card__tier-corner[data-tier="B"] { background: var(--tier-b); }
.tn-card__tier-corner[data-tier="C"] { background: var(--tier-c); }
.tn-card__tier-corner[data-tier="D"] { background: var(--tier-d); }
.tn-card__tier-corner[data-tier="F"] { background: var(--tier-f); color: var(--cream); }

/* ===== Toolbar ===== */
.tn-toolbar {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tn-toolbar__group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.tn-toolbar__group + .tn-toolbar__group {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.tn-toolbar__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 4px;
}

/* ===== Main content wrapper ===== */
.tn-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 28px 32px 80px;
}

/* ===== Modal ===== */
.tn-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.tn-modal-bg[data-open="true"] { display: flex; }
.tn-modal {
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  width: min(920px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.tn-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(14,13,11,0.85);
  backdrop-filter: blur(6px);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  z-index: 5;
}
.tn-modal__close:hover { background: var(--cream-2); border-color: var(--ink-3); }

/* ===== Footer ===== */
.tn-footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 32px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===== Pills ===== */
.tn-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  background: var(--cream-2);
  color: var(--ink);
  border: 1px solid var(--line-2);
  letter-spacing: 0.05em;
}
.tn-pill[data-tier="S"] { background: var(--tier-s); color: #fff; border-color: var(--tier-s); }
.tn-pill[data-tier="A"] { background: var(--tier-a); color: #1a1814; border-color: var(--tier-a); }
.tn-pill[data-tier="B"] { background: var(--tier-b); color: #1a1814; border-color: var(--tier-b); }
.tn-pill[data-tier="C"] { background: var(--tier-c); color: #1a1814; border-color: var(--tier-c); }
.tn-pill[data-tier="D"] { background: var(--tier-d); color: #1a1814; border-color: var(--tier-d); }
.tn-pill[data-tier="F"] { background: var(--tier-f); color: var(--cream); border-color: var(--tier-f); }

/* ===== Cover hero (used in detail modals) ===== */
.tn-cover-hero {
  position: relative;
  height: 280px;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-2);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  overflow: hidden;
}
.tn-cover-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(14,13,11,0.85) 70%, var(--paper) 100%);
}
.tn-cover-hero__body {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 32px 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* ===== AI feature button ===== */
.tn-ai-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--cream-2);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.tn-ai-btn:hover { background: var(--cream-3); border-color: var(--gold); }
.tn-ai-btn::before {
  content: "✦";
  color: var(--gold);
  font-size: 14px;
}
.tn-ai-btn[disabled] { opacity: 0.6; cursor: progress; }
.tn-ai-output {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--cream-2);
  border-left: 2px solid var(--gold);
  border-radius: 0 6px 6px 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
  white-space: pre-wrap;
}
.tn-ai-output strong { color: var(--ink); }
