/* Squish Cat landing page.
   Colors and fonts come from the brand guide (skill/squish-cat/references/brand.md). */

:root {
  --paper: #FAFAF7;     /* page background */
  --cream: #F2EDE6;     /* soft section background */
  --ink: #1A1A1A;       /* headings and buttons */
  --soft: #4A4A4A;      /* body text */
  --rule: #D8D6CE;      /* dividers */
  --radius: 14px;
  --wrap: 1100px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--soft);
  font-family: "Nunito", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}

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

h1, h2, h3 {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }

a { color: var(--ink); }

section { padding: 80px 24px; }
section > * { max-width: var(--wrap); margin-left: auto; margin-right: auto; }

.center { text-align: center; }
.section-lede { text-align: center; max-width: 640px; margin-bottom: 40px; }

/* Buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.button:hover { transform: translateY(-2px); }
.button-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.4rem; color: var(--ink); }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-header nav a:hover { text-decoration: underline; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-top: 40px;
}
.eyebrow { font-family: "Fredoka", sans-serif; font-weight: 500; letter-spacing: 0.04em; margin: 0 0 12px; }
.lede { font-size: 1.15rem; max-width: 34em; }
.hero-art { position: relative; }
.hero-photo { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(40, 30, 20, 0.15); }
.float { position: absolute; filter: drop-shadow(0 6px 8px rgba(40, 30, 20, 0.2)); }
.float-a { left: -60px; bottom: 30px; width: 120px; transform: rotate(-12deg); }
.float-b { right: -30px; top: -30px; width: 130px; transform: rotate(10deg); }

/* How it works */
.steps { background: var(--cream); text-align: center; }
.steps ol {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.steps li img { width: 110px; height: 110px; object-fit: contain; margin: 0 auto 14px; }
.steps p { font-size: 1rem; margin: 0; }

/* Free calendar */
.calendar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--wrap);
  margin: 0 auto;
}
.calendar-art img { border-radius: var(--radius); box-shadow: 0 18px 40px rgba(40, 30, 20, 0.12); }
.calendar-text .button { margin-top: 12px; }

/* Shop */
.shop { background: var(--cream); }
.shop h2 { text-align: center; }
.products {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.products a {
  display: block;
  height: 100%;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.products a:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(40, 30, 20, 0.12); }
.products img { aspect-ratio: 4 / 3; object-fit: cover; }
.product-name { display: block; padding: 14px 16px 2px; font-family: "Fredoka", sans-serif; font-weight: 600; color: var(--ink); line-height: 1.25; }
.product-note { display: block; padding: 0 16px 16px; font-size: 0.9rem; }

/* The Code */
.code { text-align: center; }
.code img { margin: 0 auto 16px; }
.code ul {
  list-style: none;
  padding: 0;
  max-width: 720px;
  columns: 2;
  column-gap: 48px;
  text-align: left;
}
.code li { margin-bottom: 10px; break-inside: avoid; padding-left: 26px; position: relative; color: var(--ink); }
.code li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  text-align: center;
  padding: 48px 24px;
}
.tagline { font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.3rem; color: var(--ink); margin: 0 0 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-bottom: 16px; }
.fine { font-size: 0.85rem; margin: 0; }

/* Phones and small tablets */
@media (max-width: 820px) {
  body { font-size: 17px; }
  section { padding: 56px 20px; }
  .site-header nav { gap: 14px; }
  .site-header nav a:last-child { display: none; }
  .hero, .calendar { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .float-a { left: -16px; width: 90px; }
  .float-b { right: -10px; width: 100px; }
  .steps ol { grid-template-columns: 1fr 1fr; }
  .code ul { columns: 1; max-width: 360px; }
}
