:root {
  --bg: #f8f4f1;
  --surface: #fffdfb;
  --surface-soft: #efe7e1;
  --ink: #25211f;
  --muted: #6c625d;
  --line: rgba(74, 74, 74, 0.16);
  --accent: #c57e63;
  --accent-dark: #8d5947;
  --plum: #a464a1;
  --blue: #3b5dad;
  --shadow: 0 24px 70px rgba(48, 32, 32, 0.13);
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  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(248, 244, 241, 0.88);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-family: Arial, sans-serif;
  font-weight: 800;
}

.brand strong {
  display: block;
  color: var(--accent);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 1.72rem;
  line-height: 0.95;
}

.brand small {
  display: block;
  color: var(--muted);
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 0.76rem;
}

.header-action,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 8px;
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.header-action {
  padding: 0 20px;
  background: var(--ink);
  color: #fff;
}

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

.hero {
  display: grid;
  align-items: center;
  min-height: auto;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(36px, 6vw, 86px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-dark);
  font-family: "Lucida Console", "Courier New", monospace;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  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.35rem, 3.5vw, 3.7rem);
  letter-spacing: 0;
  line-height: 1.13;
}

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.2rem;
  line-height: 1.25;
}

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

.hero-lead {
  max-width: 660px;
  margin-bottom: 16px;
  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 var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  background: rgba(255, 253, 251, 0.72);
  color: var(--muted);
  font-size: 0.95rem;
}

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

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

.primary-button {
  gap: 12px;
  padding: 0 22px;
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 16px 34px rgba(141, 89, 71, 0.22);
}

.hero-visual {
  position: relative;
}

.hero-visual::after {
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 72%;
  height: 30%;
  border-radius: 8px;
  background: rgba(164, 100, 161, 0.08);
  content: "";
  z-index: 0;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  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;
  font-size: 1.08rem;
}

.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(197, 126, 99, 0.62);
  box-shadow: 0 16px 40px rgba(48, 32, 32, 0.09);
  transform: translateY(-2px);
}

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

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

.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: 8px;
  padding: 13px 15px;
  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(197, 126, 99, 0.66);
  box-shadow: 0 16px 40px rgba(48, 32, 32, 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: #f1e8e3;
  color: var(--accent-dark);
  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(--accent);
  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(18, 16, 15, 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: 8px;
  padding: 0 14px;
  background: var(--ink);
  color: #fff;
  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);
  color: var(--muted);
}

.site-footer a {
  color: var(--accent-dark);
  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;
    min-height: auto;
  }

  .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.7rem, 12vw, 4.2rem);
  }

  .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;
  }
}
