@font-face {
  font-family: "Dyslexie";
  src:
    url("../fonts/19812R.woff2") format("woff2"),
    url("../fonts/19812R.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Dyslexie";
  src:
    url("../fonts/19812I.woff2") format("woff2"),
    url("../fonts/19812I.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Dyslexie";
  src:
    url("../fonts/19812B.woff2") format("woff2"),
    url("../fonts/19812B.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Dyslexie";
  src:
    url("../fonts/19812BI.woff2") format("woff2"),
    url("../fonts/19812BI.woff") format("woff");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg-primary: #181c1d;
  --bg-secondary: #d17d00;
  --bg-panel: #14213d;

  --text-primary: #fdfbf7;
  --text-secondary: #fbd38d;
  --text-button: #0a0e17;
  --border-button: #fbd38d;
  --footer-bg: #14213d;

  --font-heading: "Dyslexie", "Georgia", serif;
  --font-sans: "Dyslexie", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --radius: 8px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-primary: #f7f8f2;
    --bg-secondary: #854700;
    --bg-panel: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --border-button: #1e293b;
    --footer-bg: #f2f2f2;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
}

main {
  background-color: var(--bg-panel);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2rem auto;
  max-width: 1200px;
  width: 95%;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

h1,
h2,
h3 {
  color: var(--text-secondary);
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  margin-top: 1rem;
}

h1 {
  font-size: 2.5rem;
  border-bottom: 3px solid var(--bg-secondary);
  padding-bottom: 0.2rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--bg-secondary);
  font-weight: 600;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 3rem;
  width: 100%;
}

nav a,
nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0%;
  min-height: 4em;
  padding: 1.25em 0.5em;

  background-color: var(--bg-secondary);
  background-image: linear-gradient(
    135deg,
    var(--bg-secondary) 0%,
    #ffc56d 100%
  );
  color: var(--text-button);

  border: 4px solid var(--border-button);
  border-radius: var(--radius);

  text-decoration: none;
  text-align: center;
  font-weight: 700;
  font-size: 1.75em;
  font-family: var(--font-sans);
  white-space: nowrap;
  cursor: pointer;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a.btn-large,
nav button.btn-large {
  flex: 1 1 100%;
  padding: 1.5em 1em;
  font-size: 2.2em;
}

nav a:hover,
nav button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
  background-image: linear-gradient(135deg, #ffa333 0%, #e68a00 100%);
}

nav a:focus-visible,
nav button:focus-visible {
  outline: 4px solid var(--border-button);
  outline-offset: 6px;
}

footer {
  background-color: var(--footer-bg);
  padding: 2rem 1rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col ul {
  list-style: none;
}

.site-logo {
  max-width: 15rem;
  height: auto;
  margin: 0 auto 2rem auto;
  display: block;
  content: url("../images/Logo-Dark.svg");
}

.dish-container-reverse {
  display: flex;
  flex-direction: row-reverse;
  padding: 20px 0 0 0;
  text-align: start;
  justify-content: flex-start;
}

.dish-container {
  display: flex;
  padding: 20px 0 0 0;
  text-align: end;
  flex-direction: row;
  justify-content: flex-end;
}

.catagory {
  padding: 20px 20px;
  text-align: center;
}

.space {
  flex: 1;
}

.dish {
  font-size: 1.3rem;
  list-style: none;
  padding: 15px 0 5px 0;
}

.ingredients {
  font-size: 1rem;
  list-style: none;
  max-width: 50vw;
}

.dish-image {
  width: 20vw;
  height: auto;
  max-height: 20vw;
  object-fit: cover;
  margin: auto;
  display: flex;
}

@media (prefers-color-scheme: light) {
  .site-logo {
    content: url("../images/Logo-Light.svg");
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.8rem;
  }

  nav {
    flex-direction: column;
  }

  nav a,
  nav button {
    width: 100%;
    font-size: 1.1rem;
  }

  main {
    padding: 1rem;
  }

  .dish-container-reverse,
  .dish-container {
    flex-direction: column;
    text-align: center;
    font-weight: 700;
    font-size: 1.75em;
    font-family: var(--font-sans);
    white-space: nowrap;
    cursor: pointer;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  nav a.btn-large,
  nav button.btn-large {
    flex: 1 1 100%;
    padding: 1.5em 1em;
    font-size: 2.2em;
  }

  nav a:hover,
  nav button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
    background-image: linear-gradient(135deg, #ffa333 0%, #e68a00 100%);
  }

  nav a:focus-visible,
  nav button:focus-visible {
    outline: 4px solid var(--border-button);
    outline-offset: 6px;
  }

  footer {
    background-color: var(--footer-bg);
    padding: 2rem 1rem;
    margin-top: auto;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }

  .footer-col ul {
    list-style: none;
  }

  .site-logo {
    max-width: 15rem;
    height: auto;
    margin: 0 auto 2rem auto;
    display: block;
    content: url("../images/Logo-Dark.svg");
  }

  .dish-container-reverse {
    display: flex;
    flex-direction: row-reverse;
    padding: 20px 0 0 0;
    text-align: start;
  }

  .dish-container {
    display: flex;
    flex-direction: row;
    padding: 20px 0 0 0;
    text-align: end;
  }

  .catagory {
    padding: 20px 20px;
    text-align: center;
  }

  .space {
    flex: 1;
  }

  .dish {
    font-size: 1.3rem;
    list-style: none;
    padding: 15px 0 5px 0;
  }

  .ingredients {
    font-size: 1rem;
    list-style: none;
    max-width: 50vw;
  }

  .dish-image {
    width: 20vw;
    height: auto;
    max-height: 20vw;
    object-fit: cover;
    display: block;
  }

  @media (prefers-color-scheme: light) {
    .site-logo {
      content: url("../images/Logo-Light.svg");
    }
  }

  @media (max-width: 768px) {
    h1 {
      font-size: 1.8rem;
    }

    nav {
      flex-direction: column;
    }

    nav a,
    nav button {
      width: 100%;
      font-size: 1.1rem;
    }

    main {
      padding: 1rem;
    }

    .dish-container-reverse,
    .dish-container {
      flex-direction: column;
      text-align: center;
      align-items: center;
      white-space: normal;
    }

    .dish-image {
      width: 70vw;
      height: auto;
      max-height: 70vw;
      object-fit: cover;
      display: block;
    }
  }
}
