/* Colors come from the 4th Sphere logo. Light mode is the default; dark mode
   switches automatically when the visitor's device or browser asks for it. */
:root {
  color-scheme: light dark;
  --background: #ffffff;
  --text: #182c40;
  --muted: #4a6078;
  --link: #144470;
  --line: #d5dde6;
  --logo-plate: transparent;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #182c40;
    --text: #edf2f7;
    --muted: #b4c4d4;
    --link: #a9cbee;
    --line: #3a5168;
    --logo-plate: #ffffff;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--link);
}

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

/* The logo has navy and black parts, so it sits on a white plate in dark mode. */
.logo {
  background: var(--logo-plate);
  border-radius: 12%;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: 0.6rem 0.5rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  border-bottom-color: currentColor;
}

/* Splash page */
.splash {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
  text-align: center;
}

.splash .logo {
  width: min(72vw, 340px);
  padding: 4%;
}

.splash h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Inner pages */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.site-header .logo {
  width: 72px;
  padding: 3px;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
  line-height: 1.2;
}

h2 {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1rem;
}

address {
  margin: 0 0 1.5rem;
  font-style: normal;
}

.app {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.app img {
  flex: none;
  width: 96px;
}

.app p {
  margin: 0.25rem 0 0;
}

.app .status {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 26rem) {
  .app {
    flex-direction: column;
    align-items: flex-start;
  }
}

.site-footer {
  padding: 1rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}
