:root {
  color-scheme: light;
  --ink: #202521;
  --muted: #5d665f;
  --line: #d8ded9;
  --paper: #f7f7f2;
  --white: #ffffff;
  --green: #2f6f4e;
  --green-dark: #1f5138;
  --rust: #b45635;
  --gold: #d3a13d;
  --blue: #2f6174;
  --shadow: 0 18px 50px rgba(26, 32, 27, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 247, 242, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 6px;
  background: var(--green);
  color: var(--white);
  font-size: 0.86rem;
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a {
  text-decoration: none;
}

.hero {
  min-height: 76vh;
  display: grid;
  align-items: end;
  padding: 8vh clamp(18px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(18, 25, 20, 0.82), rgba(18, 25, 20, 0.42) 48%, rgba(18, 25, 20, 0.10)),
    url("assets/fablab-workshop-hero.png") center / cover;
  color: var(--white);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffcf6d;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.hero p {
  max-width: 650px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.primary {
  background: var(--green);
  color: var(--white);
}

.secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.section {
  padding: clamp(52px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading,
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: clamp(24px, 6vw, 70px);
  align-items: start;
}

.section-heading p,
.about-grid {
  color: var(--muted);
}

.about-grid ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--ink);
  font-weight: 700;
}

.class-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.class-card,
.price-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(26, 32, 27, 0.07);
}

.class-card img,
.class-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #dce4df;
}

.class-body,
.price-card {
  padding: 20px;
}

.class-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.class-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 9px;
}

.membership {
  background: #e8ece7;
}

.featured {
  border-color: rgba(47, 111, 78, 0.45);
  box-shadow: var(--shadow);
}

.price {
  margin-bottom: 12px;
  color: var(--green);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr);
  gap: clamp(26px, 6vw, 72px);
  background: var(--white);
}

.form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(211, 161, 61, 0.6);
  outline-offset: 2px;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 750;
}

.form-status.error {
  color: #9c2f21;
}

dialog {
  width: min(560px, calc(100vw - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(22, 28, 24, 0.58);
}

.dialog-form {
  padding: 22px;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.site-footer {
  padding: 26px clamp(18px, 5vw, 72px);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.8);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 850px) {
  .site-header,
  .section-heading,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .site-header {
    display: grid;
  }

  .class-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 72vh;
    background-position: 58% center;
  }
}
