:root {
  --bg: #141414;
  --bg-panel: #1c1c1c;
  --text: #e8e4dc;
  --muted: #8a8680;
  --accent: #c9a962;
  --spotlight: rgba(255, 248, 230, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: var(--accent);
}

.site-header {
  text-align: center;
  padding: 1.5rem 1rem 0.5rem;
  border-bottom: 1px solid #2a2a2a;
}

.site-header h1 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-header h1 a {
  color: inherit;
  text-decoration: none;
}

.tagline {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0.35rem 0 1rem;
}

.site-nav a {
  display: inline-block;
  border: 1px solid #333;
  color: var(--muted);
  padding: 0.4rem 1rem;
  margin: 0 0.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.active {
  border-color: var(--accent);
  color: var(--accent);
}

.view {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

.spotlight-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, var(--spotlight), transparent 70%);
}

.artwork-frame {
  margin: 0;
  text-align: center;
  width: 100%;
}

.artwork-frame img,
.wallpaper-preview {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: min(92vw, 920px);
  aspect-ratio: 20 / 9;
  object-fit: cover;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  border: 1px solid #2a2a2a;
  background: #111;
}

@media (min-width: 641px) {
  .view {
    max-width: 1200px;
  }

  .spotlight-stage {
    min-height: auto;
    padding: 0.5rem 2.5rem;
  }

  .artwork-frame {
    max-width: none;
  }

  .artwork-frame img,
  .wallpaper-preview {
    width: 100%;
    max-width: min(96vw, 1080px);
    max-height: min(72vh, 486px);
    height: auto;
    aspect-ratio: 20 / 9;
    object-fit: cover;
  }

  .nav-arrow {
    top: 42%;
  }
}

.school-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.school-chips a {
  border: 1px solid #333;
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.school-chips a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.school-intro {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.school-heading {
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.school-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.school-card {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid #2a2a2a;
  background: var(--bg-panel);
  text-decoration: none;
  color: inherit;
}

.school-card:hover {
  border-color: var(--accent);
}

.school-name {
  color: var(--accent);
  letter-spacing: 0.05em;
}

.school-count {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.placard {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg-panel);
  border-left: 3px solid var(--accent);
  text-align: left;
  display: inline-block;
  min-width: 280px;
}

.placard .title {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.placard .meta {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
}

.placard .adv {
  color: var(--accent);
}

.nav-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid #333;
  color: var(--text);
  font-size: 2.5rem;
  line-height: 1;
  width: 48px;
  height: 64px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

.nav-arrow:hover {
  opacity: 1;
  border-color: var(--accent);
  color: var(--accent);
}

.nav-prev { left: 0; }
.nav-next { right: 0; }

.download-section {
  margin-top: 2rem;
  text-align: center;
}

.download-btn {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
}

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

.ad-slot {
  min-height: 90px;
  margin: 2rem auto;
  max-width: 728px;
  text-align: center;
}

.ad-slot-after-download {
  margin-top: 4rem;
}

.work-blurb {
  max-width: 36rem;
  margin: 2rem auto 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #aaa;
}

.work-blurb a {
  color: var(--accent);
}

.grid-wing {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.grid-item {
  background: var(--bg-panel);
  border: 1px solid #2a2a2a;
  transition: border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.grid-item:hover {
  border-color: var(--accent);
}

.grid-item img {
  width: 100%;
  aspect-ratio: 20 / 9;
  object-fit: cover;
  display: block;
  background: #111;
}

.grid-item .caption {
  padding: 0.75rem;
  font-size: 0.85rem;
}

.about-panel,
.legal-panel {
  max-width: 640px;
  line-height: 1.7;
}

.about-panel h2,
.legal-panel h2 {
  font-weight: 400;
  letter-spacing: 0.06em;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 4rem 1rem;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid #2a2a2a;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer a {
  margin: 0 0.5rem;
}

@media (max-width: 640px) {
  .spotlight-stage {
    min-height: auto;
    padding: 0.5rem 0;
  }

  .artwork-frame img,
  .wallpaper-preview {
    max-height: 50vh;
    aspect-ratio: 20 / 9;
  }

  .nav-arrow {
    width: 40px;
    height: 52px;
    font-size: 2rem;
  }
}
