/* Feathered Horn Taxidermy — styles */
:root {
  /* palette */
  --ink: #16201A;
  --moss: #2C3B2F;
  --bone: #F1EADB;
  --ochre: #B07A34;
  --ochre-light: #D29A52;
  --teal: #1F6E6B;
  --violet: #4B3F72;
  --paper: #E6DCC6;
  --text-dark: #1B2420;
  --text-muted-dark: #4A554D;
  --text-light: #EDE6D6;
  --text-muted-light: #BFC6B8;
  --line-dark: rgba(22, 32, 26, 0.18);
  --line-light: rgba(241, 234, 219, 0.16);
  --error: #B3452F;
  --error-light: #F0A08C;

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6rem;
  --gutter: 1rem;
  --container: 72rem;

  /* radii */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* shadows */
  --shadow-sm: 0 1px 2px rgba(10, 16, 12, 0.18);
  --shadow-md: 0 10px 30px -12px rgba(10, 16, 12, 0.45);
  --shadow-tag: 0 22px 40px -18px rgba(0, 0, 0, 0.7), 0 2px 4px rgba(0, 0, 0, 0.25);

  /* speculum (mallard wing patch) */
  --speculum: linear-gradient(90deg, var(--bone) 0 2%, var(--ink) 2% 3%, var(--teal) 3%, #2B5C86 35%, var(--violet) 65%, #2E6E5A 97%, var(--ink) 97% 98%, var(--bone) 98% 100%);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

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

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 8vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 5vw, 2.8rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 var(--space-4); }

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

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--ochre);
  color: var(--ink);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
  z-index: 100;
}
.skip-link:focus { transform: translateY(0); }

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

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre);
  margin-bottom: var(--space-3);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(22, 32, 26, 0.94);
  color: var(--text-light);
  border-bottom: 1px solid var(--line-light);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.brand-mark { width: 36px; height: 36px; }
.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.brand-text small {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre-light);
}

.burger {
  width: 44px;
  height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-light);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--ink);
  border-bottom: 1px solid var(--line-light);
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}
.site-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: var(--space-3) var(--gutter) var(--space-5);
}
.site-nav a {
  display: block;
  padding: var(--space-3) 0;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line-light);
}
.site-nav a:hover { color: var(--ochre-light); }
.site-nav .nav-cta { color: var(--ochre-light); border-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ochre-light); color: var(--ink); }
.btn-ghost { border-color: rgba(241, 234, 219, 0.45); color: var(--text-light); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(31, 110, 107, 0.28), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(176, 122, 52, 0.16), transparent 40%),
    var(--ink);
  color: var(--text-light);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(241, 234, 219, 0.025) 0 1px, transparent 1px 14px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: var(--space-7);
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--ochre-light);
}
.hero .eyebrow { color: var(--ochre-light); }
.lead { font-size: 1.08rem; color: var(--text-muted-light); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

/* the specimen tag */
.tag-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: var(--space-6);
}
.tag-string {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 64px;
  background: repeating-linear-gradient(180deg, #C9B48A 0 3px, #9C8660 3px 6px);
  transform: translateX(-50%) rotate(-8deg);
  transform-origin: top center;
}
.tag {
  position: relative;
  width: min(100%, 300px);
  padding: var(--space-7) var(--space-5) var(--space-5);
  color: var(--text-dark);
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(27, 36, 32, 0.07) 27px 28px),
    linear-gradient(160deg, #F6EFDF, var(--paper));
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) var(--radius-md);
  clip-path: polygon(18% 0, 82% 0, 100% 12%, 100% 100%, 0 100%, 0 12%);
  box-shadow: var(--shadow-tag);
  transform: rotate(-4deg);
  animation: sway 7s var(--ease) infinite alternate;
  transform-origin: 50% -20px;
}
.tag-hole {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px #CDBE9C;
  transform: translateX(-50%);
}
.tag-head {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  color: var(--moss);
  border-bottom: 1px solid var(--line-dark);
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-3);
}
.tag-art { width: 100%; height: auto; color: var(--moss); margin: 0 auto var(--space-3); }
.tag-fields { margin: 0; }
.tag-fields div {
  display: flex;
  align-items: flex-end;
  gap: var(--space-2);
  padding: var(--space-2) 0;
}
.tag-fields dt {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text-muted-dark);
}
.tag-fields dd {
  flex: 1;
  margin: 0;
  height: 1px;
  border-bottom: 1px dashed rgba(27, 36, 32, 0.4);
}
.tag-foot {
  margin: var(--space-3) 0 0;
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-muted-dark);
}

@keyframes sway {
  from { transform: rotate(-4deg); }
  to { transform: rotate(2deg); }
}

/* ---------- Speculum band (signature element) ---------- */
.speculum {
  position: relative;
  height: 14px;
  background: var(--speculum);
  overflow: hidden;
}
.speculum::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-120%);
  animation: sheen 6s var(--ease) infinite;
}
@keyframes sheen {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(380%); }
}

/* ---------- Sections ---------- */
.section { padding: var(--space-8) 0; }
.section-dark { background: var(--moss); color: var(--text-light); }
.section-dark .eyebrow { color: var(--ochre-light); }
.section-dark p { color: var(--text-muted-light); }
.section-paper { background: var(--paper); }

.section-head { max-width: 44rem; margin-bottom: var(--space-7); }
.section-head p:last-child { color: var(--text-muted-dark); }
.section-dark .section-head p:last-child { color: var(--text-muted-light); }

/* cards */
.cards { display: grid; gap: var(--space-5); }
.card {
  position: relative;
  padding: var(--space-6) var(--space-5) var(--space-5);
  background: #FBF7EE;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--speculum);
}
.card-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--ochre);
  margin-bottom: var(--space-3);
}
.card p { color: var(--text-muted-dark); }
.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.ticks li {
  position: relative;
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.95rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95em;
  width: 10px;
  height: 2px;
  background: var(--teal);
}

/* steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: var(--space-5) var(--space-5) var(--space-4) 4.25rem;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: rgba(22, 32, 26, 0.35);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: var(--space-5);
  top: var(--space-5);
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ochre-light);
}
.steps h3 { font-size: 1.15rem; margin-bottom: var(--space-2); color: var(--text-light); }
.steps p { margin: 0; font-size: 0.97rem; }

/* field care */
.care-grid { display: grid; gap: var(--space-5); }
.care {
  padding: var(--space-5);
  border-left: 4px solid var(--teal);
  background: #FBF7EE;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.care h3 { color: var(--moss); }
.care ul { margin: 0; padding-left: 1.1rem; }
.care li { margin-bottom: var(--space-2); color: var(--text-muted-dark); }
.care li::marker { color: var(--ochre); }
.note {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border: 1px dashed rgba(27, 36, 32, 0.35);
  border-radius: var(--radius-md);
  color: var(--text-muted-dark);
  font-size: 0.95rem;
}

/* about */
.about-grid { display: grid; gap: var(--space-7); align-items: center; }
.about-copy p { color: var(--text-muted-dark); }
.about-plate { display: flex; justify-content: center; }
.plate {
  width: min(100%, 320px);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  border-radius: 50% 50% var(--radius-md) var(--radius-md) / 40% 40% var(--radius-md) var(--radius-md);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(241, 234, 219, 0.12), transparent 60%),
    repeating-linear-gradient(90deg, #5A3E22 0 6px, #63452A 6px 9px, #553A20 9px 16px),
    #5A3E22;
  box-shadow: inset 0 0 0 10px #3E2A16, inset 0 0 0 12px var(--ochre), var(--shadow-md);
}
.plate-label {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--bone);
  line-height: 1;
}
.plate-label:nth-child(2) { font-style: italic; color: var(--ochre-light); font-size: 1.5rem; }

/* contact */
.contact-grid { display: grid; gap: var(--space-7); }
.contact-list { margin: var(--space-5) 0 0; }
.contact-list div { padding: var(--space-3) 0; border-top: 1px solid var(--line-light); }
.contact-list dt {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ochre-light);
}
.contact-list dd { margin: var(--space-1) 0 0; word-break: break-word; }
.contact-list a { color: var(--text-light); }

.form {
  padding: var(--space-5);
  background: var(--ink);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
}
.field { margin-bottom: var(--space-4); }
.field label { display: block; font-weight: 500; margin-bottom: var(--space-2); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  font: inherit;
  color: var(--text-light);
  background: rgba(241, 234, 219, 0.06);
  border: 1px solid rgba(241, 234, 219, 0.28);
  border-radius: var(--radius-sm);
}
.field select option { color: var(--text-dark); }
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9EA697; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ochre-light);
  box-shadow: 0 0 0 3px rgba(210, 154, 82, 0.3);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error-light); }
.error { margin: var(--space-1) 0 0; min-height: 1.2em; font-size: 0.875rem; color: var(--error-light); }
.form-success {
  margin: var(--space-4) 0 0;
  padding: var(--space-3) var(--space-4);
  border-left: 4px solid var(--teal);
  background: rgba(31, 110, 107, 0.2);
  color: var(--text-light);
}

/* ---------- Legal pages ---------- */
.page-hero { background: var(--ink); color: var(--text-light); padding: var(--space-8) 0 var(--space-7); }
.page-hero .eyebrow { color: var(--ochre-light); }
.page-hero p { color: var(--text-muted-light); margin: 0; }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.5rem; margin-top: var(--space-7); }
.prose p, .prose li { color: var(--text-muted-dark); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: var(--space-2); }
.prose a { color: var(--teal); }

.not-found { min-height: 60vh; display: flex; align-items: center; }
.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 20vw, 9rem);
  line-height: 1;
  color: var(--ochre-light);
  margin-bottom: var(--space-4);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--text-light);
  padding: var(--space-7) 0 var(--space-6);
  border-top: 6px solid transparent;
  border-image: var(--speculum) 1;
}
.footer-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--line-light);
}
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}
.footer-nav a { text-decoration: none; color: var(--text-muted-light); }
.footer-nav a:hover { color: var(--ochre-light); }
.legal {
  padding-top: var(--space-5);
  font-size: 0.8125rem; /* 13px */
  line-height: 1.6;
  color: var(--text-muted-light); /* #BFC6B8 on #16201A ≈ 10:1 */
}
.legal p { margin: 0 0 var(--space-2); }
.legal strong { color: var(--text-light); font-weight: 600; }
.legal a { color: var(--text-light); word-break: break-word; }

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Breakpoints ---------- */
@media (min-width: 480px) {
  :root { --gutter: 1.5rem; }
  .form { padding: var(--space-6); }
}

@media (min-width: 768px) {
  :root { --gutter: 2rem; }
  .section { padding: var(--space-9) 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards .card:last-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .care-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1.3fr 1fr; }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 1024px) {
  .burger { display: none; }
  .site-nav {
    position: static;
    opacity: 1;
    transform: none;
    visibility: visible;
    background: transparent;
    border: 0;
  }
  .site-nav ul { display: flex; align-items: center; gap: var(--space-5); padding: 0; }
  .site-nav a { border: 0; padding: var(--space-2) 0; }
  .site-nav .nav-cta {
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--ochre-light);
    border-radius: var(--radius-pill);
  }
  .hero-grid { grid-template-columns: 1.4fr 1fr; align-items: center; padding-top: var(--space-9); padding-bottom: var(--space-9); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards .card:last-child { grid-column: auto; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .care-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .tag { animation: none; }
  .speculum::after { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* legal list (footer) */
.legal-list { margin: 0 0 var(--space-4); display: grid; gap: var(--space-1) var(--space-6); }
.legal-list div { display: flex; flex-wrap: wrap; gap: 0 var(--space-2); }
.legal-list dt { color: var(--text-muted-light); }
.legal-list dt::after { content: ":"; }
.legal-list dd { margin: 0; color: var(--text-light); word-break: break-word; }
.legal-copy { margin: 0; padding-top: var(--space-3); border-top: 1px solid var(--line-light); }
@media (min-width: 768px) { .legal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
