/*
Theme Name: MobilityLab
Description: Editorial CMS laboratory with separate blog, destinations, routes and campaign templates.
Version: 1.0.0
Text Domain: mobility-lab
Requires PHP: 8.1
*/
@font-face {
  font-family: Archivo;
  src: url("assets/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #17251d;
  --paper: #f6f5ee;
  --muted: #566357;
  --line: #ccd1c5;
  --accent: #c4f729;
  --dark: #15231b;
  --max: 1280px;
  --space: clamp(20px, 4vw, 64px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, Arial, sans-serif;
  line-height: 1.6;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
summary:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 5px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button,
input {
  font: inherit;
}
.wrap {
  max-width: var(--max);
  padding-inline: var(--space);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  background: var(--accent);
  padding: 12px;
  z-index: 20;
}
.skip:focus {
  top: 12px;
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.wordmark {
  text-decoration: none;
  font-weight: 850;
  line-height: 0.95;
  letter-spacing: -1.3px;
  font-size: 25px;
  display: inline-block;
}
.wordmark small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  margin-top: 8px;
}
.wordmark span {
  color: #588500;
}
.primary-nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}
.primary-nav a {
  text-decoration: none;
  padding-block: 12px;
}
.primary-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px var(--ink);
}
.languages {
  display: flex;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 1px;
}
.languages a {
  text-decoration: none;
  padding-block: 8px;
}
.languages [aria-current="true"] {
  font-weight: 800;
  text-decoration: underline;
}
.menu {
  display: none;
}
.lab-note {
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.hero {
  padding-block: clamp(60px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
}
h1,
h2,
h3 {
  line-height: 1.07;
  letter-spacing: -0.045em;
  text-wrap: balance;
  margin-top: 0;
}
h1 {
  font-size: clamp(44px, 6.7vw, 88px);
  font-weight: 650;
  margin-bottom: 28px;
}
h2 {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 600;
}
h3 {
  font-size: 24px;
  letter-spacing: -0.025em;
}
.lead {
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
  max-width: 43ch;
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  background: var(--accent);
  color: var(--ink);
  padding: 16px 22px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  margin-top: 24px;
  transition:
    background 0.18s,
    transform 0.18s;
}
.button:hover {
  background: #b4e21b;
  transform: translateY(-2px);
}
.button:active {
  transform: translateY(0);
}
.route-art {
  min-width: 0;
  width: 100%;
  aspect-ratio: 4/5;
  background: var(--dark);
  color: var(--paper);
  position: relative;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.route-art:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 47px,
      #ffffff09 48px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 47px,
      #ffffff09 48px
    );
  pointer-events: none;
}
.route-art svg {
  width: 100%;
  height: auto;
  position: relative;
}
.route-art p {
  margin: 0;
  font-size: 13px;
  letter-spacing: 1px;
}
.route-art .route-caption {
  font-size: 35px;
  letter-spacing: -1.4px;
  line-height: 1.15;
  max-width: 9ch;
}
.route-art .route-number {
  color: var(--accent);
  font-size: 12px;
}
.section {
  padding-block: 64px;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 30px;
  margin-bottom: 32px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading a {
  font-size: 14px;
  white-space: nowrap;
}
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.entry-card {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.entry-card .entry-type {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.entry-card h3 {
  margin-top: 12px;
  margin-bottom: 16px;
  font-size: 32px;
}
.entry-card h3 a {
  text-decoration: none;
}
.entry-card p {
  max-width: 52ch;
  color: var(--muted);
}
.entry-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 22px;
}
.entry-card .read-more {
  font-size: 13px;
  font-weight: 600;
}
.destination-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 60px;
}
.destination-list a {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 24px;
  letter-spacing: -0.7px;
}
.destination-list a:hover {
  color: #427000;
}
.manifesto {
  padding-block: 64px;
  max-width: 760px;
}
.manifesto p {
  font-size: 22px;
  color: var(--muted);
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  padding-top: 32px;
}
.article-header {
  max-width: 950px;
  padding-top: 56px;
  padding-bottom: 48px;
}
.article-header h1 {
  font-size: clamp(40px, 5.3vw, 70px);
}
.article-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 1fr;
  gap: 70px;
  padding-bottom: 80px;
}
.prose {
  font-size: 18px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.prose p,
.prose ul,
.prose ol {
  max-width: 65ch;
}
.prose p {
  margin-block: 0 1.3em;
}
.prose h2 {
  font-size: 32px;
  margin-top: 1.8em;
  margin-bottom: 0.7em;
}
.prose h3 {
  font-size: 24px;
  margin-top: 1.7em;
}
.prose li {
  margin-block: 0.5em;
}
.prose blockquote {
  margin-inline: 0;
  padding-left: 24px;
  border-left: 3px solid var(--ink);
}
.prose pre {
  overflow: auto;
  padding: 20px;
  background: #e8ebdf;
}
.prose table {
  display: block;
  max-width: 100%;
  overflow: auto;
}
.prose th,
.prose td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.article-image {
  margin: 0 0 35px;
}
.article-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}
.article-image figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.sidebar {
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.sidebar p {
  color: var(--muted);
}
.sidebar h2 {
  font-size: 24px;
}
.sidebar ul {
  list-style: none;
  padding: 0;
}
.sidebar li {
  border-bottom: 1px solid var(--line);
  padding-block: 14px;
}
.faq {
  border-top: 1px solid var(--line);
  margin-top: 44px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding-block: 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.faq p {
  font-size: 16px;
  margin-top: 20px;
}
.pagination {
  margin-top: 40px;
  display: flex;
  gap: 16px;
}
.pagination .current {
  font-weight: 800;
}
.archive-header {
  padding-block: 60px 40px;
  max-width: 800px;
}
.archive-header h1 {
  font-size: 64px;
}
.empty {
  padding-block: 30px;
  color: var(--muted);
}
.site-footer {
  background: var(--dark);
  color: var(--paper);
  padding-block: 54px 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
}
.footer-top h2 {
  font-size: 28px;
}
.footer-top a {
  display: block;
  font-size: 14px;
  margin-bottom: 12px;
  text-decoration: none;
}
.footer-top p {
  font-size: 13px;
  color: #bcc6bb;
  max-width: 32ch;
}
.footer-bottom {
  border-top: 1px solid #ffffff26;
  margin-top: 38px;
  padding-top: 24px;
  color: #bcc6bb;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
}
.search-form {
  display: flex;
  gap: 10px;
  margin-bottom: 35px;
}
.search-field {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  background: transparent;
  padding: 12px;
}
.search-submit {
  border: 0;
  padding: 12px 20px;
  background: var(--accent);
}
@media (max-width: 850px) {
  .primary-nav {
    display: none;
  }
  .menu {
    display: block;
    position: relative;
  }
  .menu summary {
    cursor: pointer;
    min-height: 44px;
    padding: 12px;
    font-size: 14px;
  }
  .menu nav {
    position: absolute;
    right: 0;
    top: 48px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 15px;
    min-width: 190px;
    z-index: 10;
    display: grid;
  }
  .menu nav a {
    padding: 10px;
    text-decoration: none;
  }
  .header-inner {
    gap: 16px;
    min-height: 90px;
  }
  .hero {
    gap: 30px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .route-art {
    padding: 22px;
  }
  .route-art .route-caption {
    font-size: 28px;
  }
  .article-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .sidebar {
    max-width: 760px;
  }
  .footer-top {
    grid-template-columns: 1.3fr 1fr;
  }
}
@media (max-width: 560px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 48px;
  }
  .route-art {
    aspect-ratio: 5/3;
    min-height: 270px;
  }
  .route-art svg {
    position: absolute;
    right: 10px;
    top: 35px;
    width: 65%;
    height: 180px;
  }
  .route-art .route-caption {
    max-width: 8ch;
    position: relative;
  }
  .route-art .route-number {
    position: relative;
  }
  .editorial-grid,
  .destination-list,
  .footer-top {
    grid-template-columns: 1fr;
  }
  .section {
    padding-block: 42px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .entry-card h3 {
    font-size: 28px;
  }
  .languages {
    gap: 9px;
  }
  .wordmark {
    font-size: 20px;
  }
  .header-inner {
    gap: 8px;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .archive-header h1 {
    font-size: 44px;
  }
  .article-header {
    padding-top: 35px;
  }
  .article-layout {
    padding-bottom: 45px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  width: auto;
  position: static;
}
