/* Teachr design tokens. Source of truth for colour, type, spacing, radius. */
@import url('/fonts/fonts.css');

:root {
  /* colour: neutral paper + ink, ONE bright colour (cobalt) */
  --paper: #F6F3EC;
  --paper-2: #ECE7DB;
  --line: #D9D3C4;
  --ink: #0E1A2F;
  --mute: #55607A;
  --cobalt: #1F4FD8;
  --tint: #DCE5FB;
  --white: #FFFFFF;

  /* type */
  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* 4-point spacing scale: every gap and padding comes from here */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px;
  --s12: 48px; --s16: 64px; --s24: 96px; --s30: 120px;

  /* radius: no pills */
  --r-1: 8px;
  --r-2: 12px;

  /* layout */
  --container: 1200px;
  --gutter: 120px;
}

@media (max-width: 1100px) { :root { --gutter: 48px; } }
@media (max-width: 640px)  { :root { --gutter: 20px; } }

html { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 28px; }
body { margin: 0; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.06; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.18; letter-spacing: -0.01em; }
h3 { font-size: 28px; line-height: 36px; }
p  { margin: 0; }
small, .small { font-size: 15px; line-height: 24px; color: var(--mute); } /* minimum text size is 14px */

.container { max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* the ONE filled button per screen */
.btn { display: inline-flex; align-items: center; gap: var(--s2); font: 600 16px/24px var(--font-body); padding: var(--s4) var(--s8); border-radius: var(--r-1); border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.btn--primary { background: var(--cobalt); color: var(--white); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.link { font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.link:hover { color: var(--cobalt); }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }
