/* kynect.ca. Always black, like the app. Red marks things (bars, underlines, bullets); text stays white or grey. */
@font-face {
  font-family: "Plain Cred 1978";
  src: url("PlainCred1978.otf") format("opentype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --red: #C8230B;      /* glow red: the brand's red on black */
  --text: #D6D6D6;
  --muted: #8A8A8A;
  --rule: #222222;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { background: #000000; }

body {
  margin: 0;
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}

a {
  color: #FFFFFF;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

/* The name, as on a watch face: Plain Cred 1978, spaced half its size. The negative margin keeps it centred. */
.wordmark {
  font-family: "Plain Cred 1978", var(--sans);
  font-weight: 400;
  letter-spacing: 0.5em;
  margin-right: -0.5em;
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
}

/* Links between pages, like the app's Settings · Stats · About row: spaced capitals, a red bar under the page you're on. */
.nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: 10px 0 8px;
  color: var(--muted);
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav a:hover { color: #FFFFFF; }
.nav a[aria-current="page"] { color: #FFFFFF; border-bottom-color: var(--red); }

/* Home */

.home {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 40px;
  text-align: center;
}

.home main { margin: auto 0; }

.mark {
  display: block;
  width: min(320px, 64vw);
  height: auto;
  margin: 0 auto 44px;
}

.home h1 { margin: 0; font-weight: 400; line-height: 1; }
.home .wordmark { font-size: clamp(24px, 4.4vw, 32px); }

.home .line {
  max-width: 24ch;
  margin: 44px auto 0;
  color: #FFFFFF;
  font-size: 20px;
  line-height: 1.45;
}

.home .soon {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.home footer { margin-top: 56px; }

/* The mark draws itself once, in the order a finger swipes it: k, y, n, e, c, t. */
@media (prefers-reduced-motion: no-preference) {
  .mark line {
    opacity: 0;
    animation: ink 1ms linear forwards;
    animation-delay: calc(300ms + var(--i) * 7ms);
  }
  .home .wordmark, .home .line, .home .soon, .home footer {
    opacity: 0;
    animation: rise 900ms ease forwards 1.8s;
  }
}

@keyframes ink { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; } }

/* Privacy and Support */

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.page > header { padding-bottom: 64px; }
.page > header .wordmark { font-size: 20px; }

/* The app's title card: the name in spaced capitals over a red bar. */
.page h1 {
  display: inline-block;
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.lead {
  margin: 36px 0 0;
  color: #FFFFFF;
  font-size: 21px;
  line-height: 1.5;
}

h2 {
  margin: 52px 0 12px;
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

p, ul, ol { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; padding-left: 4px; }
li::marker { color: var(--red); }
strong { color: #FFFFFF; font-weight: 600; }

.page > footer {
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .lead { font-size: 19px; }
  h2 { font-size: 20px; }
  .nav { gap: 28px; }
}
