/* Brianne Goutal LLC — styles
   Palette is deliberately open: three directions are defined below.
   Set data-palette="a" | "b" | "c" on <html> to choose. */

:root,
[data-palette="a"] {
  /* Direction A — Architectural minimalism: stone, graphite, saddle leather */
  --paper: #f2f1ee;
  --stone: #e2dfd9;
  --stone-2: #cdc8bf;
  --ink: #232425;
  --graphite: #2f3133;
  --muted: #6e6a64;
  --line: #d3cfc8;
  --accent: #6e4a33;
  --on-dark: #eceae5;
  --on-dark-muted: #a7a39c;
}

[data-palette="b"] {
  /* Direction B — Contemporary sporting elegance: navy, warm white, grey */
  --paper: #f7f6f3;
  --stone: #e3e5e7;
  --stone-2: #c6ccd2;
  --ink: #17212d;
  --graphite: #1b2a3b;
  --muted: #677180;
  --line: #d5d9de;
  --accent: #3e5a7a;
  --on-dark: #eef0f2;
  --on-dark-muted: #9aa6b4;
}

[data-palette="c"] {
  /* Direction C — Modern editorial: white, near-black, one oxblood accent */
  --paper: #ffffff;
  --stone: #ececec;
  --stone-2: #d4d4d4;
  --ink: #161616;
  --graphite: #1a1a1a;
  --muted: #6b6b6b;
  --line: #dddddd;
  --accent: #6a1f24;
  --on-dark: #f2f2f2;
  --on-dark-muted: #9c9c9c;
}

:root {
  --serif: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --max: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --gap: clamp(16px, 2.2vw, 32px);
  --space: clamp(80px, 11vw, 168px);
}

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

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.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;
}

.skip {
  position: absolute; left: var(--gutter); top: -60px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; font-size: .875rem; z-index: 10;
}
.skip:focus { top: 12px; }

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

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

/* Links: quiet underline that appears on hover */
.link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .28em;
  text-decoration-color: var(--line);
  transition: text-decoration-color .3s ease;
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-block: 26px 22px;
}

.site-header__name {
  font-weight: 500;
  font-size: .9375rem;
  letter-spacing: .01em;
  text-decoration: none;
}

.nav ul { display: flex; gap: clamp(20px, 2.6vw, 40px); }

.nav a {
  font-size: .9375rem;
  text-decoration: none;
  color: var(--graphite);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px;
  transition: background-size .4s ease;
}
.nav a:hover, .nav a[aria-current="page"] { background-size: 100% 1px; }
.nav .short { display: none; }

/* ---------- Frames (photographs and placeholders) ---------- */

.frame { position: relative; overflow: hidden; background: var(--stone); }
.frame > img, .frame > .ph {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.frame--portrait { aspect-ratio: 4 / 5; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame--land { aspect-ratio: 3 / 2; }
.frame--wide { aspect-ratio: 21 / 9; }

/* Placeholder until the business's own photographs are in */
.ph {
  background: linear-gradient(165deg, var(--stone) 0%, var(--stone-2) 100%);
}
.ph span {
  position: absolute; left: 16px; bottom: 14px; max-width: 30ch;
  font-size: .75rem; line-height: 1.45; color: var(--muted);
}

/* ---------- Hero ---------- */

.hero { padding-bottom: var(--space); }

.hero .frame { height: clamp(380px, 72svh, 880px); }

.hero__name { margin-top: clamp(22px, 2.6vw, 40px); line-height: 0; }
.hero__name svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero__name text { font-family: var(--sans); font-weight: 500; fill: var(--ink); }

.hero__meta {
  display: flex; justify-content: space-between; gap: 24px;
  margin-top: clamp(16px, 1.6vw, 24px);
  font-size: .9375rem; color: var(--muted);
}

@media (prefers-reduced-motion: no-preference) {
  .hero .frame { animation: reveal 1.4s cubic-bezier(.2, .7, .1, 1) both; }
  .hero__name, .hero__meta { animation: rise 1s .5s cubic-bezier(.2, .7, .1, 1) both; }
}
@keyframes reveal { from { clip-path: inset(4% 4% 4% 4%); opacity: .4; } to { clip-path: inset(0); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */

.section { padding-bottom: var(--space); }

.section__head {
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 3vw, 44px);
  margin-bottom: clamp(48px, 6vw, 96px);
  row-gap: 20px;
}

.section__title {
  grid-column: 1 / span 4;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.875rem, 2.8vw, 2.625rem);
  line-height: 1.08;
  letter-spacing: -.005em;
}

.section__intro {
  grid-column: 6 / span 6;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.4;
  max-width: 30em;
}

.prose p { max-width: 36em; }
.prose p + p { margin-top: 1.1em; }

.item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.375rem, 1.9vw, 1.75rem);
  line-height: 1.15;
  margin-top: 24px;
}
.item p { margin-top: 10px; max-width: 34em; color: var(--graphite); }

/* Introduction */
.intro__lead {
  grid-column: 1 / span 10;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.5vw, 3.125rem);
  line-height: 1.16;
  letter-spacing: -.01em;
  max-width: 22em;
}
.intro__text { grid-column: 7 / span 5; margin-top: clamp(32px, 4vw, 56px); color: var(--graphite); }

/* About */
.about__portrait { grid-column: 1 / span 5; }
.about__text { grid-column: 7 / span 6; align-self: end; }

.results { margin-top: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.results li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 16px;
  padding-block: 14px;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}
.results time { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Training & Development */
.pair .item:first-child { grid-column: 1 / span 6; }
.pair .item:last-child { grid-column: 8 / span 5; margin-top: clamp(80px, 14vw, 220px); }

/* Interlude */
.interlude { padding-bottom: var(--space); }
.interlude .frame { max-height: 82svh; }

/* Horses */
.horses__image { grid-column: 1 / span 7; }
.horses__text { grid-column: 9 / span 4; display: grid; gap: clamp(36px, 4vw, 56px); align-content: start; }
.horses__text .item h3 { margin-top: 0; }
.horses__note {
  grid-column: 9 / span 4;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--graphite);
}

/* ---------- Contact ---------- */

.contact {
  background: var(--graphite);
  color: var(--on-dark);
  padding-top: clamp(72px, 9vw, 128px);
}
.contact .section__head { border-top: 0; padding-top: 0; }
.contact .section__intro { color: var(--on-dark); }
.contact .link { text-decoration-color: rgba(255, 255, 255, .28); }
.contact .link:hover { text-decoration-color: currentColor; }

.details { grid-column: 6 / span 7; display: grid; grid-template-columns: 1fr .8fr 1.4fr; gap: var(--gap); }
.details dt { font-size: .8125rem; color: var(--on-dark-muted); margin-bottom: 8px; }
.details p, .details address { font-style: normal; font-size: 1rem; line-height: 1.55; }

.site-footer {
  margin-top: clamp(96px, 12vw, 176px);
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-block: 24px 32px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: .8125rem; color: var(--on-dark-muted);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }

/* ---------- Simple pages (privacy, 404) ---------- */

.page { padding-block: clamp(56px, 8vw, 120px) var(--space); }
.page h1 {
  grid-column: 1 / span 5;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.25rem, 4vw, 3.5rem); line-height: 1.05;
}
.page .prose { grid-column: 6 / span 7; }
.page .prose h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.5rem; line-height: 1.2; margin: 2em 0 .5em;
}
.page .prose h2:first-child { margin-top: 0; }
.page .prose ul { list-style: disc; padding-left: 1.2em; max-width: 36em; }
.page .prose li + li { margin-top: .4em; }
.page .meta { color: var(--muted); font-size: .875rem; margin-bottom: 2em; }

.page-footer {
  border-top: 1px solid var(--line);
  padding-block: 24px 32px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: .8125rem; color: var(--muted);
}
.page-footer a { text-decoration: none; }

/* ---------- Small screens ---------- */

@media (max-width: 860px) {
  .site-header .wrap { flex-direction: column; gap: 10px; padding-block: 20px 18px; }
  .nav ul { gap: 20px; flex-wrap: wrap; }
  .nav .long { display: none; }
  .nav .short { display: inline; }

  .grid > * { grid-column: 1 / -1 !important; }

  .hero .frame { height: 64svh; min-height: 380px; }
  .hero__meta { flex-direction: column; gap: 2px; }

  .section__head { margin-bottom: 40px; }
  .intro__text { margin-top: 28px; }
  .about__text { margin-top: 40px; }
  .pair .item:last-child { margin-top: 64px; }
  .horses__text { margin-top: 40px; }
  .interlude .frame { aspect-ratio: 4 / 3; }

  .details { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { flex-direction: column; gap: 8px; }
}

/* About heading with role line */
.about__head { grid-column: 1 / -1; }
.about__role { margin-top: 12px; font-size: .9375rem; color: var(--muted); }
.about__text { align-self: start; }

/* Refinements (Nov 5): smaller wordmark, larger tagline, compact contact/footer */
.hero__name svg { width: min(62%, 820px); }
.hero__meta { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); color: var(--graphite); }
.contact { padding-top: clamp(36px, 4.5vw, 64px); }
.contact .section__head { margin-bottom: clamp(24px, 3vw, 48px); }
.contact .section__title { font-size: clamp(1.5rem, 2vw, 1.875rem); }
.site-footer { margin-top: clamp(48px, 6vw, 88px); padding-block: 16px 20px; }
@media (max-width: 860px) {
  .hero__name svg { width: 86%; }
}
.hero__name { margin-top: clamp(32px, 3.8vw, 60px); }
.hero { padding-bottom: clamp(56px, 7.5vw, 116px); }
