:root {
  --bg: #fafbf7;
  --surface: #fffefa;
  --surface-soft: #eef1e8;
  --ink: #202520;
  --muted: #687066;
  --line: rgba(67, 82, 67, 0.16);
  --leaf-pale: #dce2cc;
  --leaf-soft: #ccd4bd;
  --leaf: #bcc7b0;
  --leaf-mid: #9cac98;
  --leaf-deep: #778b78;
  --gold: #b39a63;
  --shadow: 0 24px 70px rgba(57, 74, 57, 0.13);
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(188, 199, 176, 0.12) 0 1px, transparent 1px 100%),
    var(--bg);
  background-size: 84px 84px;
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(22px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: rgba(250, 251, 247, 0.9);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(32, 37, 32, 0.14);
  border-radius: 50%;
  background: var(--ink);
  color: #fffefa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 800;
}

.brand strong {
  display: block;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.64rem;
  font-style: italic;
  line-height: 0.95;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.header-action,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.header-action {
  border: 1px solid rgba(119, 139, 120, 0.28);
  padding: 0 20px;
  background: #fffefa;
  color: var(--leaf-deep);
}

.section-band {
  padding: clamp(58px, 8vw, 112px) clamp(22px, 4vw, 58px);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(36px, 6vw, 86px);
  overflow: hidden;
}

.hero::before,
.hero::after {
  position: absolute;
  width: 220px;
  height: 360px;
  border: 1px solid rgba(119, 139, 120, 0.22);
  border-radius: 55% 45% 58% 42%;
  content: "";
  opacity: 0.42;
  pointer-events: none;
  transform: rotate(-18deg);
}

.hero::before {
  right: -80px;
  top: 34px;
}

.hero::after {
  bottom: 26px;
  left: -105px;
  transform: rotate(22deg);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--leaf-deep);
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.55rem, 4.4vw, 4.9rem);
  font-style: italic;
  letter-spacing: 0;
  line-height: 1.04;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 4vw, 3.85rem);
  letter-spacing: 0;
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
  line-height: 1.25;
}

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

.hero-lead {
  max-width: 660px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.3vw, 1.2rem);
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-checks li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(188, 199, 176, 0.78);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 254, 250, 0.78);
  color: var(--muted);
  font-size: 0.94rem;
}

.hero-checks li::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.hero.section-band {
  padding-top: clamp(42px, 5vw, 72px);
  padding-bottom: clamp(42px, 5vw, 72px);
}

.primary-button {
  gap: 12px;
  padding: 0 23px;
  background: var(--leaf-deep);
  color: #fffefa;
  box-shadow: 0 16px 34px rgba(87, 110, 88, 0.22);
}

.primary-button .button-icon {
  display: inline-grid;
  width: 28px;
  min-height: 24px;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  padding-right: 12px;
}

.primary-button .button-icon::before {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fffefa;
  content: "";
}

.hero-visual {
  max-width: 940px;
}

.hero-visual::before {
  position: absolute;
  top: -18px;
  right: 18%;
  width: 42%;
  height: 1px;
  background: var(--gold);
  content: "";
}

.hero-visual img {
  display: block;
  width: 100%;
  border: 1px solid rgba(119, 139, 120, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-section {
  background: var(--surface);
}

.section-heading {
  max-width: 960px;
  margin-bottom: 56px;
}

.product-section .eyebrow {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 1.02rem;
}

.section-intro {
  max-width: 760px;
  margin-top: 18px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.category-card,
.tutorial-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.category-card {
  min-height: 168px;
  padding: 22px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.category-card:hover,
.category-card.active {
  border-color: rgba(119, 139, 120, 0.64);
  box-shadow: 0 16px 40px rgba(57, 74, 57, 0.1);
  transform: translateY(-2px);
}

.category-card span {
  display: inline-flex;
  margin-bottom: 18px;
  border-bottom: 3px solid var(--gold);
  color: var(--leaf-deep);
  font-family: "Lucida Console", "Courier New", monospace;
  font-weight: 900;
}

.category-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.01rem;
}

.product-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 20px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.product-toolbar strong,
.product-toolbar span {
  display: block;
}

.product-toolbar span {
  color: var(--muted);
}

.search-box {
  display: grid;
  min-width: min(420px, 100%);
  gap: 7px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 17px;
  background: #fff;
  color: var(--ink);
}

.tutorial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tutorial-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.tutorial-card:hover,
.tutorial-card.active {
  border-color: rgba(119, 139, 120, 0.66);
  box-shadow: 0 16px 40px rgba(57, 74, 57, 0.1);
  transform: translateY(-2px);
}

.tutorial-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-soft);
}

.tutorial-card .card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 17px 18px 20px;
}

.tutorial-card .tag {
  width: fit-content;
  margin-bottom: 14px;
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--leaf-pale);
  color: var(--leaf-deep);
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 0.76rem;
  font-weight: 900;
}

.tutorial-card p {
  margin-bottom: 18px;
  color: var(--muted);
}

.watch-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  border-bottom: 2px solid var(--gold);
  color: var(--ink);
  font-weight: 800;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 42px);
  background: rgba(22, 27, 22, 0.72);
}

.modal-backdrop[hidden] {
  display: none;
}

.video-modal {
  width: min(1120px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 34px) 0;
}

.modal-header .eyebrow {
  margin-bottom: 10px;
}

.modal-header h2 {
  font-size: clamp(1.7rem, 3vw, 3.05rem);
}

.modal-close {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  background: var(--ink);
  color: #fffefa;
  cursor: pointer;
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 900;
}

.modal-copy {
  max-width: 780px;
  margin: 14px clamp(20px, 3vw, 34px) 24px;
  color: var(--muted);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: #111;
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.video-missing {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(32, 32, 32, 0.78);
  color: #fff;
  backdrop-filter: blur(12px);
}

.video-missing span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  text-align: right;
}

.video-missing.is-hidden {
  display: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(22px, 4vw, 58px);
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}

.site-footer a {
  color: var(--leaf-deep);
  font-weight: 900;
}

@media (max-width: 1320px) {
  .category-grid,
  .tutorial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .category-grid,
  .tutorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 840px;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .header-action {
    display: none;
  }

  .section-band {
    padding: 48px 18px;
  }

  h1 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .category-grid,
  .tutorial-grid {
    grid-template-columns: 1fr;
  }

  .product-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-backdrop {
    align-items: flex-start;
    padding: 12px;
  }

  .video-modal {
    max-height: calc(100vh - 24px);
  }

  .modal-header {
    flex-direction: column;
  }

  .modal-close {
    width: 100%;
  }

  .video-missing {
    position: static;
    flex-direction: column;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
  }

  .video-missing span {
    text-align: left;
  }

  .site-footer {
    flex-direction: column;
  }
}
