@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@300;400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --flour: #f7efe6;
  --cream: #fff8f0;
  --wood: #3d2a1f;
  --wood-soft: #5a4032;
  --mustard: #d4a017;
  --mustard-deep: #b8860b;
  --muted: #7a6556;
  --line: rgba(61, 42, 31, 0.14);
  --hero-shade: linear-gradient(
    115deg,
    rgba(61, 42, 31, 0.78) 0%,
    rgba(61, 42, 31, 0.38) 50%,
    rgba(61, 42, 31, 0.1) 100%
  );
  --font: 'Anuphan', sans-serif;
  --heading: 'Anuphan', sans-serif;
  --brand: 'Fraunces', 'Anuphan', Georgia, serif;
  --mono: 'IBM Plex Mono', 'Anuphan', monospace;
  --max: 1120px;
  --nav-h: 76px;
  --demo-h: 48px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--wood);
  background: var(--flour);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Demo bar */
.demo-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 1.25rem;
  background: var(--wood);
  color: var(--cream);
  font-size: 0.82rem;
}

.demo-bar strong {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: #e2c48a;
}

.demo-bar__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.demo-bar a {
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 248, 240, 0.25);
  font-size: 0.78rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), border-color 0.2s;
}

.demo-bar a:hover {
  background: rgba(255, 248, 240, 0.1);
  border-color: rgba(255, 248, 240, 0.5);
}

.demo-bar a.is-primary {
  background: var(--mustard);
  border-color: var(--mustard);
  color: var(--wood);
}

.demo-bar a.is-primary:hover {
  background: var(--mustard-deep);
  border-color: var(--mustard-deep);
  color: var(--cream);
}

/* Header */
.site-header {
  position: absolute;
  top: var(--demo-h);
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
}

.site-header.is-solid {
  position: fixed;
  top: var(--demo-h);
  background: rgba(61, 42, 31, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 248, 240, 0.08);
  animation: drop 0.35s var(--ease);
}

@keyframes drop {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.brand {
  font-family: var(--brand);
  font-style: italic;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cream);
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.brand small {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 400;
}

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

.nav a {
  color: rgba(255, 248, 240, 0.88);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--mustard);
}

.nav .nav-cta {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 248, 240, 0.35);
}

.nav .nav-cta:hover {
  border-color: var(--mustard);
  background: rgba(212, 160, 23, 0.18);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 248, 240, 0.4);
  background: transparent;
  color: var(--cream);
  padding: 0.4rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--mustard {
  background: var(--mustard);
  color: var(--wood);
  border-color: var(--mustard);
}

.btn--mustard:hover {
  background: var(--mustard-deep);
  border-color: var(--mustard-deep);
  color: var(--cream);
}

.btn--ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(255, 248, 240, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 248, 240, 0.12);
}

.btn--ink {
  background: var(--wood);
  color: var(--cream);
  border-color: var(--wood);
  width: 100%;
}

.btn--ink:hover {
  background: var(--mustard);
  border-color: var(--mustard);
  color: var(--wood);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Hero — bright bakery full-bleed */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--cream);
  overflow: hidden;
  background: var(--wood);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.07);
  animation: kenburns 20s var(--ease) forwards;
  filter: brightness(1.05) saturate(1.05);
}

@keyframes kenburns {
  to {
    transform: scale(1);
  }
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-shade);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 2.5rem) 0 4.75rem;
  max-width: 36rem;
}

.hero__content .brand-mark {
  font-family: var(--brand);
  font-style: italic;
  font-size: clamp(4rem, 11vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.9;
  margin-bottom: 1.15rem;
  animation: rise 0.9s var(--ease) both;
}

.hero h1 {
  font-family: var(--heading);
  font-size: clamp(1.2rem, 2.3vw, 1.45rem);
  font-weight: 500;
  line-height: 1.45;
  max-width: 28ch;
  color: rgba(255, 248, 240, 0.94);
  margin-bottom: 0.9rem;
  animation: rise 0.9s var(--ease) 0.1s both;
}

.hero__lead {
  font-size: 0.98rem;
  color: rgba(255, 248, 240, 0.72);
  max-width: 34ch;
  margin-bottom: 1.75rem;
  animation: rise 0.9s var(--ease) 0.18s both;
}

.hero .btn-row {
  animation: rise 0.9s var(--ease) 0.28s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: 5.5rem 0;
}

.section__head {
  margin-bottom: 2.5rem;
  max-width: 38rem;
}

.section__head .eyebrow,
.hours .eyebrow,
.visit__info .eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mustard-deep);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.section__head h2,
.hours h2,
.visit__info h2 {
  font-family: var(--heading);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  color: var(--wood);
}

.section__head p,
.visit__info > p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Pastry grid */
.pastries {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212, 160, 23, 0.12), transparent 50%),
    var(--cream);
}

.pastry-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.1rem;
}

.pastry {
  margin: 0;
  position: relative;
  overflow: hidden;
  min-height: 260px;
  background: var(--flour);
}

.pastry--hero {
  grid-row: span 2;
  min-height: 540px;
}

.pastry img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease);
}

.pastry:hover img {
  transform: scale(1.05);
}

.pastry figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 1.4rem;
  background: linear-gradient(transparent, rgba(61, 42, 31, 0.88));
  color: var(--cream);
}

.pastry figcaption h3 {
  font-family: var(--brand);
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.pastry figcaption p {
  font-size: 0.88rem;
  opacity: 0.85;
}

.pastry figcaption span {
  display: inline-block;
  margin-top: 0.55rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: #f0d48a;
}

.pastry--text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  gap: 0.35rem;
  background: var(--mustard);
  color: var(--wood);
  min-height: 260px;
  transition: transform 0.3s var(--ease);
}

.pastry--text:hover {
  transform: translateY(-3px);
}

.pastry--text h3 {
  font-family: var(--brand);
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 600;
}

.pastry--text p {
  font-size: 0.9rem;
  opacity: 0.85;
}

.pastry--text span {
  font-family: var(--mono);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.pastry--cream {
  background: var(--flour);
  color: var(--wood);
  border: 1px solid var(--line);
}

.pastry--wood {
  background: var(--wood);
  color: var(--cream);
}

.pastry--wood span {
  color: #f0d48a;
}

/* Atmosphere gallery */
.gallery-section {
  background: var(--cream);
  padding-bottom: 4rem;
}

.gallery-bloom {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.atm-gallery {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-rows: repeat(3, minmax(160px, 20vw));
  gap: 0.65rem;
}

.atm-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 1.1rem 0.4rem 1rem 0.65rem;
  background: var(--flour);
  min-height: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.atm-item.is-in {
  opacity: 1;
  transform: none;
}

.atm-item:nth-child(1) {
  grid-column: 1;
  grid-row: 1 / 3;
  border-radius: 1.35rem 0.5rem 0.85rem 1.15rem;
}

.atm-item:nth-child(2) { grid-column: 2; grid-row: 1; }
.atm-item:nth-child(3) { grid-column: 3; grid-row: 1; }
.atm-item:nth-child(4) { grid-column: 2; grid-row: 2; }
.atm-item:nth-child(5) { grid-column: 3; grid-row: 2; }
.atm-item:nth-child(6) {
  grid-column: 1 / 4;
  grid-row: 3;
  border-radius: 0.85rem 1.2rem 0.7rem 1rem;
}

.atm-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.96);
  transition: transform 0.85s var(--ease), filter 0.4s;
}

.atm-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.05);
}

.atm-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.05rem 1.1rem;
  background: linear-gradient(transparent, rgba(61, 42, 31, 0.78));
  color: var(--cream);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Daily bake list */
.bake {
  background: var(--wood);
  color: var(--cream);
  padding: 5rem 0;
}

.bake .section__head .eyebrow {
  color: #e2c48a;
}

.bake .section__head h2 {
  color: var(--cream);
}

.bake .section__head p {
  color: rgba(255, 248, 240, 0.65);
}

.bake__inner {
  max-width: 720px;
}

.bake-list {
  list-style: none;
  display: grid;
  counter-reset: bake;
  border-top: 1px solid rgba(255, 248, 240, 0.15);
}

.bake-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 248, 240, 0.15);
  align-items: baseline;
  transition: padding-left 0.25s var(--ease);
}

.bake-list li:hover {
  padding-left: 0.4rem;
}

.bake-list__time {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--mustard);
  letter-spacing: 0.04em;
}

.bake-list strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 600;
}

.bake-list em {
  font-style: normal;
  font-size: 0.88rem;
  color: rgba(255, 248, 240, 0.6);
}

/* Morning hours */
.hours {
  padding: 4.5rem 0;
  background:
    linear-gradient(180deg, var(--cream), var(--flour));
  border-bottom: 1px solid var(--line);
}

.hours__panel {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.hours__list {
  list-style: none;
  display: grid;
  gap: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 0.5rem 1.5rem;
}

.hours__list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
}

.hours__list li:last-child {
  border-bottom: none;
}

.hours__list span {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}

.hours__list strong {
  font-weight: 600;
  color: var(--wood);
  text-align: right;
}

/* Visit / reserve */
.visit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--flour);
}

.visit__info {
  padding: 4.5rem 3rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(212, 160, 23, 0.16), transparent 45%),
    var(--cream);
}

.visit__info > p {
  margin-bottom: 2rem;
  max-width: 36ch;
}

.info-list {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.info-list li {
  display: grid;
  gap: 0.15rem;
}

.info-list span {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-list strong {
  font-weight: 600;
  font-size: 1.02rem;
}

.visit__form {
  padding: 4.5rem 3rem;
  border-left: 1px solid var(--line);
  background: var(--flour);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--cream);
  padding: 0.75rem 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  color: var(--wood);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--mustard);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

/* Footer */
.site-footer {
  background: var(--wood);
  color: rgba(255, 248, 240, 0.72);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer__grid .brand {
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.footer__grid h4 {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e2c48a;
  margin-bottom: 0.85rem;
}

.footer__grid a {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.footer__grid a:hover {
  color: var(--mustard);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 248, 240, 0.12);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero__media img {
    transform: none;
  }
}

/* Responsive */
@media (max-width: 980px) {
  .pastry-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pastry--hero {
    grid-column: span 2;
    grid-row: auto;
    min-height: 360px;
  }
}

@media (max-width: 900px) {
  .hours__panel,
  .visit,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .visit__form {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .visit__info,
  .visit__form {
    padding: 3rem 1.5rem;
  }

  .atm-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(160px, 34vw);
    gap: 0.5rem;
  }

  .atm-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: auto;
    min-height: 230px;
  }

  .atm-item:nth-child(n + 2) {
    grid-column: auto;
    grid-row: auto;
  }

  .atm-item:nth-child(6) {
    grid-column: 1 / 3;
  }
}

@media (max-width: 720px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--wood);
    padding: 0.5rem 1.25rem 1rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 248, 240, 0.12);
    color: var(--cream);
  }

  .nav .nav-cta {
    border: none;
    margin-top: 0.35rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .pastry-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .pastry--hero {
    grid-column: auto;
    min-height: 320px;
  }

  .bake-list li {
    grid-template-columns: 4.5rem 1fr;
  }

  .demo-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .wrap {
    width: min(100% - 1.5rem, var(--max));
  }

  .hero__content {
    padding-bottom: 3.25rem;
  }

  .hours__list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .hours__list strong {
    text-align: left;
  }
}
