:root {
  --bg: #f5f5f3;
  --surface: #ffffff;
  --text: #14171a;
  --muted: #5a5f66;
  --accent: #e31e24;
  --accent-dark: #b81419;
  --dark: #14171a;
  --border: #e4e3df;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

header.site-header {
  background: var(--dark);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  font-weight: 800;
  font-size: 1.3rem;
  text-decoration: none;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.logo::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  margin-right: 8px;
  border-radius: 2px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  color: #b8bcc2;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.hero {
  padding: 72px 0 56px;
  text-align: center;
  background: var(--dark);
  color: #ffffff;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 16px;
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  color: #b8bcc2;
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 36px 0;
}

.filter-btn {
  border: 2px solid var(--dark);
  background: transparent;
  color: var(--dark);
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.15s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  margin: 20px 0 70px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(20, 23, 26, 0.12);
}

.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f0efec;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-category {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  font-weight: 800;
}

.card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-size: 0.82rem;
}

.card-rating .stars {
  position: relative;
  display: inline-block;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 1px;
  color: #d8d8d4;
}

.card-rating .stars::before {
  content: "★★★★★";
}

.card-rating .stars::after {
  content: "★★★★★";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--fill, 0%);
  overflow: hidden;
  white-space: nowrap;
  color: var(--accent);
}

.card-rating .rating-value {
  font-weight: 700;
  color: var(--text);
}

.card-rating .rating-count {
  color: var(--muted);
}

.card-rating:hover .rating-count {
  text-decoration: underline;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

.card-cta {
  margin-top: 12px;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
  color: #ffffff;
  background: var(--dark);
  padding: 10px 14px;
  border-radius: 3px;
  transition: background 0.15s ease;
}

.card-cta:hover {
  background: var(--accent);
}

.disclosure-banner {
  background: var(--accent);
  color: #ffffff;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 9px 16px;
}

.disclosure-banner a {
  text-decoration: underline;
  color: #ffffff;
}

.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 0 80px;
}

.page-content h1 {
  margin-bottom: 20px;
  font-weight: 800;
  text-transform: uppercase;
}

.page-content h2 {
  margin-top: 32px;
  font-weight: 700;
}

footer.site-footer {
  background: var(--dark);
  padding: 30px 0;
  text-align: center;
  color: #b8bcc2;
  font-size: 0.85rem;
}

footer.site-footer a {
  color: #b8bcc2;
  margin: 0 8px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

footer.site-footer a:hover {
  color: var(--accent);
}
