/* My Sugar Addiction — site styles
   One stylesheet for the whole site. Mobile first.
   Sections: .hero (navy) · .sec (cream) · .band (chocolate) · .sec-white · .night (navy) · footer (#161616)
*/

:root {
  --navy: #00102e;
  --ink: #161616;
  --cream: #fdf6ec;
  --cream-2: #f6e9d6;
  --white: #ffffff;
  --choc: #3b2316;
  --choc-soft: #6b4a37;
  --caramel: #e7a35a;
  --caramel-hover: #f0b673;
  --caramel-deep: #9a5717;
  --sugar: #f3b6c2;
  --on-dark: #fbefe0;
  --on-dark-soft: #c8c0d4;
  --on-choc-soft: #e6d3bf;
  --line: #ecdcc8;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(59, 35, 22, .06), 0 14px 34px -14px rgba(59, 35, 22, .28);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1120px;
  --sprinkles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cg fill='none' stroke-linecap='round' stroke-width='5' opacity='.8'%3E%3Cpath stroke='%23f3b6c2' d='M20 30l12 6'/%3E%3Cpath stroke='%23e7a35a' d='M72 16l4 13'/%3E%3Cpath stroke='%23fbefe0' d='M128 42l13-3'/%3E%3Cpath stroke='%239fd8c7' d='M190 20l6 11'/%3E%3Cpath stroke='%23e7a35a' d='M40 96l-9 10'/%3E%3Cpath stroke='%239fd8c7' d='M100 88l13 4'/%3E%3Cpath stroke='%23f3b6c2' d='M168 108l3 13'/%3E%3Cpath stroke='%23fbefe0' d='M28 170l12-5'/%3E%3Cpath stroke='%23f3b6c2' d='M96 158l7 11'/%3E%3Cpath stroke='%23e7a35a' d='M150 188l13 2'/%3E%3Cpath stroke='%239fd8c7' d='M206 160l-8 10'/%3E%3C/g%3E%3C/svg%3E");
  --drip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='54' viewBox='0 0 240 54'%3E%3Cpath fill='%23e7a35a' d='M0 0h240v12c-8 0-10 4-10 10v10a7 7 0 0 1-14 0V22c0-6-4-10-12-10h-30c-7 0-10 3-10 9v4a6 6 0 0 1-12 0v-4c0-6-3-9-10-9H90c-8 0-11 5-11 12v20a8 8 0 0 1-16 0V24c0-7-3-12-11-12H32c-7 0-10 3-10 9v2a5 5 0 0 1-10 0v-2c0-6-4-9-12-9z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ink);
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--choc);
  background: var(--cream);
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.15rem, 7vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 4.8vw, 2.8rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1em; }

a { color: var(--caramel-deep); text-underline-offset: .18em; }

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

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

.sec :focus-visible,
.sec-white :focus-visible { outline-color: var(--caramel-deep); }

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 10;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: var(--caramel);
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.skip:focus { top: 1rem; }

.eyebrow {
  margin: 0 0 .8rem;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--caramel-deep);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .7rem 1.45rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

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

.btn-primary { background: var(--caramel); color: var(--navy); }
.btn-primary:hover { background: var(--caramel-hover); }

.btn-ghost { border-color: rgba(251, 239, 224, .55); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); background: rgba(255, 255, 255, .06); }

.btn svg { width: 1.1em; height: 1.1em; flex: none; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover { transition: none; transform: none; }
}

/* ---------- Header ---------- */

.site-head {
  background: var(--navy);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(251, 239, 224, .08);
}

.head-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 1rem;
  padding: .75rem 0;
}

.brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 600;
  color: var(--on-dark);
  text-decoration: none;
  white-space: nowrap;
}

.nav ul {
  display: flex;
  gap: .1rem;
  margin: 0 -.6rem 0 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: .5rem .6rem;
  border-radius: 999px;
  color: var(--on-dark);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover { background: rgba(255, 255, 255, .08); }

@media (max-width: 539px) {
  .head-inner { flex-direction: column; justify-content: center; padding: .65rem 0 .35rem; }
  .nav ul { margin: 0; }
}

/* ---------- Hero (navy, centered logo) ---------- */

.hero {
  position: relative;
  padding: 2rem 0 4.75rem;
  text-align: center;
  color: var(--on-dark);
  background-color: var(--navy);
  background-image:
    radial-gradient(62% 78% at 50% 50%, rgba(0, 16, 46, 1) 42%, rgba(0, 16, 46, .55) 76%, rgba(0, 16, 46, .2) 100%),
    var(--sprinkles);
  background-size: auto, 220px 220px;
}

.hero-logo {
  width: clamp(170px, 46vw, 250px);
  margin: 0 auto 1.4rem;
  border-radius: var(--radius);
}

.hero .eyebrow { color: var(--caramel); }

.hero h1 {
  max-width: 17ch;
  margin-inline: auto;
  color: var(--on-dark);
}

.hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 500;
  color: var(--caramel);
}

.lede {
  max-width: 34rem;
  margin: 0 auto 1.9rem;
  font-size: 1.15rem;
  color: var(--on-dark-soft);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

/* ---------- Caramel drip edge ---------- */

.drip { position: relative; }

.drip::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 54px;
  background: var(--drip) repeat-x 0 0 / 240px 54px;
  pointer-events: none;
}

/* ---------- Cream section: the treats ---------- */

.sec {
  padding: calc(54px + 2.75rem) 0 4.5rem;
  background: var(--cream);
}

.sec-head {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.sec-head p:last-child { margin: 0; color: var(--choc-soft); font-size: 1.1rem; }

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

.treat {
  padding: .7rem .7rem 1.6rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.treat-photo {
  aspect-ratio: 4 / 3;
  margin: 0 0 1.15rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #f3dcc0, #e2b583);
}

.treat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.treat h3,
.treat p { padding-inline: .8rem; }

.treat h3 { margin-bottom: .35em; }

.treat p { margin: 0; color: var(--choc-soft); }

.more {
  max-width: 36rem;
  margin: 2.75rem auto 0;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--choc);
}

.more a { font-weight: 600; }

@media (min-width: 860px) {
  .treats { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
  .treat-photo { aspect-ratio: 4 / 5; }
  .treat:nth-child(2) { transform: translateY(1.5rem); }
  .more { margin-top: 4rem; }
}

/* ---------- Chocolate band: online shop ---------- */

.band {
  padding: 4.5rem 0;
  background: var(--choc);
  color: var(--on-dark);
}

.band-grid {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.band-photo {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 8px solid var(--cream);
  border-radius: var(--radius);
  color: var(--choc);
  background: linear-gradient(135deg, #f3dcc0, #e2b583);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
  transform: rotate(-1.5deg);
}

.band-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: var(--sugar);
  color: var(--choc);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.band h2 { color: var(--on-dark); }

.band p { color: var(--on-choc-soft); font-size: 1.1rem; }

.band .badge { color: var(--choc); font-size: .8rem; }

.band .btn { margin-top: .6rem; }

@media (min-width: 860px) {
  .band { padding: 5.5rem 0; }
  .band-grid { grid-template-columns: 5fr 6fr; gap: 4.5rem; }
  .band-photo { aspect-ratio: 4 / 5; max-height: 520px; }
}

/* ---------- White section: FAQ ---------- */

.sec-white {
  padding: 4.5rem 0;
  background: var(--white);
}

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

.faq details { border-bottom: 1px solid var(--line); }

.faq details:first-of-type { border-top: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--choc);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--cream-2);
  font-family: var(--sans);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  color: var(--caramel-deep);
  transition: transform .2s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p { margin: 0 0 1.3rem; color: var(--choc-soft); }

/* ---------- Night section: contact ---------- */

.night {
  padding: 4.5rem 0 5rem;
  text-align: center;
  color: var(--on-dark);
  background-color: var(--navy);
  background-image:
    radial-gradient(75% 70% at 50% 50%, rgba(0, 16, 46, 1) 35%, rgba(0, 16, 46, .6) 75%, rgba(0, 16, 46, .25) 100%),
    var(--sprinkles);
  background-size: auto, 220px 220px;
}

.night .eyebrow { color: var(--caramel); }

/* On narrow screens the text fills the width: keep sprinkles to the top and bottom edges. */
@media (max-width: 699px) {
  .hero,
  .night {
    background-image:
      radial-gradient(150% 66% at 50% 50%, rgba(0, 16, 46, 1) 50%, rgba(0, 16, 46, .15) 100%),
      var(--sprinkles);
  }
}

.night h2 { color: var(--on-dark); }

.night .intro {
  max-width: 34rem;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--on-dark-soft);
}

.contact-card {
  max-width: 34rem;
  margin: 2.25rem auto 0;
  padding: 1.75rem 1.5rem;
  border: 2px dashed rgba(231, 163, 90, .7);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .04);
}

.contact-card svg {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto .75rem;
  color: var(--caramel);
}

.contact-soon {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--on-dark);
}

.contact-card .actions { margin-top: 1.25rem; }

/* ---------- Footer ---------- */

.site-foot {
  padding: 3rem 0 1.5rem;
  background: var(--ink);
  color: #d9cfc2;
  font-size: .95rem;
}

.foot-grid { display: grid; gap: 2rem; }

.foot-brand {
  margin: 0 0 .4rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 600;
  color: var(--on-dark);
}

.foot-h {
  margin: 0 0 .6rem;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--caramel);
}

.site-foot p { margin: 0 0 .4rem; }

.site-foot ul { margin: 0; padding: 0; list-style: none; }

.site-foot li a {
  display: inline-block;
  padding: .2rem 0;
  color: var(--on-dark);
  text-decoration: none;
}

.site-foot li a:hover { text-decoration: underline; }

.foot-base {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #a89f95;
  font-size: .85rem;
}

@media (min-width: 760px) {
  .foot-grid { grid-template-columns: 1.4fr 1fr .8fr; gap: 3rem; }
}

/* ---------- 404 ---------- */

.lost {
  padding: 3.5rem 0 4.5rem;
}

.lost .lede { margin-bottom: 1.9rem; }

.lost-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
  color: var(--caramel);
}
