:root {
  --purple: #660099;
  --purple-bar: rgba(96, 25, 138, 0.9);
  --ink: #111111;
  --muted: #767676;
  --line: #ebebeb;
  --paper: #f4f4f4;
  --max: 1160px;
  --sans: "Source Sans Pro", "Segoe UI", sans-serif;
  --title: "Montserrat", "Segoe UI", sans-serif;
  --slide: "Roboto", "Segoe UI", sans-serif;
  --body: "Merriweather", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Open Sans", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font-family: inherit; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* Header */
.menu-bar {
  background: var(--purple);
  height: 48px;
  position: relative;
  z-index: 30;
}
.menu-bar .container {
  height: 100%;
  display: flex;
  align-items: center;
}
.brand-lockup { display: none; }
.menu {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  padding: 0;
  height: 48px;
}
.menu > li { position: relative; display: flex; align-items: stretch; }
.menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 22px 0 14px;
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  white-space: nowrap;
}
.menu > li > a:hover { opacity: 0.85; }
.caret {
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  display: inline-block;
}
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: #fff;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 40;
}
.submenu .submenu { top: 0; left: 100%; }
@media (min-width: 761px) {
  .menu li:hover > .submenu,
  .menu li:focus-within > .submenu { display: block; }
}
.submenu a {
  display: block;
  padding: 9px 18px;
  color: #222;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
}
.submenu a:hover { color: var(--purple); }
.submenu li { position: relative; }
.has-sub > a { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

.icon-btn {
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
.nav-toggle { display: none; }
.signin-item { display: none; }
.signin-open {
  background: none;
  border: 0;
  color: var(--purple);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 18px;
  cursor: pointer;
}

.search-drop {
  display: none;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.search-drop.open { display: block; }
.search-drop form { display: flex; gap: 8px; }
.search-drop input {
  flex: 1;
  border: 1px solid #ddd;
  padding: 10px 12px;
  font-size: 15px;
}
.search-drop input:focus { outline: 2px solid var(--purple); border-color: transparent; }
.search-drop button {
  background: var(--purple);
  color: #fff;
  border: 0;
  padding: 0 18px;
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  cursor: pointer;
}

.logo-row { padding: 28px 0 26px; }
.logo-row img { width: 250px; height: auto; }

/* Homepage */
.home { padding-bottom: 40px; }
.hero {
  display: grid;
  grid-template-columns: 1fr 2.11fr 1fr;
  gap: 28px;
  align-items: start;
}
.stack { display: flex; flex-direction: column; gap: 18px; }
.spot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }

.block-title {
  margin: 0 0 16px;
  border-bottom: 2px solid var(--line);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1;
}
.block-title span {
  display: inline-block;
  border-bottom: 2px solid var(--purple);
  margin-bottom: -2px;
  padding: 0 2px 8px 0;
  text-transform: uppercase;
  color: var(--ink);
}
.block-title strong { font-weight: 700; }

.thumb { position: relative; display: block; overflow: hidden; background: #111; }
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.card:hover .thumb img,
.slide:hover .thumb img,
.side-lead:hover .thumb img { transform: scale(1.05); }

.cat {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #222;
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 5px 10px;
}
.cat:hover { background: var(--purple); color: #fff; }

.card-feature .thumb,
.card-spot .thumb { aspect-ratio: 611 / 385; }
.card-spot .thumb { aspect-ratio: 218 / 150; }
.meta-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: var(--purple-bar);
  color: #fff;
  padding: 11px 12px 11px 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.meta-bar time { font-weight: 400; text-transform: none; letter-spacing: 0; }
.meta-bar a { color: #fff; text-decoration: none; }
.meta-bar a:hover { text-decoration: underline; }
.dash { font-weight: 400; padding: 0 2px; }

.card-feature h3,
.card-spot h3 {
  margin: 0;
  background: var(--paper);
  padding: 14px 16px 18px;
  font-family: var(--title);
  font-weight: 300;
  font-size: 17px;
  line-height: 22px;
}
.card-spot h3 { font-size: 15px; line-height: 20px; padding: 12px 12px 14px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--purple); }

/* Slider */
.slider { position: relative; background: #111; min-height: 385px; }
.slide { display: none; position: relative; }
.slide.is-active { display: block; }
.slide .thumb { aspect-ratio: 611 / 408; min-height: 385px; }
.slide .thumb img { position: absolute; inset: 0; }
.slide .cat { text-transform: uppercase; font-size: 10px; font-weight: 500; letter-spacing: 0.4px; }
.slide-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: rgba(242, 242, 242, 0.88);
  padding: 12px 48px 14px 16px;
}
.slide-by {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 4px;
}
.slide-by a { color: var(--purple); text-decoration: none; }
.slide-by time { font-weight: 400; text-transform: none; letter-spacing: 0; color: #666; }
.slide-meta h3 {
  margin: 0;
  font-family: var(--slide);
  font-weight: 300;
  font-size: 21px;
  line-height: 1.3;
}
.slide-meta h3 a { color: var(--ink); text-decoration: none; }
.slide-meta h3 a:hover { color: var(--purple); }
.slide-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 3;
  width: 34px;
  height: 54px;
  border: 0;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.slide-btn:hover { background: rgba(0, 0, 0, 0.5); }
.slide-btn.prev { left: 0; }
.slide-btn.next { right: 0; }

/* Lower layout */
.lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 361px;
  gap: 28px;
  margin-top: 36px;
}
.grid-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 22px;
}
.card-grid .thumb { aspect-ratio: 324 / 235; }
.card-grid .card-body { padding-top: 10px; }
.byline {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.byline a, .author-link {
  color: var(--purple);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 11px;
}
.byline a:hover, .author-link:hover { text-decoration: underline; }
.card-grid h3 {
  margin: 0;
  font-family: var(--title);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.35;
}
.card-grid h3 a { color: var(--ink); text-decoration: none; }
.card-grid h3 a:hover { color: var(--purple); }

.load-more {
  display: block;
  width: max-content;
  margin: 26px auto 0;
  border: 1px solid #c9c9c9;
  background: transparent;
  color: #a5a5a5;
  font-size: 12px;
  padding: 8px 14px;
  cursor: pointer;
}
.load-more:hover { color: #666; border-color: #999; }
.load-more[disabled] { cursor: default; }

.ad-slot {
  height: 180px;
  margin: 0 0 22px;
  border: 1px solid #eee;
  background: #fafafa;
  color: #c5c5c5;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.4px;
}

.side-lead .thumb { aspect-ratio: 324 / 235; }
.side-lead h3 {
  margin: 10px 0 8px;
  font-family: var(--title);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.35;
}
.side-lead h3 a { color: var(--ink); text-decoration: none; }
.side-lead h3 a:hover { color: var(--purple); }
.excerpt {
  margin: 0 0 8px;
  color: #555;
  font-family: var(--body);
  font-size: 13px;
  line-height: 1.65;
}
.side-list { margin-top: 18px; display: flex; flex-direction: column; }
.side-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.side-item .thumb { width: 100px; height: 70px; }
.side-item h3 {
  margin: 2px 0 4px;
  font-family: var(--title);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.35;
}
.side-item h3 a { color: var(--ink); text-decoration: none; }
.side-item h3 a:hover { color: var(--purple); }
.cat-link {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Article, category, pages */
.page-wrap { padding: 10px 0 56px; }
.crumbs {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.crumbs a { color: var(--purple); text-decoration: none; }
.article-title {
  margin: 0 0 12px;
  font-family: var(--title);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.25;
}
.article-by { margin-bottom: 18px; }
.article-figure { margin: 0 0 22px; }
.article-figure img { width: 100%; max-height: 460px; object-fit: cover; }
.article-body p {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin: 0 0 18px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
}
.cat-list { display: flex; flex-direction: column; gap: 22px; }
.cat-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.cat-row .thumb { aspect-ratio: 324 / 200; }
.cat-row h2 { margin: 0 0 8px; font-family: var(--title); font-weight: 400; font-size: 20px; line-height: 1.3; }
.cat-row h2 a { color: var(--ink); text-decoration: none; }
.cat-row h2 a:hover { color: var(--purple); }
.empty {
  padding: 28px 0 10px;
  color: var(--muted);
  font-family: var(--body);
}

.prose h1 {
  margin: 8px 0 16px;
  font-family: var(--title);
  font-weight: 400;
  font-size: 32px;
}
.prose p, .prose li { font-family: var(--body); font-size: 16px; line-height: 1.75; color: #333; }
.form { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.form label { font-family: var(--sans); font-size: 13px; font-weight: 700; color: #333; }
.form input, .form textarea {
  border: 1px solid #ddd;
  padding: 10px 12px;
  font-size: 15px;
  font-family: "Open Sans", sans-serif;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--purple); border-color: transparent; }
.form button {
  width: max-content;
  background: var(--purple);
  color: #fff;
  border: 0;
  padding: 10px 18px;
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
}
.form .thanks { color: var(--purple); font-family: var(--sans); font-weight: 700; }

/* Footer */
.site-footer { background: var(--purple); color: #fff; margin-top: 20px; }
.footer-main { padding: 28px 0 18px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1fr;
  gap: 20px;
  align-items: start;
}
.footer-logo img { width: 210px; height: auto; }
.site-footer h2 {
  margin: 6px 0 12px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.social { display: flex; gap: 8px; }
.social a {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}
.social a:hover { background: rgba(255, 255, 255, 0.12); }
.social svg { width: 14px; height: 14px; fill: currentColor; }
.subfooter { border-top: 1px solid rgba(255, 255, 255, 0.16); padding: 12px 0 16px; }
.subfooter-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  color: #ccc;
  font-family: var(--sans);
  font-size: 12px;
}
.subfooter nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.subfooter a { color: #ccc; text-decoration: none; }
.subfooter a:hover { color: #fff; }
.subfooter p { margin: 0; letter-spacing: 0.4px; }

/* Sign-in modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-card {
  background: #fff;
  width: min(420px, 100%);
  padding: 28px 26px 24px;
  position: relative;
}
.modal-card h2 { margin: 0 0 4px; font-family: var(--sans); font-size: 22px; }
.modal-card .lede { margin: 0 0 16px; color: #666; font-size: 14px; }
.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}
.social-row { display: flex; gap: 8px; margin-bottom: 14px; }
.social-row button {
  flex: 1;
  border: 0;
  color: #fff;
  padding: 8px 10px;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 700;
}
.social-row .fb { background: #3b5998; }
.social-row .gg { background: #dd4b39; }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr 1.4fr; }
  .hero-right { display: none; }
  .lower { grid-template-columns: 1fr; }
  .layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-logo { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; margin-left: 0; }
  .menu-bar .container { position: static; }
  .menu {
    display: none;
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    height: auto;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    padding: 8px 0 12px;
    z-index: 40;
  }
  body.nav-open .menu { display: flex; }
  .signin-item { display: block; }
  .menu > li { flex-direction: column; }
  .menu > li > a { color: var(--purple); padding: 12px 18px; }
  .submenu, .submenu .submenu {
    display: none;
    position: static;
    box-shadow: none;
    padding: 0 0 4px 12px;
    min-width: 0;
  }
  .menu li.open > .submenu { display: block; }
  .search-btn { margin-left: auto; }
  .hero, .spot-row, .grid-cards, .cat-row, .footer-grid, .subfooter-row {
    grid-template-columns: 1fr;
  }
  .slide .thumb { min-height: 0; aspect-ratio: 16 / 10; }
  .slider { min-height: 0; }
  .article-title { font-size: 26px; }
  .logo-row img { width: 200px; }
  .side-item { grid-template-columns: 100px 1fr; }
}
