/* My Wobbly Stitches: site styles */

@font-face { font-family: "Baloo 2"; src: url("fonts/baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("fonts/fredoka.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --cream: #FFF8F1;
  --white: #FFFFFF;
  --strawberry: #F4B6C8;
  --strawberry-soft: #FCE3EA;
  --berry: #A3264F;
  --berry-dark: #7A1C3B;
  --orange: #F28C38;
  --orange-dark: #D9701F;
  --orange-soft: #FDE3CC;
  --blue: #B9D6F2;
  --blue-soft: #DDEBF8;
  --blue-text: #2F5C88;
  --cocoa: #4A2C2A;
  --muted: #7A5A57;
  --line: #F0E0D6;

  --font-logo: "Baloo 2", "Fredoka", sans-serif;
  --font-title: "Fredoka", "Nunito", sans-serif;
  --font-text: "Nunito", system-ui, sans-serif;

  --radius-lg: 32px;
  --radius-md: 24px;
  --gutter: 56px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--cocoa);
  font-family: var(--font-text);
  font-size: 18px;
  line-height: 1.6;
}

a { color: var(--berry); }
a:hover { color: var(--berry-dark); }
img, svg { display: block; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-text);
}
.btn-primary { background: var(--berry); color: var(--cream); }
.btn-primary:hover { background: var(--berry-dark); color: var(--cream); }
.btn-ghost { background: var(--white); color: var(--cocoa); border-color: var(--strawberry); }
.btn-ghost:hover { border-color: var(--berry); color: var(--cocoa); }

/* Header and logo */
.site-header { background: var(--white); border-bottom: 3px dashed var(--strawberry); }
.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-top: 22px;
  padding-bottom: 34px;
}

.logo {
  font-family: var(--font-logo);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--berry);
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
}
.logo:hover { color: var(--berry); }
.logo > * { display: inline-block; vertical-align: baseline; }
.logo .tilt { transform: rotate(5deg); margin-right: 0.05em; }
.logo .button-o { width: 0.75em; height: 0.75em; margin-right: 0.05em; }
.logo .thread-y { width: 0.725em; height: 1.125em; margin-bottom: -0.525em; overflow: visible; }
.logo .word2 { font-size: 0.5em; color: var(--cocoa); margin-left: 0.5em; letter-spacing: 0.1em; }

.nav { display: flex; align-items: center; gap: 28px; font-weight: 700; flex-wrap: wrap; }
.nav a { color: var(--cocoa); text-decoration: none; }
.nav a:hover { color: var(--berry); }
.nav .btn { padding: 11px 22px; font-size: 16px; }

/* Hero */
.hero { position: relative; padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.tag {
  display: inline-block;
  background: var(--orange-soft);
  color: #7A3A12;
  font-weight: 700;
  font-size: 14px;
  padding: 7px 16px;
  border-radius: 999px;
}
.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 700;
  line-height: 1.04;
  margin: 20px 0;
}
.hero p { margin: 0 0 26px; font-size: 19px; line-height: 1.65; max-width: 520px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.photo {
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  text-align: center;
  padding: 16px;
}
.photo-hero { position: relative; height: 400px; background: var(--strawberry); color: #6E1A36; }

/* Decorative patches */
.patch { position: absolute; pointer-events: none; }
.patch-heart { top: 24px; left: 16px; width: 58px; height: 58px; transform: rotate(-14deg); }
.patch-square { bottom: -24px; left: -28px; width: 76px; height: 76px; transform: rotate(-8deg); }
.patch-daisy { top: -26px; right: -20px; width: 70px; height: 70px; transform: rotate(14deg); }
.patch-button { top: -22px; left: 44px; width: 64px; height: 64px; transform: rotate(-12deg); }

/* Promise strip */
.promises {
  background: var(--white);
  border-radius: 28px;
  padding: 28px 36px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.promise { display: flex; gap: 14px; align-items: center; }
.promise svg { width: 46px; height: 46px; flex-shrink: 0; }
.promise strong { display: block; font-size: 17px; }
.promise span { font-size: 15px; color: var(--muted); }

/* Section titles */
.section-head { padding: 56px 0 20px; }
.section-head h2 { margin: 0 0 6px; font-family: var(--font-title); font-size: 40px; font-weight: 700; line-height: 1.1; }
.section-head p { margin: 0; font-size: 17px; color: var(--muted); }

/* Project cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 48px; }
.card { background: var(--white); border-radius: 28px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card .photo { position: relative; height: 230px; border-radius: 20px; font-weight: 600; }
.card .level {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--cream);
  color: var(--blue-text);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.card h3 { margin: 0; font-family: var(--font-title); font-size: 22px; font-weight: 600; }
.card p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.card .meta { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--berry); }
.tone-pink { background: var(--strawberry-soft); color: #6E1A36; }
.tone-orange { background: var(--orange-soft); color: #7A3A12; }
.tone-blue { background: var(--blue-soft); color: var(--blue-text); }

/* About */
.about {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 56px;
}
.about .photo { height: 240px; border-radius: var(--radius-md); background: var(--strawberry); color: #6E1A36; }
.about h2 { margin: 0 0 12px; font-family: var(--font-title); font-size: 36px; font-weight: 700; }
.about p { margin: 0 0 14px; font-size: 18px; line-height: 1.65; }
.about a { font-weight: 700; }

/* Free pattern */
.freebie {
  position: relative;
  background: var(--berry);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 56px;
  color: var(--cream);
}
.freebie h2 { margin: 0 0 10px; font-family: var(--font-title); font-size: 38px; font-weight: 700; }
.freebie p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--strawberry-soft); }
.freebie form { display: flex; flex-direction: column; gap: 12px; }
.freebie label { font-weight: 700; font-size: 15px; }
.freebie input[type="email"] {
  height: 50px;
  border-radius: 999px;
  border: none;
  padding: 0 22px;
  font-size: 16px;
  font-family: var(--font-text);
  background: var(--cream);
  color: var(--cocoa);
}
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; font-weight: 400; color: var(--strawberry-soft); }
.consent input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; }
.freebie button { height: 50px; border: none; border-radius: 999px; background: var(--orange); color: var(--cocoa); font-weight: 700; font-size: 16px; font-family: var(--font-text); }
.freebie .note { font-size: 13px; color: var(--strawberry); }

/* Footer */
.site-footer { background: var(--cocoa); color: var(--cream); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-top: 36px; padding-bottom: 36px; }
.footer-name { font-family: var(--font-logo); font-size: 24px; font-weight: 800; letter-spacing: 1px; }
.footer-name span { color: var(--strawberry); }
.site-footer small { display: block; font-size: 14px; color: #E7D6CC; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; font-weight: 700; }
.footer-links a { color: var(--cream); text-decoration: none; }
.footer-links a:hover { color: var(--strawberry); }

/* Tablet */
@media (max-width: 960px) {
  :root { --gutter: 32px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .photo-hero { height: 320px; }
  .promises { grid-template-columns: 1fr; gap: 18px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .freebie { grid-template-columns: 1fr; }
}

/* Phone */
@media (max-width: 620px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .logo { font-size: 34px; }
  .nav { gap: 16px; font-size: 15px; }
  .hero { padding: 40px 0; }
  .patch-heart { display: none; }
  .patch-square { left: -8px; }
  .patch-daisy { right: -6px; }
  .cards { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 32px; }
  .about { grid-template-columns: 1fr; padding: 28px; }
  .freebie { padding: 32px 24px; }
  .freebie h2 { font-size: 30px; }
}
