:root {
  --bg: #faf8f5;
  --text: #1c1917;
  --muted: #57534e;
  --line: #e7e5e4;
  --panel: rgba(255, 255, 255, 0.88);
  --brand: #c45a1a;
  --brand-dark: #9a4512;
  --nav: #5a4a42;
  --display: "Josefin Slab", Georgia, serif;
  --body: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--bg);
  background-image: url("img/bg.jpg");
  background-image: image-set(url("img/bg.webp") type("image/webp"), url("img/bg.jpg") type("image/jpeg"));
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-dark);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}

.topbar-inner,
.nav-inner,
.page,
.footer-inner {
  width: min(100% - 2rem, 64rem);
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 0;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand picture {
  display: contents;
}

.brand img {
  width: 10rem;
  height: 2.5rem;
  object-fit: contain;
}

.brand-tagline {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.service-area {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--nav);
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.nav-home,
.menu-toggle {
  padding: 0.85rem 0;
  color: rgba(255, 255, 255, 0.95);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}

.menu-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--body);
  font-weight: 600;
}

.nav-links {
  display: none;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links.is-open {
  display: block;
}

.nav-links a {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.85rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #f0a26c;
}

.page {
  padding: 2rem 0;
}

.section,
.content-box {
  margin-bottom: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--panel);
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-title::before,
.section-title::after {
  width: 12rem;
  border-top: 1px solid #d6d3d1;
  content: "";
}

.section-title h1,
.section-title h2 {
  margin: 0.9rem 0;
  color: #292524;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.two-col,
.media-text,
.contact-grid {
  align-items: start;
}

.schedule {
  display: grid;
  gap: 1rem;
}

.schedule-row {
  display: grid;
  gap: 0.25rem 1rem;
}

.schedule-row p {
  margin: 0;
}

.lead,
.text-lg,
.content-box,
.md-content {
  font-size: 1.08rem;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.space > * + * {
  margin-top: 1rem;
}

.image-card picture {
  display: block;
  height: 100%;
}

.image-card,
.carousel-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: #f5f5f4;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.image-card img {
  width: 100%;
  object-fit: cover;
}

.carousel {
  position: relative;
}

.carousel-frame {
  aspect-ratio: 4 / 3;
}

.carousel-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.carousel button {
  border: 1px solid #d6d3d1;
  border-radius: 0.45rem;
  background: #fff;
  color: #292524;
  cursor: pointer;
  font: inherit;
  padding: 0.35rem 0.75rem;
}

.carousel button:hover {
  background: #fafaf9;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
}

label {
  display: block;
  color: #292524;
  font-size: 0.9rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 0.3rem;
  border: 1px solid #d6d3d1;
  border-radius: 0.45rem;
  background: #fff;
  color: #1c1917;
  font: inherit;
  padding: 0.65rem 0.75rem;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  outline: 2px solid rgba(196, 90, 26, 0.18);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.submit {
  align-self: flex-start;
  border: 0;
  border-radius: 0.45rem;
  background: var(--nav);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.75rem 1.5rem;
  text-transform: uppercase;
}

.submit:hover {
  background: #4a3d36;
}

.reviews {
  min-height: 2rem;
  text-align: left;
}

.post-list {
  margin: 2rem 0 0;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.post-list li {
  border-bottom: 1px solid var(--line);
  padding: 0 0 2rem;
  margin-bottom: 2rem;
}

.post-list h2 {
  margin: 0;
  font-size: 1.3rem;
  font-family: var(--display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-date {
  margin: 0.25rem 0 0.75rem;
  color: #78716c;
  font-size: 0.9rem;
}

.md-content {
  color: #292524;
}

.md-content p {
  margin: 0 0 1rem;
}

.md-content ol,
.md-content ul {
  margin: 1rem 0 1rem 1.4rem;
  padding-left: 0.4rem;
}

.footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: rgba(245, 245, 244, 0.88);
  padding: 2.5rem 0;
  color: #44403c;
  text-align: center;
}

.footer-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.floating-contact {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.floating-contact picture {
  display: contents;
}

.floating-contact img {
  width: 4rem;
  height: 4rem;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.2));
}

.float-image {
  margin-bottom: 1rem;
}

.map {
  width: 100%;
  height: 25rem;
  border: 0;
}

@media (min-width: 640px) {
  .topbar-inner {
    justify-content: space-between;
    text-align: left;
  }

  .section,
  .content-box {
    padding: 2rem;
  }

  .form-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-actions {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .form-actions.align-end {
    justify-content: flex-end;
  }
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 5fr 7fr;
  }

  .media-text {
    grid-template-columns: 4fr 8fr;
    align-items: center;
  }

  .contact-grid {
    grid-template-columns: 8fr 4fr;
  }

  .schedule-row {
    grid-template-columns: 5fr 7fr;
  }

  .float-image {
    float: right;
    width: 45%;
    margin: 0 0 1rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .nav-home,
  .menu-toggle {
    display: none;
  }

  .nav-links,
  .nav-links.is-open {
    display: flex;
    width: auto;
  }

  .nav-links a {
    border-top: 0;
    padding: 1rem;
  }
}

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

.workshop-flyer {
  position: relative;
  max-width: 38.5rem;
  margin: 0 auto;
}

.workshop-flyer picture {
  display: block;
}

.workshop-flyer img {
  width: 100%;
  height: auto;
  border-radius: 0.45rem;
  border: 1px solid var(--line);
  vertical-align: middle;
}

.workshop-flyer-cta {
  position: absolute;
  left: 32%;
  right: 2.5%;
  bottom: 2%;
  height: 12%;
  min-height: 2.75rem;
  cursor: pointer;
  border-radius: 0.35rem;
  background: transparent;
}

.workshop-flyer-cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
