/* Tecum's website: the app's teal tint, system fonts, light and dark mode. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f2f2f7;
  --text: #1c1c1e;
  --muted: #5b5b61;
  --border: #dcdce1;
  --tint: #066a62;
  --todo-bg: #fff1b8;
  --todo-text: #4d3a00;
  --draft-bg: #fff8e1;
  --draft-border: #e8c75a;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f2f2f7;
    --muted: #a6a6ad;
    --border: #3a3a3e;
    --tint: #5ed3c6;
    --todo-bg: #4d3d00;
    --todo-text: #ffe28a;
    --draft-bg: #2b2414;
    --draft-border: #8a6d1f;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

.site-header,
main,
.site-footer {
  max-width: 44rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
}

.languages {
  font-size: 0.9375rem;
}

.wordmark {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

main {
  padding-bottom: 3rem;
}

h1 {
  font-size: clamp(2rem, 7vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.75rem;
}

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

h3 {
  font-size: 1.0625rem;
  margin: 1.5rem 0 0.25rem;
}

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

li {
  margin-bottom: 0.35rem;
}

.updated,
.lede {
  color: var(--muted);
}

.lede {
  font-size: 1.25rem;
}

.status {
  display: inline-block;
  background: var(--surface);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.features li {
  background: var(--surface);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin: 0;
}

.features h3 {
  margin-top: 0;
}

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

/* Marks a page that hasn't been reviewed: remove it before publishing. */
.draft {
  background: var(--draft-bg);
  border: 1px solid var(--draft-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-top: 1.5rem;
}

/* Details the owner still has to fill in. */
mark.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  border-radius: 4px;
  padding: 0 0.2em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

/* The code of an invite link, to type in the app. */
.invite-code output {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
