/*
Theme Name: Carnivore Daddy
Theme URI: https://carnivoredaddy.com/
Author: Greg Senecki
Description: Protein-first kitchen gear and snacks. A light, fast theme with six Amazon shop tiles on the home page, a guides list, a diet-only archives page, and clean blog templates. Set your Amazon Associates tag under Appearance > Customize > Carnivore Daddy: Affiliate.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carnivoredaddy
*/

:root {
  --paper: #FAF8FE;
  --ink: #1A0F2E;
  --muted: #5B4F70;
  --rule: #E2DAF2;
  --d1: #3B1A6B;
  --d2: #55279A;
  --d3: #7442C4;
  --d4: #9A72E0;
  --d5: #BBA0EE;
  --d6: #DCCEF7;
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.skip-link:focus {
  clip: auto; width: auto; height: auto;
  left: 1rem; top: 1rem; z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--ink); color: #fff;
}

.wrap { width: 100%; max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- top strip + brand ---------- */
.strip { display: flex; height: 10px; }
.strip span { flex: 1; }
.strip span:nth-child(1) { background: var(--d1); }
.strip span:nth-child(2) { background: var(--d2); }
.strip span:nth-child(3) { background: var(--d3); }
.strip span:nth-child(4) { background: var(--d4); }
.strip span:nth-child(5) { background: var(--d5); }
.strip span:nth-child(6) { background: var(--d6); }

.bar { display: flex; flex-direction: column; align-items: flex-start; padding-top: 0.6rem; }

.brand {
  display: inline-block;
  margin: 0.5rem 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.nav-list, .foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
}
.nav a {
  display: inline-block;
  padding: 0.65rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.nav a:hover,
.nav .current-menu-item > a { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- hero ---------- */
.hero { padding: 1.75rem 0 2rem; }

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3.4rem, 17vw, 6.75rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  max-width: 11ch;
}

.lede { margin: 1.25rem 0 0; max-width: 34rem; font-size: 1.125rem; line-height: 1.55; color: var(--muted); }

/* ---------- shop tiles ---------- */
.section-title {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
}

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 11.5rem;
  height: 100%;
  padding: 1rem;
  border-radius: 18px;
  text-decoration: none;
  transition: transform 0.12s ease;
}
.tile:active { transform: scale(0.97); }
.tile .icon { font-size: 2.25rem; line-height: 1; }
.tile .name {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.65rem;
  line-height: 1;
}
.tile .what { display: block; margin-top: 0.4rem; font-size: 0.9rem; line-height: 1.35; }

.t1 { background: var(--d1); color: #fff; }
.t2 { background: var(--d2); color: #fff; }
.t3 { background: var(--d3); color: #fff; }
.t4 { background: var(--d4); color: #1A0F2E; }
.t5 { background: var(--d5); color: #1A0F2E; }
.t6 { background: var(--d6); color: #1A0F2E; }

/* ---------- why + guides / post lists ---------- */
.why, .guides { padding-top: 3rem; }
.archive-list { padding-top: 0; }

.why p { margin: 0 0 1rem; max-width: 40rem; font-size: 1.0625rem; line-height: 1.7; }

.guides ul {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
  border-top: 1px solid var(--rule);
}
.guides li { border-bottom: 1px solid var(--rule); }
.guides a { display: block; padding: 1rem 0; text-decoration: none; }
.guides .g-title {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.05;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.guides .g-desc { display: block; margin-top: 0.3rem; color: var(--muted); font-size: 0.95rem; }

.archive-month { padding-top: 1.5rem; }
.archive-month .section-title { font-size: 1.6rem; margin-bottom: 0.75rem; }

/* ---------- pages, posts, blog ---------- */
.page-head { padding: 2rem 0 1.5rem; }
.page-head .lede { margin-top: 1rem; }
.page-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.4rem, 10vw, 4.25rem);
  line-height: 0.95;
  max-width: 18ch;
}
.meta { margin: 0.75rem 0 0; color: var(--muted); font-size: 0.9rem; }

.featured { margin: 0 0 2rem; }
.featured img { display: block; width: 100%; border-radius: 18px; }

.prose { max-width: 42rem; font-size: 1.0625rem; line-height: 1.75; }
.prose > * { margin-top: 0; margin-bottom: 1.25rem; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); font-weight: 800; line-height: 1.05; margin-top: 2.25rem; margin-bottom: 0.75rem; }
.prose h2 { font-size: 2rem; }
.prose h3 { font-size: 1.55rem; }
.prose h4 { font-size: 1.25rem; }
.prose a { color: var(--d2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose img { border-radius: 12px; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption, .prose .wp-element-caption { color: var(--muted); font-size: 0.875rem; margin-top: 0.5rem; }
.prose blockquote { margin-left: 0; padding-left: 1rem; border-left: 4px solid var(--d4); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose .wp-block-table { overflow-x: auto; }
.prose th, .prose td { padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; }

.wp-block-button__link, .button {
  display: inline-block;
  padding: 0.8rem 1.25rem;
  border-radius: 12px;
  background: var(--d2);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none !important;
}
.wp-block-button__link:hover, .button:hover { background: var(--d1); }

.alignleft { float: left; margin: 0 1.25rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.25rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.pagination .nav-links, .post-navigation .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.page-numbers {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 10px;
  text-decoration: none;
}
.page-numbers.current { background: var(--d1); border-color: var(--d1); color: #fff; }

.empty { color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 3.5rem;
  padding: 1.25rem 0 2.5rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.875rem;
}
.foot-links { margin-bottom: 0.5rem; }
.foot-links a { display: inline-block; padding: 0.6rem 0; color: var(--ink); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.disclosure { margin: 0 0 0.5rem; }

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  .wrap { padding: 0 2rem; }
  .bar { flex-direction: row; align-items: center; justify-content: space-between; }
  .brand { margin: 0; }
  .nav-list { gap: 0 2rem; }
  .hero { padding: 3rem 0; }
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .tile { min-height: 14rem; padding: 1.25rem; }
  .tile .name { font-size: 1.9rem; }
  .section-title { font-size: 2.4rem; }
  .archive-month .section-title { font-size: 1.8rem; }
  .page-head { padding: 3rem 0 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
  .tile:active { transform: none; }
}
