/* Letter Perfect Farm: the whole site's look ("Centerline").
   Colors and fonts are the variables below; change them here only. */

:root {
	--paper: #fff;
	--ink: #1c2b22;
	--muted: #5a6b60;      /* small labels, dates, footer */
	--soft-ink: #44554a;   /* secondary paragraphs */
	--faint: #7b897f;      /* "none held" and similar */
	--grass: #2e6b3e;      /* buttons, the home contact band */
	--clover: #dcebd5;     /* current menu entry */
	--rail: #f3f6f1;       /* pale bands and pills */
	--line: #dfe6dc;       /* rules and table lines */
	--underline: #9fbf98;  /* link underline on inner pages */
	--footing: #ebe3d0;    /* arena frame */
	--focus: #1f7fb5;
	--head: "Bricolage Grotesque", system-ui, sans-serif;
	--body: "Figtree", system-ui, sans-serif;
	--r-btn: 999px;
}

/* Basics */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; }
a { color: var(--grass); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.clearfix::after { content: ""; display: block; clear: both; }

.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: .7em 1.25em; border-radius: var(--r-btn); background: var(--grass); color: #fff; border: 2px solid var(--grass); }
.btn.ghost { background: transparent; color: var(--grass); }
.btn:hover { filter: brightness(1.08); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Header and menu */

.top { display: flex; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 66px; }
.brand b { font-family: var(--head); font-size: 1.25rem; font-weight: 650; line-height: 1.1; }
.brand small { display: block; font-family: var(--body); font-weight: 400; font-size: .85rem; color: var(--muted); }
.nav ul { display: flex; gap: 4px; align-items: center; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; text-decoration: none; color: var(--ink); font-weight: 500; padding: .45em .8em; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--rail); }
.nav a[aria-current] { background: var(--clover); }
.nav .btn { color: #fff; margin-left: 8px; padding: .5em 1.1em; }
.nav .btn:hover { background: var(--grass); }
.menu-btn { display: none; font: inherit; font-weight: 600; background: none; border: 2px solid currentColor; color: inherit; border-radius: var(--r-btn); padding: .4em .9em; cursor: pointer; }

/* Contact band and footer */

.visit { background: var(--grass); color: #fff; padding: 48px 0; }
.visit .wrap { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; }
.visit-head { margin-right: auto; }
.visit h2 { font-size: 1.7rem; font-weight: 650; margin-bottom: .2em; }
.visit p { margin: 0; }
.visit a { color: #fff; }
.visit .btn { background: #fff; color: var(--grass); border-color: #fff; }
.visit.soft { background: var(--rail); color: var(--ink); }
.visit.soft a { color: var(--ink); }
.visit.soft .btn { background: var(--grass); border-color: var(--grass); color: #fff; }
.foot { padding: 26px 0; font-size: .92rem; color: var(--muted); }
.foot .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot a { color: inherit; }
.foot .links { display: flex; gap: 18px; margin-right: auto; flex-wrap: wrap; }
.social { display: flex; gap: 14px; align-items: center; }
.social a { color: inherit; display: inline-flex; }
.social svg { fill: currentColor; }

/* Home page */

.hero { padding-top: 36px; padding-bottom: 32px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(1.45rem, 2.7vw, 2.1rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.hero p { font-size: 1.1rem; color: var(--soft-ink); margin-bottom: 1.1em; }

/* The photo frame is a dressage arena seen from above: letters K E H along
   one long side, F B M along the other, A and C at the ends. */
.arena { position: relative; background: var(--footing); padding: 34px 42px; border-radius: 10px; }
.arena .rot { border: 5px solid #fff; border-radius: 3px; }
.arena i { position: absolute; width: 28px; height: 28px; display: grid; place-items: center; background: #fff; color: var(--ink); font: 650 15px/1 var(--head); font-style: normal; border-radius: 4px; box-shadow: 0 1px 0 rgba(0, 0, 0, .18); transform: translate(-50%, -50%); }
.arena .t { top: 17px; }
.arena .bm { top: calc(100% - 17px); }
.arena .p1 { left: calc(42px + (100% - 84px) * .1); }
.arena .p2 { left: 50%; }
.arena .p3 { left: calc(42px + (100% - 84px) * .9); }
.arena .l { left: 21px; top: 50%; }
.arena .r { left: calc(100% - 21px); top: 50%; }

.rot { position: relative; aspect-ratio: 8 / 3; overflow: hidden; background: #ddd; }
.rot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.rot img.on { opacity: 1; }
.rot-dots { position: absolute; right: 12px; bottom: 10px; display: flex; gap: 2px; z-index: 2; }
.rot-dots button { width: 24px; height: 24px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.rot-dots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.rot-dots button[aria-current=true]::before { background: #fff; }

.split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; padding-top: 64px; padding-bottom: 56px; }
.split h2, .services h2 { font-size: 1.6rem; font-weight: 650; margin-bottom: .6em; }
.newslist { margin: 0; padding: 0; list-style: none; }
.newslist li { padding: 14px 0; border-top: 1px solid var(--line); }
.newslist time { font-size: .85rem; color: var(--muted); }
.newslist h3 { font-size: 1.1rem; font-weight: 600; margin: 2px 0 4px; }
.newslist p { margin: 0; font-size: .95rem; color: var(--soft-ink); }
.newslist a { text-decoration: none; }
.newslist a:hover { text-decoration: underline; }
.more { display: inline-block; margin-top: 12px; font-weight: 600; }
.services { background: var(--rail); padding: 56px 0; }
.services .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.svc h3 { font-size: 1.15rem; font-weight: 650; margin-bottom: .4em; padding-top: 12px; border-top: 3px solid var(--grass); }
.svc p { font-size: .95rem; margin: 0; color: var(--soft-ink); }

/* Inner pages. Green is kept for buttons and the current menu entry; links
   here are dark text with a soft green underline. */

.page { padding-top: 40px; padding-bottom: 64px; max-width: 860px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 650; letter-spacing: -.02em; margin-bottom: .5em; }
.page h2 { font-size: 1.45rem; font-weight: 650; margin: 1.8em 0 .6em; }
.page h3 { font-size: 1.2rem; font-weight: 650; margin: 1.6em 0 .5em; }
.page a:not(.btn) { color: var(--ink); text-decoration-color: var(--underline); text-underline-offset: 3px; overflow-wrap: anywhere; }
.page a:not(.btn):hover { color: var(--grass); }
.page li { margin-bottom: .25em; }
.page ul { margin: 0 0 1em; padding-left: 1.3em; }
.lede { font-size: 1.12rem; color: var(--soft-ink); }

/* Round links: the pages of a section, earlier show seasons, news archive. */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1em; padding: 0; list-style: none; }
.page .pills { padding: 0; }
.pills li { margin: 0; }
.pills a { display: block; text-decoration: none; padding: .3em .8em; border-radius: 999px; background: var(--rail); font-weight: 500; }
.pills a:hover, .pills a[aria-current] { background: var(--clover); }
.subnav { margin-bottom: 28px; }
.pills-label { margin: 22px 0 8px; font-weight: 600; }

/* Blocks side by side; they stack on phones. */
.cols { display: grid; gap: 8px 32px; margin-bottom: 1em; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols > div > :first-child { margin-top: 0; }
/* Clinics: date, clinician, then a wide biography. */
.clinic { grid-template-columns: 5em 11em 1fr; padding: 22px 0 6px; border-top: 1px solid var(--line); }
.clinician { grid-template-columns: 11em 1fr; }  /* no date: clinician, then biography */

/* Contact page: address, email, then the social links, each with its logo on one line. */
.contact { grid-template-columns: auto auto auto; justify-content: space-between; }
.follow { margin-bottom: .5em; }
.follow a { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.follow svg { fill: currentColor; flex: none; }

/* Show dates and judges; season results. */
.schedule, .results { margin: 0 0 1.5em; }
.schedule th, .schedule td, .results th, .results td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.schedule thead th, .results thead th { font-size: .88rem; color: var(--muted); font-weight: 600; }
.schedule td p:last-child { margin-bottom: 0; }
.results tbody th { font-family: var(--head); font-weight: 650; }
.none, .here { color: var(--faint); }

/* Pictures */
.notice { background: var(--footing); border-left: 4px solid var(--grass); border-radius: 4px; padding: 14px 18px; font-weight: 600; }
.photo { text-align: center; }
.photo img { border-radius: 4px; }
.float-right { float: right; margin: 4px 0 16px 24px; border-radius: 4px; }
.float-left { float: left; margin: 4px 24px 16px 0; border-radius: 4px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(144px, 1fr)); gap: 24px 20px; list-style: none; }
.page .thumbs { padding: 0; }
.thumbs img { display: block; border-radius: 4px; }
.thumbs span { display: block; margin-top: 6px; font-size: .88rem; color: var(--soft-ink); line-height: 1.35; }
.map iframe { display: block; width: 100%; max-width: 640px; height: 320px; border: 1px solid var(--line); border-radius: 6px; }
.map { margin-bottom: .6em; }

/* News */
.post { padding: 22px 0; border-top: 1px solid var(--line); }
.post h2 { margin: 0 0 .15em; }
.post h2 a { text-decoration: none; }
.post h2 a:hover { text-decoration: underline; }
.post-date { display: block; font-size: .88rem; color: var(--muted); margin-bottom: .7em; }
.page > .post-date { margin-top: -.9em; margin-bottom: 1.4em; }
.post-body img { margin: .5em 0; }

@media (max-width: 1000px) {
	.menu-btn { display: block; }
	.top { flex-wrap: wrap; }
	.nav { display: none; width: 100%; }
	.nav-open .nav { display: block; }
	.nav ul { flex-direction: column; align-items: stretch; }
	.nav a { padding: .7em .8em; }
	.nav .btn { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 900px) {
	.hero, .split { grid-template-columns: 1fr; gap: 20px; }
	.split { gap: 40px; }
	.services .grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.rot { aspect-ratio: 3 / 2; }
	.arena { padding: 26px 14px; border-radius: 8px; }
	.arena i { width: 22px; height: 22px; font-size: 12px; }
	.arena .t { top: 13px; }
	.arena .bm { top: calc(100% - 13px); }
	.arena .l, .arena .r { display: none; }
	.arena .p1 { left: calc(14px + (100% - 28px) * .1); }
	.arena .p3 { left: calc(14px + (100% - 28px) * .9); }
	.services .grid { grid-template-columns: 1fr; }
	.cols-2, .cols-3, .clinic, .clinician, .contact { grid-template-columns: 1fr; }
	.schedule th, .schedule td, .results th, .results td { padding: 10px 8px; }
	.float-right, .float-left { float: none; display: block; margin: 0 auto 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.rot img { transition: none; }
}
