/* Colour and font tokens come from packages/map-style (siteColors, siteFonts), inlined in each page's head. */
:root {
  --shade-light: color-mix(in srgb, var(--photo-shade) 35%, transparent);
  --shade-strong: color-mix(in srgb, var(--photo-shade) 85%, transparent);
  color-scheme: dark;
  scroll-behavior: smooth;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 17px / 1.7 var(--body);
}
img {
  max-width: 100%;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
}
h2 {
  font-size: clamp(34px, 4.6vw, 50px);
  line-height: 1.08;
  margin-top: 10px;
}
p {
  margin: 0;
}
.meta {
  font: 500 12.5px / 18px var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
a {
  color: var(--primary);
}
footer a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
section[id] {
  scroll-margin-top: 16px;
}
.small,
.fine,
.why,
.step p {
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font: 500 16px var(--body);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    filter 0.15s ease;
}
form .btn {
  width: 100%;
  min-height: 54px;
}
.btn:hover {
  filter: brightness(1.06);
}
.btn:active {
  transform: scale(0.98);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--on-photo);
  min-height: clamp(580px, 88vh, 840px);
  display: flex;
  flex-direction: column;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 55%;
  z-index: -3;
  filter: saturate(0.82);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to bottom, var(--shade-light) 0%, transparent 30%),
    linear-gradient(to top, var(--shade-strong) 0%, var(--shade-light) 50%, transparent 75%);
}
.hero-sky {
  position: absolute;
  z-index: -1;
  top: 9%;
  right: 7%;
  width: min(36vw, 460px);
  filter: drop-shadow(0 0 2px var(--star));
}
.hero-sky .links line {
  stroke-width: 0.09;
  stroke-opacity: 0.7;
}
.top {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 22px;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font: 600 23px var(--display);
  letter-spacing: 0.01em;
  color: inherit;
  text-decoration: none;
}
.mark {
  width: 40px;
}
.top nav {
  display: flex;
  gap: 26px;
  font-size: 15px;
}
.top nav a {
  color: inherit;
  opacity: 0.85;
  text-decoration: none;
}
.top nav a:hover {
  opacity: 1;
}
.lang {
  position: relative;
  font-size: 15px;
}
.lang summary {
  list-style: none;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-photo) 55%, transparent);
}
.lang summary::-webkit-details-marker {
  display: none;
}
.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 2;
  display: grid;
  min-width: 170px;
  padding: 6px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.lang-link {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}
.lang-link:hover,
.lang-link[aria-current] {
  background: var(--tint);
}
.hero-copy {
  margin-top: auto;
  padding-block: 0 60px;
  width: 100%;
}
.hero .meta {
  color: var(--on-photo);
  opacity: 0.85;
}
.hero h1 {
  margin-top: 16px;
  font-size: clamp(56px, 10vw, 120px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 30px var(--shade-light);
}
.hero h1 em {
  font-style: italic;
}
.lede {
  margin-top: 22px;
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 400;
  max-width: 38ch;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.hero .btn {
  background: var(--on-photo);
  color: var(--ground);
}
.hero .btn.ghost {
  background: var(--shade-light);
  color: var(--on-photo);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--on-photo) 70%, transparent);
  backdrop-filter: blur(6px);
}
.where {
  position: absolute;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: 20px;
  font-size: 12px;
  opacity: 0.75;
}

/* Constellation: stars and the lines between them */
.hero-sky .links line,
.mark .links line {
  stroke: var(--star);
  stroke-width: 0.12;
  stroke-opacity: 0.5;
}
.mark .links line {
  stroke-width: 0.45;
  stroke-opacity: 0.8;
}
.hero-sky .stars circle,
.mark .stars circle {
  fill: var(--star);
}
.hero-sky .stars circle {
  animation: twinkle 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.7s);
}
@keyframes twinkle {
  50% {
    opacity: 0.55;
  }
}

/* How it works: three steps joined like stars */
.how {
  padding-block: 104px 88px;
}
.steps {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.steps::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  border-top: 1px dashed color-mix(in srgb, var(--star) 45%, transparent);
}
.step {
  position: relative;
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.node {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ground);
  border: 1px solid var(--star);
  box-shadow: 0 0 18px color-mix(in srgb, var(--star) 35%, transparent);
  color: var(--star);
  font: 500 16px / 1 var(--body);
  font-variant-numeric: lining-nums tabular-nums;
}
.step h3 {
  margin-top: 8px;
  font-size: 28px;
}
.phone {
  margin-top: 18px;
  aspect-ratio: 540 / 1169;
  max-width: 300px;
  border-radius: 34px;
  padding: 8px;
  background: var(--photo-shade);
  border: 1px solid var(--line);
  box-shadow: 0 40px 70px -40px rgb(0 0 0 / 0.75);
}
.phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 27px;
}
.small {
  margin-top: 36px;
  font-size: 14px;
}

/* Beta and support panels */
.beta {
  padding-block: 24px 104px;
}
.support {
  padding-block: 104px 112px;
}
.panel {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 52px;
}
.panel > * {
  min-width: 0;
}
.panel h2 {
  font-size: clamp(32px, 4vw, 44px);
}
.why {
  margin-top: 18px;
}
.goes {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.goes li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
}
.goes svg {
  margin-top: 5px;
  color: var(--primary);
}
form {
  display: grid;
  gap: 16px;
  align-content: start;
}
.field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--muted);
}
.field input {
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--ground);
  color: var(--text);
  font: 400 17px var(--body);
}
.field input:focus {
  border-color: var(--primary);
  outline: none;
}
.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--primary);
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ground);
  border-radius: 14px;
  padding: 4px;
}
.seg label {
  cursor: pointer;
  position: relative;
}
.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg span {
  display: block;
  text-align: center;
  padding: 11px;
  border-radius: 10px;
  font-weight: 500;
  color: var(--muted);
}
.seg input:checked + span {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.4);
}
.seg input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.price {
  font: 500 28px var(--display);
  color: var(--text);
  text-align: center;
}
.fine {
  font-size: 13px;
  text-align: center;
}
.done {
  background: var(--tint);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
}
.draft {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--access);
  color: var(--ground);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

/* Founder's letter */
.letter {
  padding-block: 104px;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.col {
  max-width: 680px;
  margin: 0 auto;
}
.body {
  display: grid;
  gap: 24px;
  margin-top: 40px;
  font-size: 18.5px;
  line-height: 1.8;
}
.pull {
  margin-block: 18px;
  padding-left: 24px;
  border-left: 1px solid var(--star);
  font: italic 500 36px / 1.2 var(--display);
  color: var(--star);
  text-wrap: balance;
}
.aside {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-block: 12px;
}
.note {
  min-width: 0;
  background: var(--ground);
  border-radius: 20px;
  padding: 24px;
  font-size: 15.5px;
  line-height: 1.65;
}
.note .meta {
  display: block;
  margin-bottom: 10px;
  color: var(--primary);
}
.sign {
  display: grid;
  gap: 2px;
}
.sign .name {
  font: italic 500 40px / 1.15 var(--display);
}

/* Night sky: a real photo of the Big Dipper, the motto and why the name */
/* Text sits in the left column so the Big Dipper, right of centre in the photo, stays clear. */
.sky {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 150px 64px;
  color: var(--on-photo);
}
.sky .wrap > * {
  max-width: 520px;
}
/* Photo and star lines share one box and one anchoring (cover, top centre), so the lines land on the stars.
   The box is at least the band's height; on phones it slides left to keep the Dipper, right of centre, in view. */
.sky-photo {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  min-width: 100%;
  aspect-ratio: 1920 / 1415;
  transform: translateX(-50%);
  z-index: -2;
}
.sky-photo img,
.sky-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 0%;
}
.sky .sky-lines line {
  stroke: var(--star);
  stroke-width: 2;
  stroke-opacity: 0.6;
}
.sky .sky-lines circle {
  fill: none;
  stroke: var(--star);
  stroke-width: 1.5;
  stroke-opacity: 0.45;
}
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, transparent 30%, var(--shade-strong) 100%);
}
.motto {
  font: italic 500 clamp(34px, 5.4vw, 62px) / 1.1 var(--display);
  text-wrap: balance;
  text-shadow: 0 2px 24px var(--photo-shade);
}
.why-artemis {
  margin-top: 40px;
}
.why-artemis h2 {
  font-size: 30px;
}
.why-artemis p {
  margin-top: 12px;
}
.sky-caption {
  margin-top: 48px;
  font-size: 12px;
  opacity: 0.75;
}

/* Legal pages */
.page-top {
  border-bottom: 1px solid var(--line);
}
.legal {
  padding-block: 72px 104px;
}
.legal h1 {
  font-size: clamp(38px, 5vw, 56px);
}
.legal .lede {
  margin-top: 24px;
  font-size: 19px;
}
.legal section {
  margin-top: 44px;
  display: grid;
  gap: 14px;
  line-height: 1.75;
}
.legal h2 {
  font-size: 28px;
}
.contact {
  margin-top: 20px;
  background: var(--tint);
  border-radius: 14px;
  padding: 14px 16px;
}

footer {
  border-top: 1px solid var(--line);
  padding-block: 32px 40px;
  color: var(--muted);
  font-size: 14px;
}
footer .wrap {
  display: grid;
  gap: 10px;
}
footer .row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.credits {
  font-size: 12px;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .steps::before {
    top: 20px;
    bottom: 20px;
    left: 20px;
    right: auto;
    border-top: 0;
    border-left: 1px dashed color-mix(in srgb, var(--star) 45%, transparent);
  }
  .step {
    padding-left: 60px;
  }
  .node {
    position: absolute;
    left: 0;
    top: 0;
  }
  .step h3 {
    margin-top: 2px;
  }
  .panel {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 28px 22px;
    border-radius: 24px;
  }
  .how,
  .letter,
  .support {
    padding-block: 76px;
  }
  .sky {
    padding-block: 480px 48px;
  }
  .sky-photo {
    transform: translateX(-63%);
  }
  .top nav,
  .where {
    display: none;
  }
  .hero-sky {
    top: 12%;
    width: 52vw;
    opacity: 0.6;
  }
  .aside {
    grid-template-columns: 1fr;
  }
  .pull {
    font-size: 28px;
  }
}
@media (max-width: 420px) {
  .amts {
    grid-template-columns: repeat(2, 1fr);
  }
  .cta .btn {
    flex: 1 1 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
  .hero-sky .stars circle {
    animation: none;
  }
}

/* Place pages (card 10.12) */
.place-photo {
  margin: 28px 0 0;
}
.place-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
.place-photo figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.place-access {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0;
}
.place-access dt {
  color: var(--muted);
}
.place-access dd {
  margin: 0;
}
.place-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
