/* ============================================================
   PRECISION ORGANICS — BASE RESET + PRIMITIVES
   ============================================================ */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: hidden;
  hanging-punctuation: first last;
}

body {
  min-height: 100dvh;
  overflow-x: hidden;
  max-width: 100vw;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  /* subtle paper texture via layered gradients */
  background-image:
    radial-gradient(1200px 700px at 20% -10%, rgba(184,147,94,0.07), transparent 60%),
    radial-gradient(900px 600px at 90% 110%, rgba(11,26,20,0.04), transparent 60%);
  background-attachment: fixed;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--gold-hover); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

p, li, figcaption { text-wrap: pretty; }

::selection {
  background: rgba(184,147,94,0.35);
  color: var(--ink);
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container--narrow { max-width: var(--content-narrow); }
.container--default { max-width: var(--content-default); }
.container--xwide { max-width: var(--content-xwide); }

@media (min-width: 768px) {
  .container { padding-inline: var(--space-10); }
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

/* ============================================================
   EDITORIAL PRIMITIVES (reusable)
   ============================================================ */

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.eyebrow--no-rule::before { display: none; }

.flourish {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
}

.hairline {
  border: 0;
  height: 1px;
  background: var(--hairline);
}

.hairline--gold {
  background: var(--gold);
}

.chapter-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--gold);
  font-feature-settings: 'lnum';
}

.dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 5.2em;
  float: left;
  line-height: 0.9;
  margin-right: 0.08em;
  margin-top: 0.08em;
  color: var(--gold);
}

.pullquote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.25;
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding: var(--space-4) var(--space-8);
  margin: var(--space-10) 0;
  max-width: 56ch;
}

/* Button: gold underline link, ink primary CTA */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-4) var(--space-8);
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  transition: all var(--transition);
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--paper); }

.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--paper); }
.btn--gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--paper); }

.btn .arrow { transition: transform var(--transition); }
.btn:hover .arrow { transform: translateX(4px); }

/* Link style — gold underline that thickens on hover */
.tlink {
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
  transition: all var(--transition);
}
.tlink:hover { color: var(--gold-hover); border-bottom-width: 2px; padding-bottom: 0; }
