/* Shop Cosette Kids, "wow" directions: what all four mock-ups share.
   Fonts are her chosen pair, loaded from the project's own fonts/ folder. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dm-sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: block;
}

:root {
  --cream: #FDF8EA;
  --ink: #1F1B16;
  --green: #1F4D36;
  --tile: #F8ECDC;
  --muted: #6A6156;
  --gold: #C9972B;
  --line: #E6DCC6;
  /* the playful colours, taken from business card Option 4 */
  --pink: #FFC8DF;
  --pink-soft: #FFE0EC;
  --berry: #B8143F;
  --sky: #CFE6FF;
  --mint: #CDF1E3;
  --butter: #FFEBA8;
  --lilac: #E5D8FF;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  font-variation-settings: "SOFT" 100, "WONK" 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---- announcement bar and header -------------------------------------------------- */
.bar {
  display: block; background: var(--green); color: var(--cream);
  padding: 10px 20px; font-size: 13px; line-height: 1.5; letter-spacing: 0.04em;
  text-align: center; text-decoration: none; text-wrap: balance;
}
.bar u { margin-left: 8px; text-underline-offset: 3px; }

.top {
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  padding: 8px 12px; min-height: 60px;
}
.top__name {
  justify-self: center; padding: 6px 4px;
  font-family: var(--serif); font-size: 23px; font-weight: 500; line-height: 1.2;
  letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
.icon-btn {
  position: relative; width: 48px; height: 48px; display: grid; place-items: center;
  background: none; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
}
.icon-btn svg { width: 24px; height: 24px; }
.bag-count {
  position: absolute; top: 5px; right: 3px; min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--green); color: var(--cream); font-size: 11px; font-weight: 600; line-height: 1;
}
.top__nav { display: none; }
@media (min-width: 760px) {
  .top { grid-template-columns: 1fr auto 1fr; padding: 14px 28px; }
  .top__menu { display: none; }
  .top__nav {
    display: flex; gap: 28px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  }
  .top__nav a { padding: 12px 2px; text-decoration: none; }
  .top__name { font-size: 28px; }
  .top__bag { justify-self: end; }
}

/* ---- buttons and small type ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--spring), background-color .2s;
}
.btn:active { transform: scale(.96); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--green { background: var(--green); color: var(--cream); }
.btn--cream { background: var(--cream); color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--small { min-height: 44px; padding: 0 18px; font-size: 12px; }
.btn.is-added { background: var(--green); color: var(--cream); box-shadow: none; }

.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green);
}
.eyebrow svg { width: 13px; height: 13px; flex: none; }
.text-link { padding: 12px 0; font-size: 15px; text-underline-offset: 4px; }
.price { color: var(--muted); font-size: 15px; }
.pname { font-family: var(--serif); font-size: 17px; line-height: 1.3; font-variation-settings: "SOFT" 100; }

.badge {
  display: inline-block; padding: 6px 11px; border-radius: 999px; background: var(--cream); color: var(--ink);
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1.2;
}

/* ---- pop-ups band and footer (same on every direction) ------------------------------ */
.popups { background: var(--green); color: var(--cream); }
.popups__in {
  max-width: 1160px; margin: 0 auto; padding: 52px 20px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px 64px;
}
.popups__copy { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.popups__copy .eyebrow { color: #DCE5D8; }
.popups h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; }
.popups p { font-size: 17px; color: #DCE5D8; max-width: 28em; }
.popups__dates { flex: 1 1 320px; min-width: 0; }
.popups__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px;
  padding: 18px 0; border-top: 1px solid rgba(253, 248, 234, .3);
}
.popups__row:last-child { border-bottom: 1px solid rgba(253, 248, 234, .3); }
.popups__row span:first-child { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: #DCE5D8; }
.popups__row span:last-child { font-size: 17px; }

.foot { max-width: 1160px; margin: 0 auto; padding: 40px 20px 36px; display: flex; flex-direction: column; gap: 22px; }
.foot__name { font-family: var(--serif); font-size: 21px; font-weight: 500; font-variation-settings: "SOFT" 100; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; }
.foot__links a, .foot__links span { padding: 12px 0; text-decoration: none; }
.foot__links span { color: var(--muted); }
.foot__small { border-top: 1px solid var(--line); padding-top: 18px; font-size: 13px; color: var(--muted); }

/* ---- "added to bag" toast and the toy that flies to the bag --------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 50; max-width: calc(100vw - 32px);
  transform: translate(-50%, 140%); opacity: 0;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-size: 14px; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(31, 27, 22, .25);
  transition: transform .45s var(--spring), opacity .25s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast svg { width: 18px; height: 18px; flex: none; }
.toast b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.flyer { position: fixed; z-index: 60; pointer-events: none; will-change: transform, opacity; }

[data-motion="on"] .bag-bump { animation: bag-bump .5s var(--spring); }
@keyframes bag-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.28, .82); }
  70% { transform: scale(.92, 1.1); }
  100% { transform: scale(1); }
}

/* Anyone who has asked their phone for less motion gets stills: nothing loops, nothing springs. */
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after {
  animation: none !important;
  transition-duration: .01ms !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}
