/* shadowlap.app. The brand as it stands (SLICE 37): the Hint mark, Echelon
   green, Michroma for display, Instrument Sans for text, dark. Green is the
   brand accent only, never a status colour; never red. */

@font-face {
  font-family: "Michroma";
  src: url("/fonts/michroma-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Michroma";
  src: url("/fonts/michroma-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: dark;
  /* The night sky of the app icon. */
  --sky-top: #04070b;
  --sky-horizon: #132438;
  --ground: #0a131c;
  --bg: #05080c;
  --surface: #0d1620;
  --line: #1c2a38;
  --text: #f2f2f3;
  --muted: #a2a8b0;
  --echelon: #6ce98d;
  --display: "Michroma", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --measure: 40rem;
  --gutter: 1rem;
}

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

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

/* On iPhone, follow the reader's Dynamic Type text size. */
@supports (font: -apple-system-body) {
  html {
    font: -apple-system-body;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Long words (email addresses) break rather than overflow with large text. */
  overflow-wrap: break-word;
}

main {
  flex: 1;
}

.wrap {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
  }
}

a {
  color: var(--echelon);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 1.25rem;
  font-weight: 650;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}

p,
ul {
  margin: 0 0 1rem;
}

ul {
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.4rem;
}

strong {
  font-weight: 650;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: var(--gutter);
  top: 0.75rem;
  background: var(--bg);
  padding: 0.25rem 0.5rem;
  z-index: 1;
}

/* Header on inner pages */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-size: min(0.95rem, 4.5vw);
  letter-spacing: 0.04em;
}

.brand img {
  width: 2rem;
  height: 2rem;
  margin-left: -0.25rem;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* Home: the mark in its night sky. The sky steps from horizon blue to the
   ground at the mark's own horizon line (18/56 of the way down). */

.hero {
  background: linear-gradient(
    to bottom,
    var(--sky-top) 0%,
    var(--sky-horizon) 32.14%,
    var(--ground) 32.14%,
    var(--bg) 100%
  );
}

.hero img {
  display: block;
  width: 100%;
  max-width: 36rem;
  height: auto;
  margin: 0 auto;
}

.intro {
  padding-top: 2rem;
  padding-bottom: 1rem;
}

.intro h1 {
  /* Michroma is wide: on a narrow screen with large text, the width wins. */
  font-size: min(3.25rem, 11vw);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.25rem;
  line-height: 1.5;
  max-width: 34rem;
}

.points {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  gap: 1rem;
}

.points li {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.points h2 {
  font-size: 1.0625rem;
  margin: 0 0 0.25rem;
}

.points p {
  margin: 0;
  color: var(--muted);
}

.status {
  font-family: var(--display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2rem 0 3rem;
}

.status::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--echelon);
  vertical-align: middle;
  margin-right: 0.75rem;
}

/* Inner pages */

.page {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.page h1 {
  font-size: min(2.25rem, 9vw);
  margin-bottom: 0.75rem;
}

.dated {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--echelon);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0 1rem;
}

.summary p:last-child,
.summary ul:last-child {
  margin-bottom: 0;
}

dl.faq dt {
  font-weight: 650;
  margin-top: 1.5rem;
}

dl.faq dd {
  margin: 0.25rem 0 0;
}

.email {
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.5rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

/* 404 */

.lost {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.lost h1 {
  font-size: min(2.25rem, 9vw);
  margin-bottom: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.site-footer p {
  margin: 0;
}
