/* Shared by every page of the PedSimCity site. One typeface, Archivo (SIL OFL, licence in
   fonts/), self-hosted so a page makes no third-party requests. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%;
  font-display: swap; src: url(fonts/archivo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%;
  font-display: swap; src: url(fonts/archivo-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f4f3ee;
  --ink: #111110;
  --ink-2: #3d3c38;
  --ink-3: #75736b;
  --rule: #cfccc2;
  --night: #000;
  --night-ink: #f4f3ee;
  --night-ink-2: #a3a199;
  --film: #191916;              /* the background the Vodafone animations are rendered on */
  --sodium: #e0610e;
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: var(--sans);
  --wide: 76rem;
  --text: 40rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.site { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans);
            font-size: 1.06rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.site a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.site a:hover { color: var(--sodium); }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 2rem; }
@media (max-width: 40rem) { .wrap { padding: 0 1rem; } body.site { font-size: 1rem; } }
.site :focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; }

/* --- header: a black bar --- */
.topbar { background: var(--night); color: var(--night-ink); }
.topbar .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; }
.brand { text-decoration: none !important; white-space: nowrap; font-size: 1.02rem;
         display: flex; align-items: baseline; gap: .8rem; }
.brand b { font-weight: 700; letter-spacing: -.01em; }
.brand span { color: var(--night-ink-2); padding-left: .8rem; border-left: 1px solid #fff; line-height: 1.1; }
.brand:hover { color: var(--night-ink) !important; }
@media (max-width: 30rem) { .brand { flex-direction: column; gap: 0; }
                            .brand span { border-left: 0; padding-left: 0; font-size: .85rem; } }
.topnav { display: flex; margin-left: auto; }
.topnav a { text-decoration: none; font-size: .98rem; padding: 0 .9rem; line-height: 1.1;
            border-left: 1px solid #fff; color: var(--night-ink) !important; }
.topnav a:first-child { border-left: 0; }
.topnav a:hover { color: var(--night-ink-2) !important; }
.topnav a[aria-current="page"] { color: var(--night-ink-2) !important; }
.lang { display: inline-flex; gap: .1rem; font-size: .9rem; }
.lang button { font: inherit; border: 0; background: none; padding: .2rem .3rem; cursor: pointer;
               color: var(--night-ink-2); }
.lang button[aria-pressed="true"] { color: var(--night-ink); text-decoration: underline;
                                    text-underline-offset: .25em; }
@media (max-width: 46rem) {
  .topbar .wrap { flex-wrap: wrap; gap: .2rem 1rem; padding-top: .8rem; padding-bottom: .7rem; }
  .lang { margin-left: auto; }
  .topnav { order: 3; width: 100%; margin: 0 0 0 -.9rem; }
  .topnav a:first-child { padding-left: .9rem; }
  .topnav a { font-size: .92rem; }
}

/* --- opening: a large title, then picture and text side by side --- */
.opening { padding: 5.5rem 0 4.5rem; }
.opening h1 { font-weight: 700; font-size: clamp(3rem, 8.4vw, 6.6rem); line-height: .95;
              letter-spacing: -.035em; margin: 0 0 1.6rem; max-width: 12ch; }
.opening .sub { font-weight: 600; font-size: clamp(1.3rem, 2.3vw, 1.75rem); line-height: 1.25;
                letter-spacing: -.01em; margin: 0 0 3.5rem; max-width: 34ch; }
.opening .pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem 4.5rem;
                 align-items: start; }
.opening figure { margin: 0; }
.opening figure img { display: block; width: 100%; height: auto; background: var(--night); }
.opening .text p { margin: 0 0 1.1rem; max-width: var(--text); }
figcaption, .credit { font-size: .8rem; color: var(--ink-3); margin-top: .55rem; line-height: 1.4; }
.prelim { color: var(--ink-3); font-size: .95rem; }
.go { display: inline-block; margin-top: .9rem; padding: .7rem 1.15rem; background: var(--ink);
      color: var(--paper) !important; text-decoration: none !important; font-weight: 600; }
.go:hover { background: var(--sodium); }
@media (max-width: 52rem) {
  .opening { padding: 3rem 0 3rem; }
  .opening .sub { margin-bottom: 2.2rem; }
  .opening .pair { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- a section: a short label on the left, the matter on the right --- */
.part { padding: 4.5rem 0; border-top: 1px solid var(--ink); }
.part > .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 1.5rem 3rem; }
.part .label { font-size: 1rem; margin: .45rem 0 0; font-weight: 400; }
.part .say { font-size: clamp(1.3rem, 2.25vw, 1.7rem); line-height: 1.32; letter-spacing: -.012em;
             margin: 0 0 1.6rem; max-width: 34em; }
.part .say:last-child { margin-bottom: 0; }
.part p { margin: 0 0 1rem; max-width: var(--text); }
.part strong { font-weight: 650; }
.source { font-size: .8rem !important; color: var(--ink-3); line-height: 1.45; }
.part figure { margin: 2.2rem 0 0; }
.part figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
                   background: var(--night); }
@media (max-width: 52rem) {
  .part { padding: 3rem 0; }
  .part > .wrap { grid-template-columns: 1fr; gap: .8rem; }
  .part .label { margin: 0; font-weight: 600; }
}

/* a dark part: full-bleed, for the animation */
.part.film { background: var(--film); color: var(--night-ink); border-top: 0; }
.part.film + .part { border-top: 0; }
.part.film .source, .part.film figcaption { color: var(--night-ink-2); }
.part.film video { display: block; width: 100%; height: auto; background: var(--film); }
.part.film .media { grid-column: 1 / -1; margin: 1rem 0 0; }

/* the day, season by season */
.days { display: grid; gap: .9rem; margin-top: 2rem; max-width: 46rem; }
.day-row { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: .15rem .8rem; align-items: center; }
.day-row .season { font-weight: 600; font-size: .95rem; }
.day-row .sun { grid-column: 2; font-size: .78rem; color: var(--ink-3); }
.day-bar { position: relative; height: 1.4rem;
           background: linear-gradient(to right, #1b1e2a 0 var(--rise), #efc66b var(--rise) var(--set), #1b1e2a var(--set) 100%); }
.day-bar .mark { position: absolute; top: -.3rem; bottom: -.3rem; left: var(--at); width: 2px; background: var(--sodium); }
.day-axis { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr); gap: .8rem; }
.day-axis div { position: relative; height: 1.2rem; font-size: .72rem; color: var(--ink-3); }
.day-axis div span { position: absolute; transform: translateX(-50%); }
.day-axis div span.mk { color: var(--sodium); font-weight: 700; }
.day-legend { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .8rem;
              color: var(--ink-3); margin-top: .8rem; }
.day-legend i { display: inline-block; width: .8rem; height: .8rem; vertical-align: -.1rem; margin-right: .35rem; }

/* street length by lux */
.luxkey { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; max-width: 46rem;
          margin: 2rem 0 1.2rem; }
.luxkey div { font-size: .78rem; color: var(--ink-3); line-height: 1.3; }
.luxkey b { display: block; font-size: 1.5rem; font-weight: 600; color: var(--ink); letter-spacing: -.02em;
            font-variant-numeric: tabular-nums; }
@media (max-width: 34rem) { .luxkey { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* the model, as a list of terms */
dl.terms { margin: 1.4rem 0 0; max-width: 46rem; }
dl.terms div { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: .2rem 1.5rem;
               padding: .8rem 0; border-top: 1px solid var(--rule); }
dl.terms div:last-child { border-bottom: 1px solid var(--rule); }
dl.terms dt { font-weight: 600; }
dl.terms dd { margin: 0; color: var(--ink-2); }
@media (max-width: 40rem) { dl.terms div { grid-template-columns: 1fr; } }

/* partners: white, as the logos are drawn for it */
.partners { padding: 2.6rem 0 2.8rem; background: #fff; }
.partners .groups { display: grid; gap: 2rem 3.5rem; grid-template-columns: auto auto auto; justify-content: start; align-items: start; }
.partners h2 { font-size: .85rem; font-weight: 400; color: var(--ink-3); margin: 0 0 .9rem; }
.partners .logos { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.partners img { display: block; height: 2.7rem; width: auto; max-width: 100%; }
.partners img.tall { height: 3.2rem; }
.partners img.wordmark { height: 1.9rem; }
@media (max-width: 52rem) { .partners .groups { grid-template-columns: 1fr; } }

/* team */
.page-head { padding: 5.5rem 0 2rem; }
.page-head h1 { font-weight: 700; font-size: clamp(3rem, 8.4vw, 6.6rem); line-height: .95;
                letter-spacing: -.035em; margin: 0 0 1.6rem; }
.page-head p { font-weight: 600; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.3; margin: 0;
               max-width: 36ch; }
@media (max-width: 52rem) { .page-head { padding: 3rem 0 1rem; } }
.team { list-style: none; padding: 0; margin: 0; display: grid; gap: 2.5rem 2.5rem;
        grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.team img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; display: block; margin-bottom: 1rem;
            filter: grayscale(1) contrast(1.05); }
.team h3 { font-size: 1.15rem; font-weight: 600; margin: 0 0 .25rem; }
.team p { margin: 0 0 .5rem; color: var(--ink-2); font-size: .98rem; line-height: 1.45; }
.team a.more { font-size: .92rem; }
.funding { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem 2rem; align-items: center; }
.funding img { height: 3.8rem; width: auto; display: block; }
.funding p { margin: 0; }
@media (max-width: 40rem) { .funding { grid-template-columns: 1fr; } }

/* cards, as on the city page */
ul.cards { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0 2rem;
           grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr)); }
a.card { display: flex; flex-direction: column; gap: .25rem; padding: 1rem 0 1.2rem; text-decoration: none !important;
         border-top: 1px solid var(--ink); }
a.card .title { font-weight: 600; font-size: 1.1rem; }
a.card .meta, a.card .blurb { font-size: .9rem; color: var(--ink-3); }
a.card .blurb { color: var(--ink-2); font-size: 1rem; }
a.card .go { align-self: start; }
a.card:hover .title { text-decoration: underline; }
a.card.feature { grid-column: 1 / -1; }
a.card .latest { font-size: .72rem; font-weight: 600; color: var(--ink-3); margin-left: .5rem; }
.site h2.section { font-weight: 700; font-size: 1.6rem; letter-spacing: -.015em; margin: 3rem 0 .2rem; }

/* footer: black, as the header */
.sitefoot { background: var(--night); color: var(--night-ink-2); padding: 2rem 0 2.6rem; font-size: .88rem; }
.sitefoot .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; align-items: baseline; }
.sitefoot .grow { flex: 1; color: var(--night-ink); }
.sitefoot a { color: var(--night-ink); }
