:root {
  --ink: #1a1a1a;
  --ink-2: #333;
  --silver: #f4f4f6;
  --silver-2: #e6e7ea;
  --accent: #6fa3e8;
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--silver);
  color: var(--ink);
  font-family: "Times New Roman", Times, serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none
}

a:hover {
  color: #4b8dd9;
  text-decoration: underline
}

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

.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(110%) blur(6px);
  border-bottom: 1px solid var(--silver-2);
  z-index: 1000
}

.header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0
}

.brand {
  font-weight: bold;
  font-size: 22px;
  color: var(--ink)
}

.nav a {
  margin-left: 18px;
  font-weight: 600;
  color: var(--ink)
}

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

.hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: center
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat fixed;
  opacity: 0.9
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.7))
}

.hero .content {
  position: relative;
  z-index: 1;
  padding: 60px 0
}

.hero h1 {
  font-size: 46px;
  margin: 0 0 10px;
  color: var(--ink)
}

.hero p.lead {
  font-size: 20px;
  color: var(--ink-2);
  max-width: 820px
}

section {
  padding: 48px 0
}

h2 {
  font-size: 34px;
  margin: 0 0 10px
}

hr {
  border: 0;
  border-top: 1px solid var(--silver-2);
  margin: 18px 0 26px
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  color: #fff;
  background: var(--ink);
  transition: all .25s ease;
  border-radius: 24px
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent)
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink)
}

.btn-outline:hover {
  color: #fff
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px
}

.col {
  padding: 12px
}

.col-3 {
  width: 100%
}

.col-4 {
  width: 100%
}

.col-6 {
  width: 100%
}

.col-8 {
  width: 100%
}

@media(min-width:640px) {
  .col-3 {
    width: 25%
  }
}

@media(min-width:768px) {
  .col-4 {
    width: 33.333%
  }

  .col-6 {
    width: 50%
  }

  .col-8 {
    width: 66.666%
  }
}

.card {
  background: #fff;
  border: 1px solid var(--silver-2);
  border-radius: 8px;
  overflow: hidden;
  height: 100%
}

.card .pad {
  padding: 16px
}

.card img,
.hero img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

.vote-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.vote-card {
  flex: 1 1 30%;
  margin: 0.5rem;
  text-align: center;
}

.vote-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 6px;
}

.caption {
  font-size: 14px;
  color: #555;
}

.meta {
  font-size: 13px;
  color: #777
}

label {
  display: block;
  margin: 10px 0 6px;
  font-weight: bold
}

input[type=text],
input[type=email],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--silver-2);
  border-radius: 4px;
  background: #fff;
  color: var(--ink)
}

textarea {
  min-height: 140px
}

button,
input[type=submit] {
  cursor: pointer
}

footer {
  background: #fff;
  border-top: 1px solid var(--silver-2);
  margin-top: 36px
}

footer .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 18px 0;
  gap: 12px
}

#footer-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

#footer-nav a {
  color: var(--ink);
  font-weight: 600
}

#footer-nav a:hover {
  color: var(--accent)
}

.small {
  font-size: 13px;
  color: #666
}

.center {
  text-align: center
}

.m0 {
  margin: 0
}

.mt2 {
  margin-top: 12px
}

.mt3 {
  margin-top: 18px
}

.mt4 {
  margin-top: 24px
}

.mb2 {
  margin-bottom: 12px
}

.mb3 {
  margin-bottom: 18px
}

img.rounded {
  border-radius: 8px
}

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0 24px
}

.filter-btn {
  border: 1px solid var(--ink);
  background: #fff;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer
}

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

.hidden {
  display: none !important
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.category {
  flex: 1 1 calc(33.333% - 2rem);
  background: #f8f8f8;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.category img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.category h3 {
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.category p {
  color: #333;
  line-height: 1.6;
  font-size: 1rem;
}

@media (max-width: 900px) {
  .category {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (max-width: 600px) {
  .category {
    flex: 1 1 100%;
  }
}