/* Fonts are self-hosted (latin subset from Google Fonts, SIL Open Font License) so visits don't go to Google.
   Funnel Sans is one variable file covering 400–700. */
@font-face {
  font-family: "Funnel Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/funnel-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "League Spartan";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("assets/fonts/league-spartan-latin.woff2") format("woff2");
}

/* Colours from the "Branding & Styling" board in Bella By The Way HQ (Figma).
   Clean editorial styling: left-aligned, tight bold headline, square images, pill buttons, thin rules. */
:root {
  --bg: #064a5c;
  --butter: #f5f3b5;
  --cream: #fffbd8;
  --white: #ffffff;
  --aqua: #7ee3ee;
  --muted: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.2);
  --card: #0b5a6e;

  --display: "League Spartan", system-ui, sans-serif;
  --sans: "Funnel Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; }

body {
  background: var(--bg);
  color: var(--white);
  font: 400 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, p { margin: 0; }

a { color: inherit; text-decoration: none; }

.page {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 20px 36px;
}

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

.head { text-align: center; }

.head .socials {
  justify-content: center;
  margin-top: 24px;
}

.wordmark {
  font: 800 clamp(54px, 17vw, 88px)/0.9 var(--display);
  letter-spacing: -0.035em;
  color: var(--butter);
}

.tagline {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.35;
}

.collab {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}

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

.collab span { margin-right: 4px; }

/* ---------- Subscribe (main CTA) ---------- */

/* Sections sit in flat, square-cornered cards */
.subscribe,
.block {
  padding: 20px 18px;
  background: var(--card);
}

.subscribe { margin-top: 14px; }

/* First card under the header gets extra room */
.head + section { margin-top: 32px; }

.subscribe h2 {
  font: 700 22px/1.2 var(--sans);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.subscribe h2 em {
  font-style: normal;
  color: var(--butter);
  white-space: nowrap;
}

.sub-copy {
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
  text-wrap: pretty;
}

.signup {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.signup input {
  flex: 1;
  min-width: 0;
  padding: 12px 18px;
  font: 400 16px var(--sans);
  color: var(--bg);
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 999px;
}

.signup input::placeholder { color: rgba(6, 74, 92, 0.55); }

.signup input:focus {
  outline: none;
  border-color: var(--aqua);
}

.signup button {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  padding: 0;
  font: 700 16px var(--sans);
  color: var(--bg);
  background: var(--butter);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.signup button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.signup button:hover { background: var(--cream); }
.signup button:active { transform: translateY(1px); }

.msg {
  min-height: 1.2em;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--aqua);
}

.msg:empty { display: none; }

.proof {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Sections ---------- */

.block { margin-top: 14px; }

.kicker {
  margin-bottom: 12px;
  font: 700 17px/1.2 var(--sans);
  letter-spacing: -0.01em;
  color: var(--butter);
}

.arrow {
  flex: none;
  color: var(--muted);
  transition: transform 0.15s ease, color 0.15s ease;
}

a:hover .arrow {
  color: var(--butter);
  transform: translateX(3px);
}

/* This week's issue */
.latest {
  display: flex;
  align-items: center;
  gap: 14px;
}

.latest-img {
  flex: none;
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.latest-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.latest-dates {
  font: 700 18px/1.2 var(--sans);
  text-wrap: balance;
}

.latest:hover .latest-dates { color: var(--butter); }

.latest-sub {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* Guides */
.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li + li { border-top: 1px solid var(--line); }

.list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  font-size: 16px;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.list li:first-child a { padding-top: 0; }
.list li:last-child a { padding-bottom: 0; }

.list a:hover { color: var(--butter); }

/* Bigger tap targets on phones */
@media (max-width: 480px) {
  .list a { padding: 17px 0; }
}

/* ShopMy shelf: one row per collection, cut-out items standing side by side.
   Item heights scale with the row's width (--h is the height on a 380px-wide row). */
.shelf-group + .shelf-group {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.shelf-name,
.shelf-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  line-height: 1.3;
  transition: color 0.15s ease;
}

.shelf-name:hover,
.shelf-more:hover { color: var(--butter); }

.shelf-row {
  container-type: inline-size;
  display: flex;
  align-items: flex-end;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.shelf-row li + li { margin-left: -1.5cqw; }

.shelf-row a { display: block; }

.shelf-row img {
  width: auto;
  height: calc(var(--h) / 380 * 100cqw);
  transition: transform 0.15s ease;
}

.shelf-row a:hover img,
.shelf-row a:focus-visible img { transform: translateY(-4px); }

.shelf-more {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.disclosure {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

/* Privacy page */
.legal p { margin-top: 10px; }

.legal .kicker { margin-top: 28px; }

.legal a { text-decoration: underline; text-underline-offset: 2px; }

.legal a:hover { color: var(--butter); }

.legal-date {
  font-size: 13px;
  color: var(--muted);
}

/* Socials */
.socials {
  display: flex;
  gap: 16px;
}

.social {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-weight: 500;
  border: 1.5px solid var(--white);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.social:hover {
  color: var(--bg);
  background: var(--white);
}

.social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  text-align: center;
  padding-top: 20px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

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

.foot-cta {
  margin-bottom: 6px;
  padding: 9px 20px;
  font-weight: 700;
  font-size: 15px;
  color: var(--bg);
  background: var(--butter);
  border-radius: 999px;
}

.foot .logo {
  width: 150px;
  height: auto;
  margin-top: 20px;
}

.foot .foot-privacy { margin-top: 4px; font-size: 13px; }

.foot .foot-cta:hover { color: var(--bg); background: var(--cream); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}


