/* VDKO — magazine layout. Fresh stylesheet, not derived from other sites in this repo. */

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lato-400.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/lato-700.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/lato-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Lato";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/lato-700-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Dosis";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/dosis-700.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --accent: #cc16e1;
  --ink: #0a0a0a;
  --title: #282828;
  --paper: #ffffff;
  --page: #f7f7f7;
  --banner: #bff1ff;
  --footer: #242424;
  --chip: #383838;
  --mobile-bar: #161616;
  --muted: #737272;
  --line: #e6e6e6;
  --wrap: 1210px;
  --nav-h: 51px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Lato", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

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

a:hover {
  text-decoration: none;
}

h1, h2, h3, p {
  overflow-wrap: anywhere;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  z-index: 80;
  text-decoration: none;
}

.skip:focus {
  top: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

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

.brand-bar {
  background: var(--paper);
  color: #000;
}

.brand-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 22px;
}

.brand-text {
  min-width: 0;
  flex: 1;
}

.brand-name {
  margin: 0;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
}

.brand-name a {
  color: #000;
  text-decoration: none;
}

.tagline {
  margin: 2px 0 0;
  color: #000;
  font-size: 16px;
  line-height: 1.6;
}

.nav-toggle,
.nav-close {
  display: none;
}

.site-nav {
  background: var(--accent);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: var(--nav-h);
  padding: 0 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(0, 0, 0, 0.14);
}

.nav-backdrop {
  display: none;
}

.site-main {
  background: var(--paper);
}

.site-main.page-main {
  background: var(--page);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 15px;
  padding-top: 15px;
  min-width: 0;
}

.hero > * {
  min-width: 0;
}

.slider {
  position: relative;
  min-height: 450px;
  background: #111;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
}

.slide[hidden] {
  display: none;
}

.slide-media,
.tile > a {
  position: absolute;
  inset: 0;
}

.slide img,
.tile img,
.story-card > img,
.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide img,
.tile img,
.story-card > img {
  position: absolute;
  inset: 0;
}

.slide-caption,
.tile-caption,
.story-card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 54px 22px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
}

.slide-caption h2,
.tile-caption h2,
.story-card h3,
.related-card h3 {
  margin: 8px 0 0;
  font-weight: 400;
  line-height: 1.25;
}

.slide-caption h2 {
  font-size: 30px;
  line-height: 1.25;
  max-width: 34rem;
}

.slide-caption h2 a,
.tile-caption h2 a,
.story-card h3 a,
.related-card h3 a {
  color: #fff;
  text-decoration: none;
}

.slide-caption time,
.tile-caption time {
  display: inline-block;
  margin-top: 6px;
  color: #fff;
  font-size: 13px;
}

.slider-btn {
  position: absolute;
  top: 46%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.45);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.slider-btn:hover {
  background: rgba(20, 20, 20, 0.7);
}

.slider-prev { left: 12px; }
.slider-next { right: 12px; }

.slider-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 15px;
  min-height: 450px;
  min-width: 0;
}

.hero-side > * {
  min-width: 0;
}

.tile {
  position: relative;
  overflow: hidden;
  background: #111;
  min-height: 200px;
}

.tile-caption h2 {
  font-size: 20px;
}

.chip {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-family: "Dosis", "Lato", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 2px 8px;
}

.chip:hover {
  color: #fff;
  background: #a812b8;
}

.chip-dark {
  background: var(--chip);
}

.chip-dark:hover {
  background: #222;
}

.featured {
  padding: 28px 0 40px;
}

.featured h2,
.archive-list h2 {
  margin: 0 0 16px;
  color: #111;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
}

.related h2 {
  margin: 0 0 16px;
  color: #111;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}

.section-rule {
  display: inline-block;
  border-bottom: 3px solid #111;
  padding-bottom: 4px;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.story-grid > * {
  min-width: 0;
}

.story-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3.15;
  overflow: hidden;
  background: #111;
  color: #fff;
  text-decoration: none;
}

.story-card h3 {
  font-size: 16px;
}

.story-card-body {
  z-index: 1;
}

.page-banner {
  background: var(--banner);
  text-align: center;
  padding: 34px 16px 30px;
}

.page-banner h1 {
  margin: 0 auto;
  max-width: var(--wrap);
  color: #1c1c1c;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.25;
}

.page-body {
  padding: 28px 0 56px;
}

.post-hero {
  background: #111;
  max-height: 560px;
  overflow: hidden;
}

.post-hero img {
  display: block;
  width: 100%;
  height: min(520px, 56vw);
  object-fit: cover;
  object-position: center center;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 18px 0 0;
  color: #777;
  font-size: 12px;
  line-height: 20px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.crumbs a {
  color: #777;
  text-decoration: none;
}

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

.crumbs-current {
  color: #000;
}

.post-title {
  margin: 12px 0 0;
  color: var(--title);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.25;
}

.post-date {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.prose {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.7;
}

.prose::after {
  content: "";
  display: block;
  clear: both;
}

.prose h2 {
  clear: both;
  margin: 1.7rem 0 0.7rem;
  color: var(--title);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}

.prose h2 img {
  display: block;
  float: none;
  margin: 0 auto 12px;
  max-width: min(696px, 100%);
}

.prose p {
  margin: 0 0 1rem;
}

.prose p > strong:only-child {
  display: block;
  margin-top: 0.4rem;
  color: var(--title);
  font-size: 22px;
}

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

.prose ul,
.prose ol {
  margin: 0.4rem 0 1.1rem;
  padding-left: 1.25rem;
}

.prose li {
  margin: 0.45rem 0;
}

.prose img.align-center {
  display: block;
  margin: 1rem auto;
  max-width: min(696px, 100%);
}

.prose img.align-left {
  float: left;
  margin: 0.25rem 1.15rem 0.8rem 0;
  max-width: min(340px, 46%);
}

.prose img.align-right {
  float: right;
  margin: 0.25rem 0 0.8rem 1.15rem;
  max-width: min(340px, 46%);
}

.tags {
  clear: both;
  margin-top: 1.4rem;
  color: #555;
  font-size: 15px;
}

.tags a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.related {
  padding: 10px 0 48px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.related-card {
  background: var(--paper);
}

.related-card a.related-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #111;
}

.related-card .chip {
  margin-top: 10px;
}

.related-card h3 {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
}

.related-card h3 a {
  color: var(--title);
  text-decoration: none;
}

.related-card h3 a:hover {
  color: var(--accent);
}

.archive-list {
  display: grid;
  gap: 22px;
}

.archive-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.archive-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: #111;
}

.archive-item h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  border: 0;
  padding: 0;
}

.archive-item h2 a {
  color: var(--title);
  text-decoration: none;
}

.archive-item h2 a:hover {
  color: var(--accent);
}

.archive-item p {
  margin: 8px 0 0;
}

.archive-item time {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.link-list {
  margin: 0;
  padding-left: 1.2rem;
}

.link-list li {
  margin: 0.35rem 0;
}

.link-list a {
  color: var(--title);
  text-decoration: none;
  font-size: 18px;
}

.link-list a:hover {
  color: var(--accent);
}

.sitemap-block + .sitemap-block {
  margin-top: 28px;
}

.sitemap-block h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--title);
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 25;
  width: 46px;
  height: 46px;
  border: 0;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.to-top[hidden] {
  display: none;
}

.to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer {
  background: var(--footer);
  color: #ececec;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  min-height: 57px;
  padding: 14px 0;
}

.footer-copy {
  margin: 0;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 1023px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 28px));
  }

  .brand-bar {
    background: var(--mobile-bar);
    position: sticky;
    top: 0;
    z-index: 30;
  }

  .brand-inner {
    padding: 12px 0;
  }

  .brand-name {
    font-size: 28px;
    line-height: 1.1;
  }

  .brand-name a {
    color: var(--accent);
  }

  .tagline {
    color: #d7d7d7;
    font-size: 13px;
    line-height: 1.35;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
    width: 48px;
    height: 42px;
    flex: 0 0 auto;
    border: 0;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
  }

  .hamburger,
  .hamburger span {
    display: block;
  }

  .hamburger span {
    width: 20px;
    height: 2px;
    margin: 4px 0;
    background: #fff;
  }

  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 84vw);
    background: #f7f7f7;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    z-index: 50;
    overflow: auto;
    padding-bottom: 24px;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .nav-close {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin: 12px 12px 8px auto;
    border: 0;
    border-radius: 2px;
    background: #4d4d4d;
    color: #fff;
    cursor: pointer;
  }

  .nav-close svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.4;
  }

  .site-nav ul {
    display: block;
  }

  .site-nav a {
    min-height: 0;
    padding: 15px 20px;
    color: #1a1a1a;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.35;
    text-transform: none;
    border-top: 1px solid #e3e3e3;
    background: transparent;
  }

  .site-nav a:hover,
  .site-nav a[aria-current="page"] {
    background: #fff;
    color: #000;
  }

  .nav-backdrop.is-open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 40;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .slider {
    min-height: 340px;
  }

  .slide-caption h2 {
    font-size: 22px;
  }

  .hero-side {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto;
    min-height: 0;
    gap: 10px;
  }

  .tile {
    min-height: 210px;
    aspect-ratio: auto;
    overflow: hidden;
  }

  .tile-caption {
    padding: 36px 10px 10px;
  }

  .tile-caption h2 {
    font-size: 15px;
  }

  .story-grid {
    grid-template-columns: 1fr 1fr;
  }

  .post-title {
    font-size: 32px;
  }

  .page-banner h1 {
    font-size: 32px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 24px);
  }

  .story-grid {
    grid-template-columns: 1fr;
  }

  .story-card {
    aspect-ratio: 16 / 10;
  }

  .post-title {
    font-size: 24px;
    line-height: 1.35;
  }

  .page-banner {
    padding: 24px 12px;
  }

  .page-banner h1 {
    font-size: 26px;
  }

  .prose img.align-left,
  .prose img.align-right {
    float: none;
    display: block;
    margin: 1rem auto;
    max-width: 100%;
  }

  .archive-item {
    grid-template-columns: 1fr;
  }

  .hero-side {
    grid-template-columns: 1fr 1fr;
  }

  .slider {
    min-height: 280px;
  }

  .slide-caption {
    padding: 36px 46px 12px;
  }

  .slide-caption h2 {
    font-size: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-nav { transition: none; }
}
