/* ====================================================================
   Asha's Bakery — design system
   --------------------------------------------------------------------
   Type stack uses system serifs only — no webfonts — so the site
   renders identically on the iframe preview and on a *.pages.dev
   branch URL without depending on a font CDN.
   ==================================================================== */

:root {
  /* palette — warm cream + ember + ink */
  --paper:        #f9f4ec;
  --paper-2:      #f1e9d8;
  --linen:        #ece1c8;
  --ink:          #2a1f17;
  --ink-soft:     #4a3a2c;
  --ink-mute:     #6b5644;
  --ember:        #b35723;
  --ember-2:      #c46a36;
  --ember-soft:   #e9c39c;
  --line:         #e2d6c4;
  --accent:       #b35723;

  /* type */
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua",
           Palatino, Georgia, ui-serif, serif;
  --display: "Cormorant Garamond", "Playfair Display", "Iowan Old Style",
             "Palatino Linotype", Georgia, ui-serif, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Inter", "Helvetica Neue",
          Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;

  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 1px 0 rgba(42,31,23,0.04), 0 12px 32px -16px rgba(42,31,23,0.18);
}

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

html { scroll-behavior: smooth; }

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ember); }
ul { list-style: none; }
em { font-style: italic; color: var(--ember); }

/* ====================================================================
   MASTHEAD
   ==================================================================== */

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(249, 244, 236, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.masthead__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__name {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.masthead nav { display: flex; gap: 28px; justify-content: center; }
.masthead nav a {
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.masthead nav a:hover { color: var(--ember); }
.masthead nav a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%;
  bottom: 0;
  height: 1px;
  background: var(--ember);
  transition: left 0.25s ease, right 0.25s ease;
}
.masthead nav a:hover::after { left: 0; right: 0; }
.order {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.order:hover { background: var(--ink); color: var(--paper); }

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

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.eyebrow--accent { color: var(--ember); }
.muted { color: var(--ink-mute); font-family: var(--sans); font-size: 0.9rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}
.btn--solid {
  background: var(--ink);
  color: var(--paper);
}
.btn--solid:hover { background: var(--ember); color: var(--paper); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 96px;
}

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

.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero h1 em { font-style: italic; }
.hero .lede {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 480px;
}
.hero__cta {
  margin-top: 32px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero__meta {
  margin-top: 28px;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2faa6a;
  box-shadow: 0 0 0 4px rgba(47, 170, 106, 0.18);
  display: inline-block;
}
.hero__art {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.hero__art svg { display: block; }
.hero__art figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 18px;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--ink-mute);
  background: linear-gradient(to top, rgba(249,244,236,0.94), rgba(249,244,236,0));
  letter-spacing: 0.02em;
}

/* ====================================================================
   TODAY'S BAKE
   ==================================================================== */

.today {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  padding: 80px 0 88px;
  border-bottom: 1px solid var(--line);
}
.today__card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 48px 48px 44px;
  position: relative;
  overflow: hidden;
}
.today__card::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(229,165,86,0.18), transparent 65%);
  pointer-events: none;
}
.today__card .eyebrow--accent { color: var(--ember-soft); }
.today__card h2 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.today__card h2 em { color: var(--ember-soft); }
.today__body {
  margin-top: 18px;
  color: rgba(249, 244, 236, 0.82);
  max-width: 520px;
  font-size: 1.05rem;
}
.today__stats {
  margin: 32px 0 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-top: 1px solid rgba(249, 244, 236, 0.12);
  padding-top: 22px;
}
.today__stats > div { display: flex; flex-direction: column; gap: 4px; }
.today__stats dt {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(249, 244, 236, 0.55);
}
.today__stats dd {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--paper);
}
.today__cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.today__cta .btn--solid {
  background: var(--paper);
  color: var(--ink);
}
.today__cta .btn--solid:hover { background: var(--ember-soft); color: var(--ink); }
.today__cta .muted { color: rgba(249, 244, 236, 0.55); }

.today__side {
  padding: 8px 4px;
}
.side-label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.side-list li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-family: var(--sans);
  font-size: 0.95rem;
}
.side-list li:last-child { border-bottom: none; }
.side-list li span:first-child {
  font-family: var(--display);
  font-weight: 600;
  color: var(--ember);
  letter-spacing: 0.04em;
}
.side-list li span:last-child { color: var(--ink-soft); }

/* ====================================================================
   MENU
   ==================================================================== */

.menu { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 48px; }
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.section-sub {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink-mute);
}
.menu__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 64px;
}
.menu-col h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ember);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.menu-list li {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.menu-list li:last-child { border-bottom: none; }
/* .name holds the title + a description below. We cap it at ~64%
   of the column so the price column stays anchored to the right
   edge even when the description is long enough to wrap. */
.menu-list .name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 0 1 64%;
  min-width: 0;
  max-width: 64%;
}
.menu-list .name strong,
.menu-list .name {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
}
.menu-list .name small {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-mute);
  letter-spacing: 0;
  /* allow description to wrap inside the capped name column */
  word-break: normal;
  overflow-wrap: break-word;
}
/* dotted leader — render as a row of dots via radial gradient so it works
   on an empty flex item (CSS border-bottom:dotted fails when the
   element has no content height to attach a border to). */
.menu-list .dots {
  flex: 1 1 auto;
  align-self: flex-end;
  height: 1.5em;
  min-width: 24px;
  margin: 0 0 0.45em 0;
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1px);
  background-size: 6px 6px;
  background-repeat: repeat-x;
  background-position: bottom left;
}
.menu-list .price {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ember);
  flex: 0 0 auto;
  white-space: nowrap;
  /* keep prices in a hard column, independent of where the description
     wraps — important when description length varies between items */
  text-align: right;
  min-width: 4ch;
}

/* ====================================================================
   STORY
   ==================================================================== */

.story {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 72px;
  padding: 88px 0;
  border-bottom: 1px solid var(--line);
}
.story__copy h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.story__copy h2 em { color: var(--ember); }
.story__copy p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 1.08rem;
  max-width: 580px;
}
.story__sig {
  font-family: var(--display);
  font-style: italic;
  color: var(--ink-mute);
  margin-top: 28px;
  font-size: 1rem;
}
.story__pull {
  background: var(--paper-2);
  border-left: 3px solid var(--ember);
  border-radius: var(--radius-sm);
  padding: 36px 32px;
  align-self: start;
}
.pullquote {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pullsource {
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* ====================================================================
   VISIT
   ==================================================================== */

.visit {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  padding: 88px 0 96px;
}
.visit__card {
  background: var(--linen);
  border-radius: var(--radius);
  padding: 48px 48px 44px;
}
.visit__card h2 {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.visit__hours {
  margin: 24px 0 28px;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.visit__hours strong { color: var(--ember); font-weight: 600; }
.visit__lines {
  border-top: 1px solid rgba(42, 31, 23, 0.15);
  padding-top: 18px;
  margin-bottom: 32px;
}
.visit__lines li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(42, 31, 23, 0.08);
}
.visit__lines li:last-child { border-bottom: none; }
.visit__lines li span:first-child {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  align-self: center;
}
.visit__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.visit__newsletter {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.newsletter__lede {
  margin-top: 12px;
  margin-bottom: 24px;
  font-size: 1.02rem;
  color: var(--ink-soft);
  flex: 1 1 auto;
}
.newsletter__form {
  display: flex;
  gap: 8px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 5px 5px 5px 22px;
  background: white;
  margin-top: auto;
  box-shadow: 0 1px 0 rgba(42,31,23,0.06);
}
.newsletter__form input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
  min-width: 0;
}
.newsletter__form input::placeholder {
  color: #8a7a6b;            /* bump from default lighter grey */
  opacity: 1;                /* Firefox defaults to 0.7; override */
  font-style: italic;
}
.newsletter__form button {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  flex: 0 0 auto;
}
.newsletter__form button:hover { background: var(--ember); transform: translateY(-1px); }
.newsletter__note {
  margin-top: 14px;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

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

.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 32px 24px;
}
.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(249, 244, 236, 0.12);
}
.footer__brand .brand__name {
  color: var(--paper);
  font-size: 1.5rem;
}
.footer__brand p {
  margin-top: 12px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: rgba(249, 244, 236, 0.62);
  max-width: 280px;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.footer__h {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(249, 244, 236, 0.55);
  margin-bottom: 14px;
}
.footer__cols ul li { padding: 6px 0; }
.footer__cols a {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: rgba(249, 244, 236, 0.82);
}
.footer__cols a:hover { color: var(--ember-soft); }
.footer__base {
  max-width: 1200px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 0.82rem;
  color: rgba(249, 244, 236, 0.5);
}
.footer__base a { color: var(--ember-soft); }
.footer__base a:hover { color: var(--paper); }

/* ====================================================================
   RESPONSIVE
   ==================================================================== */

@media (max-width: 960px) {
  .masthead nav { display: none; }
  .masthead__inner { grid-template-columns: auto 1fr auto; gap: 16px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 56px 0 64px; }
  .today { grid-template-columns: 1fr; }
  .today__stats { grid-template-columns: repeat(2, 1fr); }
  .menu__cols { grid-template-columns: 1fr; gap: 48px; }
  .story { grid-template-columns: 1fr; gap: 40px; }
  .visit { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  main { padding: 0 20px 64px; }
  .masthead__inner { padding: 12px 20px; }
  .order { padding: 7px 14px; font-size: 0.82rem; }
  .today__card { padding: 32px 24px; }
  .visit__card { padding: 32px 24px; }
  .visit__newsletter { padding: 28px 24px; }
  .footer { padding: 48px 20px 24px; }
  .footer__base { flex-direction: column; gap: 8px; align-items: flex-start; }
}
