@font-face {
    font-family: charter;
    font-style: normal;
    font-weight: normal;
    font-stretch: normal;
    src: url('charter_regular.woff2') format('woff2');
}

@font-face {
    font-family: charter;
    font-style: italic;
    font-weight: normal;
    font-stretch: normal;
    src: url('charter_italic.woff2') format('woff2');
}

@font-face {
    font-family: charter;
    font-style: normal;
    font-weight: bold;
    font-stretch: normal;
    src: url('charter_bold.woff2') format('woff2');
}

@font-face {
    font-family: charter;
    font-style: italic;
    font-weight: bold;
    font-stretch: normal;
    src: url('fonts/charter_bold_italic.woff2') format('woff2');
}

:root {
  --fg: black;
  --bg: white;
  --alt: #444;
  --link-bg: #dcf1fd;
  --link-line: #6face8;
}

:root.light-toggled {
  --fg: white;
  --bg: #111;
  --alt: #888;
  --link-bg: #1b3a59;
  --link-line: #6face8;
}

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

* {
  margin:0
  padding:0
  border:0
  outline:0
  text-decoration:none
  font-weight:inherit
  font-style:inherit
  color:inherit
  font-size:100%
  font-family:inherit
  vertical-align:baseline
  list-style:none
  border-collapse:separate
  border-spacing:0
  -webkit-font-smoothing: antialiased
  -moz-osx-font-smoothing: grayscale
}

@media (prefers-reduced-motion: no-preference) {
  html {
    interpolate-size: allow-keywords;
  }
}


body {
  margin: auto;
  max-width: 960px;
  color: var(--fg);
  background: var(--bg);
  padding: 1rem 2rem;
  line-height: 1.5;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

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

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

#root, #__next {
  isolation: isolate;
}

h1, h2, h3, h4 {
  padding: 0.25rem 0 0.5rem 0;
}

blockquote {
  color: var(--alt);
  font-style: italic;
  margin: 0.25rem 0 0.25rem 1rem;
}

a {
  color: var(--fg);
  text-decoration-color: var(--link-line);
}

summary {
  padding: 0.5rem 0rem;
  font-size: 1.2rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--link-line);
}

a:hover, .icon:hover, summary:hover {
  text-decoration: none;
  background-color: var(--link-bg);
}

.serif {
  font-family: charter, Superclarendon, 'Bookman Old Style', 'URW Bookman', 'URW Bookman L', 'Georgia Pro', Georgia, serif;
}

.sans-serif {
  font-family: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
}

.step {
  margin: 0 0 0.5rem 0;
}

.recipe-title {
  padding: 0.25rem 0 0.25rem 0;
  margin: 0.25rem 0 0 0;
}

.author {
  padding: 0 0 0.25rem 0;
  margin: 0 0 0 0;
}

.result {
  cursor: pointer;
  padding: 0.5rem 0 0.5rem 0;
  color: var(--fg);
  text-decoration: none;
  display: block;
}

.result-title, .result-author, .result-description {
  margin: 0;
  padding: 0;
  width: 100%;
}

.result-upper {
  display: flex;
  flex-wrap: wrap;
}

.result-description {
  color: var(--alt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-decoration: none;
}

.result-author {
  padding: 0 0 0 0.5rem;
  font-weight: lighter;
  font-style: italic;
  color: var(--alt);
  text-decoration: none;
}

.result:hover .result-title, .result:hover .result-author {
  text-decoration: underline;
}

.icon {
  color: var(--fg);
  width: 2rem;
  cursor: pointer;
}

.ingredient-note {
  font-style: italic;
  font-weight: lighter;
}

#settings {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

#settings-open {
  display: none;
  cursor: pointer;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

#settings-closed {
  justify-content: center;
  align-items: center;
  display: flex;
}

#search {
  width: 100%;
  margin: 0 0 1rem 0;
}

#search-header {
  margin: 0 0 0.25rem 0;
}

@media (min-width: 35rem) {
  .result-title, .result-author, .result-description {
    width: auto;
  }

  #settings-open {
    justify-content: end;
    flex-direction: row-reverse;
  }

  #settings-closed {
    float: right;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: white;
    --bg: #111;
    --alt: #888;
    --link-bg: #1b3a59;
    --link-line: #6face8;
  }

  :root.light-toggled {
    --fg: black;
    --bg: white;
    --alt: #444;
    --link-bg: #dcf1fd;
  }
}

@media print {
  :root {
    --fg: black;
    --bg: white;
    --alt: #444;
    --link: #0000EE;
  }
  :root.light-toggled {
    --fg: black;
    --bg: white;
    --alt: #444;
    --link: #0000EE;
  }

  .icon {
    display: none;
  }

  .hidden-print {
    display: none;
  }
}

