/* Shared styles: tokens, reset, shell, type, masthead, constellation, footer.
   Page-specific styles live in index.css, contact.css, eatway.css, legal.css. */

:root {
  --paper:  #EDEBE3;
  --pelt:   #7D4E2A;
  --ink:    #464744;
  --muted:  #8A8880;
  --rule:   #D8D4C8;
  --faint:  rgba(125, 78, 42, 0.28);

  --measure: 68rem;
  --step: clamp(1.5rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Roboto, system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--step);
}

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: border-color 160ms ease, color 160ms ease;
}
a:hover { border-color: var(--pelt); color: var(--pelt); }

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

/* ---------- type ---------- */

h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(2.25rem, 8vw, 5.25rem);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}
h1 em {
  font-style: normal;
  color: var(--pelt);
}

.lede {
  margin: clamp(1.25rem, 3vw, 1.75rem) 0 0;
  font-weight: 300;
  font-size: clamp(1.125rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--muted);
}

/* ---------- logo ---------- */

.logo {
  display: block;
  width: clamp(148px, 20vw, 208px);
  height: auto;
  mix-blend-mode: multiply;
  margin-left: -0.5rem;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.75rem, 5vw, 2.75rem) 0;
}

.masthead img {
  display: block;
  width: 84px;
  height: auto;
  mix-blend-mode: multiply;
}

.masthead a { border-bottom: none; }

.back {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.back:hover { color: var(--pelt); }

/* ---------- constellation ---------- */

.sky {
  display: block;
  width: 100%;
  height: auto;
  /* visible paint outside the viewBox causes horizontal scroll on iOS WebKit */
  overflow: hidden;
}

.sky line { stroke: var(--rule); stroke-width: 1.5; }
.sky .unbuilt { fill: var(--faint); }
.sky .built   { fill: var(--pelt); }
.sky .label {
  fill: var(--ink);
  font-family: Roboto, sans-serif;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--muted);
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}

footer a { border-bottom-color: transparent; }
footer a:hover { border-bottom-color: var(--pelt); }
