:root {
  --ink: #fff;
  --muted: #fff;
  --paper: #000;
  --paper-2: #000;
  --card: #000;
  --line: rgba(255, 255, 255, 0.28);
  --dark: #000;
  --cream: #fff;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Libre Franklin", "Segoe UI", sans-serif;
  --header: 4.5rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  color: var(--cream);
  transition: background 0.25s ease, color 0.25s ease;
}
.site-header a { color: inherit; text-decoration: none; }
.site-header.is-solid {
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: var(--header);
  padding: 0.7rem 0;
}
.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  margin-right: auto;
}
.brand span { font-size: 0.95rem; opacity: 0.7; }
.nav { display: flex; flex-wrap: wrap; gap: 0.35rem 1.15rem; }
.nav a { font-size: 0.92rem; }
.nav a[aria-current="true"] { text-decoration: underline; text-underline-offset: 0.35em; }
.login {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.1rem;
}
.lang { display: flex; gap: 0.7rem; align-items: center; }
.lang button {
  background: transparent;
  color: inherit;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0.1rem 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
.lang button[aria-pressed="true"] { border-bottom-color: currentColor; }
.editor-tools { display: flex; gap: 1rem; align-items: center; }

.hero {
  position: relative;
  min-height: 100svh;
  background: var(--dark);
  color: var(--cream);
  overflow: hidden;
}
.slides, .slide { position: absolute; inset: 0; }
.slide {
  opacity: 0;
  transition: opacity 0.7s ease;
  background: #000;
}
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.28) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: calc(var(--header) + 2rem) 0 7.5rem;
}
.hero-copy h1 {
  margin: 0;
  max-width: 11ch;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.lede { max-width: 34rem; margin: 1rem 0 0; font-size: 1.15rem; }
.slide-link {
  align-self: flex-start;
  margin-top: 1.25rem;
  color: var(--cream);
  text-underline-offset: 0.3em;
}
.hero-copy.is-fading .lede,
.hero-copy.is-fading h1,
.hero-copy.is-fading .slide-link { opacity: 0; }
.hero-copy h1, .hero-copy .lede, .hero-copy .slide-link { transition: opacity 0.25s ease; }
.hero-controls[hidden] { display: none; }
.hero-controls {
  position: absolute;
  z-index: 2;
  left: max(1.25rem, calc(50% - 560px));
  bottom: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.hero-controls button, .dots button {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  cursor: pointer;
}
.hero-controls > button { width: 2.4rem; height: 2.4rem; }
.dots { display: flex; gap: 0.35rem; }
.dots button { width: 0.55rem; height: 0.55rem; padding: 0; }
.dots button[aria-current="true"] { background: var(--cream); }

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow.light { color: rgba(255, 255, 255, 0.78); }
.wrap { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; }
.narrow { width: min(720px, calc(100% - 2.5rem)); }
.band { padding: 5.5rem 0; scroll-margin-top: 4.5rem; }
button, .item, .panel { scroll-margin-top: 5.5rem; }
.band h2, .admin h1, .gate h1, .editor h1 {
  margin: 0 0 0.6rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
#about-text p:first-child {
  margin-top: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.quiet { color: var(--muted); margin-top: 0; }

.band-horses { background: var(--paper-2); }
.horse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.1rem;
  margin-top: 1.8rem;
}
.horse {
  background: var(--card);
  border: 1px solid var(--line);
}
.horse-photo {
  aspect-ratio: 4 / 5;
  background: #000;
  border-bottom: 1px solid var(--line);
}
.horse-photo img { width: 100%; height: 100%; object-fit: cover; }
.horse-body { padding: 1rem 1rem 1.15rem; }
.horse h3 { margin: 0; font-family: var(--serif); font-size: 1.55rem; font-weight: 500; }
.price { margin: 0.25rem 0 0.45rem; color: var(--muted); font-size: 0.92rem; }
.horse p { margin: 0; }
.empty { margin-top: 1rem; color: var(--muted); }

.contact-layout {
  display: grid;
  gap: 2rem;
}
.contact-form { display: grid; gap: 0.15rem; margin-top: 1.5rem; }
.contact-form button { justify-self: start; margin-top: 0.8rem; }
.contact-card {
  background: #000;
  color: #fff;
  border: 1px solid var(--line);
  padding: 1.5rem;
}
.contact-label {
  margin: 1rem 0 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.62;
}
.contact-card .contact-label:first-child { margin-top: 0; }
.contact-card p { margin: 0; white-space: pre-line; }
.phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-top: 1.25rem;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
}
.phone-icon svg { width: 1.35rem; height: 1.35rem; }
.social { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: inherit;
  text-decoration: none;
}
.social a svg { width: 1.25rem; height: 1.25rem; }

.site-footer { background: var(--dark); color: var(--cream); padding: 2.5rem 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-brand { margin: 0 0 0.4rem; font-family: var(--serif); font-size: 1.6rem; }
.site-footer p { margin: 0; white-space: pre-line; color: #fff; }
.footer-grid .social { margin-top: 0; }

.admin { background: var(--paper); }
.admin-main { width: min(860px, calc(100% - 2rem)); margin: 0 auto; padding: calc(var(--header) + 2rem) 0 6rem; }
.gate, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.25rem;
  margin-top: 1rem;
}
.gate { margin-top: 2rem; }
.editor-head, .panel-head, .savebar, .row-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.editor h1 { margin-bottom: 0; }
.panel h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 1.7rem; }
.item {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
  padding-top: 1rem;
}
label { display: grid; gap: 0.35rem; margin-top: 0.8rem; font-size: 0.86rem; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #000;
  color: #fff;
  padding: 0.7rem 0.75rem;
  border-radius: 0;
}
input::placeholder, textarea::placeholder { color: rgba(255, 255, 255, 0.45); }
.fields { display: grid; gap: 0.2rem; }
button, .text-button {
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  padding: 0.7rem 1rem;
  cursor: pointer;
}
.panel-head button, .row-actions button, .text-button {
  background: #000;
  color: #fff;
  border: 1px solid var(--line);
}
.savebar {
  position: sticky;
  bottom: 0;
  background: #000;
  border: 1px solid var(--line);
  padding: 0.8rem;
  margin-top: 1rem;
}
.form-note { min-height: 1.4em; margin: 0.6rem 0 0; color: var(--muted); }
.gate button { margin-top: 1rem; }

@media (min-width: 860px) {
  .header-inner { flex-wrap: nowrap; }
  .nav { width: auto; }
  .contact-layout { grid-template-columns: 1.1fr 0.9fr; align-items: end; }
  .fields { grid-template-columns: 1fr 1fr; gap: 0 1rem; }
  .fields label:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide, .hero-copy h1, .hero-copy .lede, .hero-copy .slide-link, .site-header { transition: none; }
}
