/*
Theme Name: Dreamkorf Studio
Description: A block theme for the Dreamkorf Studio corporate website.
Version: 1.0.0
Text Domain: dreamkorf-studio
*/

:root {
  --ink: #0b0e17;
  --panel: #131826;
  --line: #30384b;
  --text: #f5f6fc;
  --muted: #b7bed1;
  --mint: #a6f8d6;
  --lilac: #cbbcff;
  --content: 75rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  color-scheme: dark;
}

body { margin: 0; background: var(--ink); color: var(--text); }
.wp-site-blocks { padding: 0; min-height: 100vh; }
.wp-site-blocks > *, .wp-block-post-content > * { margin-block-start: 0; }
.dk-main { min-height: 50vh; }
.dk-wrap { width: min(calc(100% - 2 * var(--gutter)), var(--content)); margin-inline: auto; }
.dk-section { padding-block: clamp(3.5rem, 7.2vw, 6.25rem); }
.dk-stack { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.dk-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.4vw, 1.75rem); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.4vw, 6rem); line-height: .99; letter-spacing: -.075em; }
h2 { font-size: clamp(2.15rem, 4.3vw, 3.65rem); line-height: 1.06; letter-spacing: -.059em; }
h3 { font-size: clamp(1.4rem, 2.7vw, 1.875rem); line-height: 1.13; letter-spacing: -.038em; }
a { color: var(--mint); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.dk-lead { margin-top: 1.25rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 58ch; }
.dk-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.75rem; }
.dk-button { display: inline-flex; min-height: 3rem; box-sizing: border-box; align-items: center; justify-content: center; padding: .63rem 1.25rem; border: 1px solid var(--mint); border-radius: .65rem; background: var(--mint); color: #10241c; font: inherit; font-weight: 720; line-height: 1.3; text-decoration: none; cursor: pointer; transition: background-color .18s, border-color .18s; }
.dk-button:hover { background: #cbffe9; border-color: #cbffe9; color: #10241c; }
.dk-button--secondary { background: #101521; color: var(--text); border-color: #46506a; }
.dk-button--secondary:hover { background: #252d42; color: var(--text); border-color: #75829e; }
.dk-inline-link { display: inline-flex; align-items: center; min-height: 2.75rem; text-underline-offset: .23em; font-weight: 650; }
.dk-header { border-bottom: 1px solid #252c3d; }
.dk-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 5.1rem; }
.dk-brand { color: var(--text); text-decoration: none; font-size: 1.15rem; font-weight: 760; letter-spacing: -.045em; display: inline-flex; align-items: center; gap: .65rem; min-height: 2.75rem; white-space: nowrap; }
.dk-brand-mark { width: 1.75rem; height: 1.75rem; position: relative; flex: 0 0 auto; border: 2px solid var(--mint); border-radius: .4rem .95rem .95rem .4rem; transform: rotate(-12deg); }
.dk-brand-mark::after { content: ''; position: absolute; inset: .26rem; border: 1px solid var(--lilac); border-radius: .19rem .55rem .55rem .19rem; }
.dk-nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2rem); }
.dk-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; display: inline-flex; align-items: center; min-height: 2.75rem; white-space: nowrap; }
.dk-nav a:hover, .dk-nav a[aria-current="page"] { color: var(--text); }
.dk-nav .dk-nav-contact { min-height: 2.75rem; padding-inline: .88rem; border: 1px solid #46506a; border-radius: .6rem; color: var(--text); }
.dk-nav-contact:hover { border-color: var(--mint); }
.dk-hero-shell { padding-top: clamp(1.15rem, 3vw, 2rem); }
.dk-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(28rem, 45vw, 40rem); border: 1px solid var(--line); border-radius: clamp(1rem, 3vw, 1.6rem); overflow: hidden; background: #0e1120; }
.dk-hero-art { position: absolute; z-index: -1; inset: 0; background: #0e1120 url('assets/hero.webp') 50% 52% / cover no-repeat; }
.dk-hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #0b0e1b 0%, rgb(11 14 27 / .96) 25%, rgb(11 14 27 / .58) 48%, transparent 76%); }
.dk-hero-content { width: min(100%, 44rem); padding: clamp(1.5rem, 5.4vw, 4.6rem); }
.dk-hero h1 span { color: var(--mint); }
.dk-hero .dk-lead { max-width: 46ch; color: #d3d8e9; }
.dk-section-heading { max-width: 48rem; }
.dk-section-heading p { margin-top: .7rem; color: var(--muted); }
.dk-feature { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); }
.dk-feature-art { aspect-ratio: 2.12; background-size: cover; background-position: center 55%; background-color: #161a2c; }
.dk-feature-art--cloud { background-image: url('assets/cloud.webp'); }
.dk-feature-art--game { background-image: url('assets/games.webp'); background-position: center 58%; }
.dk-feature-copy { padding: clamp(1.25rem, 3.5vw, 2rem); }
.dk-feature-copy p { color: var(--muted); max-width: 52ch; margin-top: .7rem; }
.dk-feature-copy a { margin-top: .6rem; }
.dk-cta { padding: clamp(1.6rem, 4.5vw, 3.25rem); border: 1px solid #39435c; border-radius: 1rem; background: linear-gradient(125deg, #1a2137, #161e2a 76%); display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; }
.dk-cta p { color: var(--muted); margin-top: .6rem; }
.dk-cta .dk-button { flex: 0 0 auto; }
.dk-page-top { padding-block: clamp(3.4rem, 7.6vw, 6.7rem) clamp(2.3rem, 5vw, 4.6rem); }
.dk-page-top h1 { max-width: 15ch; }
.dk-page-top .dk-lead { max-width: 56ch; }
.dk-package-group { scroll-margin-top: 2rem; }
.dk-strip { display: flex; gap: clamp(1.15rem, 2.5vw, 1.75rem); align-items: center; margin-bottom: 1.15rem; }
.dk-strip-art { flex: 0 0 6rem; height: 4.25rem; aspect-ratio: auto; border: 1px solid var(--line); border-radius: .6rem; }
.dk-strip h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.dk-package { display: grid; grid-template-rows: auto auto 1fr auto; gap: .8rem; align-items: start; padding: clamp(1.2rem, 3.5vw, 2rem); border: 1px solid var(--line); border-radius: .9rem; background: var(--panel); }
.dk-package p, .dk-package li { color: var(--muted); }
.dk-package ul { margin: .15rem 0; padding-inline-start: 1.15rem; }
.dk-package .dk-price { color: var(--mint); font-weight: 700; }
.dk-price strong { color: var(--text); font-size: 1.2rem; }
.dk-package a { justify-self: start; }
.dk-note { color: var(--muted); font-size: .925rem; }
.dk-note--draft { border-left: 2px solid var(--lilac); padding-left: .85rem; }
.dk-about { align-items: start; }
.dk-about .dk-feature-art { aspect-ratio: 1.45; min-height: 15rem; }
.dk-copy { max-width: 69ch; }
.dk-copy p + p, .dk-copy ul + p { margin-top: 1rem; }
.dk-copy h2 { margin: 2.25rem 0 .7rem; font-size: clamp(1.55rem, 4.5vw, 2.1rem); }
.dk-copy, .dk-copy p { color: var(--muted); }
.dk-copy strong { color: var(--text); }
.dk-legal-date { font-size: .95rem; margin-bottom: 1.5rem; }
.dk-contact { display: grid; grid-template-columns: minmax(14rem, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.dk-contact-details > * + * { margin-top: .8rem; }
.dk-contact-details p, .dk-contact-details address { color: var(--muted); }
.dk-contact-details address, .dk-footer address { font-style: normal; }
.dk-contact-details h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); margin-top: 1.5rem; }
.dk-contact-details a { overflow-wrap: anywhere; }
.dk-form { padding: clamp(1.15rem, 3.5vw, 2rem); border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); display: grid; gap: 1rem; scroll-margin-top: 1rem; }
.dk-field { display: grid; gap: .35rem; min-width: 0; }
.dk-field label { color: var(--text); font-weight: 650; font-size: .95rem; }
.dk-field label span { color: var(--muted); font-size: .85rem; font-weight: 400; }
.dk-field input, .dk-field textarea, .dk-field select { appearance: auto; border: 1px solid #53607a; border-radius: .6rem; background: #0d1220; color: var(--text); font: inherit; min-height: 2.9rem; width: 100%; box-sizing: border-box; padding: .63rem .8rem; }
.dk-field textarea { resize: vertical; min-height: 9rem; }
.dk-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.dk-form .dk-button { justify-self: start; }
.dk-form-status { border: 1px solid #627499; background: #222c43; border-radius: .6rem; padding: .7rem .85rem; color: var(--text); }
.dk-form-status--success { border-color: #41785f; background: #173627; }
.dk-footer { border-top: 1px solid #252c3d; margin-top: clamp(2rem, 5vw, 4rem); padding-block: 2.5rem 1.4rem; }
.dk-footer-grid { display: grid; grid-template-columns: 1.05fr .95fr .75fr 1.05fr; gap: 1.5rem; }
.dk-footer p, .dk-footer address, .dk-footer a:not(.dk-brand) { color: var(--muted); font-size: .95rem; }
.dk-footer address { line-height: 1.5; }
.dk-footer-label { display: block; font-size: .95rem; margin-bottom: .45rem; }
.dk-footer-list { display: grid; justify-items: start; align-content: start; gap: 0; }
.dk-footer-list a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.dk-footer-list a:hover, .dk-footer a:not(.dk-brand):hover { color: var(--mint); text-decoration: underline; }
.dk-footer-bottom { border-top: 1px solid #252c3d; padding-top: 1.1rem; margin-top: 1.5rem; }

@media (max-width: 800px) {
  .dk-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dk-footer a[href^="mailto:"] { display: inline-block; padding-block: .65rem; overflow-wrap: anywhere; }
  .dk-contact { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dk-two { grid-template-columns: 1fr; }
  .dk-hero { min-height: 34rem; align-items: end; }
  .dk-hero-art { inset: 0 0 auto; height: 64%; background-position: 88% 49%; }
  .dk-hero-art::after { background: linear-gradient(0deg, #0e1120 0%, rgb(14 17 32 / .76) 22%, transparent 59%); }
  .dk-hero-content { padding: 1.3rem 1.3rem 1.65rem; }
  .dk-hero h1 { font-size: clamp(2.1rem, 10.9vw, 3.75rem); }
  .dk-hero .dk-lead { font-size: 1rem; }
  .dk-hero .dk-button { padding-inline: .95rem; font-size: .9rem; }
  .dk-cta { display: grid; justify-items: start; }
  .dk-nav { gap: .8rem; }
  .dk-nav a { font-size: .875rem; }
  .dk-footer-grid > :first-child, .dk-footer-grid > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  .dk-header-inner { flex-wrap: wrap; gap: 0; padding-block: .45rem; }
  .dk-nav { flex-basis: 100%; gap: 1rem; }
  .dk-strip-art { flex-basis: 4.4rem; height: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
