/* =========================================================
   COLOR PALETTE
   Change these variables to completely change the look.
   ========================================================= */

:root {
  --color-background: #e8e3dc;
  --color-surface: #f5f2ed;
  --color-surface-dark: #d8d1c7;

  --color-text: #403c37;
  --color-text-light: #756f67;

  --color-accent: #665f56;
  --color-accent-hover: #4f4942;

  --color-border: #c9c1b6;

  --color-white: #ffffff;
}

/* =========================================================
   RESET / BASE
   ========================================================= */

@font-face {
  font-family: "NerkoOne";
  src: url("NerkoOne-Regular.ttf");
}
@keyframes toggleLight {
  0% {
    fill: red;
  }
  100% {
    fill: #fff;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  line-height: 1.6;
}

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

a {
  color: inherit;
}

/* =========================================================
   PAGE
   ========================================================= */

.site {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 75vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;

  padding: 3em 1em;
}

/* Logo */

.logo {
  position: relative;
  width: min(360px, 80vw);
  margin-bottom: 1em;
}

.logo h1 {
  position: absolute;
  top: 0.8em;
  left: 1.1em;
  width: min(360px, 80vw);
  font-family: NerkoOne;
  font-size: 4em;
}

.logo h1 span.prefix {
  position: absolute;
  top: 1.25em;
  left: -1em;
  font-size: 0.3em;
  vertical-align: text-top;
}

.logo small {
  display: block;
  position: relative;
  top: -1.65em;
  left: 2em;
  font-size: 1em;
  font-family: serif;
  font-style: italic;
  color: gray;
}

#light_1 path {
  animation: toggleLight 1s steps(2, jump-start) infinite alternate;
}

#light_2 path {
  animation: toggleLight 1s steps(2, jump-start) infinite alternate-reverse;
}

/* Store information */

.store-info h1 {
  margin: 0 0 5px;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: normal;
}

.tagline {
  margin: 0 0 30px;
  color: var(--color-text-light);
  font-style: italic;
}

address {
  margin-bottom: 12px;
  font-style: normal;
}

.phone {
  display: inline-block;

  font-size: 1.25rem;
  font-weight: 600;

  text-decoration: none;

  border-bottom: 1px solid var(--color-accent);
}

/* Hours */

.hours {
  margin-top: 2em;
}

.hours h2 {
  margin: 0 0 0.75em;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: normal;
}

.hours dl {
  margin: 0;
}

.hours dl > div {
  display: flex;
  justify-content: center;
  gap: 1em;
}

.hours dt,
.hours dd {
  margin: 0;
}

.hours dt {
  font-weight: 600;
}

.hours dd {
  color: var(--color-text-light);
}

/* =========================================================
   FEATURED PRODUCTS
   ========================================================= */

.featured {
  padding: 5em 0;
  border-top: 1px solid var(--color-border);
}

.section-heading {
  text-align: center;
  margin-bottom: 3em;
}

.section-heading span {
  display: block;

  color: var(--color-text-light);

  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0.1em 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: normal;
}

.section-heading p {
  margin: 0;
  color: var(--color-text-light);
}

/* Product grid */

.products {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));

  gap: 1.5em;
}

/* Product card */

.product {
  overflow: hidden;

  background: var(--color-surface);

  border: 1px solid var(--color-border);

  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.product:hover {
  transform: translateY(-0.3em);

  box-shadow: 0 1em 1.5em rgba(0, 0, 0, 0.08);
}

/* Product image */

.product-image {
  aspect-ratio: 1 / 1;

  overflow: hidden;

  background: var(--color-surface-dark);
}

.product-image img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* Product information */

.product-details {
  padding: 1em;
}

.product h3 {
  margin: 0 0 0.5em;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: normal;
}

.description {
  margin: 0 0 12px;

  color: var(--color-text-light);

  font-size: 0.9rem;
}

.price {
  margin: 0;

  font-weight: 700;
  font-size: 1.1rem;
}

/* =========================================================
   ORDER CALLOUT
   ========================================================= */

.order {
  margin: 2em 0 3em;
  padding: 3em 2em;

  text-align: center;

  background: var(--color-surface-dark);
}

.order h2 {
  margin: 0;

  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: normal;
}

.order p {
  margin: 1em 0 1.5em;
  color: var(--color-text-light);
}

/* Phone button */

.order-button {
  display: inline-block;

  padding: 1em 2em;

  background: var(--color-accent);
  color: var(--color-white);

  text-decoration: none;

  font-weight: 600;

  transition: background 150ms ease;
}

.order-button:hover {
  background: var(--color-accent-hover);
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
  padding: 2em 0;

  border-top: 1px solid var(--color-border);

  text-align: center;

  color: var(--color-text-light);
  font-size: 0.8rem;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .site {
    width: min(100% - 28px, 1100px);
  }

  .hero {
    min-height: auto;
    padding: 65px 10px;
  }

  .logo {
    margin-bottom: 35px;
    font-size: 0.8em;
  }

  .logo h1 {
    top: 1.3em;
  }

  .logo h1 span.prefix {
    left: 0;
  }

  .logo small {
    font-size: 1.1em;
    top: -2.5em;
    left: 2.5em;
  }

  .hours dl > div {
    flex-direction: column;
    gap: 0;
    margin-bottom: 8px;
  }

  .featured {
    padding: 60px 0;
  }

  .products {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .product-details {
    padding: 14px;
  }

  .product h3 {
    font-size: 1.1rem;
  }

  .order {
    margin-bottom: 60px;
    padding: 45px 20px;
  }
}

@media (max-width: 400px) {
  .products {
    grid-template-columns: 1fr;
  }
}
