/*
Theme Name: Datkey Studio
Theme URI: https://v2.datkeystudio.com
Author: Datkey Studio
Description: A bold, editorial block theme for Datkey Studio and WooCommerce.
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: datkey-studio
*/

:root {
  --ds-ink: #161716;
  --ds-paper: #f4f1e9;
  --ds-cream: #fffdf8;
  --ds-orange: #ff5b35;
  --ds-lime: #d9ff57;
  --ds-violet: #8773ff;
  --ds-line: rgba(22, 23, 22, 0.16);
  --ds-radius: 1.5rem;
  --ds-shadow: 0 1.5rem 4rem rgba(22, 23, 22, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: var(--ds-paper);
  color: var(--ds-ink);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ds-orange);
  color: #fff;
}

a {
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.08em;
}

:where(a, button, input, textarea, select):focus-visible {
  outline: 3px solid var(--ds-violet);
  outline-offset: 3px;
}

.ds-site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--ds-line);
  background: rgba(244, 241, 233, 0.9);
  backdrop-filter: blur(16px);
}

.ds-header-inner {
  min-height: 5.2rem;
}

.wp-block-site-title {
  font-size: 1.15rem;
  font-weight: 760;
  letter-spacing: -0.04em;
}

.wp-block-site-title a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.wp-block-site-title a::before {
  content: "D";
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ds-orange);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
}

.ds-header-cta .wp-block-button__link,
.ds-button-solid .wp-block-button__link {
  border: 1px solid var(--ds-ink);
  background: var(--ds-ink);
  color: #fff;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ds-header-cta .wp-block-button__link:hover,
.ds-button-solid .wp-block-button__link:hover {
  transform: translateY(-2px);
  background: var(--ds-orange);
  box-shadow: 0 0.5rem 0 var(--ds-ink);
}

.ds-button-outline .wp-block-button__link {
  border: 1px solid var(--ds-ink);
  background: transparent;
  color: var(--ds-ink);
  transition: background 180ms ease, color 180ms ease;
}

.ds-button-outline .wp-block-button__link:hover {
  background: var(--ds-ink);
  color: #fff;
}

.wp-block-navigation a {
  text-decoration: none;
}

.wp-block-navigation a:hover {
  color: var(--ds-orange);
}

.ds-hero {
  position: relative;
  min-height: calc(100svh - 5.2rem);
  overflow: hidden;
  border-bottom: 1px solid var(--ds-line);
}

.ds-hero::before,
.ds-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(1px);
}

.ds-hero::before {
  top: 8%;
  right: -9rem;
  width: clamp(18rem, 35vw, 35rem);
  aspect-ratio: 1;
  background: var(--ds-lime);
}

.ds-hero::after {
  right: 24%;
  bottom: -10rem;
  width: clamp(15rem, 27vw, 27rem);
  aspect-ratio: 1;
  background: var(--ds-violet);
  opacity: 0.9;
}

.ds-hero-grid {
  position: relative;
  z-index: 2;
  min-height: calc(100svh - 5.2rem);
}

.ds-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ds-eyebrow::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--ds-orange);
}

.ds-display {
  max-width: 12ch;
  margin-top: 0;
  font-size: clamp(3.4rem, 8vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.ds-display em {
  color: var(--ds-orange);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.ds-hero-copy {
  max-width: 39rem;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.ds-hero-note {
  position: relative;
  z-index: 3;
  max-width: 15rem;
  padding: 1.1rem;
  border: 1px solid var(--ds-ink);
  border-radius: 1.15rem;
  background: var(--ds-cream);
  box-shadow: 0.55rem 0.55rem 0 var(--ds-ink);
  transform: rotate(3deg);
}

.ds-marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--ds-line);
  background: var(--ds-ink);
  color: #fff;
}

.ds-marquee p {
  width: max-content;
  margin: 0;
  padding: 0.9rem 0;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: ds-marquee 22s linear infinite;
}

@keyframes ds-marquee {
  to { transform: translateX(-50%); }
}

.ds-section {
  padding-top: clamp(5rem, 9vw, 9rem);
  padding-bottom: clamp(5rem, 9vw, 9rem);
}

.ds-section-kicker {
  margin-bottom: 1.25rem;
  color: var(--ds-orange);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ds-section-title {
  max-width: 16ch;
  margin-top: 0;
  font-size: clamp(2.4rem, 5.2vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.ds-services {
  border-bottom: 1px solid var(--ds-line);
}

.ds-service-grid {
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius);
  background: var(--ds-line);
}

.ds-service-card {
  min-height: 22rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--ds-cream);
  transition: background 220ms ease, transform 220ms ease;
}

.ds-service-card:hover {
  position: relative;
  z-index: 2;
  background: var(--ds-lime);
  transform: translateY(-0.35rem);
}

.ds-service-number {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.76rem;
  font-weight: 800;
}

.ds-service-card h3 {
  margin-top: 5.5rem;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
}

.ds-work {
  background: var(--ds-cream);
}

.ds-work-card {
  position: relative;
  min-height: clamp(24rem, 46vw, 38rem);
  overflow: hidden;
  border-radius: var(--ds-radius);
}

.ds-work-card::before,
.ds-work-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.ds-work-orange {
  background: #ff7048;
}

.ds-work-orange::before {
  top: 13%;
  right: 8%;
  width: 48%;
  aspect-ratio: 1;
  border: clamp(2.5rem, 6vw, 6rem) solid var(--ds-ink);
}

.ds-work-orange::after {
  right: 27%;
  bottom: -12%;
  width: 34%;
  aspect-ratio: 1;
  background: var(--ds-lime);
}

.ds-work-violet {
  background: var(--ds-violet);
}

.ds-work-violet::before {
  top: 16%;
  left: 16%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 12%;
  background: var(--ds-cream);
  transform: rotate(-10deg);
  box-shadow: 2.2rem 2.2rem 0 var(--ds-ink);
}

.ds-work-violet::after {
  right: 8%;
  bottom: 9%;
  width: 25%;
  aspect-ratio: 1;
  border: 1.5rem solid var(--ds-lime);
}

.ds-work-label {
  position: absolute;
  z-index: 3;
  right: 1.5rem;
  bottom: 1.5rem;
  left: 1.5rem;
  padding: 1.2rem 1.35rem;
  border-radius: 1rem;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(12px);
}

.ds-work-label p {
  margin: 0;
}

.ds-work-label strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.ds-process {
  background: var(--ds-ink);
  color: #fff;
}

.ds-process .ds-section-kicker {
  color: var(--ds-lime);
}

.ds-process-list {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.ds-process-row {
  padding: 1.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.ds-process-row h3,
.ds-process-row p {
  margin-top: 0;
  margin-bottom: 0;
}

.ds-process-row h3 {
  font-size: clamp(1.45rem, 2.5vw, 2.3rem);
  letter-spacing: -0.04em;
}

.ds-process-index {
  color: var(--ds-lime);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-style: italic;
}

.ds-cta {
  position: relative;
  overflow: hidden;
  background: var(--ds-lime);
}

.ds-cta::after {
  content: "";
  position: absolute;
  right: -8rem;
  bottom: -12rem;
  width: 32rem;
  height: 32rem;
  border: 6rem solid var(--ds-orange);
  border-radius: 50%;
}

.ds-cta > .wp-block-group__inner-container,
.ds-cta > div {
  position: relative;
  z-index: 2;
}

.ds-site-footer {
  background: var(--ds-ink);
  color: #fff;
}

.ds-site-footer a {
  color: inherit;
}

.ds-footer-title {
  font-size: clamp(2.8rem, 7vw, 7rem);
  letter-spacing: -0.07em;
}

.ds-footer-meta {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.8rem;
}

.ds-page-hero {
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: clamp(3rem, 6vw, 6rem);
  border-bottom: 1px solid var(--ds-line);
}

.ds-page-hero h1 {
  max-width: 16ch;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.ds-content {
  padding-top: clamp(3rem, 6vw, 6rem);
  padding-bottom: clamp(5rem, 9vw, 9rem);
}

.ds-content :where(h2, h3, h4) {
  letter-spacing: -0.04em;
}

.ds-post-card {
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ds-line);
  border-radius: 1.2rem;
  background: var(--ds-cream);
}

.ds-post-card .wp-block-post-featured-image img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.ds-post-card-body {
  padding: 1.5rem;
}

.wp-block-post-title a {
  text-decoration: none;
}

.wp-block-post-title a:hover {
  color: var(--ds-orange);
}

.wp-block-query-pagination {
  margin-top: 3rem;
}

.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.wp-block-woocommerce-cart .wc-block-components-button,
.wp-block-woocommerce-checkout .wc-block-components-button {
  border-radius: 999px !important;
  background: var(--ds-ink) !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.woocommerce ul.products li.product,
.wc-block-grid__product {
  padding: 1rem;
  border: 1px solid var(--ds-line);
  border-radius: 1.2rem;
  background: var(--ds-cream);
}

.woocommerce span.onsale {
  min-width: 3rem;
  min-height: 3rem;
  background: var(--ds-orange);
}

@media (max-width: 781px) {
  .ds-header-cta {
    display: none;
  }

  .ds-hero-grid {
    align-content: center;
    min-height: calc(100svh - 4.5rem);
  }

  .ds-hero-note {
    display: none;
  }

  .ds-service-card {
    min-height: auto;
  }

  .ds-service-card h3 {
    margin-top: 3rem;
  }

  .ds-process-row .wp-block-column:first-child {
    flex-basis: 12% !important;
  }

  .ds-work-card {
    min-height: 26rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ds-marquee p { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

