/* Oasis Winter World Market (home page). The HallOasis page keeps styles.css.
   Colors and fonts follow the Figma banner: Betania Patmos for the title, Cal Sans for everything else. */
:root {
  --red: #79191b;       /* buttons, accents */
  --brown: #430f02;     /* text, footer */
  --olive: #625a35;     /* headings */
  --scarlet: #d3282e;
  --green: #658848;
  --cream: #fbfaf4;     /* page */
  --cream-2: #f1ecda;
  --paper: #ffffff;     /* cards */
  --text: #4e3a2c;
  --muted: #7a6a58;
  --line: #e6dfc8;
  --ok: #4f6e36;
  --err: #b3261e;
  --radius: 0;
  --shadow: 0 8px 30px rgba(67, 15, 2, 0.14);
  --script: "Betania Patmos", "Brush Script MT", cursive;
  --sans: "Cal Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
/* Cal Sans has a single weight, so bold text gets color instead of a fake bold */
strong, b { font-weight: inherit; color: var(--brown); }
main { flex: 1 0 auto; background: var(--cream); }
h1, h2, h3 { font-family: var(--sans); font-weight: 400; letter-spacing: 0; color: var(--olive); }
h2 { font-size: 1.5rem; line-height: 1.15; margin: 0 0 0.6rem; }
p { margin: 0 0 0.9rem; }
a { color: var(--red); }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.container { width: min(1100px, 100% - 32px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Banner ---------- */
/* Four food photos side by side with the title over them. Pinned at the top while the page scrolls over it. */
.hero {
  position: sticky; top: 0; z-index: 0; overflow: hidden;
  height: clamp(300px, 31vw, 450px);
  display: grid; color: #fff; text-align: center; background: var(--brown);
}
.hero__photos { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.hero__photos img { width: 100%; height: 100%; object-fit: cover; }
/* a light shade so the white title reads on every photo */
.hero__photos::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(30, 10, 0, 0.32), rgba(30, 10, 0, 0.12) 70%, rgba(30, 10, 0, 0.2));
}
/* falling snow */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  --flake: rgba(255, 255, 255, 0.95) 40%, rgba(255, 255, 255, 0.35) 70%, transparent 100%;
  background-image:
    radial-gradient(circle 5px at 20px 30px, var(--flake)),
    radial-gradient(circle 3.5px at 120px 90px, var(--flake)),
    radial-gradient(circle 6px at 200px 170px, var(--flake)),
    radial-gradient(circle 4px at 70px 210px, var(--flake)),
    radial-gradient(circle 3px at 40px 70px, var(--flake)),
    radial-gradient(circle 2.5px at 150px 20px, var(--flake)),
    radial-gradient(circle 3px at 100px 140px, var(--flake));
  background-size: 260px 260px, 260px 260px, 260px 260px, 260px 260px, 180px 180px, 180px 180px, 180px 180px;
  animation: snow 20s linear infinite;
}
@keyframes snow {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 60px 780px, 60px 780px, 60px 780px, 60px 780px, -40px 720px, -40px 720px, -40px 720px; }
}
.hero__title {
  position: relative; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: clamp(14px, 2.4vw, 32px) 16px clamp(16px, 2.6vw, 36px);
  text-shadow: 0 1px 12px rgba(30, 10, 0, 0.45);
}
.hero__school, .hero__hello { margin: 0; font-size: clamp(0.95rem, 1.3vw, 1.2rem); line-height: 1.2; }
.hero__name {
  margin: 0; color: #fff; font-family: var(--script); font-weight: 400; line-height: 0.92;
  font-size: clamp(2.9rem, 6.5vw, 6rem); max-width: 6.5em;
  text-shadow: 0 2px 18px rgba(30, 10, 0, 0.5);
}
.hero__name span { white-space: nowrap; } /* "Winter World" on the first line, "Market" below, as in the Figma */

/* the page slides over the pinned banner */
.intro, .menu, .share, .signup, .footer { position: relative; z-index: 1; }
.intro, .menu, .share, .signup { background: var(--cream); }

/* ---------- Intro ---------- */
.intro { padding: 36px 0 8px; }
.intro__grid { display: grid; gap: 22px; }
@media (min-width: 860px) { .intro__grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.intro__text h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.intro__text p { font-size: 1.05rem; color: var(--text); }
.intro__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 18px; }
.intro__cta-note { font-size: 0.92rem; color: var(--muted); }
.details {
  background: var(--paper); border: 1.5px solid var(--line); border-top: 6px solid var(--red);
  border-radius: var(--radius); padding: 20px 22px; position: relative;
}
.details__icon { font-size: 1.6rem; position: absolute; top: 14px; right: 16px; }
.details h2 { color: var(--red); }
.details__row { margin-bottom: 0.6rem; color: var(--text); }
.details__row a { color: var(--brown); }
.details__note { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- Menu ---------- */
.menu { padding: 36px 0 20px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.section-head h2 { font-size: 1.8rem; margin: 0; }
.section-head::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
@media (min-width: 860px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }

.soon {
  display: grid; gap: 16px; align-items: center;
  background: var(--olive); color: var(--cream); border-radius: var(--radius); padding: 24px;
}
@media (min-width: 640px) { .soon { grid-template-columns: auto 1fr; padding: 28px 32px; } }
.soon__globe { font-size: 3.4rem; line-height: 1; }
.soon h3 { color: #fff; font-size: 1.5rem; margin: 0 0 6px; }
.soon p { color: var(--cream); max-width: 60ch; }

.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,0.03), 0 4px 14px rgba(67,15,2,0.06);
  display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card__media { position: relative; }
.card__img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; background: var(--cream-2); }
.card__badge {
  position: absolute; left: 12px; top: 12px; font-size: 0.85rem;
  line-height: 1; color: #fff; background: var(--red); padding: 7px 11px; border-radius: var(--radius);
}
.card__badge--sold-out { background: var(--brown); }
.card--sold-out .card__img { filter: grayscale(0.6); opacity: 0.6; }
.card--sold-out .card__price { color: var(--muted); text-decoration: line-through; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__origin { margin: 0; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); }
.card__name { font-size: 1.2rem; line-height: 1.2; margin: 0; }
.card__variant {
  display: inline-block; align-self: flex-start; font-size: 0.75rem; letter-spacing: 0.05em;
  text-transform: uppercase; background: var(--cream-2); color: var(--brown); padding: 3px 9px; border-radius: var(--radius);
}
.card__desc { font-size: 0.92rem; color: var(--text); margin: 0; }
/* ingredients, printed small like the label on the package */
.card__ingredients { display: block; font-size: 0.82rem; line-height: 1.45; color: var(--muted); margin: 0; }
.card__contents { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.card__item { display: block; font-size: 0.95rem; color: var(--brown); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.menu__more { margin: 18px 0 0; color: var(--muted); }
.card__price { font-size: 1.3rem; color: var(--brown); }

/* ---------- Share a recipe ---------- */
.share { padding: 20px 0 28px; }
.share__card {
  display: grid; gap: 14px 28px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
}
@media (min-width: 700px) { .share__card { grid-template-columns: auto 1fr; } }
.share__art { font-size: 2.2rem; letter-spacing: 0.1em; white-space: nowrap; }
.share__card p { color: var(--text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
  border: 0; border-radius: var(--radius); padding: 11px 20px; font-family: var(--sans); font-weight: 400;
  letter-spacing: 0.01em; transition: background .15s, transform .05s;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--brown); }
.btn--primary:disabled { background: #b98a7f; cursor: wait; }
.btn--ghost { background: transparent; color: var(--brown); border: 1.5px solid var(--olive); }
.btn--ghost:hover { background: var(--cream-2); }
.btn--muted { background: var(--cream-2); color: var(--muted); cursor: default; }
.btn--lg { padding: 14px 28px; font-size: 1.1rem; }
.btn--sm { padding: 8px 14px; font-size: 0.9rem; }

/* ---------- Email signup ---------- */
.signup { padding: 8px 0 96px; }
.signup__card {
  display: grid; gap: 14px 28px; align-items: center;
  background: var(--paper); border: 1.5px solid var(--line); border-left: 6px solid var(--green);
  border-radius: var(--radius); padding: 22px 24px;
}
@media (min-width: 860px) { .signup__card { grid-template-columns: 1fr 1.2fr; } .signup__status, .signup__fine { grid-column: 1 / -1; } }
.signup__text h2 { margin: 0 0 4px; }
.signup__text p { margin: 0; color: var(--text); }
.signup__fields { display: flex; gap: 10px; flex-wrap: wrap; }
.signup__fields input[type="email"] {
  flex: 1 1 220px; min-width: 0; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font: inherit; color: var(--brown); background: #fff;
}
.signup__fields input[type="email"]:focus { outline: 2px solid var(--red); border-color: transparent; }
.signup__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup__status { margin: 0; min-height: 1.2em; }
.signup__status.is-ok { color: var(--ok); }
.signup__status.is-err { color: var(--err); }
.signup__fine { margin: 0; font-size: 0.82rem; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: var(--brown); color: var(--cream); padding: 28px 0 40px; text-align: center; margin-top: auto; }
.footer strong { color: #fff; }
.footer a { color: #f3c9a8; }
.footer__addr { margin: 0 0 0.6rem; }
.footer__fine { font-size: 0.85rem; opacity: 0.85; margin: 0; }

/* ---------- Mobile bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(67,15,2,0.1);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
}
.mobile-bar__label { font-size: 0.8rem; color: var(--muted); }
@media (min-width: 860px) { .mobile-bar { display: none; } }

.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 50;
  background: var(--brown); color: var(--cream); padding: 10px 16px; border-radius: var(--radius); box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
