:root {
  --ink: #111;
  --olive: #526b32;
  --teal: #0d7580;
  --navy: #0f3f73;
  --paper: #f6f5f1;
  --panel: #f1efeb;
  --line: #b9b9b3;
  --bluewash: #dce6f4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255,255,255,.95), rgba(247,247,244,.95)),
    var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

a { color: #0a57d5; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(90deg, #cfdcf0, #e7edf7);
  border-bottom: 1px solid #d0d7e1;
}

.header-inner {
  width: min(1180px, calc(100% - 30px));
  margin: auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: white;
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  font-weight: 300;
  text-decoration: none;
  letter-spacing: -.04em;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  color: #111;
  text-decoration: none;
  padding: .7rem 1rem;
  border-radius: 5px;
  font-size: 1rem;
}

nav a:hover,
nav a:focus-visible {
  color: white;
  background: var(--navy);
}

nav .contact-nav {
  color: #111;
  border: 1px solid var(--navy);
  background: transparent;
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}

.hero {
  width: min(1180px, calc(100% - 30px));
  margin: 10px auto 0;
}

.hero img {
  width: 100%;
  display: block;
  object-fit: cover;
  border: 0;
}

main {
  width: min(1180px, calc(100% - 30px));
  margin: 18px auto 0;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, .72fr);
  gap: 36px;
  align-items: start;
}

h1, h2, h3 {
  color: var(--olive);
  font-weight: 400;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 4vw, 3.1rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.5rem; }

.welcome {
  padding: 18px 16px 32px;
}

.welcome p {
  font-size: 1.25rem;
  max-width: 720px;
  line-height: 1.7;
}

.zen-panel {
  background: linear-gradient(145deg, #f3f1ed, #eceae6);
  border-radius: 10px;
  padding: 28px 32px;
  margin: 0 16px 2px;
}

.zen-panel p {
  font-size: 1.19rem;
  line-height: 1.6;
  margin-bottom: 0;
  text-align: justify;
  text-justify: inter-word;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0 28px;
}

.schedule {
  padding: 4px 16px 20px;
}

.schedule-row {
  padding: 0 0 20px;
  margin-bottom: 22px;
  border-bottom: 1px solid #c8c8c4;
}

.schedule-row:last-of-type { border-bottom: 0; }

.schedule-row strong { font-size: 1.05rem; }

.time-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  margin: 10px 0;
}

.class-title {
  display: block;
  color: var(--olive);
  font-size: 14pt;
  font-weight: 700;
  margin-bottom: 4px;
}

.schedule p { margin: .5rem 0; }

.sidebar {
  max-width: 290px;
  width: 100%;
  justify-self: end;
  padding: 0 0 20px;
}

.sidebar-section {
  border-top: 1px solid var(--line);
  padding: 12px 0 14px;
}

.sidebar-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.address {
  line-height: 1.4;
  margin-bottom: 8px;
  font-size: .92rem;
}

.logo-box {
  margin: 6px 0 8px;
}

.well-logo {
  width: 145px;
  max-width: 100%;
  display: block;
  background: transparent;
}

.prairie-logo {
  width: 215px;
  max-width: 100%;
  display: block;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: .5rem .85rem;
  border-radius: 7px;
  border: 0;
  text-decoration: none;
  font-weight: 700;
  transition: transform .15s ease, filter .15s ease;
}

.button:hover { transform: translateY(-1px); filter: brightness(.96); }

.button.maps { color: white; background: var(--olive); }
.button.well { color: white; background: var(--teal); }
.button.prairie { color: white; background: #278b94; }
.button.contact { color: white; background: var(--navy); }

.external-url {
  text-align: center;
  margin: 5px 0 0;
  font-size: .88rem;
}

.contact-strip {
  margin: 28px 0 12px;
  min-height: 155px;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 22px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(217,228,244,.96), rgba(231,238,248,.94)),
    var(--bluewash);
  border-radius: 10px;
  padding: 22px 30px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--olive);
  color: white;
  font-size: 1.45rem;
}

.contact-strip h2 { margin-bottom: .2rem; }
.contact-strip p { margin: .2rem 0; }

footer {
  width: min(1180px, calc(100% - 30px));
  margin: 20px auto 0;
  padding: 20px 0 32px;
  text-align: center;
  color: #666;
  font-size: .85rem;
}

/* Contact page */
.contact-page {
  width: min(760px, calc(100% - 30px));
  margin: 46px auto;
}

.contact-card {
  background: white;
  border: 1px solid #d7d7d2;
  border-radius: 12px;
  box-shadow: 0 16px 45px rgba(38, 53, 70, .10);
  padding: clamp(24px, 5vw, 48px);
}

.form-grid {
  display: grid;
  gap: 18px;
}

label {
  display: block;
  margin-bottom: .35rem;
  font-weight: 700;
}

input, textarea {
  width: 100%;
  font: inherit;
  padding: .8rem .9rem;
  border: 1px solid #b9c0c8;
  border-radius: 7px;
  background: #fff;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

input:focus, textarea:focus {
  outline: 3px solid rgba(13, 117, 128, .18);
  border-color: var(--teal);
}

.form-note {
  color: #666;
  font-size: .9rem;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  nav a { white-space: nowrap; }

  .main-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .welcome { min-height: auto; }
  .zen-panel { margin-bottom: 12px; }

  .contact-strip {
    grid-template-columns: 50px 1fr;
  }

  .contact-strip .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .hero,
  main,
  footer,
  .contact-page {
    width: min(100% - 18px, 1180px);
  }

  .welcome, .schedule {
    padding-left: 4px;
    padding-right: 4px;
  }

  .zen-panel { padding: 22px; }

  .time-title {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact-strip {
    padding: 20px;
  }
}
.sidebar h3 {
  margin-bottom: .45rem;
  font-size: 1.35rem;
}
.sidebar .button {
  width: auto;
  max-width: 100%;
  font-size: .9rem;
}


/* Version 1.1 accessibility and performance polish */
img { max-width: 100%; height: auto; }

.skip-link {
  position: fixed;
  left: 12px;
  top: 10px;
  z-index: 100;
  transform: translateY(-160%);
  padding: .65rem .9rem;
  border-radius: 6px;
  color: #fff;
  background: #111;
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(15, 63, 115, .45);
  outline-offset: 3px;
}

.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

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