/* Boulangerie Ficelle: demo client site built by Webkeb. No JavaScript, no external requests. */

:root {
  --cream: #fbf3e4;
  --cream-deep: #f4e2c3;
  --wheat: #e2b773;
  --wheat-light: #f3d9a8;
  --crust: #8c5524;
  --brown: #5a3d1c;
  --brown-deep: #3d2a14;
  --caramel: #8a5a22;
  --ink: #2b2a26;
  --muted: #5f5547;
  --line: #e3d3b8;
  --white: #fffaf0;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --gutter: 1rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

main {
  flex: 1;
}

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

a {
  color: var(--brown);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brown-deep);
}

:focus-visible {
  outline: 3px solid var(--caramel);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  color: var(--brown-deep);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.3rem, 1.6rem + 3.4vw, 4rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

.wrap {
  width: 100%;
  max-width: 70rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--brown-deep);
  color: var(--cream);
  font-weight: 700;
  border-radius: 6px;
}

.skip:focus {
  top: 0.75rem;
}

/* --- Demo notice (Competition Act: must not pass for a real business) --- */

.demo {
  background: var(--brown-deep);
  color: var(--cream);
  font-size: 0.9rem;
  line-height: 1.45;
}

.demo p {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0.55rem var(--gutter);
  text-align: center;
}

.demo a {
  color: var(--wheat-light);
  font-weight: 700;
  white-space: nowrap;
}

.demo a:hover {
  color: var(--white);
}

.demo :focus-visible {
  outline-color: var(--wheat-light);
}

/* --- Header --- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brown-deep);
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: 0.35rem 0;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  border-bottom-color: var(--wheat);
}

/* --- Shared --- */

.eyebrow {
  margin-bottom: 0.6rem;
  color: var(--caramel);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.lead {
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.note {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.section-warm {
  background: var(--cream-deep);
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.35rem;
  border: 2px solid var(--brown);
  border-radius: 999px;
  background: var(--brown);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.btn:hover {
  background: var(--brown-deep);
  border-color: var(--brown-deep);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--brown);
}

.btn-ghost:hover {
  background: var(--brown);
  color: var(--white);
}

/* --- Hero --- */

.hero {
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  background:
    radial-gradient(circle at 12% 0%, rgb(243 217 168 / 0.55), transparent 40%),
    var(--cream);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-art {
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
}

.steam path {
  animation: steam 3.2s ease-in-out infinite;
  opacity: 0;
}

.steam path:nth-child(2) {
  animation-delay: 0.9s;
}

.steam path:nth-child(3) {
  animation-delay: 1.8s;
}

@keyframes steam {
  0% { opacity: 0; transform: translateY(14px); }
  35% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-18px); }
}

/* --- Menu --- */

.featured {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 3rem;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1rem 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px -18px rgb(61 42 20 / 0.45);
}

.card h3 {
  margin-top: 0.9rem;
}

.card p {
  color: var(--muted);
}

.card .price {
  margin: auto 0 0;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brown);
}

.photo {
  display: grid;
  place-items: center;
  aspect-ratio: 2 / 1;
  border-radius: 10px;
  background: #efe4d2;
}

.photo svg {
  width: 100%;
  height: 100%;
}

.photo-croissant {
  background: #f4ead9;
}

.photo-chocolatine {
  background: #f2e8d6;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.menu-lists {
  display: grid;
  gap: 2rem;
}

.price-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-block: 0.45rem;
  border-bottom: 1px dashed var(--line);
}

.price-list li span:first-child {
  flex: 1;
}

.price-list .price {
  font-weight: 700;
  color: var(--brown);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* --- Order --- */

.order-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.steps {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 3rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--brown);
  color: var(--white);
  font-family: var(--serif);
  font-weight: 700;
}

.call {
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.call-label {
  margin-bottom: 0.25rem;
  color: var(--caramel);
  font-weight: 700;
}

.call-number {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  font-weight: 700;
  color: var(--brown-deep);
  text-decoration-thickness: 2px;
}

/* --- Find us --- */

.find-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

address {
  margin-bottom: 1.75rem;
  font-style: normal;
  font-size: 1.15rem;
}

.hours {
  width: 100%;
  max-width: 28rem;
  border-collapse: collapse;
}

.hours caption {
  margin-bottom: 0.4rem;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--brown-deep);
}

.hours th,
.hours td {
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  text-align: left;
}

.hours th {
  font-weight: 600;
}

.hours td {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.map {
  width: 100%;
  max-width: 30rem;
  margin-inline: auto;
}

/* --- Footer --- */

.site-footer {
  padding-block: 2.5rem;
  background: var(--brown-deep);
  color: var(--cream);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--wheat-light);
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer :focus-visible {
  outline-color: var(--wheat-light);
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
}

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

/* --- 404 --- */

.lost {
  padding-block: clamp(4rem, 3rem + 6vw, 8rem);
  text-align: center;
}

.lost .lead {
  margin-inline: auto;
}

.lost .actions {
  justify-content: center;
}

/* --- Larger screens --- */

@media (min-width: 40rem) {
  :root {
    --gutter: 1.5rem;
  }

  /* Keep the demo notice in view while scrolling; anchors land below it. */
  .demo {
    position: sticky;
    top: 0;
    z-index: 10;
  }

  html {
    scroll-padding-top: 3.25rem;
  }

  .featured {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo {
    aspect-ratio: 16 / 10;
  }

  .menu-lists {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
  }

  .order-grid,
  .find-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steam path {
    animation: none;
    opacity: 0.8;
  }

  html {
    scroll-behavior: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
