:root {
  --accent: #f28a56;
  --accent-dark: #e7773f;
  --ink: #222;
  --muted: #999;
  --line: #eee;
  --page: #f1f1f1;
  --body: #555;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  color: var(--body);
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.75;
}

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

.sr-only {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.site-shell {
  max-width: 1170px;
  min-width: 320px;
  margin: 26px auto;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.header-image {
  display: block;
  width: 100%;
  height: 145px;
  object-fit: cover;
}

.topbar {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--accent);
  color: #fff;
  padding: 0 28px;
}

.primary-menu,
.social-menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu a {
  display: block;
  padding: 9px 15px;
  color: rgba(255, 255, 255, 0.96);
  font-size: 12px;
  line-height: 22px;
}

.primary-menu a:hover,
.primary-menu a:focus-visible {
  background: var(--accent-dark);
  color: #fff;
}

.primary-menu .cart-menu-link {
  min-width: 42px;
  text-align: center;
}

.primary-menu .cart-menu-link i {
  font-size: 14px;
  line-height: 22px;
}

.social-menu {
  margin-left: auto;
}

.social-menu a {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 40px;
  color: #fff;
  font-size: 13px;
}

.social-menu a:hover,
.social-menu a:focus-visible {
  background: rgba(0, 0, 0, 0.14);
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #fff;
}

.brand {
  padding: 33px 20px 27px;
  text-align: center;
}

.brand h1 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.25;
}

.brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.slider {
  position: relative;
  height: 350px;
  overflow: hidden;
  background: #f7f7f7;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
}

.slide.is-active {
  opacity: 1;
  z-index: 1;
}

.slide-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-copy {
  position: absolute;
  left: 58px;
  top: 50%;
  transform: translateY(-50%);
  max-width: min(480px, 80%);
  color: #fff;
  padding: 18px 22px 20px;
  background: rgba(18, 18, 18, 0.68);
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.slide-copy h2 {
  margin: 0 0 8px;
  padding: 0;
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.2;
}

.slide-copy p {
  margin: 0 0 13px;
}

.slide-copy p span,
.slide-copy p {
  font-size: 17px;
}

.slide-copy a {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  padding: 10px 15px;
  text-shadow: none;
  text-decoration: none;
}

.slide-copy a:hover,
.slide-copy a:focus-visible {
  background: var(--accent-dark);
  color: #fff;
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 2;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
}

.slider-dots button {
  width: 28px;
  height: 4px;
  border: 0;
  background: rgba(34, 34, 34, 0.35);
  cursor: pointer;
  padding: 0;
}

.slider-dots button.is-active {
  background: rgba(34, 34, 34, 0.78);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 58px;
  border: 0;
  background: rgba(30, 30, 30, 0.72);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: left 220ms ease, right 220ms ease, opacity 220ms ease, background 160ms ease;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
  background: var(--accent);
}

.slider:hover .slider-arrow,
.slider:focus-within .slider-arrow {
  opacity: 1;
}

.slider-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.slider-arrow-prev {
  left: -44px;
}

.slider-arrow-prev::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.slider:hover .slider-arrow-prev,
.slider:focus-within .slider-arrow-prev {
  left: 0;
}

.slider-arrow-next {
  right: -44px;
}

.slider-arrow-next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.slider:hover .slider-arrow-next,
.slider:focus-within .slider-arrow-next {
  right: 0;
}

.content {
  padding: 46px 45px 58px;
}

.intro-post {
  max-width: 1080px;
  margin: 0 auto;
}

.intro-post h2 {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}

.post-layout {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 28px;
}

.post-meta {
  color: var(--muted);
  font-size: 12px;
}

.date {
  display: block;
  width: 70px;
  border: 1px solid var(--line);
  text-align: center;
  margin-bottom: 11px;
}

.date .day {
  display: block;
  color: var(--accent);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.2;
  padding-top: 5px;
}

.date .month {
  display: block;
  background: #f7f7f7;
  color: #999;
  font-size: 11px;
  line-height: 24px;
}

.author {
  display: block;
  color: var(--muted);
}

.post-body p {
  margin: 0 0 20px;
}

.post-body ul {
  margin: 0 0 20px 22px;
  padding: 0;
}

.post-body li {
  margin: 0 0 3px;
}

.page-intro {
  margin: -46px -45px 38px;
  padding: 30px 45px;
  background: #f7f7f7;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.page-intro h1 {
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
}

.breadcrumbs {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs .delimiter {
  display: inline-block;
  padding: 0 8px;
}

.page-content {
  max-width: 1080px;
  margin: 0 auto;
}

.content a {
  color: #f47e3e;
  text-decoration: underline;
}

.content .slide-copy a {
  color: #fff;
  text-decoration: none;
}

.content a:hover,
.content a:focus-visible {
  color: var(--accent-dark);
}

.content .slide-copy a:hover,
.content .slide-copy a:focus-visible {
  color: #fff;
}

.page-content h1,
.page-content h2,
.page-content h3 {
  color: var(--ink);
  font-weight: 400;
  line-height: 1.3;
}

.page-content img {
  max-width: 100%;
  height: auto;
}

.wp-block-image {
  margin: 22px 0;
}

.wp-block-image img {
  display: block;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px;
  list-style: none;
  margin: 28px 0;
  padding: 0;
}

.products .product {
  min-width: 0;
}

.products .woocommerce-LoopProduct-link {
  display: block;
}

.products .woocommerce-LoopProduct-link img {
  display: block;
  width: 100%;
  aspect-ratio: 300 / 190;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #f7f7f7;
}

.woocommerce-loop-product__title {
  margin: 12px 0 4px;
  font-size: 18px;
}

.price {
  color: var(--accent);
  font-weight: 600;
}

.product-purchase-placeholder {
  margin: 20px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: #f7f7f7;
}

.product-purchase-placeholder p {
  margin: 0;
}

.add-to-cart-form,
.license-purchase-form {
  display: grid;
  gap: 14px;
  align-items: start;
  margin-top: 16px;
}

.add-to-cart-form label,
.license-purchase-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
}

.add-to-cart-form select,
.add-to-cart-form input,
.license-purchase-form select,
.license-purchase-form input,
.cart-table input {
  max-width: 320px;
  border: 1px solid #ddd;
  padding: 9px 10px;
  color: var(--body);
  font: inherit;
}

.primary-button,
.secondary-button,
.text-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.primary-button {
  justify-self: start;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--accent-dark);
  color: #fff;
}

.primary-button:disabled {
  background: #bbb;
  cursor: not-allowed;
}

.secondary-button {
  background: #1e1e1e;
  color: #fff;
  padding: 10px 16px;
}

.text-button {
  background: transparent;
  color: #f47e3e;
  padding: 0;
  text-decoration: underline;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
}

.cart-table th,
.cart-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

.cart-table tfoot th,
.cart-table tfoot td {
  color: var(--ink);
  font-weight: 700;
}

.cart-quantity-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cart-quantity-value {
  min-width: 2ch;
  color: var(--ink);
}

.cart-quantity-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cart-quantity-edit[hidden] {
  display: none;
}

.cart-quantity-form input {
  width: 82px;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.admin-topbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 32px;
}

.admin-section {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin: 0 0 20px;
  background: #fbfbfb;
  overflow: hidden;
}

.admin-section summary {
  cursor: pointer;
  padding: 13px 16px;
  background: #f3f3f3;
  border-bottom: 1px solid transparent;
  color: var(--ink);
  font-size: 18px;
  font-weight: 400;
  list-style-position: inside;
}

.admin-section[open] summary {
  border-bottom-color: #ddd;
}

.admin-section summary:hover,
.admin-section summary:focus-visible {
  color: var(--accent);
}

.admin-section > :not(summary) {
  margin-left: 16px;
  margin-right: 16px;
  margin-top: 16px;
}

.admin-section > :last-child {
  margin-bottom: 16px;
}

.admin-login-form,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  margin: 0 0 24px;
}

.admin-login-form label {
  display: grid;
  gap: 6px;
}

.admin-login-form input,
.admin-login-form select {
  border: 1px solid #ddd;
  padding: 9px 10px;
  font: inherit;
}

.admin-notice,
.admin-error {
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  background: #f7f7f7;
}

.admin-error {
  border-left-color: #c0392b;
}

.site-footer {
  background: #1e1e1e;
  color: #aaa;
  padding: 18px 45px;
  font-size: 12px;
}

.site-footer p {
  max-width: 1080px;
  margin: 0 auto;
}

.site-footer a {
  color: #f47e3e;
  text-decoration: underline;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #fff;
}

@media (max-width: 760px) {
  .site-shell {
    margin: 0 auto;
  }

  .header-image {
    height: 110px;
  }

  .topbar {
    position: relative;
    min-height: 46px;
    padding: 0 14px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 46px;
    z-index: 5;
    display: none;
    flex-direction: column;
    background: var(--accent);
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }

  .primary-menu.is-open {
    display: flex;
  }

  .primary-menu a {
    padding: 11px 20px;
  }

  .brand {
    padding: 28px 18px 24px;
  }

  .brand h1 {
    font-size: 24px;
  }

  .slider {
    height: 280px;
  }

  .slider-arrow {
    opacity: 1;
    width: 38px;
    height: 52px;
  }

  .slider-arrow-prev {
    left: 0;
  }

  .slider-arrow-next {
    right: 0;
  }

  .slide-copy {
    max-width: 88%;
    left: 28px;
    padding: 16px 18px 18px;
  }

  .slide-copy h2 {
    font-size: 24px;
  }

  .slide-copy p {
    font-size: 15px;
  }

  .content {
    padding: 34px 24px 46px;
  }

  .page-intro {
    margin: -34px -24px 30px;
    padding: 26px 24px;
  }

  .post-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .post-meta {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .date {
    margin: 0;
  }

  .site-footer {
    padding: 18px 24px;
  }
}

@media (max-width: 460px) {
  .header-image {
    height: 86px;
  }

  .topbar {
    gap: 10px;
  }

  .social-menu a {
    min-width: 32px;
  }

  .slider {
    height: 235px;
  }

  .slide-copy {
    left: 18px;
    max-width: calc(100% - 36px);
    padding: 14px 16px 16px;
  }

  .slide-copy h2 {
    font-size: 21px;
  }

  .slider-dots {
    bottom: 16px;
  }
}
