/* ===== New to Pickle — shared styles ===== */

:root {
  --bg: #F4F7F3;
  --surface: #FFFFFF;
  --ink: #16241F;
  --ink-soft: #4C5A54;
  --blue: #135F79;
  --blue-deep: #0D4A5F;
  --ball: #C4E538;
  --ball-deep: #9FBE24;
  --line: #E2E7DE;
  --sand: #EFEBDE;
  --shadow: 0 1px 2px rgba(16, 40, 33, .05), 0 8px 24px rgba(16, 40, 33, .06);
  --radius: 16px;
  --wrap: 720px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display, .brand, .btn, .eyebrow, nav, .card-title, .site-footer {
  font-family: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
}

a { color: var(--blue-deep); }
a:hover { color: var(--blue); }

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

/* ---- layout wrap ---- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---- top bar ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand .ball { width: 30px; height: 30px; flex: none; }
nav.site-nav {
  display: flex;
  gap: 20px;
  font-size: 16px;
  font-weight: 600;
}
nav.site-nav a { color: var(--ink-soft); text-decoration: none; }
nav.site-nav a:hover { color: var(--blue-deep); }

/* ---- hero ---- */
.hero {
  padding: 64px 0 40px;
  text-align: center;
}
.hero .ball-big {
  width: 108px;
  height: 108px;
  margin: 0 auto 26px;
}
.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--ball);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(38px, 8vw, 60px);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 800;
  margin: 0 0 18px;
}
.hero p.lead {
  font-size: clamp(19px, 3.5vw, 23px);
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 auto 30px;
}

/* ---- button ---- */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: var(--blue-deep); color: #fff; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--ball-deep); outline-offset: 3px; }

/* ---- start-here list ---- */
.section {
  padding: 28px 0 60px;
}
.section-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .12s ease, border-color .12s ease;
  margin-bottom: 16px;
}
.card:hover { transform: translateY(-2px); border-color: var(--ball-deep); color: var(--ink); }
.card .num {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 14px;
  color: var(--blue);
  letter-spacing: .04em;
}
.card-title {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 6px 0 8px;
  line-height: 1.2;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.5; }

.section-title + .section-sub {
  margin: -10px 0 18px;
  color: var(--ink-soft);
  font-size: 16px;
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
}
/* space between the stacked groups on the home page */
.section .section-title { margin-top: 44px; }
.section > .wrap > .section-title:first-child { margin-top: 0; }

/* related links at the foot of an article */
.related {
  margin: 40px 0 8px;
  padding: 22px 24px;
  background: var(--sand);
  border-radius: var(--radius);
}
.related-label {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.related .rel {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--blue-deep);
  text-decoration: none;
  padding: 7px 0;
  border-bottom: 1px solid rgba(16,40,33,.08);
}
.related .rel:last-child { border-bottom: none; }
.related .rel:hover { color: var(--blue); }

/* ---- article ---- */
.article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px clamp(22px, 5vw, 56px);
  margin: 40px auto 60px;
}
.article .eyebrow { background: var(--ball); }
.article h1 {
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 800;
  margin: 14px 0 10px;
}
.article .byline {
  color: var(--ink-soft);
  font-size: 16px;
  font-family: "Bricolage Grotesque", sans-serif;
  margin-bottom: 28px;
}
.article h2 {
  font-size: clamp(24px, 4.5vw, 30px);
  letter-spacing: -.02em;
  font-weight: 700;
  margin: 40px 0 12px;
  padding-top: 8px;
}
.article p { margin: 0 0 20px; }
.article ul, .article ol { margin: 0 0 22px; padding-left: 24px; }
.article li { margin-bottom: 8px; }
.article strong { font-weight: 700; }

.article hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}

/* affiliate slot the user replaces later */
.aff-slot {
  background: var(--sand);
  border: 1px dashed var(--ball-deep);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 4px 0 24px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.aff-slot b { color: var(--ink); }

.disclosure-note {
  font-size: 15px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---- generic page body (about, disclosure) ---- */
.page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px clamp(22px, 5vw, 56px);
  margin: 40px auto 60px;
}
.page h1 {
  font-size: clamp(30px, 6vw, 42px);
  letter-spacing: -.025em;
  font-weight: 800;
  margin: 0 0 18px;
}
.page h2 { font-size: 24px; font-weight: 700; margin: 32px 0 10px; letter-spacing: -.01em; }
.page p { margin: 0 0 18px; }

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 50px;
  font-size: 15px;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  justify-content: space-between;
}
.site-footer a { color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--blue-deep); }
.site-footer .foot-nav { display: flex; gap: 18px; flex-wrap: wrap; }

.back-link {
  display: inline-block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--blue-deep);
  text-decoration: none;
  margin: 28px 0 0;
}
.back-link:hover { color: var(--blue); }

@media (max-width: 560px) {
  body { font-size: 18px; }
  nav.site-nav { gap: 14px; font-size: 15px; }
  .hero { padding: 44px 0 30px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
