/* Maple Creek Carts. A sibling of Maple Creek Advisors: same family of display type and warm paper,
   moved out onto the course. Fairway greens, sand neutrals, and one confident accent: pin-flag yellow.
   Motifs: mown stripes on dark bands and a dashed line of play from tee to pin. */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/bricolage-grotesque-latin.woff2') format('woff2');
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('fonts/public-sans-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Public Sans';
  src: url('fonts/public-sans-italic-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --fairway: #1e4a35;
  --fairway-deep: #163a29;
  --fairway-soft: #2a5f45;
  --fairway-stripe: #22523b;
  --sand: #f4efe4;
  --sand-deep: #ebe3d2;
  --card: #fbf8f1;
  --ink: #1d2420;
  --ink-muted: #4a534d;
  --rule: #d8ceb8;
  --flag: #f0b429;
  --flag-deep: #d99a0b;
  --flag-ink: #7d5700;
  --on-dark: #f4efe4;
  --on-dark-muted: #c6d3c9;

  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Public Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.55rem, 1.15rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.1rem, 1.3rem + 3.4vw, 3.75rem);

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space-section: clamp(2.75rem, 2rem + 3vw, 5rem);
  --radius: 6px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-3); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--fairway); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--flag-ink); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--fairway-deep); outline-offset: 3px; border-radius: 3px; }
.section-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--flag); }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  background: var(--fairway-deep);
  color: var(--on-dark);
  padding: 0.75rem 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip-link:focus { top: 0.75rem; color: var(--on-dark); outline-color: var(--flag); }

.eyebrow, .person-role, .footer-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--flag-ink);
}
.lead { font-size: clamp(1.12rem, 1rem + 0.5vw, 1.3rem); line-height: 1.55; color: var(--ink-muted); max-width: 40em; }
.small { font-size: 0.95rem; color: var(--ink-muted); }
.note { margin-top: 1.75rem; color: var(--ink-muted); max-width: 46em; font-size: 0.98rem; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
@media (prefers-reduced-motion: no-preference) {
  .button { transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
}
.button-primary { background: var(--flag); color: var(--fairway-deep); border-color: var(--flag-deep); }
.button-primary:hover { background: var(--flag-deep); color: var(--fairway-deep); }
.button-secondary { background: transparent; color: var(--fairway); border-color: var(--fairway); }
.button-secondary:hover { background: var(--fairway); color: var(--on-dark); }
.button-light { background: transparent; color: var(--on-dark); border-color: var(--on-dark-muted); }
.button-light:hover { background: var(--on-dark); color: var(--fairway-deep); }
.text-link { font-family: var(--font-display); font-weight: 600; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sand);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--fairway); }
.mark { flex: none; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border: 1.5px solid var(--fairway);
  border-radius: var(--radius);
  background: transparent;
  color: var(--fairway);
  font: 600 1rem var(--font-display);
  cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.menu-icon::before, .menu-icon::after { content: ''; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-toggle[aria-expanded='true'] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded='true'] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-icon::after { top: 0; transform: rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul { display: flex; gap: 0.25rem 1.15rem; flex-wrap: wrap; }
.site-nav ul a {
  display: inline-block;
  padding: 0.5rem 0;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.site-nav ul a:hover { color: var(--fairway); border-bottom-color: var(--rule); }
.site-nav ul a[aria-current='page'] { color: var(--fairway); border-bottom-color: var(--flag); }
.site-nav .button { min-height: 2.75rem; padding: 0.55rem 1rem; font-size: 0.98rem; }

@media (max-width: 960px) {
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 0.75rem var(--gutter) 1.5rem;
    background: var(--sand);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 14px 24px -18px rgba(22, 58, 41, 0.45);
    max-height: calc(100vh - 4.25rem);
    overflow-y: auto;
  }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav ul a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
  .js .site-nav ul a[aria-current='page'] { border-bottom-color: var(--rule); box-shadow: inset 4px 0 0 var(--flag); padding-left: 0.75rem; }
  .no-js .header-inner { flex-wrap: wrap; padding-block: 0.5rem; }
  .no-js .site-nav { flex-wrap: wrap; }
}

/* Hero */
.hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); position: relative; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-copy { display: grid; gap: 1.25rem; justify-items: start; }
.hero-copy .actions { margin-top: 0.5rem; }
.hero-visual { justify-self: center; width: min(100%, 22rem); }
@media (min-width: 900px) { .hero-visual { width: min(100%, 30rem); } }
.hero-art { width: 100%; height: auto; display: block; }
@media (min-width: 900px) {
  .hero-with-art .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
.hero::after {
  content: '';
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 0;
  max-width: calc(74rem - 2 * var(--gutter));
  margin-inline: auto;
  border-bottom: 2px dotted var(--rule);
}

.status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; color: var(--ink-muted); font-size: 0.98rem; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.status-planned { background: var(--sand-deep); color: var(--ink-muted); border: 1px solid var(--rule); }
.status-planned::before { background: transparent; border: 1.5px solid currentColor; }
.status-live { background: var(--fairway); color: var(--on-dark); }

.jump { margin-top: 1rem; width: 100%; }
.jump ul { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.jump a {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.95rem;
  text-decoration: none;
}
.jump a:hover { border-color: var(--fairway); }

/* Sections */
.section { padding-block: var(--space-section); }
.section + .section:not(.section-dark):not(.section-soft) { border-top: 1px solid var(--rule); }
.section-soft { background: var(--sand-deep); }
.section-dark {
  background-color: var(--fairway);
  background-image: repeating-linear-gradient(100deg, var(--fairway) 0 96px, var(--fairway-stripe) 96px 192px);
  color: var(--on-dark);
}
.section-dark .eyebrow { color: var(--flag); }
.section-dark .section-intro, .section-dark .card p, .section-dark .prose p { color: var(--on-dark-muted); }
.section-dark a:not(.button) { color: var(--on-dark); }
.section-dark a:not(.button):hover { color: var(--flag); }
.section-dark .card { background: rgba(244, 239, 228, 0.05); border-color: rgba(198, 211, 201, 0.28); }
.section-dark .card h3 { color: var(--on-dark); }

.section-head { display: grid; gap: 0.75rem; margin-bottom: 2rem; max-width: 46rem; }
.section-intro { color: var(--ink-muted); font-size: 1.08rem; }

.split { display: grid; gap: 1.5rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3.5rem; align-items: start; }
  .split > .section-head { margin-bottom: 0; }
}
.prose { display: grid; gap: 1rem; max-width: 40em; }
.block-action { margin-top: 1.5rem; }
.prose .block-action { margin-top: 0.25rem; }

/* Cards and grids */
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); }
.grid-offerings { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
@media (min-width: 900px) {
  .grid-offerings { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid-offerings > li { grid-column: span 2; }
  .grid-offerings > li:nth-child(n + 4) { grid-column: span 3; }
}
.card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.35rem 1.35rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}
.card h3 { font-size: 1.15rem; }
.card p { color: var(--ink-muted); }
.card-link { margin-top: auto; padding-top: 0.5rem; }
.offering { border-top: 4px solid var(--fairway); }
.offering-top { margin-bottom: 0.25rem; }

/* Audience strip on Home */
.audience-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); border-top: 1px solid var(--rule); }
.audience-link {
  display: grid;
  gap: 0.25rem;
  height: 100%;
  padding: 1.1rem 2.25rem 1.1rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  position: relative;
}
.audience-link::after {
  content: '';
  position: absolute;
  right: 0.75rem;
  top: 1.35rem;
  width: 0.55rem;
  height: 0.55rem;
  border-top: 2px solid var(--fairway);
  border-right: 2px solid var(--fairway);
  transform: rotate(45deg);
}
@media (min-width: 700px) { .audience-strip li:nth-child(odd) .audience-link { margin-right: 1.5rem; } }
.audience-title { font-family: var(--font-display); font-weight: 650; font-size: 1.12rem; color: var(--fairway); }
.audience-body { color: var(--ink-muted); }
.audience-link:hover .audience-title { text-decoration: underline; text-underline-offset: 0.2em; }

/* Tick lists */
.ticks { display: grid; gap: 0.8rem; }
.ticks li { position: relative; padding-left: 1.85rem; }
.ticks li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--flag);
  box-shadow: 0 0 0 3px var(--sand), 0 0 0 4.5px var(--fairway);
}
.section-soft .ticks li::before { box-shadow: 0 0 0 3px var(--sand-deep), 0 0 0 4.5px var(--fairway); }
.list-heading { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--flag-ink); margin-bottom: 1rem; }

/* People */
.people { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); }
.person { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.person > div { display: grid; gap: 0.5rem; }
.person p:not(.person-role) { color: var(--ink-muted); }
.portrait { width: 7.5rem; height: 7.5rem; border-radius: 50%; object-fit: cover; background: var(--sand-deep); }
.people-full { grid-template-columns: 1fr; gap: 2.5rem; }
.people-full .portrait { width: 9.5rem; height: 9.5rem; }
.people-full .person > div { max-width: 42em; gap: 0.75rem; }
@media (max-width: 520px) {
  .person { grid-template-columns: 1fr; }
  .portrait { width: 6.5rem; height: 6.5rem; }
  .people-full .portrait { width: 7.5rem; height: 7.5rem; }
}

/* Events */
.events-heading { margin-top: 2.5rem; margin-bottom: 1rem; }
.events { display: grid; gap: 0.75rem; }
.events li { padding: 1rem 1.25rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.events time { font-weight: 600; }
.event-meta { color: var(--ink-muted); }

/* Contact */
.contact-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.booking-card { border-top: 4px solid var(--flag); gap: 0.9rem; }
.booking-card .actions { margin-top: 0.5rem; }
.contact-emails { display: grid; gap: 1rem; }
.contact-card a { font-weight: 600; word-break: break-word; }

/* Closing call to action */
.cta-inner { display: grid; gap: 1rem; justify-items: start; max-width: 46rem; }
.cta-inner p { color: var(--on-dark-muted); font-size: 1.1rem; }
.cta-inner .actions { margin-top: 0.75rem; }

/* Footer */
.site-footer { background: var(--fairway-deep); color: var(--on-dark-muted); padding-top: 3rem; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--flag); }
.footer-label { color: var(--flag); margin-bottom: 0.75rem; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.25rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { display: grid; gap: 1rem; max-width: 30rem; }
.wordmark-light, .wordmark-light:hover { color: var(--on-dark); }
.footer-col ul { display: grid; gap: 0.5rem; }
.footer-legal { display: grid; gap: 0.5rem; padding-block: 1.5rem 2rem; border-top: 1px solid rgba(198, 211, 201, 0.25); font-size: 0.92rem; }
.disclosure { color: var(--on-dark); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
