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

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

@font-face {
  font-family: Barlow;
  src: url("/assets/fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --ink: #071538;
  --ink-2: #211c18;
  --paper: #f4efe6;
  --muted: #c4b9a8;
  --line: rgba(244, 239, 230, 0.14);
  --ember: #e45714;
  --ember-2: #ff6a1a;
  --vis: #f5c518;
  --focus: #8ecae6;
  --radius: 12px;
  --pad: clamp(1.1rem, 4vw, 2.25rem);
}

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

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--paper);
  background: var(--ink);
  font-family: Barlow, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.45;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      -55deg,
      var(--vis) 0 10px,
      #071538 10px 20px
    );
  background-size: 100% 10px;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 3;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  z-index: 0;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--vis);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding:
    calc(14px + env(safe-area-inset-top))
    max(var(--pad), env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(var(--pad), env(safe-area-inset-left));
  max-width: 56rem;
  margin: 0 auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.mark {
  width: clamp(4.75rem, 22vw, 7.25rem);
  height: auto;
  aspect-ratio: 1;
  flex: none;
  border-radius: 8px;
  background: #071538;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.name {
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.place {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.top-call {
  display: none;
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid var(--ember);
  padding-bottom: 0.1rem;
}

.top-call:hover,
.top-call:focus-visible {
  color: var(--vis);
}

.hero {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 10.5rem);
  padding: 1.35rem 0 1.75rem;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--vis);
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: clamp(2.05rem, 8.4vw, 3.7rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 18ch;
}

.sub {
  margin: 0.9rem 0 0;
  font-size: clamp(1.12rem, 3.4vw, 1.4rem);
  font-weight: 600;
  color: #efe6d6;
}

.facts {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.facts li {
  position: relative;
  padding: 0.15rem 0 0.15rem 1.15rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--ember);
  transform: rotate(45deg);
}

.facts .aside {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.88rem;
  font-weight: 500;
}

.facts .aside a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 28rem);
  min-height: 3.35rem;
  padding: 0.9rem 1.15rem;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--ember-2), var(--ember));
  color: #1a110c;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: clamp(1.15rem, 4.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 10px 24px rgba(0, 0, 0, 0.28);
}

.cta:hover {
  filter: brightness(1.06);
}

h2 {
  margin: 0 0 1rem;
  font-family: Oswald, "Arial Narrow", sans-serif;
  font-size: clamp(1.45rem, 4.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vis);
}

.below {
  padding: 1.75rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

.below .facts {
  margin-bottom: 2rem;
}

.below h2#faq {
  margin-top: 0.35rem;
}

.faq {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  max-width: 36rem;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--paper);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--ember);
  font-weight: 700;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: 0;
  padding: 0 1rem 0.95rem;
  color: var(--muted);
}

.faq summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
}

.cta:focus-visible,
.top-call:focus-visible,
.brand:focus-visible,
.skip:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.cta:active {
  transform: translateY(1px);
}

.foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.foot p {
  margin: 0;
}

.foot p + p {
  margin-top: 0.35rem;
}

.foot a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (min-width: 720px) {
  .top-call {
    display: inline;
  }

  .hero {
    padding-top: 2.2rem;
  }

  h1 {
    max-width: 20ch;
  }

  .facts {
    max-width: 36rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta:active {
    transform: none;
  }
}

.actions {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.action .help {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cta-secondary {
  background: transparent;
  color: var(--paper);
  border: 1.5px solid rgba(244, 239, 230, 0.35);
  box-shadow: none;
}

.cta-secondary:hover {
  border-color: var(--ember-2);
  background: rgba(228, 87, 20, 0.12);
}

.cta-stub {
  opacity: 0.95;
}

.jobsite-dialog {
  position: fixed;
  inset: 0;
  width: min(36rem, calc(100vw - 1.5rem));
  max-height: min(92dvh, calc(100dvh - 1.5rem));
  margin: auto;
  padding: 0;
  border: 1px solid rgba(244, 239, 230, 0.22);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  color-scheme: dark;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.jobsite-dialog:not([open]) {
  display: none;
}

.jobsite-dialog::backdrop {
  background: rgba(4, 10, 24, 0.78);
}

.jobsite-head {
  position: sticky;
  top: 0;
  /* Leaflet controls use z-index 1000. Keep them inside the map so they cannot cover Close. */
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding:
    max(0.85rem, env(safe-area-inset-top))
    max(1rem, env(safe-area-inset-right))
    0.7rem
    max(1rem, env(safe-area-inset-left));
  background: #071538;
  border-bottom: 1px solid var(--line);
}

.jobsite-dialog h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  letter-spacing: 0.04em;
  text-wrap: balance;
}

.jobsite-close {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 4px;
  border: 1px solid rgba(244, 239, 230, 0.35);
  background: transparent;
  color: var(--paper);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.jobsite-close:hover,
.jobsite-tool:hover,
.jobsite-copy:hover {
  border-color: var(--ember-2);
  background: rgba(228, 87, 20, 0.12);
}

.jobsite-body {
  padding:
    0.85rem
    max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom))
    max(1rem, env(safe-area-inset-left));
}

.jobsite-instructions {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.jobsite-map {
  position: relative;
  z-index: 0;
  height: clamp(14rem, 42dvh, 22rem);
  width: 100%;
  border: 1px solid rgba(244, 239, 230, 0.22);
  border-radius: 4px;
  overflow: hidden;
  background: #0b1d3a;
  font-family: Barlow, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.jobsite-map img,
.jobsite-map .leaflet-tile {
  max-width: none;
  max-height: none;
}

.jobsite-map.leaflet-container:focus,
.jobsite-map.leaflet-container:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.jobsite-map.leaflet-container.leaflet-grab {
  cursor: crosshair;
}

.jobsite-map.leaflet-dragging,
.jobsite-map.leaflet-dragging .leaflet-grab {
  cursor: grabbing;
}

.jobsite-map .leaflet-control-zoom a {
  width: 2.75rem;
  height: 2.75rem;
  line-height: 2.75rem;
  font-size: 1.25rem;
}

.jobsite-map .leaflet-control-attribution {
  font-size: 0.68rem;
  line-height: 1.3;
  max-width: 78%;
}

.jobsite-pin-icon {
  background: transparent;
  border: none;
}

.jobsite-pin-icon svg {
  display: block;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45));
}

.jobsite-readout {
  margin: 0.7rem 0 0;
  color: var(--paper);
  font-weight: 600;
  font-size: 0.98rem;
}

.jobsite-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.jobsite-tool {
  flex: 1 1 11rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
  border: 1.5px solid rgba(244, 239, 230, 0.35);
  background: transparent;
  color: var(--paper);
  font-family: Barlow, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.jobsite-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.jobsite-field {
  display: grid;
  gap: 0.3rem;
}

.jobsite-field span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.jobsite-optional {
  font-weight: 500;
}

.jobsite-field input,
.jobsite-field textarea {
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(244, 239, 230, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.jobsite-field textarea {
  resize: vertical;
  min-height: 3.2rem;
}

.jobsite-field input::placeholder,
.jobsite-field textarea::placeholder {
  color: rgba(196, 185, 168, 0.85);
}

.jobsite-preview-label {
  margin: 0.15rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jobsite-preview pre {
  margin: 0;
  max-height: 9rem;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 0.75rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  font-family: Barlow, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.92rem;
  line-height: 1.4;
}

.jobsite-dialog .cta {
  width: 100%;
  margin-top: 0.15rem;
  touch-action: manipulation;
}

button.cta {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  cursor: pointer;
  text-align: center;
}

.jobsite-dialog .cta[aria-disabled="true"] {
  opacity: 0.5;
}

.jobsite-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.4rem;
  border: 0;
  background: transparent;
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
  touch-action: manipulation;
}

.jobsite-status {
  margin: 0;
  color: var(--vis);
  font-size: 0.95rem;
  font-weight: 600;
}

.jobsite-status:empty {
  display: none;
}

.jobsite-dialog .help {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.jobsite-close:focus-visible,
.jobsite-tool:focus-visible,
.jobsite-copy:focus-visible,
.jobsite-field input:focus-visible,
.jobsite-field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.jobsite-body :focus {
  scroll-margin-top: 5.5rem;
  scroll-margin-bottom: 1rem;
}

html.jobsite-lock,
html.jobsite-lock body {
  overflow: hidden;
}

@media (max-width: 640px) {
  .jobsite-dialog {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jobsite-dialog {
    scroll-behavior: auto;
  }
}
