/*
@FONT-FACE DECLARATIONS
=======================
*/
/* eb-garamond-regular - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/eb-garamond-v32-latin_latin-ext-regular.woff2")
    format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* eb-garamond-500 - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/eb-garamond-v32-latin_latin-ext-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-regular - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/roboto-v51-latin_latin-ext-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* roboto-700italic - latin_latin-ext */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Roboto";
  font-style: italic;
  font-weight: 700;
  src: url("../fonts/roboto-v51-latin_latin-ext-700italic.woff2")
    format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/*
CUSTOM PROPERTIES
=================
*/

:root {
  --fw-regular: 400; /* EB Garamond, Roboto */
  --fw-medium: 500; /* EB Garamond */
  --fw-bold: 700; /* Roboto italic only */

  /* --fw-extra-light: 100; */
  /* --fw-light: 200; */
  /* --fw-book: 300; */
  /* --fw-semi-bold: 600; */
  /* --fw-extra-bold: 800; */
  /* --fw-black: 900; */

  --ff-heads: "EB Garamond", georgia, garamond, serif;
  --ff-body:
    Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif;

  --clr-primary: #002fa7;
  --clr-primary-tint: #ccd5ed;
  --clr-complement: #b46b09;
  --clr-tetrad: #b40987;
}

/*
CSS RESET
=========
*/

/*
GLOBAL CSS
==========
*/

/*
COMPOSITION
===========
*/

/*
UTILITIES
=========
*/

/*
BLOCKS
======
*/

/*
EXCEPTIONS
==========
*/
/*
GLOBAL ELEMENT STYLES
=====================
*/

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

*:not(dialog) {
  margin: 0;
  margin-block-start: 0;
  margin-block-end: 0;
}

html {
  scroll-padding-top: 134px;
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

body {
  display: flex;
  flex-direction: column;
  max-width: 68rem;
  min-height: 100vh;
  min-height: 100dvh;
  margin-inline: auto;
  padding-inline: clamp(1rem, 5vw, 2rem);
  font-weight: var(--fw-regular);
  font-size: clamp(1rem, 5vw, 1.125rem);
  font-family: var(--ff-body);
  line-height: 1.33;
  text-wrap: pretty;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  color: black;
  background-color: white;
}

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

h6,
h5,
h4,
h3,
h2,
h1 {
  font-weight: var(--fw-medium);
  font-family: var(--ff-heads);
  line-height: 1;
}

a {
  font-size: clamp(1rem, 5vw, 1.25rem);
  text-decoration: none;
  padding-block: 0.75rem;
  padding-inline: 1rem;
  outline-color: transparent;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--clr-primary);
  transition: color 0.3s ease;
}

a:link {
  color: var(--clr-primary);
}

a:visited {
  color: var(--clr-primary);
}

a:focus {
  outline-color: var(--clr-tetrad);
}

a:hover {
  color: var(--clr-complement);
}

a:active {
  color: var(--clr-tetrad);
}

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

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

/* Remove list styles while retaining semantics for Apple VoiceOver; must add role in HTML */
dl[role="list"],
ol[role="list"],
ul[role="list"] {
  list-style: none;
}

/*
UTILITIES
=========
*/

.col-width-78 {
  max-width: 40rem;
  margin-inline: auto;
}

.mrgn-block-end_01 {
  margin-block-end: 1rem;
}

.mrgn-block-end_02 {
  margin-block-end: 2rem;
}

.mrgn-block-end_03 {
  margin-block-end: 5rem;
}

.txt-center {
  text-align: center;
}

.no-break {
  white-space: nowrap;
}

/*
COMPONENTS
==========
*/

.flex {
  display: flex;
  flex-direction: column;
  gap: clamp(0.8rem, 4vw, 1rem);
}

.heading-style_01 {
  font-size: clamp(2rem, 10vw, 3rem);
}

.heading-style_02 {
  font-size: clamp(2rem, 10vw, 2.5rem);
}

.heading-style_03 {
  font-size: clamp(1.6rem, 8vw, 2rem);
}

.heading-style_04 {
  font-size: clamp(1.2rem, 6vw, 1.5rem);
}

.para-price {
  font-weight: var(--fw-medium);
  font-size: 1.375rem;
  font-family: var(--ff-heads);
}

.food-allergy-warning {
  font-weight: var(--fw-bold);
  letter-spacing: 0.03em;
  color: teal;
}

.nav-mobile-icon {
  display: block;
  width: 2.75rem;
  min-width: 44px;
  aspect-ratio: 1;
  align-self: self-start;
  margin-block-start: -11px;
  padding-inline-end: 1rem;
  border: none;
  background: none;
  background-image: url(../assets/bars-solid-full.svg);
  background-repeat: no-repeat;
  cursor: pointer;
}

.menu-close {
  display: block;
  position: absolute;
  top: calc(2rem + env(safe-area-inset-top));
  right: clamp(0.5rem, 5vw, 3rem);
  width: 2rem;
  aspect-ratio: 1;
  border: none;
  background: none;
  background-image: url(../assets/xmark-solid-full.svg);
  cursor: pointer;
}

.separator {
  width: clamp(3rem, 15vw, 4rem);
  margin-block: 3rem;
  margin-inline: auto;
}
/*
GLOBAL PAGE LAYOUT AND STYLING
==============================
*/

header {
  display: grid;
  grid-template-columns: 1fr min-content;
  grid-template-rows: 1fr auto;
  column-gap: 1rem;
  row-gap: 1rem;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 9999;
  align-items: start;
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgb(0 0 0 / 0.5);
  background-color: white;

  & .logo {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    padding-inline: 0;
    padding-block: 0;
  }

  & h2 {
    grid-column: 1 / -1;
    grid-row: 2 / -1;
    font-weight: var(--fw-medium);
    font-size: clamp(1rem, 5vw, 1.25rem);
    font-family: var(--ff-heads);
    letter-spacing: 0.04em;
  }

  & nav {
    grid-column: 2 / 3;
    grid-row: 1 / -1;
  }
}
.logo img {
  width: 100%;
  max-width: 288px;
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: fixed;
  top: 0;
  right: -100%;
  transition: right 0.3s ease-in-out;
  width: 100%;
  min-height: 40dvh;
  z-index: 1000;
  padding-top: calc(env(safe-area-inset-top) + 60px);
  background-color: white;
}

/* Show fly-out menu when hamburger menu is clicked by default for mobile-first design */
.nav-links.is-active {
  right: 0;
}

.nav-links a,
.btn {
  padding-block: 0.75rem;
  padding-inline: 1rem;
}

@media (min-width: 800px) {
  .nav {
    align-self: flex-end;
  }

  /* Show links */
  .nav-links {
    position: static;
    gap: 2rem;
    width: auto;
    min-height: 0;
    flex-direction: row;
    padding-top: 0;
    background-color: transparent;
    transition: none;
  }

  .nav-links a {
    padding: 0;
  }

  /* Hide hamburger menu and fly-out menu-close X */
  .nav-mobile-icon,
  .menu-close {
    display: none;
  }
}

.subheader {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-block: 1.5rem;

  @media (min-width: 768px) {
    flex-direction: row;
    gap: 1rem;
  }
}

.subheader > p {
  margin: 0;
  font-variant: small-caps;
  font-weight: var(--fw-medium);
  font-size: 1.125rem;
  font-family: var(--ff-heads);
  letter-spacing: 0.1em;
  text-align: center;
}

.subheader > img {
  width: 1.5rem;
  padding-block: 0.35em;
}

footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-block-start: 4.5rem;
  padding-block-start: 1.5rem;
  padding-block-end: 4.5rem;
  border-top: 1px solid rgba(0 0 0 / 0.2);
}

@media (min-width: 720px) {
  footer {
    flex-direction: row;
    align-items: baseline;
    gap: 2rem;
  }

  footer a {
    margin: 0;
    margin-inline-start: 6rem;
  }
}
footer h2 {
  font-size: clamp(1rem, 5vw, 1.125rem);
  font-family: var(--ff-body);
  letter-spacing: 0.05em;
}

footer a {
  margin-block-start: 1.5rem;
  padding: 0;
  text-decoration: underline;
  text-transform: unset;
}

footer address p {
  font-style: normal;
  font-weight: var(--fw-regular);
  font-family: var(--ff-body);
}

/*
CUSTOM PAGE LAYOUTS AND STYLING
===============================
*/

/* Home page */

#start-here {
  padding: 2rem;
  border: 3px solid black;
  border-radius: 2rem;
}

.hero {
  display: grid;
  grid-template-columns: 0.62fr 1fr;
  grid-template-rows: 0.8fr 0.6fr 1fr;
  margin-bottom: 3rem;

  & picture {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
  }

  & h1 {
    grid-column: 2 / -1;
    grid-row: 1 / 2;
    align-self: center;
    padding-inline-end: clamp(0.5rem, 2.5vw, 1rem);
    font-size: clamp(1.375rem, 6.875vw, 3rem);
  }

  & .hero-buttons {
    grid-column: 2 / -1;
    grid-row: 3 / 4;
    display: inline-flex;
    flex-direction: column;
    gap: clamp(1rem, 5vw, 2rem);
    align-items: center;
  }
}

.hero img {
  width: 100%;
}

.hero-buttons a {
  margin: 0;
  padding-block: clamp(0.45rem, 2.25vw, 0.75rem);
  padding-inline: clamp(0.6rem, 3vw, 1rem);
  font-size: clamp(0.875rem, 4.375vw, 1.25rem);
}

/* About page */

.about {
  display: grid;

  & img {
    width: 100%;
    max-width: 372px;
    height: auto;
    margin-inline: auto;
    margin-block-end: 2rem;
  }

  & h1 {
    text-align: center;
  }
}

@media (min-width: 720px) {
  .about {
    grid-template-columns:
      minmax(234px, 0.62fr)
      1fr;
    gap: 3rem;
    align-items: start;

    & img {
      max-width: 100%;
      margin: 0;
    }

    & h1 {
      text-align: left;
    }
  }
}

/*
BASE STYLES
=============
*/

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  border: 2px solid var(--clr-primary);
  border-radius: 1rem;
  text-align: center;
  background-color: white;
}
