/* Jae's Cakes — main site.
   Same tokens as the ordering pages: blush paper, berry for the brand and every
   primary action, caramel for anything countable, pistachio for a good state. */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--berry-deep);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ------------------------------------------------------------------ header */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 237, 229, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #fff;
  flex: none;
}

.brand__name {
  display: block;
  font-family: var(--display);
  font-size: 1.06rem;
  line-height: 1.1;
}

.brand__sub {
  display: block;
  font-size: 0.688rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav__link {
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.nav__link:hover,
.nav__link.is-current {
  color: var(--berry-deep);
  border-bottom-color: var(--berry);
}

.nav__cta {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  background: var(--berry);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s var(--ease);
}

.nav__cta:hover {
  background: var(--berry-deep);
  color: #fff;
}

/* Phone menu button, hidden on wide screens. */
.navtoggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------------- shell */

main {
  flex: 1;
  width: 100%;
}

.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wrap--narrow {
  max-width: 46rem;
}

.section {
  padding: 4.5rem 0;
}

.section--tint {
  background: var(--paper-deep);
}

.section__head {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section__title {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  margin-top: 0.55rem;
}

.section__lede {
  margin-top: 0.9rem;
  color: var(--ink-soft);
}

/* -------------------------------------------------------------------- hero */

.hero {
  padding: 4.5rem 0 3rem;
  text-align: center;
}

.hero__title {
  font-size: clamp(2.6rem, 7.5vw, 4.5rem);
  letter-spacing: -0.028em;
  max-width: 18ch;
  margin: 0.9rem auto 0;
}

.hero__lede {
  margin: 1.15rem auto 0;
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

/* --------------------------------------------------------------- the reel */
/* A horizontal run of bakes that scrolls with a snap, so it reads as a shelf
   rather than a grid of thumbnails. */

.reel {
  display: flex;
  gap: 1.15rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-left: 1.25rem;
  padding: 0.5rem 1.25rem 1.5rem;
  scrollbar-width: none;
}

.reel::-webkit-scrollbar {
  display: none;
}

.reel__item {
  flex: none;
  width: min(21rem, 76vw);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.reel__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.reel__caption {
  padding: 0.85rem 1.1rem;
  font-size: 0.938rem;
  color: var(--ink-soft);
}

.reelnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.reelnav__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  transition: border-color 0.15s var(--ease), color 0.15s var(--ease);
}

.reelnav__btn:hover:not(:disabled) {
  border-color: var(--berry);
  color: var(--berry-deep);
}

.reelnav__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ------------------------------------------------------------------- about */

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}

.about__figure {
  margin: 0;
}

.about__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.about__body p {
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.about__body p:last-child {
  margin-bottom: 0;
}

.about__sign {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--berry-deep);
}

/* -------------------------------------------------------------- what I make */

/* Six things, so three across reads better than four-then-two. */
.makes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1rem;
}

.make {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.make__name {
  font-size: 1.19rem;
  margin-bottom: 0.35rem;
}

.make__text {
  font-size: 0.938rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------- faq */

.faq {
  max-width: 46rem;
  margin: 0 auto;
}

.faq__item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q:hover {
  color: var(--berry-deep);
}

.faq__chev {
  flex: none;
  color: var(--berry);
  transition: transform 0.2s var(--ease);
}

.faq__item[open] .faq__chev {
  transform: rotate(180deg);
}

.faq__a {
  padding: 0 1.25rem 1.15rem;
  color: var(--ink-soft);
  font-size: 0.978rem;
}

/* ----------------------------------------------------------------- contact */

.contact {
  text-align: center;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 2.25rem;
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.938rem;
  text-decoration: none;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.social:hover {
  border-color: var(--berry);
  color: var(--berry-deep);
  transform: translateY(-1px);
}

.social svg {
  flex: none;
}

.contact__card {
  max-width: 34rem;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact__email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin: 0.6rem 0 0.2rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: clamp(1rem, 3vw, 1.31rem);
  color: var(--berry-deep);
  word-break: break-word;
  transition: background 0.15s var(--ease);
}

.contact__email:hover {
  background: var(--berry-wash);
}

.contact__note {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.hours__title {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hours {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 2.5rem;
  justify-content: center;
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.hours dt {
  color: var(--muted);
}

.hours dd {
  margin: 0;
  font-family: var(--mono);
}

/* ------------------------------------------------------------------- menu */

.menugroup {
  margin-bottom: 3.5rem;
}

.menugroup__head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-strong);
}

.menugroup__title {
  font-size: 1.75rem;
}

.menugroup__note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-left: auto;
}

/* Name, then description — the hierarchy a printed menu uses. */
.menulist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menuitem {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem;
}

.menuitem__name {
  font-family: var(--display);
  font-size: 1.19rem;
  font-weight: 500;
  line-height: 1.2;
}

.menuitem__desc {
  margin-top: 0.4rem;
  font-size: 0.938rem;
  color: var(--ink-soft);
}

/* Flavor lists are long, so they are chips rather than another card grid. */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chip {
  padding: 0.44rem 0.9rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.menunote {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.75rem 1.5rem;
  background: var(--berry-wash);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.938rem;
  color: var(--ink-soft);
}

.menunote__list {
  margin: 0;
  padding-left: 1.25rem;
  text-align: left;
}

.menunote__list li + li {
  margin-top: 0.5rem;
}

/* A button rather than a link buried in the sentence — it is the only way to
   reach her from this page. */
.menunote__cta {
  margin-top: 1.15rem;
  min-height: 46px;
  font-family: var(--mono);
  font-size: 0.938rem;
}

/* ------------------------------------------------------------------ footer */

.foot {
  border-top: 1px solid var(--line);
  background: var(--paper-deep);
  margin-top: auto;
}

.foot__inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
}

.foot__name {
  font-family: var(--display);
  font-size: 1.19rem;
}

.foot__tag {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.3rem;
  max-width: 22rem;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.875rem;
  align-items: flex-start;
}

.foot__legal {
  flex-basis: 100%;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1.25rem;
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about__figure {
    max-width: 20rem;
    margin: 0 auto;
  }
}

@media (max-width: 820px) {
  .navtoggle {
    display: flex;
  }

  /* The nav becomes a sheet under the header rather than a cramped row. */
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav[hidden] {
    display: none !important;
  }

  .nav__link {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .nav__link:hover,
  .nav__link.is-current {
    border-bottom-color: var(--line);
  }

  .nav__cta {
    margin-top: 0.85rem;
    text-align: center;
    padding: 0.8rem 1.05rem;
    font-size: 0.938rem;
  }

  .masthead__inner {
    padding: 0.55rem 1rem;
    position: relative;
  }

  .brand__sub {
    display: none;
  }

  .section {
    padding: 3.25rem 0;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .foot__inner {
    flex-direction: column;
    gap: 1.25rem;
  }

  .reel__item {
    width: min(17rem, 46vw);
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 1rem;
  }

  .reel {
    padding-left: 1rem;
    padding-right: 1rem;
    scroll-padding-left: 1rem;
    gap: 0.85rem;
  }

  .reel__item {
    width: 66vw;
  }

  .reel__caption {
    padding: 0.7rem 0.9rem;
    font-size: 0.875rem;
  }

  .contact__card {
    padding: 1.5rem 1.25rem;
  }

  .menulist {
    grid-template-columns: 1fr;
  }

  .menugroup__head {
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .menugroup__note {
    margin-left: 0;
    flex-basis: 100%;
  }
}
