/* TouchToes website: the app's colours and Lora headings. Everything is
   served from this site; no fonts, scripts or trackers from elsewhere. */

@font-face {
  font-family: "Lora";
  src: url("assets/fonts/Lora-Variable.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --background: #f3e8d6;
  --surface: #fbf5ea;
  --ink: #2e2a24;
  --muted: #6b6155;
  --accent: #ff6b1a;
  --accent-ink: #b8400b;
  --line: #e6d8c2;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

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

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

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

h1,
h2,
h3,
.brand {
  font-family: "Lora", Georgia, serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(34px, 8vw, 48px);
  font-weight: 700;
  margin: 0 0 16px;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 40px 0 12px;
}

h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 28px 0 8px;
}

p,
ul {
  margin: 0 0 16px;
}

ul {
  padding-left: 22px;
}

li + li {
  margin-top: 6px;
}

a {
  color: var(--accent-ink);
  text-underline-offset: 3px;
}

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

/* Header */

.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.site-header a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.site-header img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.brand {
  font-size: 26px;
  font-weight: 700;
}

/* Home */

.hero {
  display: grid;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 24px;
}

.hero p {
  color: var(--muted);
  font-size: 19px;
}

.hero img {
  justify-self: center;
  width: min(240px, 70%);
  height: auto;
}

.badge {
  display: inline-block;
  background: var(--accent);
  /* Ink, not white: white on the orange is 2.9:1, under WCAG's 4.5:1. */
  color: var(--ink);
  font-weight: 600;
  border-radius: 999px;
  padding: 10px 20px;
}

.features {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.features li {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0;
}

.features strong {
  display: block;
  font-family: "Lora", Georgia, serif;
  font-size: 20px;
  margin-bottom: 4px;
}

.features span {
  color: var(--muted);
}

@media (min-width: 640px) {
  .hero {
    grid-template-columns: 1.4fr 1fr;
    padding: 40px;
  }

  .hero img {
    width: 100%;
  }
}

/* Links page (the social bios' link) */

.links {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}

.links img {
  width: 88px;
  height: 88px;
  border-radius: 22px;
}

.links h1 {
  margin: 12px 0 4px;
}

.links p {
  color: var(--muted);
}

.link-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
}

.link-list li {
  margin: 0;
}

.link-button {
  display: block;
  background: var(--surface);
  border-radius: 999px;
  padding: 16px 24px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.link-button span {
  color: var(--muted);
  font-weight: 400;
  margin-left: 6px;
}

.link-button.legal {
  background: transparent;
  border: 2px solid var(--line);
  font-size: 15px;
  padding: 12px 24px;
}

/* Policy pages */

.document {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 24px;
}

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

.summary {
  border-left: 4px solid var(--accent);
  padding: 4px 0 4px 16px;
  font-size: 18px;
}

.draft {
  border: 2px dashed var(--accent-ink);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 24px;
  color: var(--accent-ink);
  font-size: 15px;
}

.draft ul {
  margin-bottom: 0;
}

.todo {
  background: #ffe3cf;
  border-radius: 6px;
  padding: 0 6px;
}

@media (min-width: 640px) {
  .document {
    padding: 48px;
  }
}

/* Footer */

.site-footer {
  margin-top: 40px;
  color: var(--muted);
  font-size: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
