/* The AI Ranch: shared brand styles for the brand sheet and the sales page.
   Birdie (Taylor Penton) is the display face. Until its files are in /fonts,
   Josefin Sans stands in automatically. */

@font-face {
  font-family: "Birdie";
  src: url("../fonts/Birdie.woff2") format("woff2"),
       url("../fonts/Birdie.woff") format("woff"),
       url("../fonts/Birdie.otf") format("opentype");
  font-display: swap;
}

:root {
  --kraft: #E6DCBE;
  --kraft-deep: #D9CCA6;
  --cream: #F2E7C6;
  --orange: #D5702A;
  --ember: #AE551C;
  --ink: #080706;
  --ink-soft: #1C1915;
  --saddle: #4A3B2A;

  --font-display: "Birdie", "Josefin Sans", "Futura", sans-serif;
  --font-body: "Bitter", Georgia, serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--kraft);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Paper grain over everything, like the printed logo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.35  0 0 0 0 0.28  0 0 0 0 0.18  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ember); }

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

/* Type */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 14px;
}
.dark .eyebrow { color: var(--orange); }

.display, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.02;
  margin: 0;
}
h1 { font-size: clamp(42px, 6.4vw, 84px); letter-spacing: 0.03em; }
h2 { font-size: clamp(32px, 4.6vw, 56px); }
h3 { font-size: clamp(20px, 2.2vw, 24px); letter-spacing: 0.08em; line-height: 1.15; }

.lede { font-size: clamp(19px, 2vw, 22px); line-height: 1.55; max-width: 34em; }
.small { font-size: 15px; }
.accent { color: var(--orange); }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.dark { background: var(--ink); color: var(--cream); }
.dark a { color: var(--cream); }
.dark a:hover { color: var(--orange); }

/* Rope divider: a twisted-rope band like the logo border */
.rope {
  height: 16px;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: repeating-linear-gradient(-60deg,
    var(--orange) 0 6px, var(--ember) 6px 8px, var(--orange) 8px 12px, var(--ink) 12px 14px);
}

/* Buttons: stamped, like ink on a crate */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 16px 30px;
  background: var(--orange);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { color: var(--ink); transform: translateY(2px); box-shadow: 0 3px 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.dark .btn { border-color: var(--cream); box-shadow: 0 5px 0 var(--cream); }
.dark .btn:hover { color: var(--ink); box-shadow: 0 3px 0 var(--cream); }

.btn-ghost { background: transparent; color: var(--ink); }
.dark .btn-ghost { color: var(--cream); }

/* Tags and cards */
.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 7px 14px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.card {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 28px;
}
.dark .card { background: var(--ink-soft); color: var(--cream); border-color: var(--orange); box-shadow: 6px 6px 0 var(--orange); }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 36px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange);
  border: 3px solid var(--ink);
}
.dark .check-list li::before { border-color: var(--cream); }

.placeholder { background: var(--orange); color: var(--ink); padding: 0 6px; border-radius: 4px; font-family: var(--font-body); font-weight: 700; }
