:root {
  --bg: #fbf1f3;
  --surface: #ffffff;
  --surface-strong: #f8edef;
  --ink: #111111;
  --muted: #5f5f5a;
  --line: rgba(17, 17, 17, 0.1);
  --primary: #111111;
  --primary-deep: #000000;
  --accent: #f4e6e9;
  --tomato: #d8684c;
  --olive: #85966f;
  --ok: #23654d;
  --adapt: #8d5d10;
  --separate: #6d58a2;
  --caution: #8c5a28;
  --avoid: #a83f3f;
  --shadow: none;
  --radius: 0;
  --radius-sm: 0;
  --container: min(1180px, calc(100vw - 32px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

body[data-page="planner"] {
  --bg: #e8f3ff;
}

body[data-page="recipes"] {
  --bg: #fbe6ef;
}

body[data-page="howto"] {
  --bg: #fff0df;
}

body[data-page="allergens"] {
  --bg: #ffe5e5;
}

body[data-page="shopping"] {
  --bg: #e8f6e8;
}

body[data-page="saved"] {
  --bg: #dcf6f2;
}

body[data-page="course"] {
  --bg: #fff5cc;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin: 0 0 12px;
  font-weight: 700;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

h1 {
  font-size: clamp(2.7rem, 8vw, 5.8rem);
}

h2 {
  font-size: clamp(1.8rem, 5vw, 3.4rem);
}

h3 {
  font-size: clamp(1.2rem, 3.5vw, 1.65rem);
}

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

p,
li,
a,
span,
strong,
small,
label,
button {
  overflow-wrap: break-word;
  word-break: normal;
}

ul {
  padding-left: 18px;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus {
  outline: 2px solid rgba(31, 122, 99, 0.22);
  border-color: var(--primary);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 100;
  padding: 10px 12px;
  background: #111;
  color: #fff;
  transform: translateY(-200%);
  transition: transform 120ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}
