/* Tandi marketing site. Colour tokens are kept in sync by hand with the app's
   src/styles/global.css: Parchment by default, Ink (dark) when the visitor picks it
   with the toggle (see theme.js). */
:root {
  color-scheme: light;
  --bg: #f4ecdc;
  --surface: #fbf6ec;
  --border: #d8c9ab;
  --text: #2a2219;
  --muted: #6d5f49;
  --accent: #8a5b0a;
  --accent-hover: #724a05;
  --on-accent: #fff9ee;
  --focus: #2f6a9e;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

:root[data-theme='ink'] {
  color-scheme: dark;
  --bg: #15120e;
  --surface: #1e1a15;
  --border: #3b3329;
  --text: #ece3d1;
  --muted: #a3957c;
  --accent: #c08a28;
  --accent-hover: #d3a040;
  --on-accent: #1a1409;
  --focus: #7db0e6;
}

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

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

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

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-inline: 20px;
}

header.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-size: 22px;
  font-weight: 650;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
}

.button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
}

.button.small {
  padding: 7px 14px;
  font-size: 15px;
}

.hero {
  padding-block: 56px 40px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.15;
  text-wrap: balance;
}

.lede {
  max-width: 56ch;
  margin: 0 0 28px;
  font-size: 20px;
  color: var(--muted);
}

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

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  padding-block: 24px 56px;
}

.points section {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

h2 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
}

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

.modules {
  padding-block: 8px 48px;
}

.modules > h2,
.serious h2 {
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.2;
  text-wrap: balance;
}

.section-lede {
  max-width: 60ch;
  margin: 0 0 24px;
  color: var(--muted);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.module-grid section {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.module-grid p {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.serious {
  margin-bottom: 56px;
  padding: 24px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
}

.serious p {
  max-width: 62ch;
  margin: 0;
}

footer.wrap {
  padding-block: 28px 40px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--muted);
}

.not-found {
  padding-block: 80px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

/* The icon shows where a click goes: the moon in Parchment, the sun in Ink. */
.theme-toggle .icon-sun,
:root[data-theme='ink'] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme='ink'] .theme-toggle .icon-sun {
  display: block;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle[hidden] {
  display: none;
}
