/* =========================================================================
   Echelon — public website
   Black and silver, matching the app: pure #000 background, white text,
   hairline rules, Baskerville for display type (the membership application's
   serif) and the system sans for everything else. No web fonts, no
   frameworks, no build step.
   ========================================================================= */

:root {
  --black: #000000;
  --surface: #0d0d0d;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.58);
  --faint: rgba(255, 255, 255, 0.32);
  --line: rgba(255, 255, 255, 0.12);
  --silver-hi: #f4f4f5;
  --silver: #c7c8cc;
  --silver-lo: #8e9096;
  --silver-gradient: linear-gradient(
    180deg,
    var(--silver-hi) 0%,
    var(--silver) 48%,
    var(--silver-lo) 100%
  );

  --serif: "Baskerville", "Baskerville Old Face", "Libre Baskerville", Georgia,
    "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --gutter: 24px;
  --prose: 720px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  background: var(--black);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--black);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 1px solid var(--silver);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 10px 16px;
  background: var(--text);
  color: var(--black);
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
}

/* ------------------------------ wordmark -------------------------------- */

.wordmark {
  display: inline-block;
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.42em;
  /* letter-spacing adds trailing space after the last letter; pull it back so
     the word is optically centred */
  margin-right: -0.42em;
  text-transform: uppercase;
  color: var(--silver);
  background: var(--silver-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ------------------------------- homepage ------------------------------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 72px var(--gutter) 56px;
}

.hero__mark {
  width: clamp(168px, 34vw, 260px);
  aspect-ratio: 1;
  margin-bottom: 8px;
}

.hero .wordmark {
  font-size: clamp(26px, 5vw, 38px);
}

.hero__rule {
  width: 48px;
  height: 1px;
  margin: 32px auto;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--silver-lo), transparent);
}

.hero__tagline {
  max-width: 22em;
  margin: 0 0 44px;
  font-family: var(--serif);
  font-size: clamp(21px, 3.4vw, 28px);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 40px;
  border-radius: 999px;
  background: var(--silver-gradient);
  color: var(--black);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: filter 160ms ease, transform 160ms ease;
}
a.cta[href]:hover {
  filter: brightness(1.08);
}
a.cta[href]:active {
  transform: translateY(1px);
}
.cta[aria-disabled="true"] {
  cursor: default;
}

.hero__note {
  margin: 16px 0 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

/* ---------------------------- inner pages ------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--prose);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 36px;
  height: 36px;
}
.brand .wordmark {
  font-size: 15px;
}

.page {
  flex: 1;
  width: 100%;
  max-width: var(--prose);
  margin: 0 auto;
  padding: 56px var(--gutter) 80px;
}

.page h1 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 400;
  line-height: 1.15;
}

.page__meta {
  margin: 0 0 40px;
  font-size: 14px;
  color: var(--muted);
}

.page h2 {
  margin: 48px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.3;
}

.page h3 {
  margin: 28px 0 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.page p,
.page li {
  color: rgba(255, 255, 255, 0.84);
}
.page p {
  margin: 0 0 16px;
}
.page ul,
.page ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.page li {
  margin-bottom: 6px;
}
.page a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--silver-lo);
  text-underline-offset: 3px;
}
.page a:hover {
  text-decoration-color: var(--text);
}
.page strong {
  color: var(--text);
  font-weight: 600;
}

.callout,
.legal__callout {
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.callout p:last-child,
.legal__callout p:last-child {
  margin-bottom: 0;
}

.notice {
  margin: 8px 0 0;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
}
.notice p {
  margin: 0;
}
.notice p + p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--gutter) 36px;
  text-align: center;
  font-size: 13px;
  color: var(--faint);
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-bottom: 14px;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.site-footer a:hover,
.site-footer a[aria-current="page"] {
  color: var(--text);
}
.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
