/*
Theme Name: Collective Division
Theme URI: https://collectivedivision.com
Author: Collective Division
Author URI: https://collectivedivision.com
Description: A minimalist custom theme for Collective Division fashion brand with WooCommerce support
Version: 1.1.6
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: collective-division
Tags: fashion, woocommerce, minimalist, custom

This theme, like WordPress, is licensed under the GPL.
*/

:root {
  --bg: #121212;
  --fg: #f6f1eb;
  --muted: rgba(246, 241, 235, 0.75);
  --accent: #f0c674;
  --card: #1d1d1d;
  --border: rgba(246, 241, 235, 0.1);
  font-family: "Georgia", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #000;
  color: var(--fg);
  font-family: "Georgia", serif;
  line-height: 1.6;
}

.background-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(0.9);
}

.overlay-title,
.overlay-menu {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  letter-spacing: 0.4rem;
  text-transform: uppercase;
  font-size: clamp(0.85rem, 2vw, 1.15rem);
  color: var(--fg);
}

.overlay-title {
  top: 32px;
}

.overlay-menu {
  bottom: 32px;
}

.menu-link {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.menu-link:hover {
  color: #cfcfcf;
}

.products-body.light {
  background: rgb(255, 255, 255);
  color: #000;
  font-family: "Georgia", serif;
}

.products-page {
  background: rgb(255, 255, 255);
  color: #000;
}

/* Single product page */
body.single-product {
  background: rgb(255, 255, 255) !important;
  color: #000 !important;
}

body.single-product .site-main {
  background: rgb(255, 255, 255);
  color: #000;
}

.products-header.yeezy {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 28px clamp(20px, 6vw, 120px) 28px 5%;
  letter-spacing: 0.35rem;
  text-transform: uppercase;
  column-gap: 24px;
}

.products-header.yeezy .brand {
  font-size: 0.95rem;
  text-decoration: none;
  color: inherit;
}

.products-nav {
  justify-self: center;
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 60px);
  letter-spacing: 0.15rem;
  font-size: 0.85rem;
}

.nav-link {
  text-decoration: none;
  color: inherit;
  font-weight: 300;
}

.nav-link:hover {
  font-weight: 600;
}

.icon,
.cart {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  color: inherit;
}

.bag-icon {
  width: 18px;
  height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 4px 4px 6px 6px;
  display: inline-block;
  position: relative;
}

.bag-icon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 12px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  transform: translateX(-50%);
}

.cart {
  justify-self: flex-end;
  margin-right: -8px;
  position: relative;
}

.cart-count {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #000;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
}

.products-page.yeezy {
  padding: 40px clamp(20px, 10vw, 220px) 120px;
}

.product-sheet.tight {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: clamp(40px, 6vw, 120px);
  margin: 0;
  padding: 0;
  justify-items: center;
}

.product {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.product-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.product-link:focus-visible {
  outline: 1px solid #ccc;
  outline-offset: 6px;
}

.product img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
}

.product-caption {
  font-size: 0.85rem;
  letter-spacing: 0.1rem;
  margin: 4px 0 0;
  font-weight: 300;
}

@media (max-width: 600px) {
  .products-header.yeezy {
    grid-template-columns: auto 1fr auto;
    letter-spacing: 0.2rem;
  }

  .product-sheet.tight {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }
}

.empty-products {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 50vh;
  padding: 40px 20px;
}

.empty-products-message {
  font-size: 1.25rem;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
  color: #000;
  font-weight: 300;
}

.empty-products-button {
  padding: 14px 32px;
  background: transparent;
  border: 1.5px solid #000;
  color: #000;
  font-family: "Georgia", serif;
  font-size: 0.9rem;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  cursor: not-allowed;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.empty-products-button:disabled {
  cursor: not-allowed;
}


.product-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(255, 255, 255);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.product-modal[data-open="true"] {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
}

.modal-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 700px;
  padding: clamp(24px, 5vw, 48px);
}

.modal-stage {
  width: min(540px, 70vw);
}

.modal-img {
  width: 100%;
  max-height: 60vh;
  height: auto;
  object-fit: contain;
}

.modal-meta {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #cfcfcf;
  cursor: pointer;
}

.modal-dot.is-active {
  background: #000;
}

.modal-name {
  letter-spacing: 0.25rem;
}

.modal-price {
  letter-spacing: 0.2rem;
}

.modal-plus {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.modal-plus:hover {
  transform: scale(1.2);
}

.modal-close {
  position: absolute;
  top: 24px;
  left: 24px;
  border: none;
  background: transparent;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: clamp(2rem, 4vw, 3rem);
  cursor: pointer;
  color: #000;
  z-index: 3;
  padding: 20px;
  transition: opacity 0.2s ease;
}

.modal-nav.prev {
  left: clamp(10px, 5vw, 80px);
}

.modal-nav.next {
  right: clamp(10px, 5vw, 80px);
}

.modal-open {
  overflow: hidden;
}

.woocommerce-message {
  background: #f0f0f0;
  padding: 16px 24px;
  margin: 20px 0;
  border-left: 3px solid #000;
  letter-spacing: 0.1rem;
  font-size: 0.9rem;
}

.woocommerce .price {
  letter-spacing: 0.15rem;
  font-size: 1rem;
}

body.woocommerce-cart,
body.woocommerce-checkout {
  background: rgb(255, 255, 255);
  color: #000;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.woocommerce-breadcrumb {
  display: none !important;
}

.woocommerce-result-count,
.woocommerce-ordering {
  display: none !important;
}

.woocommerce .page-title {
  display: none !important;
}

.woocommerce nav.woocommerce-pagination {
  display: none !important;
}

.woocommerce ul.products {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-message {
  display: none !important;
}

.single-product .woocommerce-breadcrumb,
.single-product .posted_in,
.single-product .tagged_as {
  display: none !important;
}

.woocommerce div.product {
  background: #000;
  color: #fff;
  min-height: 100vh;
  padding: 60px 20px;
}

.woocommerce-page .woocommerce-cart-form__contents,
.woocommerce-page .shop_table {
  border: none !important;
}

.woocommerce .checkout-button {
  background: #000 !important;
  color: #fff !important;
  padding: 16px 48px !important;
  letter-spacing: 0.2rem !important;
  text-transform: uppercase !important;
  border: none !important;
  font-family: Georgia, serif !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  transition: background 0.3s ease !important;
}

.woocommerce .checkout-button:hover {
  background: #333 !important;
}

.woocommerce-page #primary {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

.woocommerce .quantity input.qty {
  width: 60px;
  padding: 8px;
  text-align: center;
  border: 1px solid #ddd;
  font-family: Georgia, serif;
}

.site-footer {
  padding: 24px 20px;
  text-align: center;
  background: rgb(255, 255, 255);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 40px);
  flex-wrap: wrap;
}

.footer-link {
  text-decoration: none;
  color: #000;
  font-size: 0.85rem;
  letter-spacing: 0.1rem;
  transition: font-weight 0.2s ease, font-size 0.2s ease;
}

.nav-link:hover {
  font-weight: 600;
  font-size: 0.88rem;
}

.nav-link.nav-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
}

/* Disable product links in WooCommerce block cart */
.wc-block-cart-items__row .wc-block-components-product-name a,
.wc-block-cart-item__image a,
.wc-block-components-product-image a,
.wc-block-components-product-name a,
.wc-block-cart-item__wrap a {
  pointer-events: none !important;
  cursor: default !important;
  text-decoration: none !important;
  color: inherit !important;
}

.wc-block-cart-items__row .wc-block-components-product-name a:hover,
.wc-block-cart-item__image a:hover,
.wc-block-components-product-image a:hover,
.wc-block-components-product-name a:hover,
.wc-block-cart-item__wrap a:hover {
  color: inherit !important;
  text-decoration: none !important;
}

/* Additional cart link blocking */
.wp-block-woocommerce-cart a[href*="product"],
.wc-block-cart a[href*="product"] {
  pointer-events: none !important;
  cursor: default !important;
}

/* Disable product links on order received / thank you page */
.woocommerce-order-details .woocommerce-table__product-name a,
.woocommerce-thankyou-order-details .woocommerce-table__product-name a,
.woocommerce-order-received .woocommerce-table__product-name a,
body.woocommerce-order-received a[href*="product"] {
  pointer-events: none !important;
  cursor: default !important;
  text-decoration: none !important;
  color: inherit !important;
}


/* Newsletter signup (front page) ----------------------------------- */
.overlay-newsletter {
  width: min(420px, calc(100% - 32px));
  letter-spacing: 0.3rem;
}

.newsletter-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  border-bottom: 1px solid rgba(246, 241, 235, 0.6);
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
  color: #f6f1eb;
  font-family: inherit;
  font-size: max(16px, 1em);
  letter-spacing: inherit;
  text-transform: uppercase;
}

.newsletter-input::placeholder {
  color: rgba(246, 241, 235, 0.7);
}

.newsletter-input:-webkit-autofill {
  -webkit-text-fill-color: #f6f1eb;
  transition: background-color 9999s ease-out;
}

.newsletter-submit {
  padding: 6px 0;
  background: none;
  border: 0;
  color: #f6f1eb;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s ease;
}

.newsletter-submit:hover,
.newsletter-submit:focus-visible {
  color: #cfcfcf;
}

.newsletter-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.newsletter-note {
  margin-top: 10px;
  font-size: 0.6rem;
  letter-spacing: 0.15rem;
  color: rgba(246, 241, 235, 0.75);
}

.newsletter-note a {
  color: inherit;
}

.newsletter-note.is-error {
  color: #ffb3a7;
}

.newsletter-form.is-done .newsletter-row {
  display: none;
}

.newsletter-form.is-done .newsletter-note {
  margin: 0;
  font-size: inherit;
  letter-spacing: inherit;
  color: #f6f1eb;
}

.newsletter-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Landing page (archive + newsletter layout) ------------------------ */
html:has(.cd-landing) {
  scroll-behavior: smooth;
}

.cd-landing {
  --cd-grey: #e6e6e6;
  --cd-bar-h: 18px;
  --cd-header-h: 52px;
  --cd-gutter: 18px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #fff;
  background: var(--cd-grey);
  -webkit-font-smoothing: antialiased;
}

.cd-landing a {
  color: inherit;
  text-decoration: none;
}

.cd-landing #archive,
.cd-landing #newsletter {
  scroll-margin-top: var(--cd-header-h);
}

.cd-announce {
  display: block;
  height: var(--cd-bar-h);
  line-height: var(--cd-bar-h);
  background: #000;
  text-align: center;
  font-size: 11px;
}

.cd-announce:hover {
  text-decoration: underline !important;
}

/* Header */
.cd-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--cd-header-h);
  margin-bottom: calc(var(--cd-header-h) * -1);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: clamp(32px, 14vw, 220px);
  padding: 0 var(--cd-gutter);
  color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.cd-header.is-solid {
  background: #fff;
  color: #000;
}

.admin-bar .cd-header {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .cd-header {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar .cd-header {
    top: 0;
  }
}

.cd-logo {
  font-family: Georgia, serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  white-space: nowrap;
}

.cd-nav,
.cd-utility {
  display: flex;
  gap: 18px;
}

.cd-utility {
  justify-content: flex-end;
}

.cd-nav a,
.cd-utility a {
  transition: opacity 0.2s ease;
}

.cd-nav a:hover,
.cd-utility a:hover {
  opacity: 0.6;
}

/* Hero */
.cd-hero {
  position: relative;
  height: calc(100vh - var(--cd-bar-h));
  height: calc(100svh - var(--cd-bar-h));
  min-height: 420px;
  overflow: hidden;
  background: #000;
}

.cd-hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cd-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent);
  pointer-events: none;
}

.cd-hero-caption {
  position: absolute;
  left: var(--cd-gutter);
  bottom: 48px;
  z-index: 2;
}

.cd-hero-title {
  margin: 0 0 14px;
  font-size: 16px;
}

.cd-buttons {
  display: flex;
  gap: 8px;
}

.cd-landing .cd-btn {
  display: inline-block;
  padding: 8px 10px;
  border: 1px solid currentColor;
  font-size: 12px;
  line-height: 1.2;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cd-landing .cd-btn--outline {
  color: #fff;
}

.cd-landing .cd-btn--outline:hover {
  background: #fff;
  color: #000;
}

.cd-landing .cd-btn--solid {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.cd-landing .cd-btn--solid:hover {
  background: transparent;
  color: #fff;
}

.cd-landing .cd-btn--outline-dark {
  color: #000;
}

.cd-landing .cd-btn--outline-dark:hover {
  background: #000;
  color: #fff;
}

.cd-progress {
  position: absolute;
  left: var(--cd-gutter);
  right: var(--cd-gutter);
  bottom: 18px;
  z-index: 2;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.cd-progress span {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

/* Pause button (bottom right of hero) */
.cd-pause {
  position: absolute;
  right: var(--cd-gutter);
  bottom: 26px;
  z-index: 3;
  width: 14px;
  height: 14px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.cd-pause::before,
.cd-pause::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 2px;
  height: 8px;
  background: #fff;
}

.cd-pause::before {
  left: 4px;
}

.cd-pause::after {
  left: 8px;
}

.cd-pause.is-paused::before {
  left: 4px;
  top: 2px;
  width: 0;
  height: 0;
  background: none;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #fff;
}

.cd-pause.is-paused::after {
  display: none;
}

/* Archive grid */
.cd-archive {
  padding: clamp(96px, 18vh, 240px) var(--cd-gutter);
  background: var(--cd-grey);
  color: #000;
}

.cd-archive-inner {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.cd-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 44px 36px;
}

.cd-grid > li {
  margin: 0;
  padding: 0;
}

.cd-grid-item {
  position: relative;
  width: clamp(110px, 9vw, 150px);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.cd-grid-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 15 / 17;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.3s ease;
}

.cd-grid-item:hover img,
.cd-grid-item:focus-visible img {
  transform: scale(1.04);
}

.cd-grid-item:focus-visible {
  outline: 1px solid #000;
  outline-offset: 6px;
}

.cd-grid-name {
  position: absolute;
  top: 100%;
  margin-top: 8px;
  font-size: 11px;
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cd-grid-item:hover .cd-grid-name,
.cd-grid-item:focus-visible .cd-grid-name {
  opacity: 1;
}

.cd-archive-bar {
  margin: 72px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cd-archive-bar p {
  margin: 0;
}

/* Archive viewer (full screen, one piece at a time) */
html.cd-viewer-open {
  overflow: hidden;
}

.cd-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #fff;
  color: #000;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cd-viewer.is-open {
  opacity: 1;
}

.cd-viewer[hidden] {
  display: none;
}

.admin-bar .cd-viewer {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .cd-viewer {
    top: 46px;
  }
}

.cd-viewer button {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}

.cd-viewer-track {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.cd-viewer-track::-webkit-scrollbar {
  display: none;
}

.cd-viewer-slide {
  flex: 0 0 100%;
  margin: 0;
  padding-bottom: 16vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.cd-viewer-slide img {
  width: min(380px, 62vw);
  max-height: 44vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.cd-viewer-close,
.cd-viewer-nav {
  position: absolute;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cd-viewer-close {
  top: 12px;
  left: 12px;
}

.cd-viewer-nav {
  top: calc(42% - 16px);
}

.cd-viewer-prev {
  left: calc(50% - min(300px, 44vw));
}

.cd-viewer-next {
  right: calc(50% - min(300px, 44vw));
}

.cd-viewer-close:hover,
.cd-viewer-nav:hover {
  opacity: 0.5;
}

.cd-viewer-dots {
  position: absolute;
  top: 65%;
  left: 50%;
  z-index: 2;
  display: flex;
  gap: 2px;
  transform: translateX(-50%);
}

.cd-viewer .cd-viewer-dot {
  position: relative;
  width: 10px;
  height: 10px;
}

.cd-viewer-dot::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #d0d0d0;
}

.cd-viewer-dot.is-active::before {
  background: #000;
}

.cd-viewer-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12vh;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.cd-viewer-meta p {
  margin: 0;
}

.cd-viewer-meta .cd-viewer-price {
  margin-top: 22px;
}

/* Newsletter footer */
.cd-footer {
  min-height: 60vh;
  padding: 22px var(--cd-gutter) 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 64px;
  background: #000;
  color: #fff;
}

.cd-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.cd-footer-title {
  margin: 0;
  font-family: inherit;
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: none;
}

.cd-footer-signup {
  width: min(360px, 100%);
}

.cd-footer-signup > p {
  margin: 0 0 14px;
  font-size: 11px;
}

.cd-nl-row {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.cd-nl-input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: 0;
  -webkit-appearance: none;
  appearance: none;
  color: #fff;
  font: inherit;
  font-size: 16px;
}

@media (min-width: 769px) {
  .cd-nl-input {
    font-size: 13px;
  }
}

.cd-nl-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.cd-nl-input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  transition: background-color 9999s ease-out;
}

.cd-nl-submit {
  padding: 8px 0 8px 16px;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.cd-nl-submit:hover {
  opacity: 0.6;
}

.cd-nl-submit:disabled {
  opacity: 0.4;
  cursor: default;
}

.cd-nl-note {
  margin: 10px 0 0;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
}

.cd-landing .cd-nl-note a {
  text-decoration: underline;
}

.cd-nl-note.is-error {
  color: #ff9b8a;
}

.cd-nl-form.is-done .cd-nl-row {
  display: none;
}

.cd-nl-form.is-done .cd-nl-note {
  margin: 0;
  font-size: 13px;
  color: #fff;
}

.cd-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
}

.cd-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.cd-footer-links a:hover {
  opacity: 0.6;
}

.cd-footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .cd-header {
    grid-template-columns: 1fr auto;
  }

  .cd-nav {
    display: none;
  }

  .cd-hero-caption {
    bottom: 38px;
  }

  .cd-archive-inner {
    width: 100%;
  }

  .cd-grid {
    gap: 36px 16px;
  }

  .cd-grid > li {
    width: calc((100% - 2 * 16px) / 3);
  }

  .cd-grid-item {
    width: 100%;
  }

  .cd-footer-top {
    flex-direction: column;
  }
}

/* Hero fits the screen while the admin bar is showing */
.admin-bar .cd-hero {
  height: calc(100vh - var(--cd-bar-h) - 32px);
  height: calc(100svh - var(--cd-bar-h) - 32px);
}

@media (max-width: 782px) {
  .admin-bar .cd-hero {
    height: calc(100svh - var(--cd-bar-h) - 46px);
  }
}
