/*
 * tendivo.app public pages. Colours are the app's own tokens
 * (apps/web/src/app/design-tokens.css): light by default, dark when the
 * device asks for it. System fonts only, so the pages load nothing from
 * anybody else.
 */
:root {
  --canvas: #F8F5F1;
  --surface: #FFFFFF;
  --line: #E6E0DA;
  --ink: #2B2330;
  --ink-muted: #574E5D;
  --brand: #4A2A52;
  --brand-deep: #5A3466;
  --brand-soft: #ECE3EE;
  --focus: #C9772F;
  --logo-body: #4A2A52;
  --logo-wing: #F2A96B;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #17121B;
    --surface: #221B27;
    --line: #3A2F40;
    --ink: #F5F0F2;
    --ink-muted: #CBC2CF;
    --brand: #F2A96B;
    --brand-deep: #F5B98A;
    --brand-soft: #3A2A1C;
    --focus: #C9A6D0;
    /* The same two-tone bird as the light look. Its plum is lighter here so the body shows on the dark canvas. */
    --logo-body: #8A5A96;
  }
}

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

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
}

.page {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

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

.skip:focus {
  left: 1rem;
  top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  color: var(--ink);
}

header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}

.logo {
  display: block;
  height: 2.75rem;
  width: auto;
}

.logo-body {
  fill: var(--logo-body);
}

.logo-wing {
  fill: var(--logo-wing);
}

.logo-word {
  fill: var(--ink);
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: 2.25rem;
  margin: 2rem 0 0.75rem;
}

h2 {
  font-size: 1.5rem;
  margin: 2.25rem 0 0.5rem;
}

p,
li {
  margin: 0 0 0.75rem;
}

.lead {
  color: var(--ink-muted);
}

ol,
ul {
  padding-left: 1.5rem;
  margin: 0 0 0.75rem;
}

li {
  padding-left: 0.25rem;
}

a {
  color: var(--brand-deep);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

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

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

.card > :last-child {
  margin-bottom: 0;
}

.note {
  background: var(--brand-soft);
  border-color: transparent;
}

.draft-banner {
  padding: 1rem 1.25rem;
  margin-top: 2rem;
  background: var(--brand-soft);
  border: 2px solid var(--brand);
  border-radius: 12px;
  font-weight: 600;
}

.draft-note {
  background: var(--brand-soft);
  border: 1px dashed var(--brand);
  border-radius: 2px;
  padding: 0.125rem 0.25rem;
  overflow-wrap: anywhere;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 1.125rem;
}

/* The small menu beside the logo. */
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  margin: 0;
  padding: 0;
}

nav a {
  display: inline-block;
  padding: 0.5rem 0;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  text-decoration: underline;
}
