/* Munchlight support pages. Hand-written, no build step.
   Replaces the 164 KB Tailwind bundle carried over from the old framework site;
   only the rules these pages actually used are kept, plus a dark palette. */

:root {
  color-scheme: light dark;
  --background: #f8f4eb;
  --foreground: #243449;
  --brand: #253a4c;
  --link: #236551;
  --eyebrow: #74633e;
  --muted: #546572;
  --border: #d8dcd6;
  --focus: #aa6d1b;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #141c24;
    --foreground: #eef1ea;
    --brand: #f4efe2;
    --link: #7fd1b5;
    --eyebrow: #e0c58a;
    --muted: #aeb9c1;
    --border: #2d3a44;
    --focus: #e8a94f;
  }
}

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

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 4px;
}

p a,
footer a {
  text-decoration: underline;
  text-decoration-thickness: 0.07em;
}

a:hover {
  text-decoration: underline;
}

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

strong {
  font-weight: 700;
}

header,
main,
footer {
  width: min(1040px, 100% - 48px);
  margin-inline: auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--brand);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
}

.brand span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

nav {
  display: flex;
  gap: 24px;
  font-size: 16px;
}

nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

h1 {
  margin: 10px 0 22px;
  font-size: clamp(36px, 5.6vw, 62px);
  font-weight: 750;
  line-height: 1.07;
  letter-spacing: -0.025em;
}

h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 750;
  line-height: 1.25;
}

p {
  margin: 0 0 16px;
}

.welcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: center;
  gap: 60px;
  padding: 60px 0 48px;
}

.welcome img {
  width: 240px;
  height: 240px;
  object-fit: contain;
}

.eyebrow {
  color: var(--eyebrow);
  font-size: 15px;
  font-weight: 700;
}

.contact {
  font-size: clamp(18px, 2.6vw, 25px);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.small {
  max-width: 560px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
}

.help {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px 54px;
  padding: 38px 0 64px;
  border-top: 1px solid var(--border);
}

.help p,
.policy p {
  max-width: 68ch;
}

.policy {
  max-width: 760px;
  margin-inline: auto;
  padding: 48px 0;
}

.policy h1 {
  font-size: 42px;
}

.policy h2 {
  margin-top: 32px;
}

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

.policy a {
  overflow-wrap: anywhere;
}

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 24px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 650px) {
  header,
  main,
  footer {
    width: calc(100% - 32px);
  }

  header {
    align-items: start;
    gap: 18px;
  }

  nav {
    gap: 16px;
    font-size: 15px;
  }

  .brand {
    font-size: 23px;
  }

  .brand span {
    max-width: 145px;
    line-height: 1.35;
  }

  .welcome {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 32px;
  }

  .welcome img {
    grid-row: 1;
    justify-self: end;
    width: 130px;
    height: 130px;
    margin-bottom: -12px;
  }

  .welcome h1 br {
    display: none;
  }

  .help {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 30px;
  }

  .policy {
    padding-top: 32px;
  }

  .policy h1 {
    font-size: 36px;
  }
}
