/* Protein Pasture site. Palette and type follow docs/design/style-guide.md. */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/Nunito-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #FFF8EE;
  --card: #FFFFFF;
  --card-lip: #EADCE3;
  --text: #5A4550;
  --text-soft: #8A7681; /* textSoft nudged darker for body-size contrast on paper */
  --line: #5A4550;
  --primary: #FF8FA3;
  --primary-lip: #E86F86;
  --feed: #FFC845;
  --feed-lip: #E9A92B;
  --grass: #A8DE8C;
  --grass-side: #7FC06A;
  --sky-top: #A9DBFF;
  --sky-mid: #CDEBFF;
  --sky-low: #FFE9F2;
  --sky-haze: #FFF1E3;
  --blush: #FFC2CF;
  --radius: 22px;
  --display: "Fredoka", ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary-lip); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--feed); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(30px, 6vw, 44px); }
h2 { font-size: clamp(22px, 4.2vw, 28px); margin-top: 1.6em; }
h3 { font-size: 19px; margin-top: 1.4em; }

p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }
li::marker { color: var(--primary); }

.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.site-header { padding: 18px 0 6px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-block; line-height: 0; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: 0 3px 0 var(--card-lip);
}
.nav a:hover { background: var(--sky-low); }
.nav a[aria-current="page"] { background: var(--primary); color: #fff; box-shadow: 0 3px 0 var(--primary-lip); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 42%, var(--sky-low) 78%, var(--paper) 100%);
  padding: 44px 0 36px;
  margin-top: 10px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; }
.hero-icon {
  width: 104px; height: 104px;
  border-radius: 26px;
  border: 3px solid var(--line);
  box-shadow: 0 5px 0 rgba(90, 69, 80, 0.16);
  margin-bottom: 18px;
}
.tagline { font-family: var(--display); font-weight: 600; font-size: clamp(19px, 3.6vw, 23px); color: var(--primary-lip); margin-bottom: 0.6em; }
.lede { font-size: 18px; max-width: 34em; }
.hero-phone { justify-self: center; max-width: 290px; }

.phone {
  border-radius: 34px;
  border: 3px solid var(--line);
  overflow: hidden;
  box-shadow: 0 8px 0 rgba(90, 69, 80, 0.14);
  background: var(--card);
}

/* Buttons and badge */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 17px;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  color: var(--text);
  background: var(--card);
  box-shadow: 0 4px 0 var(--card-lip);
}
.button:hover { color: var(--text); transform: translateY(1px); box-shadow: 0 3px 0 var(--card-lip); }
.store-badge {
  background: var(--line); color: #fff;
  box-shadow: 0 4px 0 #3D2C35;
  padding: 10px 22px 10px 18px;
}
.store-badge:hover { color: #fff; box-shadow: 0 3px 0 #3D2C35; }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge .small { display: block; font-family: var(--body); font-weight: 700; font-size: 11px; letter-spacing: 0.04em; opacity: 0.85; line-height: 1.1; }
.store-badge .big { display: block; font-size: 19px; line-height: 1.15; }

/* Cards */
.section { padding: 34px 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 20px 16px;
  box-shadow: 0 5px 0 var(--card-lip);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .dot {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 14px;
  margin-bottom: 10px;
  border: 2px solid var(--line);
}
.card .dot svg { width: 24px; height: 24px; }

.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.screens figure { margin: 0; }
.screens figcaption { text-align: center; font-size: 14px; color: var(--text-soft); margin-top: 8px; }

.promise {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 5px 0 var(--card-lip);
  border-left: 8px solid var(--grass);
}

/* Document pages */
.doc { padding: 28px 0 40px; }
.doc .meta { color: var(--text-soft); font-weight: 700; margin-bottom: 1.4em; }
.doc-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 26px 12px;
  box-shadow: 0 5px 0 var(--card-lip);
}
.doc-card > h2:first-child { margin-top: 0; }
.summary {
  background: #F2FAEC;
  border: 2px solid var(--grass);
  border-radius: 18px;
  padding: 14px 18px;
  margin: 0 0 1.4em;
}
.summary p:last-child { margin-bottom: 0; }

details.faq {
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 4px 0 var(--card-lip);
  margin-bottom: 12px;
  padding: 0 18px;
}
details.faq summary {
  cursor: pointer;
  font-family: var(--display); font-weight: 600; font-size: 18px;
  padding: 14px 0;
  list-style: none;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; flex: none;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--sky-low); color: var(--primary-lip);
  font-size: 20px; line-height: 1;
}
details.faq[open] summary::after { content: "\2013"; }
details.faq > div { padding-bottom: 6px; }

.contact {
  text-align: center;
  background: var(--sky-low);
  border-radius: var(--radius);
  padding: 24px 20px;
  margin-top: 26px;
}
.contact .button { margin-top: 6px; }

/* Footer */
.site-footer {
  margin-top: 30px;
  padding: 34px 0 40px;
  background: linear-gradient(180deg, var(--paper), #FDEFE0);
  color: var(--text-soft);
  font-size: 15px;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--text); }

@media (max-width: 760px) {
  .hero { padding-top: 28px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-phone { max-width: 240px; }
  .screens { grid-template-columns: repeat(2, 1fr); }
  .brand img { height: 42px; }
  .doc-card { padding: 20px 18px 8px; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .nav a { transition: transform 0.12s ease, box-shadow 0.12s ease; }
}
