/* Shared by every page: palette, type, layout width, header, and footer.
   Page styles live in pages.css (home, our story, our ceramics) and
   store.css (store, checkout, order complete). */

/* Layout rules below set display; keep the hidden attribute authoritative. */
[hidden] {
  display: none !important;
}

/* Pink header and footer, teal content bands, coral titles, cream text. */
:root {
  --pink: #fccac8;
  --teal: #33858a;
  --teal-ink: #33798a;
  --coral: #f86059;
  --coral-ink: #c2453c;
  --cream: #f5dd9f;
  --off-white: #f2ecec;
  --header-height: 100px;
  --gutter: 44px;
  /* Content is at most 1224px wide, centered, with gutters on small screens. */
  --page-width: min(100% - 2 * var(--gutter), 1224px);
  font-family: Raleway, Arial, sans-serif;
  color: #245666;
  background: var(--teal);
  font-synthesis: none;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--teal);
}

main {
  flex: 1;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.page-width {
  width: var(--page-width);
  margin-inline: auto;
}

/* Organic coral shapes behind photos and titles; each SVG sets its viewBox. */
.blob {
  display: block;
  fill: var(--coral);
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 18;
  background: var(--pink);
}

.site-header__inner {
  width: var(--page-width);
  height: var(--header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-logo {
  display: inline-flex;
  flex: none;
}

.site-logo img {
  display: block;
  width: 124px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-left: auto;
}

.site-nav a {
  font-weight: 500;
  font-size: 16px;
  color: var(--teal-ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--coral);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.cart-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 16px;
  color: var(--teal-ink);
  text-decoration: none;
  white-space: nowrap;
}

.cart-shortcut:hover {
  color: var(--coral);
}

.cart-shortcut span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  background: var(--coral);
  color: white;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: 12px;
  padding: 8px;
  border: 0;
  background: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--teal-ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---- Footer ---- */

.site-footer {
  background: var(--pink);
  color: var(--teal-ink);
}

.site-footer__inner {
  width: var(--page-width);
  min-height: 225px;
  margin-inline: auto;
  padding-block: 76px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px 64px;
  font: 500 24px/1.3 Raleway, Arial, sans-serif;
}

.site-footer p {
  margin: 0;
}

.site-footer__title {
  flex: 0 0 245px;
  font-weight: 700;
}

.site-footer__socials {
  display: grid;
  justify-items: center;
  gap: 16px;
}

.site-footer__socials a {
  display: inline-flex;
  color: var(--teal-ink);
}

.site-footer__socials svg path {
  fill: currentColor;
}

.site-footer__inner > a {
  color: var(--teal-ink);
  text-underline-offset: 5px;
}

/* ---- Narrow screens: collapsible menu, smaller gutters ---- */

@media (max-width: 920px) {
  :root {
    --header-height: 60px;
    --gutter: 32px;
  }

  .site-header__inner {
    gap: 0;
  }

  .site-logo img {
    width: 88px;
  }

  .menu-toggle {
    display: flex;
  }

  .cart-shortcut {
    margin-left: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--pink);
    box-shadow: 0 12px 20px #0000001a;
  }

  .site-nav + .menu-toggle {
    margin-left: auto;
  }

  .site-footer__inner {
    column-gap: 48px;
  }

  .site-footer__title {
    flex-basis: auto;
  }

  .site-header--open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 0;
    font-size: 18px;
  }

  .site-header--open .menu-toggle span:first-child {
    transform: translateY(8px) rotate(45deg);
  }

  .site-header--open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header--open .menu-toggle span:last-child {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 690px) {
  :root {
    --gutter: 24px;
  }

  .site-footer__inner {
    flex-direction: column;
    padding-block: 16px 36px;
    gap: 16px;
  }

  .site-footer__title {
    flex: none;
  }

  .site-footer__socials {
    justify-items: start;
    gap: 12px;
    font-size: 20px;
  }
}
