/* SprintPMC: Clarity above the fog
   Palette notes and contrast checks: source/brand-colors.md */

:root {
  --sky: #DCE4E6;
  --sky-top: #DCE4E6;
  --sky-mid: #EEF1EF;
  --sky-low: #F4F2EC;
  --halo: rgba(255, 246, 226, .95);
  --halo-soft: rgba(252, 239, 212, .5);
  --disc-1: #FFF8EA;
  --disc-2: #FDEFD2;
  --disc-3: #F6DFB6;
  --fog: #EEF1EF;
  --ink: #22352F;
  --muted: #3E5149;
  --accent: #C0362C;          /* Golden Gate International Orange */
  --accent-hover: #A92E25;
  --on-accent: #FFFFFF;
  --link: #A92E25;
  --band: #22352F;
  --band-ink: #EEF1EF;
  --band-muted: #A9B8B1;
  --band-rule: #3A4E46;
  --marker: #E2604F;
  --focus: #C0362C;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1440px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --sky: #0F181B;
    --sky-top: #0F181B;
    --sky-mid: #18252A;
    --sky-low: #1F2E33;
    --halo: rgba(232, 238, 240, .42);
    --halo-soft: rgba(201, 214, 218, .12);
    --disc-1: #F1F4F5;
    --disc-2: #E2E9EB;
    --disc-3: #CFD9DC;
    --fog: #0F181B;
    --ink: #E6ECEA;
    --muted: #AFC0BC;
    --accent: #E8735F;
    --accent-hover: #F08E7D;
    --on-accent: #0F181B;
    --link: #E8735F;
    --band: #162226;
    --band-ink: #E6ECEA;
    --band-muted: #AFC0BC;
    --band-rule: #26363B;
    --marker: #E8735F;
    --focus: #E8735F;
  }
}

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

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

body {
  margin: 0;
  background: var(--band);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--sky);
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
}

.skip-link:focus {
  top: 12px;
}

/* Hero: sky gradient, a rising sun or moon, stationary ridges in front */
.hero {
  position: relative;
  min-height: min(100vh, 960px);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 70%, var(--sky-low) 100%);
  overflow: hidden;
  isolation: isolate;
}

@supports (min-height: 100lvh) {
  .hero {
    min-height: min(100lvh, 960px);
  }
}

/* Sun (light) or moon (dark): a soft halo with a disc at its centre */
.orb {
  position: absolute;
  z-index: -2;
  left: 66%;
  top: calc(52% - min(380px, 28vw));
  width: min(760px, 56vw);
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--halo) 0%, var(--halo-soft) 34%, transparent 70%);
}

.orb::after {
  content: "";
  position: absolute;
  inset: 35.5%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, var(--disc-1) 0%, var(--disc-2) 60%, var(--disc-3) 100%);
}

.hero-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: -1;
}

.hero-art img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding-block: 32px;
}

.brand {
  display: block;
  border-radius: 4px;
}

.brand img {
  width: clamp(140px, 14vw, 184px);
}

.header-mail {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 500;
}

.hero-copy {
  padding-block: clamp(48px, 9vh, 120px) 300px;
}

h1,
h2 {
  margin: 0;
  font-weight: 400;
}

h1 {
  max-width: 6.4em;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 10.4vw, 9.4rem);
  line-height: 0.9;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px 32px;
  flex-wrap: wrap;
  margin-top: clamp(28px, 4vh, 44px);
}

.lede {
  max-width: 21em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.5;
}

.button {
  display: inline-block;
  flex: none;
  padding: 18px 32px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.button:hover {
  background: var(--accent-hover);
}

/* Band: everything below the fold */
.band {
  background: var(--band);
  color: var(--band-ink);
}

.band a {
  color: var(--band-ink);
}

.band-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 96px;
  justify-content: space-between;
}

.band-row:first-child {
  align-items: flex-start;
  padding-block: clamp(72px, 10vw, 104px) clamp(56px, 8vw, 88px);
}

.statement {
  max-width: 12em;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.5vw, 3.25rem);
  line-height: 1.05;
}

.specialties {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1.1875rem;
}

.specialties li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.specialties li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 2px;
  background: var(--marker);
}

.contact {
  align-items: flex-end;
  padding-block: 0 clamp(72px, 10vw, 96px);
}

.label {
  margin-bottom: 10px;
  color: var(--band-muted);
  font-family: var(--sans);
  font-size: 0.95rem;
}

.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 8.5vw, 3.75rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-decoration-color: var(--marker);
  text-decoration-thickness: 2px;
  text-underline-offset: 10px;
}

.place {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.place span {
  color: var(--band-muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding-block: 28px 44px;
  border-top: 1px solid var(--band-rule);
  color: var(--band-muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

.footer-name {
  color: var(--band-ink);
  font-weight: 600;
}

/* The one moment of motion: the sun or moon rises from behind the ridges */
@media (prefers-reduced-motion: no-preference) {
  .orb {
    animation: rise 6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  @keyframes rise {
    from {
      transform: translateY(40%);
      opacity: 0;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}

/* Phones: keep the ridges in the lower part so the headline sits in clear sky */
@media (max-width: 700px) {
  /* Fill the whole screen, including the area under the floating browser
     toolbar, so the band below never peeks into the first view */
  .hero {
    min-height: calc(100vh + 120px);
  }

  @supports (min-height: 100lvh) {
    .hero {
      min-height: calc(100lvh + 120px);
    }
  }

  .hero-art {
    height: 46%;
  }

  .hero-art img {
    object-position: 60% top;
  }

  .orb {
    left: 74%;
    top: auto;
    bottom: 38%;
    width: 300px;
  }

  .hero-actions {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .hero-copy {
    padding-bottom: 70vw;
  }
}

/* 404 */
.notfound .lede {
  margin-bottom: 34px;
}
