:root{
  --bg:#f3efe6;
  --paper:#fffdf8;
  --paper-strong:#fff;
  --ink:#18211c;
  --muted:#5e695f;
  --line:#d7cfbf;
  --accent:#c7632b;
  --accent-strong:#8e3e18;
  --accent-soft:#f2d5c6;
  --forest:#32503e;
  --shadow:0 18px 50px rgba(24,33,28,.12);
  --radius-xl:28px;
  --radius-lg:20px;
  --radius-md:14px;
  --surface-border:rgba(215,207,191,.9);
  --surface-glass:rgba(255,253,248,.92);
  --theme-surface:rgba(255,255,255,.74);
  --theme-surface-strong:#fff;
  --theme-option-border:rgba(24,33,28,.1);
  --theme-option-active:#18211c;
  --theme-option-active-ink:#fff;
  --body-grad-1:rgba(199,99,43,.18);
  --body-grad-2:rgba(50,80,62,.16);
  --body-grad-3:#f8f4eb;
  --body-grad-4:#ece6db;
  --stat-bg:linear-gradient(180deg, rgba(255,255,255,.82), rgba(242,233,220,.92));
  --chip-bg:#efe4cf;
  --chip-ink:#704626;
  --route-bg:#f1eadc;
  --route-ink:#6e6558;
  --tag-bg:#f4ecdc;
  --tag-ink:#63482d;
  --tag-muted-bg:#edf1ee;
  --tag-muted-ink:#4d6555;
  --card-logo-bg:#fff;
  --card-logo-border:rgba(255,255,255,.92);
  --card-media-bg:#e6dece;
  --hero-panel-top:rgba(255,253,248,.97);
  --hero-panel-bottom:rgba(247,242,232,.95);
  --hero-panel-glow-a:rgba(50,80,62,.08);
  --hero-panel-glow-b:rgba(199,99,43,.06);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  min-height:100vh;
  color:var(--ink);
  background:
    radial-gradient(circle at top left, var(--body-grad-1), transparent 32%),
    radial-gradient(circle at 85% 15%, var(--body-grad-2), transparent 28%),
    linear-gradient(180deg, var(--body-grad-3) 0%, var(--bg) 48%, var(--body-grad-4) 100%);
  font-family:ui-serif, Georgia, Cambria, "Times New Roman", serif;
  transition:background .28s ease,color .28s ease;
}

img{
  display:block;
  max-width:100%;
}

a{
  color:inherit;
  text-decoration:none;
}

code{
  font-family:"Courier New", monospace;
  font-size:.9em;
}

.shell{
  width:min(1320px,calc(100vw - 32px));
  margin:0 auto;
  padding:24px 0 40px;
}

.hero{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(320px,.9fr);
  gap:24px;
  align-items:stretch;
  margin-bottom:28px;
}

.hero__copy,
.hero__panel,
.toolbar,
.empty,
.card{
  border:1px solid var(--surface-border);
  background:var(--surface-glass);
  box-shadow:var(--shadow);
  backdrop-filter:blur(6px);
  transition:background .28s ease,border-color .28s ease,box-shadow .28s ease;
}

.hero__copy{
  border-radius:var(--radius-xl);
  padding:36px;
  position:relative;
  overflow:hidden;
}
.theme-switcher{
  display:inline-flex;
  align-items:center;
  gap:12px;
  margin-bottom:22px;
  padding:8px 10px;
  border-radius:999px;
  background:var(--theme-surface);
  border:1px solid var(--theme-option-border);
position: fixed;
  right: 0;

}
.theme-switcher__label{
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--muted);
  font-weight:700;
}
.theme-switcher__group{
  display:inline-flex;
  gap:6px;
  padding:4px;
  border-radius:999px;
  background:var(--theme-surface-strong);
}
.theme-switcher__option{
  border:1px solid transparent;
  background:transparent;
  color:var(--muted);
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
  font:inherit;
  font-weight:700;
}
.theme-switcher__option.is-active{
  background:var(--theme-option-active);
  color:var(--theme-option-active-ink);
}

.hero__copy::after{
  content:"";
  position:absolute;
  inset:auto -60px -70px auto;
  width:200px;
  height:200px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(199,99,43,.24) 0%, rgba(199,99,43,0) 68%);
}

.eyebrow{
  margin:0 0 10px;
  color:var(--accent-strong);
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:.78rem;
}

.hero h1{
  margin:0;
  font-size:clamp(2.2rem,5vw,4.25rem);
  line-height:.96;
  max-width:12ch;
}

.lead{
  margin:18px 0 28px;
  max-width:62ch;
  color:var(--muted);
  font-size:1.04rem;
  line-height:1.55;
}

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

.stat{
  border-radius:18px;
  padding:16px 18px;
  background:var(--stat-bg);
  border:1px solid rgba(215,207,191,.8);
}

.stat__label{
  display:block;
  margin-bottom:8px;
  color:var(--muted);
  font-size:.82rem;
}

.stat strong{
  font-size:1.8rem;
}

.hero__panel{
  border-radius:var(--radius-xl);
  padding:24px;
  background:
    linear-gradient(180deg, var(--hero-panel-top), var(--hero-panel-bottom)),
    linear-gradient(135deg, var(--hero-panel-glow-a), var(--hero-panel-glow-b));
}

.filters{
  display:grid;
  gap:16px;
}

.field{
  display:grid;
  gap:8px;
}

.field span{
  color:var(--muted);
  font-size:.9rem;
}

.field input,
.field select{
  width:100%;
  appearance:none;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--paper-strong);
  color:var(--ink);
  padding:14px 16px;
  font:inherit;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.field input:focus,
.field select:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 4px rgba(199,99,43,.14);
  transform:translateY(-1px);
}

.filters__actions{
  display:flex;
  justify-content:flex-end;
}

.btn{
  border:0;
  border-radius:999px;
  padding:12px 18px;
  font:inherit;
  cursor:pointer;
}

.btn--ghost{
  background:var(--accent-soft);
  color:var(--accent-strong);
}

.content{
  display:grid;
  gap:18px;
}

.toolbar{
  border-radius:22px;
  padding:18px 22px;
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
}

.toolbar__title{
  margin:0;
  font-size:1.2rem;
}

.toolbar__meta{
  margin:4px 0 0;
  color:var(--muted);
}

.chips{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:10px;
}

.chip{
  border-radius:999px;
  background:var(--chip-bg);
  color:var(--chip-ink);
  padding:8px 12px;
  font-size:.85rem;
}

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

.card{
  border-radius:26px;
  overflow:hidden;
  position:relative;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:0 24px 60px rgba(24,33,28,.16);
  border-color:rgba(199,99,43,.45);
}

.card__media{
  position:relative;
  aspect-ratio:16/10;
  overflow:hidden;
  background:var(--card-media-bg);
}

.card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.card__overlay{
  position:absolute;
  inset:auto 14px 14px 14px;
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:12px;
}

.card__logo{
  width:60px;
  height:60px;
  border-radius:18px;
  object-fit:cover;
  border:2px solid var(--card-logo-border);
  box-shadow:0 8px 22px rgba(0,0,0,.18);
  background:var(--card-logo-bg);
}

.card__type{
  padding:9px 12px;
  border-radius:999px;
  background:rgba(24,33,28,.78);
  color:#fff8ec;
  font-size:.8rem;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.card__body{
  padding:18px 18px 20px;
}

.card__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:10px;
}

.card__title{
  margin:0;
  font-size:1.4rem;
}

.card__route{
  border-radius:999px;
  background:var(--route-bg);
  color:var(--route-ink);
  padding:7px 10px;
  font-size:.78rem;
  white-space:nowrap;
}

.card__description{
  margin:0 0 14px;
  color:var(--muted);
  line-height:1.5;
  min-height:3em;
}

.meta{
  display:grid;
  gap:10px;
  margin-bottom:16px;
}

.meta__row{
  display:flex;
  gap:10px;
  color:#3c473e;
  font-size:.95rem;
}

.meta__row strong{
  min-width:70px;
  color:#202a23;
}

.tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.tag{
  border-radius:999px;
  background:var(--tag-bg);
  color:var(--tag-ink);
  padding:8px 11px;
  font-size:.8rem;
}

.tag--muted{
  background:var(--tag-muted-bg);
  color:var(--tag-muted-ink);
}

.card__footer{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-top:18px;
}

.card__count{
  color:var(--muted);
  font-size:.9rem;
}

.card__link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 15px;
  border-radius:999px;
  background:var(--forest);
  color:#f9f5ec;
}

.empty{
  border-radius:26px;
  padding:28px;
  text-align:center;
}

.empty h2{
  margin:0 0 8px;
}

.empty p{
  margin:0;
  color:var(--muted);
}

.legal-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:20px;
  padding:18px 22px 0;
  border-top:1px solid var(--surface-border);
  color:var(--muted);
}

.legal-footer p{
  margin:0;
}

.legal-footer__links{
  display:flex;
  flex-wrap:wrap;
  gap:14px;
}

.legal-footer__links a:hover,
.legal-footer__links a:focus-visible{
  color:var(--ink);
}
body.theme-black{
  --bg:#10161d;
  --paper:#151c24;
  --paper-strong:#1a222c;
  --ink:#f2f5f7;
  --muted:#b1bcc6;
  --line:#2a3541;
  --accent:#d88961;
  --accent-strong:#efb08d;
  --accent-soft:#40251b;
  --forest:#7eb194;
  --shadow:0 24px 70px rgba(0,0,0,.34);
  --surface-border:rgba(255,255,255,.08);
  --surface-glass:rgba(17,23,30,.9);
  --theme-surface:rgba(17,23,30,.92);
  --theme-surface-strong:#141b22;
  --theme-option-border:rgba(255,255,255,.12);
  --theme-option-active:#f2f5f7;
  --theme-option-active-ink:#10161d;
  --body-grad-1:rgba(216,137,97,.14);
  --body-grad-2:rgba(126,177,148,.14);
  --body-grad-3:#131920;
  --body-grad-4:#0b1016;
  --stat-bg:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  --chip-bg:#352317;
  --chip-ink:#ffd3bd;
  --route-bg:#212b36;
  --route-ink:#c9d2da;
  --tag-bg:#2f261b;
  --tag-ink:#ffd3aa;
  --tag-muted-bg:#1b2520;
  --tag-muted-ink:#b7d7c3;
  --card-logo-bg:#1a222c;
  --card-logo-border:rgba(64,79,94,.92);
  --card-media-bg:#1a222c;
  --hero-panel-top:rgba(24,31,40,.96);
  --hero-panel-bottom:rgba(17,23,30,.96);
  --hero-panel-glow-a:rgba(126,177,148,.08);
  --hero-panel-glow-b:rgba(216,137,97,.08);
  color-scheme:dark;
}
body.theme-black .field input,
body.theme-black .field select,
body.theme-black .card__media,
body.theme-black .card__logo{
  background:var(--paper-strong);
}
body.theme-black .card__type{
  background:rgba(12,15,20,.82);
  color:#f2f5f7;
}
body.theme-white{color-scheme:light;}

@media (max-width:1100px){
  .hero{
    grid-template-columns:1fr;
  }

  .grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:760px){
  .shell{
    width:min(100vw - 20px,1320px);
    padding-top:12px;
  }

  .hero__copy,
  .hero__panel,
  .toolbar,
  .empty{
    padding:20px;
  }

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

  .toolbar{
    flex-direction:column;
  }

  .chips{
    justify-content:flex-start;
  }

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

  .legal-footer{
    flex-direction:column;
    align-items:flex-start;
  }

  .theme-switcher{
    width:100%;
    justify-content:space-between;
  }

  .card__header,
  .card__footer{
    flex-direction:column;
    align-items:flex-start;
  }
}
