/*
Theme Name: Adam Kasten op Maat
Theme URI: https://adamkastenopmaat.nl/
Author: Adam Kasten op Maat
Description: Dedykowany lekki motyw blokowy.
Version: 1.6.0
Requires at least: 6.7
Requires PHP: 8.1
Text Domain: adam-kasten
*/

@font-face {
  font-family: "Manrope";
  src: url("./assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("./assets/fonts/cormorant-garamond-600-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --ak-brand: #87704e;
  --ak-ink: #111820;
  --ak-white: #ffffff;
  --ak-warm: #f7f5f0;
  --ak-warm-mid: #e8e0d4;
  --ak-border: #d7ccbc;
  --ak-gutter: clamp(1.5rem, 4vw, 4rem);
  --ak-max: 90rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ak-warm);
  color: var(--ak-ink);
  font-family: "Manrope", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

.ak-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--ak-warm);
}

.ak-hero::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  content: "";
  background: var(--ak-brand);
}

.ak-hero__shell {
  width: min(100%, var(--ak-max));
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2.75rem) var(--ak-gutter) clamp(2.5rem, 5vw, 5rem);
  display: grid;
  grid-template-rows: auto 1fr;
}

.ak-hero__brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: var(--ak-ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.ak-hero__brand::before {
  width: 1.9rem;
  height: 1px;
  margin-right: 0.8rem;
  content: "";
  background: var(--ak-brand);
}

.ak-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(23rem, 0.98fr);
  gap: clamp(3rem, 7vw, 8rem);
  align-items: center;
  padding-top: clamp(4rem, 8vh, 7rem);
}

.ak-hero__content {
  position: relative;
  z-index: 2;
  max-width: 49rem;
}

.ak-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  color: var(--ak-brand);
  font-size: clamp(0.72rem, 0.8vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.35;
  text-transform: uppercase;
}

.ak-hero__eyebrow::before {
  width: 2.5rem;
  height: 1px;
  content: "";
  background: currentColor;
}

.ak-hero h1 {
  max-width: 12ch;
  margin: 0;
  color: var(--ak-ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.7rem, 7.15vw, 7.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.88;
  text-wrap: balance;
}

.ak-hero h1 em {
  color: var(--ak-brand);
  font-style: italic;
  font-weight: 600;
}

.ak-hero__lead {
  max-width: 41rem;
  margin: clamp(1.8rem, 3vw, 2.6rem) 0 0;
  color: #37404a;
  font-size: clamp(1.04rem, 1.3vw, 1.25rem);
  font-weight: 450;
  line-height: 1.7;
}

.ak-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.4rem;
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.ak-button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
}

.ak-button--primary {
  background: var(--ak-brand);
  color: var(--ak-white);
}

.ak-button--secondary {
  position: relative;
  color: var(--ak-ink);
}

.ak-button--secondary::after {
  position: absolute;
  right: 1.35rem;
  bottom: 0.65rem;
  left: 1.35rem;
  height: 1px;
  content: "";
  background: var(--ak-brand);
}

.ak-button[aria-disabled="true"] {
  cursor: default;
}

.ak-hero__visual {
  position: relative;
  align-self: stretch;
  min-height: clamp(31rem, 69vh, 49rem);
}

.ak-cabinet {
  position: absolute;
  inset: 0;
  border: 1px solid var(--ak-border);
  background: var(--ak-warm-mid);
}

.ak-cabinet__frame {
  position: absolute;
  inset: clamp(1.25rem, 3vw, 2.8rem);
  border: 1px solid rgba(17, 24, 32, 0.48);
}

.ak-cabinet__door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: var(--ak-warm);
}

.ak-cabinet__door--left {
  left: 0;
  border-right: 1px solid rgba(17, 24, 32, 0.48);
}

.ak-cabinet__door--right {
  right: 0;
}

.ak-cabinet__door::after {
  position: absolute;
  top: 48%;
  width: 2px;
  height: clamp(3.5rem, 8vh, 5.5rem);
  content: "";
  background: var(--ak-brand);
}

.ak-cabinet__door--left::after {
  right: 1.4rem;
}

.ak-cabinet__door--right::after {
  left: 1.4rem;
}

.ak-cabinet__line {
  position: absolute;
  right: -12%;
  bottom: 13%;
  width: 42%;
  height: 1px;
  background: var(--ak-brand);
  transform: rotate(-90deg);
  transform-origin: right center;
}

.ak-cabinet__label {
  position: absolute;
  right: -0.3rem;
  bottom: 1rem;
  color: rgba(17, 24, 32, 0.42);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.ak-hero__index {
  position: absolute;
  right: clamp(1.5rem, 3vw, 2.75rem);
  bottom: clamp(1.25rem, 2vw, 2rem);
  z-index: 2;
  color: rgba(17, 24, 32, 0.48);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .ak-hero__shell {
    min-height: auto;
  }

  .ak-hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 4.5rem;
  }

  .ak-hero__content {
    max-width: 43rem;
  }

  .ak-hero__visual {
    min-height: 34rem;
  }
}

@media (max-width: 600px) {
  .ak-hero::before {
    width: 3px;
  }

  .ak-hero__shell {
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .ak-hero__brand {
    font-size: 0.68rem;
  }

  .ak-hero__grid {
    gap: 2.6rem;
    padding-top: 4rem;
  }

  .ak-hero h1 {
    max-width: 10.5ch;
    font-size: clamp(3.25rem, 16.2vw, 5rem);
    line-height: 0.92;
  }

  .ak-hero__lead {
    margin-top: 1.6rem;
    font-size: 1rem;
    line-height: 1.65;
  }

  .ak-hero__actions {
    align-items: stretch;
    margin-top: 1.8rem;
  }

  .ak-button {
    width: 100%;
  }

  .ak-hero__visual {
    min-height: min(112vw, 31rem);
  }

  .ak-cabinet__line,
  .ak-cabinet__label,
  .ak-hero__index {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ak-hero__content,
  .ak-hero__visual {
    animation: ak-reveal 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .ak-hero__visual {
    animation-delay: 100ms;
  }
}

@keyframes ak-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
