/* Tots website. Colors and type mirror src/theme/tokens.ts. */
:root {
  --table: #F3ECE1;
  --surface: #FFFDF8;
  --text: #221E1A;
  --muted: #6A625A;
  --accent: #C8261B;
  --border: #E2D8C9;
  --divider: #EFE7DA;
  --display: 'Fredoka', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--table);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
}
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

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

header.site { padding: 20px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 26px/1 var(--display); }
.brand img { width: 34px; height: 40px; object-fit: contain; }
nav.site { display: flex; gap: 18px; font-weight: 600; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.2; }
h1 { font-size: 38px; margin: 24px 0 8px; }
h2 { font-size: 24px; margin: 36px 0 8px; }
h3 { font-size: 19px; margin: 24px 0 4px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; margin: 20px 0; }
.meta { color: var(--muted); font-size: 15px; margin-top: 0; }

/* Home */
.hero { text-align: center; padding: 32px 0 8px; }
.hero img { width: 120px; height: 142px; object-fit: contain; }
.hero h1 { font-size: 46px; margin: 16px 0 8px; }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 540px; margin: 0 auto 24px; }
.pill { display: inline-block; background: var(--text); color: var(--surface); border-radius: 999px; padding: 14px 26px; font-weight: 700; text-decoration: none; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0; }
.steps .card { margin: 0; }
.steps h3 { margin-top: 0; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

/* Legal tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: 12px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--divider); }
th { font-weight: 700; }

footer.site { margin: 56px 0 32px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 20px; }
footer.site a { color: var(--muted); }

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
  .hero h1 { font-size: 38px; }
}
