@font-face {
  font-family: Marhey;
  src: url(marhey-variable.ttf) format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  font-family: Marhey, Tahoma, Arial, sans-serif;
  font-size: 100%;
  line-height: 1.75;
  --type-meta: .875rem;
  --type-ui: .9375rem;
  --type-section: clamp(1.45rem, 3.2vw, 2rem);
  --type-hero: clamp(2.2rem, 6vw, 4.5rem);
}

a, button, input, select, textarea { letter-spacing: normal; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 700; }
h1 { font-size: var(--type-section); margin-block: 0 .75rem; }
h2 { font-size: var(--type-section); margin-block: 0 .65rem; }
h3, h4 { font-size: 1.125rem; }
p { margin-block: .4rem 1rem; }
small, .helptext, .map-caption span { font-size: var(--type-meta); }
button, .button, .install-action, .nav a, .search-modes label span, .sale-action { font-size: var(--type-ui); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.sheet li, .install-guide li { line-height: 1.8; }
.container, .hero-inner { width: min(1180px, calc(100% - 2rem)); }

.nav {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto auto;
  grid-template-areas: "brand links actions theme";
  gap: clamp(.5rem, 1.5vw, 1.3rem);
  align-items: center;
  padding: .55rem clamp(.9rem,3.5vw,2.65rem);
}
.nav .brand { grid-area: brand; width: clamp(105px, 13vw, 174px); height: clamp(52px, 5vw, 65px); }
.nav .brand img { max-height: 100%; }
.nav nav {
  grid-area: links;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: .3rem clamp(.65rem, 2vw, 1.5rem);
  width: auto;
}
.nav nav a {
  display: grid; place-items: center;
  min-height: 44px; padding-inline: .48rem; border-radius: 8px;
  background: var(--panel);
}
.nav-actions { grid-area: actions; gap: .45rem; flex-wrap: nowrap; }
.nav-actions .button, .install-action {
  display: inline-grid; place-items: center; white-space: nowrap;
  min-height: 44px; padding: .5rem .72rem; line-height: 1.45;
}
.nav > .theme-toggle { grid-area: theme; justify-self: end; }
.theme-toggle svg { width: 21px; height: 21px; }

.sky-home .hero-inner { padding-block: clamp(2.35rem,5.8vw,5.7rem) clamp(1.5rem,2.8vw,2.75rem); }
.hero h1 { font-size: var(--type-hero); letter-spacing: normal; font-weight: 700; }
.hero p { font-size: clamp(1rem, 2.2vw, 1.25rem); line-height: 1.7; font-weight: 500; margin: .55rem 0 1.3rem; }
.sky-home .search { display: grid; gap: .5rem; padding: clamp(.65rem, 1.6vw, 1rem); margin-block: 0; }
.search-modes { margin: 0; }
.search-modes label span, .sale-action { min-height: 44px; text-align: center; }
.sky-home .search input { min-height: 48px; font-size: 1rem; }
.sky-home .search button { min-height: 48px; }
.skyline-path { gap: .55rem; }
.skyline-path a {
  display: grid; grid-template-rows: 48px auto; align-items: center;
  min-height: 88px; gap: .4rem; font-size: var(--type-ui); font-weight: 600;
  line-height: 1.3; padding: .6rem .35rem .65rem;
}
.sky-icon { width: 48px; height: 48px; margin: 0; background-image: url(sky-icons-v2.webp); }
.sky-heading { gap: .65rem; align-items: center; }
.sky-heading .sky-icon { width: 42px; height: 42px; }
.section-heading { margin-block-end: .65rem; }
.section-heading h2 { margin: 0; }
.results-pane h3 { font-size: 1.18rem; line-height: 1.5; }
.result-item h4 { font-size: 1rem; line-height: 1.55; }
.result-item p { font-size: var(--type-meta); }
.result-empty { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: .25rem .6rem; }
.result-empty p { margin: 0; }
.result-empty a { grid-column: 2; }
.hub-card > div { padding: .9rem; }
.hub-card h2, .feature h2 { font-size: 1.18rem; }
.hub-card p, .feature p { font-size: .9375rem; line-height: 1.65; }
.map-pin { font-size: var(--type-meta); line-height: 1.65; }
.map-controls button { font: 600 1.35rem Arial, sans-serif; }

@media (max-width: 680px) {
  .nav { grid-template-columns: auto minmax(0,1fr) auto; grid-template-areas: "brand actions theme" "links links links"; row-gap: .25rem; }
  .nav nav { justify-content: center; gap: .5rem; }
  .nav nav a { min-height: 38px; padding-inline: .7rem; }
  .nav .brand { width: clamp(92px, 24vw, 130px); }
  .nav-actions { justify-content: center; }
  .nav-actions .button, .install-action { padding-inline: .46rem; font-size: .875rem; }
  .skyline-path a { grid-template-rows: 38px auto; min-height: 77px; gap: .3rem; font-size: .875rem; padding-inline: .18rem; }
  .skyline-path .sky-icon { width: 38px; height: 38px; }
  .skyline-path { gap: .38rem; }
  .hero p { margin-block-end: 1rem; }
}
@media (max-width: 430px) {
  .nav { padding-inline: .65rem; column-gap: .4rem; }
  .nav .brand { width: 92px; }
  .nav-actions { gap: .25rem; }
  .nav-actions .button, .install-action { font-size: .81rem; padding-inline: .35rem; }
  .container, .hero-inner { width: calc(100% - 1.35rem); }
  .skyline-path { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .skyline-path::before { display: none; }
  .skyline-path a { min-height: 70px; }
}
@media (max-width: 350px) {
  .nav { grid-template-areas: "brand . theme" "actions actions actions" "links links links"; }
  .nav nav a { min-height: 36px; }
}
