:root {
  --charcoal-950: #171412;
  --espresso-900: #2b211b;
  --espresso-800: #443126;
  --leather-600: #8a5a38;
  --copper-500: #b87443;
  --turquoise-600: #3f7774;
  --turquoise-700: #315f5d;
  --sand-100: #eee5d6;
  --sand-50: #faf7f1;
  --stone-300: #d6cabc;
  --ink: #2a2521;
  --white: #ffffff;
  --shadow: 0 14px 35px rgba(43, 33, 27, .11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--sand-50); font-family: "Source Sans 3", sans-serif; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--turquoise-700); }
a:hover { color: var(--copper-500); }
.wrap { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

.site-header { background: var(--espresso-900); color: var(--white); }
.masthead { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand-name { display: block; font-family: "Libre Baskerville", serif; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.1; }
.brand-tagline { display: block; margin-top: .55rem; color: var(--sand-100); letter-spacing: .04em; }
.site-nav { border-top: 1px solid rgba(255,255,255,.1); background: var(--charcoal-950); }
.nav-inner { display: flex; align-items: center; }
.site-nav a { display: block; padding: .95rem 1.15rem; color: var(--white); text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a.active { color: var(--white); background: var(--turquoise-700); }
.nav-toggle { display: none; border: 1px solid rgba(255,255,255,.35); background: transparent; color: var(--white); padding: .65rem .9rem; border-radius: 4px; }

.hero { padding: 5rem 0; color: var(--white); background: linear-gradient(rgba(43,33,27,.86),rgba(43,33,27,.86)), radial-gradient(circle at top right, var(--turquoise-600) 0, var(--leather-600) 42%, var(--charcoal-950) 100%); }
.hero-copy { max-width: 800px; }
.eyebrow { margin: 0 0 .75rem; color: #d9b07f; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; }
.hero h1, .page-heading h1, .section-title { font-family: "Libre Baskerville", serif; }
.hero h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.1; }
.hero p { font-size: 1.18rem; color: #f2ece4; }
.button { display: inline-block; margin-top: 1rem; padding: .75rem 1.1rem; border: 1px solid var(--copper-500); background: var(--copper-500); color: var(--charcoal-950); text-decoration: none; font-weight: 700; border-radius: 3px; }
.button:hover { background: #c88754; color: var(--charcoal-950); }
.button-secondary { background: transparent; color: var(--espresso-900); border-color: var(--leather-600); }
.button-secondary:hover { background: var(--leather-600); color: var(--white); }

.page-section { padding: 4rem 0; }
.page-section.alt, .section-tint { background: var(--sand-100); }
.section-title { margin: 0 0 1.5rem; font-size: 2rem; }
.card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; }
.info-card, .content-panel, .values-panel, .staff-card, .link-card { background: var(--white); border: 1px solid var(--stone-300); box-shadow: var(--shadow); }
.info-card { padding: 1.5rem; border-top: 4px solid var(--turquoise-600); }
.info-card h3, .staff-card h3 { margin-top: 0; font-family: "Libre Baskerville", serif; }
.content-panel { padding: 1.75rem; }
.page-heading { padding: 3rem 0; background: var(--sand-100); border-bottom: 1px solid var(--stone-300); }
.page-heading h1 { margin: 0; font-size: 2.6rem; }
.page-intro { max-width: 760px; margin: .75rem 0 0; color: #615950; font-size: 1.08rem; }

.about-layout { display: grid; grid-template-columns: minmax(260px,.75fr) minmax(0,1.75fr); gap: 1.5rem; align-items: start; }
.values-panel { padding: 1.5rem; border-top: 4px solid var(--turquoise-600); }
.feature-list { margin: 0; padding-left: 1.25rem; }
.feature-list li + li { margin-top: .75rem; }
.prose-panel p:first-child { margin-top: 0; }
.prose-panel p:last-child { margin-bottom: 0; }
.staff-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.25rem; }
.staff-card { padding: 1.5rem; border-top: 4px solid var(--leather-600); }
.card-kicker { margin: 0 0 .45rem; color: var(--leather-600); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.link-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; }
.link-card { padding: 1.5rem; border-top: 4px solid var(--turquoise-600); }
.link-card h2 { font-family: "Libre Baskerville", serif; font-size: 1.3rem; }
.coming-soon { display: inline-block; margin-top: .6rem; padding: .35rem .55rem; background: var(--sand-100); color: var(--espresso-800); font-size: .88rem; font-weight: 700; }

.directory-toolbar { display: grid; grid-template-columns: minmax(220px,2fr) repeat(5,minmax(140px,1fr)); gap: 1rem; align-items: end; padding: 1.25rem; background: var(--sand-100); border: 1px solid var(--stone-300); }
.filter-field label { display: block; margin-bottom: .35rem; color: var(--espresso-900); font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.filter-field input, .filter-field select { width: 100%; min-height: 47px; padding: .65rem .75rem; border: 1px solid #c9beb0; background: var(--white); color: var(--ink); font: inherit; }
.filter-clear { min-height: 43px; margin: 0; justify-self: start; }
.directory-summary { display: flex; justify-content: flex-end; padding: .8rem 0; font-weight: 600; }
.directory-summary p { margin: 0; }
.horse-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; }
.horse-card { display: flex; flex-direction: column; min-height: 280px; padding: 1.35rem; background: var(--white); border: 1px solid var(--stone-300); border-top: 4px solid var(--turquoise-600); box-shadow: var(--shadow); }
.horse-card-header { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid #ded5ca; }
.horse-card-header h2 { margin: 0; font-family: "Libre Baskerville", serif; font-size: 1.35rem; }
.horse-card-header p { margin: .45rem 0 0; color: #665e56; }
.status-badge { height: fit-content; padding: .35rem .55rem; border: 1px solid #aab8b4; border-radius: 99px; background: #eef3f1; color: var(--turquoise-700); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.horse-card-details { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1rem 0; }
.horse-card-details div { min-width: 0; }
.horse-card-details dt { color: #68706c; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.horse-card-details dd { margin: .2rem 0 0; font-weight: 600; }
.horse-note { margin: 0 0 0.4rem !important; color: #62584e; }
.horse-pedigree { margin: 0 0 1rem; }
.horse-profile-link { margin-top: 0; color: var(--espresso-900); font-weight: 700; text-decoration: none; }
.horse-profile-link:hover { color: var(--copper-500); }
.horse-profile-link.disabled { color: #8c837a; }
.empty-state { padding: 3rem; text-align: center; border: 1px dashed var(--stone-300); }

.site-footer { margin-top: 4rem; background: var(--espresso-900); color: var(--sand-100); }
.footer-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 2rem; padding: 3rem 0; }
.site-footer h2 { margin-top: 0; font-family: "Libre Baskerville", serif; font-size: 1.15rem; color: var(--white); }
.site-footer a { color: #ddb487; }
.copyright-bar { padding: 1rem 0; background: var(--charcoal-950); color: var(--stone-300); font-size: .92rem; }

@media (max-width: 1050px) {
  .directory-toolbar { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .filter-search { grid-column: span 2; }
  .horse-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .masthead { min-height: 120px; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .nav-inner { flex-direction: column; align-items: stretch; padding: .4rem 0; }
  .site-nav a { padding: .85rem 0; }
  .card-grid, .footer-grid, .about-layout, .staff-grid, .link-card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .directory-toolbar, .horse-grid { grid-template-columns: 1fr; }
  .filter-search { grid-column: auto; }
  .horse-card-header { flex-direction: column; }
  .status-badge { align-self: flex-start; }
}