/* synctuary.ca. Black, like the app's True Black look, in the app's own Barlow. Red marks things
   (bars, underlines, bullets); text stays white or grey. The copper is the mark's alone. */
@font-face {
  font-family: "Barlow";
  src: url("Barlow-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("Barlow-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --red: #DE414C;      /* the app's accent in its dark looks */
  --white: #F2F2F5;
  --text: #D4D4DA;
  --muted: #8E8E96;
  --rule: #222226;
  --sans: "Barlow", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { background: #000000; }

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

a {
  color: var(--white);
  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 in spaced capitals, as the app's opening writes it. The negative margin keeps it centred. */
.wordmark {
  font-weight: 400;
  letter-spacing: 0.5em;
  margin-right: -0.5em;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

/* Links between pages, like the app's title cards: 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 14px/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: var(--white); }
.nav a[aria-current="page"] { color: var(--white); 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; }

/* The mark's own line art, filled with its copper. */
.mark {
  width: min(300px, 62vw);
  aspect-ratio: 1;
  margin: 0 auto 36px;
  background: linear-gradient(225deg, #E08578 0%, #B4555A 55%, #8C3338 100%);
  -webkit-mask: url("mark-lines.png") center / contain no-repeat;
  mask: url("mark-lines.png") center / contain no-repeat;
}

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

.home .line {
  max-width: 30ch;
  text-wrap: balance;
  margin: 40px auto 0;
  color: var(--white);
  font-size: 22px;
  line-height: 1.4;
}

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

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

/* The lines light outward from the middle once, as they do when the app opens. */
@property --reach {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

@media (prefers-reduced-motion: no-preference) {
  .mark {
    -webkit-mask: url("mark-lines.png") center / contain no-repeat,
      radial-gradient(circle at 50% 50%, #000 var(--reach), transparent calc(var(--reach) + 14%));
    -webkit-mask-composite: source-in;
    mask: url("mark-lines.png") center / contain no-repeat,
      radial-gradient(circle at 50% 50%, #000 var(--reach), transparent calc(var(--reach) + 14%));
    mask-composite: intersect;
    animation: light 1.7s cubic-bezier(0.3, 0, 0.2, 1) 0.25s forwards;
  }
  .home .wordmark, .home .line, .home .soon, .home footer {
    opacity: 0;
    animation: rise 900ms ease forwards 1.6s;
  }
}

@keyframes light { to { --reach: 90%; } }
@keyframes rise { to { opacity: 1; } }

/* Privacy and Support */

.page {
  max-width: 42rem;
  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: var(--white);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

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

.lead {
  margin: 36px 0 16px;
  color: var(--white);
  font-size: 22px;
  line-height: 1.45;
}

h2 {
  margin: 52px 0 12px;
  color: var(--white);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  margin: 32px 0 8px;
  color: var(--white);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

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, .path { color: var(--white); font-weight: 600; }
code { color: var(--white); font: inherit; }

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

.small {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

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