/* Bright Side City — static site styles. No third-party fonts, scripts, or trackers. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #ffd550;
  --orange: #ff7828;
  --ink: #1a1410;
  --ink-soft: #2a221c;
  --black: #0e0a07;
  --white: #ffffff;
  --link: #0b4fb3;
  --link-hover: #083b86;
  --max: 58rem;
  --wide: 64rem;
  --shadow: 0 2px 0 rgba(14, 10, 7, 0.35);
  --focus: 0 0 0 3px var(--yellow), 0 0 0 6px var(--ink);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--yellow);
  color: var(--ink);
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.65;
  font-weight: 430;
  overflow-wrap: break-word;
}

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

a {
  color: var(--link);
  text-underline-offset: 0.15em;
  overflow-wrap: break-word;
}

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

a:focus-visible,
button:focus-visible,
.nav-toggle-btn:focus-visible,
.menu-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--black);
  color: var(--white);
  padding: 0.5rem 0.9rem;
  border-radius: 0.25rem;
  text-decoration: none;
}

.skip:focus { top: 0.75rem; }

/* ---- Hero + nav ---- */
.hero {
  position: relative;
  background-color: #f0b35a;
  background-image: url("../images/header-page.jpg");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  min-height: 15.5rem;
  aspect-ratio: 3 / 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  isolation: isolate;
}

.hero--home {
  background-image: url("../images/header-home.jpg");
  background-position: center center;
  min-height: 16.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7.5rem;
  background: linear-gradient(to bottom, rgba(20, 12, 6, 0.42), rgba(20, 12, 6, 0.12) 55%, transparent);
  pointer-events: none;
  z-index: 0;
}

.nav-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem 0.4rem;
  max-width: 90rem;
  margin: 0 auto;
  width: 100%;
}

.wordmark {
  color: var(--white);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 12px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  flex-shrink: 0;
}

.wordmark:hover { color: var(--white); }

#nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; overflow: hidden; }

.nav-toggle-btn {
  display: none;
  cursor: pointer;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.35rem;
  background: transparent;
  border: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  border-radius: 1px;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.15rem 0.15rem;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  padding: 0.4rem 0.55rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55), 0 0 10px rgba(0, 0, 0, 0.25);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--orange);
  font-weight: 650;
}

.hero-title-wrap {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.25rem 2.4rem;
  text-align: center;
}

.hero-title {
  margin: 0;
  color: var(--white);
  font-weight: 750;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45), 0 1px 2px rgba(0, 0, 0, 0.5);
  max-width: 18ch;
}

/* ---- Main ---- */
main {
  flex: 1;
  width: 100%;
}

.page {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.4rem 0 3.25rem;
}

.page--home { width: min(var(--wide), calc(100% - 2.5rem)); }

.page h1,
.page h2 {
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page h1 {
  margin: 0 0 1.35rem;
  font-size: clamp(2.15rem, 5vw, 3.15rem);
  font-weight: 800;
}

.page h2 {
  margin: 2.4rem 0 0.85rem;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 750;
}

.page p { margin: 0 0 1.05rem; }

.page p:last-child { margin-bottom: 0; }

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin: 2rem 0 2.25rem;
  align-items: center;
  justify-content: flex-start;
}

.btn-img {
  display: block;
  flex: 1 1 16rem;
  max-width: none;
  min-width: 14rem;
  transition: transform 0.12s ease;
}

.btn-img:hover { transform: translateY(-2px); }

.btn-img:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
  border-radius: 999px;
}

.btn-img img {
  width: 100%;
  height: auto;
}

.badge {
  width: min(22rem, 86%);
  margin: 0.5rem auto 0.25rem;
  border-radius: 50%;
}

.download-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 20.5rem));
  gap: 1.5rem 2rem;
  margin: 1.5rem 0 0;
  justify-content: start;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  max-width: 20.5rem;
}

.download-card img {
  width: 100%;
  border: 1px solid rgba(26, 20, 16, 0.18);
  box-shadow: 0 6px 18px rgba(26, 20, 16, 0.12);
  background: var(--white);
  margin-bottom: 0.9rem;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.3;
  padding: 0.7rem 0.8rem;
  white-space: nowrap;
  border: 1px solid #cfc6b8;
  border-radius: 0.35rem;
  box-shadow: 0 1px 0 rgba(26, 20, 16, 0.06);
}

.dl-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.download-card .dl-btn { width: 100%; }

.contact-lines p { margin-bottom: 0.55rem; }

/* ---- Footer ---- */
.site-footer {
  background-color: var(--black);
  background-image: url("../images/dots.png");
  background-repeat: repeat;
  background-position: center;
  padding: 1.1rem 1rem;
  margin-top: auto;
}

.site-footer img {
  width: min(46rem, 100%);
  margin: 0 auto;
}

/* ---- 404 ---- */
.page--center { text-align: left; }

/* ---- Mobile ---- */
@media (max-width: 800px) {
  body { font-size: 1.06rem; }

  .hero,
  .hero--home {
    aspect-ratio: 16 / 9;
    min-height: 14.5rem;
    background-position: center 42%;
  }

  .nav-bar {
    padding: 0.45rem 0.75rem;
  }

  .nav-toggle-btn { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 3.15rem;
    right: 0.5rem;
    left: auto;
    min-width: 16.5rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--black);
    border-radius: 0.5rem;
    padding: 0.4rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }

  .site-nav a {
    text-shadow: none;
    padding: 0.7rem 1rem;
    border-bottom: 0;
    border-left: 3px solid transparent;
    font-size: 1rem;
  }

  .site-nav a[aria-current="page"] {
    border-left-color: var(--orange);
    border-bottom-color: transparent;
    background: rgba(255, 255, 255, 0.06);
  }

  .site-nav a:hover {
    border-bottom-color: transparent;
    background: rgba(255, 255, 255, 0.08);
  }

  #nav-toggle:checked ~ .site-nav { display: flex; }

  #nav-toggle:focus-visible + .nav-toggle-btn {
    outline: 3px solid var(--white);
    outline-offset: 3px;
  }

  .hero-title-wrap { padding: 1rem 1rem 1.75rem; }

  .page,
  .page--home { width: calc(100% - 2rem); padding: 1.6rem 0 2.5rem; }

  .page h1 { margin-bottom: 1.1rem; }

  .buttons {
    flex-direction: column;
    gap: 0.85rem;
    margin: 1.5rem 0 1.6rem;
  }

  .btn-img {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
  }

  .download-list {
    grid-template-columns: 1fr;
    max-width: 20rem;
  }
}

@media (min-width: 801px) and (max-width: 1100px) {
  .site-nav a { padding: 0.4rem 0.4rem; font-size: 0.88rem; }
  .nav-bar { padding-left: 0.9rem; padding-right: 0.9rem; }
}

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

@media (max-width: 360px) {
  .dl-btn { white-space: normal; }
}

.page a[href^="http"],
.page a[href^="mailto"] {
  overflow-wrap: break-word;
}
