/*
Theme Name: Kulsum Parvez Makeup Studio & Academy
Theme URI: https://kulsumparvez.com
Author: Kulsum Parvez Studio
Description: An editorial, conversion-focused WordPress theme for a professional makeup studio and academy, built from the same design source as the React preview. Two funnels under one identity — clients booking services, students enquiring about courses — with an enquiry-led booking flow, accessible accordions and sliders, and a companion SEO plugin.
Version: 1.12.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.3
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kulsum-parvez
Tags: one-column, custom-menu, custom-logo, custom-header, featured-images, translation-ready
*/

/*
  The one cascade layer this file declares.

  `assets/css/theme.css` is the compiled design source, and Tailwind writes its
  utilities inside `@layer utilities`. A layer always loses to a rule outside
  one, whatever the specificity — so while this file set `a { color: inherit }`
  unlayered, it beat every `text-ivory` and `text-cocoa` utility an editorial
  button wears. The fill still came from `bg-cocoa`, but the label inherited
  the page's dark text on top of it: a button that looked empty until a hover
  rule swapped the fill underneath and the inherited text finally had contrast.

  Declaring the layer here, above every rule in the first stylesheet WordPress
  prints, puts these element defaults underneath the compiled utilities. A
  utility can then set a colour, and a link with no utility still inherits one —
  the behaviour both halves of the theme were written to expect. Only
  declarations that genuinely compete with utilities belong in here; everything
  else stays unlayered so the theme's own component classes keep their priority.

  The statement has to come before the first style rule to be valid, which is
  why it sits above the tokens rather than beside the rule it layers.
*/
@layer kp-base;

/* ============================================================
   0. FONTS — self-hosted, Latin subset, variable where possible.

   The two families are the ones the site actually sets: Playfair
   Display for headings and labels, Archivo for body copy. Serving
   them from this theme removes the third-party CSS request and the
   two font-host connections; the normal faces are preloaded in
   functions.php, and `font-display: swap` keeps text visible while
   a face arrives. Licences travel beside the files in assets/fonts.
   ============================================================ */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/playfair-display-latin-400-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/playfair-display-latin-italic-400-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-400-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-italic-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   1. TOKENS
   Earthy and cinematic rather than pastel: warm paper canvas,
   clay and terracotta accents, oxblood cocoa for text and primary
   actions. Accents are accents — the canvas stays paper.
   ============================================================ */
:root {
  /* Palette — the design source's own values, so an inner page and the home
     page are the same paper, the same black and the same dusty rose. */
  --kp-ivory: #fbf8f4;
  --kp-paper: #ffffff;
  --kp-espresso: #000000;
  --kp-cocoa: #0a0a0a;
  --kp-taupe: #6b625d;
  --kp-beige: #d9c3b0;
  --kp-peach: #c96f70;
  --kp-terracotta: #b0605e;
  --kp-blush: #e9cdc4;

  /* Surfaces and text */
  --kp-canvas: #fbf8f4;
  --kp-surface: #ffffff;
  --kp-surface-alt: #f4ede6;
  --kp-text: #0a0a0a;
  --kp-text-muted: #6b625d;
  --kp-text-inverse: #fbf8f4;

  /* Lines */
  --kp-line: #e8dcd2;
  --kp-line-strong: #d9c3b0;
  /* Form boundaries need 3:1 against the surface (WCAG 1.4.11); the decorative
     sand line does not, so fields get their own stronger token. */
  --kp-field-line: #8a7565;

  /* Type.

     The roles, named. The faces are the design source's own and are declared
     in section 0 above, served from assets/fonts rather than a third-party font
     host. Naming a face a page never loads is how a site ends up rendering in a
     generic sans on every device while the tokens claim otherwise.

     Display is the high-contrast Didone serif the design source sets its
     headings in — Playfair Display, which the theme already loads. Labels share
     that face, tracked out, which is what the design source's eyebrow does.
     Body copy stays on Archivo. */
  --kp-font-display: "Playfair Display", "Adobe Garamond Pro", Georgia,
    "Times New Roman", serif;
  --kp-font-serif: var(--kp-font-display);
  --kp-font-label: var(--kp-font-display);
  --kp-font-body: "Acumin Pro", "Archivo", "Helvetica Neue", Arial, sans-serif;

  /* Spacing ladder — 4px base. */
  --kp-space-1: 0.25rem;
  --kp-space-2: 0.5rem;
  --kp-space-3: 0.75rem;
  --kp-space-4: 1rem;
  --kp-space-5: 1.5rem;
  --kp-space-6: 2rem;
  --kp-space-7: 3rem;
  --kp-space-8: 4rem;
  --kp-space-9: 6rem;

  /* Corners stay refined and minimal. */
  --kp-radius-sm: 0.125rem;
  --kp-radius-md: 0.25rem;

  /* Motion — cinematic and subtle. */
  --kp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --kp-t-instant: 150ms;
  --kp-t-fast: 200ms;
  --kp-t-normal: 350ms;
  --kp-t-slow: 600ms;

  --kp-shell: 84rem;
  --kp-gutter: clamp(1.25rem, 5vw, 3.5rem);
  --kp-header-h: 4.5rem;
}

/* ============================================================
   2. BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--kp-canvas);
  color: var(--kp-text);
  font-family: var(--kp-font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/*
  The colour is layered, the decoration is not. Only `color` competes with a
  utility; the thickness and offset are this theme's own and must keep their
  place above the framework's reset.
*/
a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}
@layer kp-base {
  a {
    color: inherit;
  }
}

/*
  Ink on dark surfaces.

  The layered rule above is enough for as long as nothing outside a layer
  competes — but a stored Global Styles value, a `theme.json` from an older
  package, or a plugin can still print

    :root :where(a:where(:not(.wp-element-button))) { color: … }

  and an unlayered rule outranks every utility whatever the specificity. On a
  near-black band that repaints the footer's columns, the contact strip, the
  social row, the closing call to action and the try-on link in the paper colour
  of body copy: the fill still paints, the label disappears into the band, and
  the visitor only sees it on hover.

  This block hands the colour back to the surface at a weight no global rule can
  beat. It skips any link that declares its own fill (a `bg-*` utility) or its
  own button component, because those carry the pair — light fill with dark
  label, dark fill with light label — that makes them a button.

  Deliberately unlayered. As a layer it would lose to the very rule it exists to
  outrank.
*/
:is(.bg-noir, .bg-cocoa, .bg-espresso, .kp-deep, .home-philosophy)
  :is(a, a:visited):not([class*="bg-"]):not(.home-button):not(.home-header-cta):not(.kp-btn):not(.kp-cine__cta):not(.kp-skip-link) {
  color: var(--kp-beige, #d9c3b0);
}

:is(.bg-noir, .bg-cocoa, .bg-espresso, .kp-deep, .home-philosophy)
  :is(a, a:visited):not([class*="bg-"]):not(.home-button):not(.home-header-cta):not(.kp-btn):not(.kp-cine__cta):not(.kp-skip-link):hover,
:is(.bg-noir, .bg-cocoa, .bg-espresso, .kp-deep, .home-philosophy)
  :is(a, a:visited):not([class*="bg-"]):not(.home-button):not(.home-header-cta):not(.kp-btn):not(.kp-cine__cta):not(.kp-skip-link):focus-visible {
  color: var(--kp-ivory, #fbf8f4);
}

h1,
h2,
h3,
h4,
h5,
.kp-stack {
  margin: 0 0 var(--kp-space-4);
  font-family: var(--kp-font-display);
  font-weight: 700;
  letter-spacing: -0.008em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.9rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.022em;
}
h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.75rem);
  line-height: 0.98;
  letter-spacing: -0.018em;
}
h3,
.kp-h3 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.08;
}
h4 {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  line-height: 1.2;
}

p {
  margin: 0 0 var(--kp-space-5);
  text-wrap: pretty;
}

ul,
ol {
  padding-left: 1.1em;
}

:focus-visible {
  outline: 2px solid var(--kp-terracotta);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ============================================================
   3. UTILITIES
   ============================================================ */
.kp-shell {
  width: 100%;
  max-width: var(--kp-shell);
  margin-inline: auto;
  padding-inline: var(--kp-gutter);
}

.kp-section {
  padding-block: clamp(3.5rem, 9vw, 7rem);
}
.kp-section--tight {
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

/* Section surfaces. Named by role so a section reads as intent, not colour. */
.kp-canvas {
  background: var(--kp-canvas);
}
.kp-surface {
  background: var(--kp-surface-alt);
}
.kp-deep {
  background: var(--kp-espresso);
  color: var(--kp-text-inverse);
}
.kp-peach {
  background: var(--kp-peach);
  color: var(--kp-cocoa);
}

.kp-flex-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--kp-space-4);
}

.kp-center {
  text-align: center;
}

.kp-muted {
  color: var(--kp-text-muted);
}
.kp-cocoa-text {
  color: var(--kp-text-inverse);
}
.kp-mb-0 {
  margin-bottom: 0 !important;
}

.kp-sr-only,
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kp-skip-link {
  position: absolute;
  left: var(--kp-space-4);
  top: -6rem;
  z-index: 200;
  padding: var(--kp-space-3) var(--kp-space-5);
  background: var(--kp-cocoa);
  color: var(--kp-ivory);
  font-family: var(--kp-font-display);
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top var(--kp-t-fast) var(--kp-ease);
}
.kp-skip-link:focus {
  top: var(--kp-space-4);
}

/* Small tracked-out label. Informational only — never decorative. */
.kp-micro {
  display: inline-flex;
  align-items: center;
  gap: var(--kp-space-3);
  font-family: var(--kp-font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--kp-terracotta);
}
.kp-micro::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.kp-micro--bare::before {
  display: none;
}
.kp-micro--light {
  color: var(--kp-blush);
}

/* Editorial headline helper for stacked, intentional line breaks. */
.kp-stack {
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.022em;
}
.kp-stack em {
  font-style: normal;
  color: var(--kp-terracotta);
}
.kp-deep .kp-stack em {
  color: var(--kp-peach);
}

.kp-lead {
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.6;
  color: var(--kp-text-muted);
}

.kp-rule {
  height: 1px;
  background: var(--kp-line);
  border: 0;
  margin: 0;
}

/* Photographic frames. The ratio is declared up front so the space is
   reserved and nothing shifts while images arrive. */
.kp-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--kp-radius-sm);
  background: var(--kp-surface-alt);
}
.kp-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kp-frame--3x4 {
  aspect-ratio: 3 / 4;
}
.kp-frame--4x5 {
  aspect-ratio: 4 / 5;
}
/* The lead tile of the homepage portfolio: the taller first frame the design
   source opens the grid with. */
.kp-frame--2x3 {
  aspect-ratio: 2 / 3;
}
.kp-frame--1x1 {
  aspect-ratio: 1 / 1;
}
.kp-frame--16x9 {
  aspect-ratio: 16 / 9;
}
.kp-frame--zoom > img {
  transition: transform var(--kp-t-slow) var(--kp-ease);
}
.kp-frame--zoom:hover > img {
  transform: scale(1.035);
}

/* Overlay that keeps text legible over photography (WCAG). */
.kp-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(36, 24, 20, 0.78) 0%,
    rgba(36, 24, 20, 0.35) 55%,
    rgba(36, 24, 20, 0.05) 100%
  );
}

/* ============================================================
   4. BUTTONS
   Primary: deep cocoa on warm ivory. Secondary: a hairline cocoa
   rule. Nothing pill-shaped, nothing gradient.
   ============================================================ */
.kp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--kp-space-3);
  min-height: 3.25rem;
  padding: var(--kp-space-4) var(--kp-space-6);
  /*
    Every fill and its label are declared together, with the token's own value
    as the fallback.

    A missing token does not mean "no colour": `color: var(--kp-ivory)` is
    invalid at computed-value time, and CSS drops the declaration, so the label
    inherits the page's text colour. On the near-black fill below that is
    invisible until a hover rule happens to set a valid colour — the exact
    "the text only appears on hover" report, and the reason these fallbacks are
    part of the button rather than a patch on top of it.
  */
  border: 1px solid var(--kp-cocoa, #0a0a0a);
  border-radius: var(--kp-radius-sm);
  background: var(--kp-cocoa, #0a0a0a);
  color: var(--kp-ivory, #fbf8f4);
  font-family: var(--kp-font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--kp-t-fast) var(--kp-ease),
    border-color var(--kp-t-fast) var(--kp-ease),
    color var(--kp-t-fast) var(--kp-ease);
}
/*
  Hover moves the fill to the dusty rose and the label to cocoa, the pair the
  design source uses for every accent fill it hovers. Terracotta with ivory was
  the one dark-fill pair that measured under 4.5:1 (4.24:1), and it also made
  this button hover differently from the editorial primary button on the same
  pages.
*/
.kp-btn:hover {
  background: var(--kp-peach, #c96f70);
  border-color: var(--kp-peach, #c96f70);
  color: var(--kp-cocoa, #0a0a0a);
}
.kp-btn:active {
  transform: translateY(1px);
}
.kp-btn[disabled],
.kp-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.kp-btn--ghost {
  background: transparent;
  border-color: var(--kp-cocoa, #0a0a0a);
  color: var(--kp-cocoa, #0a0a0a);
}
.kp-btn--ghost:hover {
  background: var(--kp-cocoa, #0a0a0a);
  border-color: var(--kp-cocoa, #0a0a0a);
  color: var(--kp-ivory, #fbf8f4);
}

.kp-btn--on-dark {
  background: var(--kp-ivory, #fbf8f4);
  border-color: var(--kp-ivory, #fbf8f4);
  color: var(--kp-espresso, #000000);
}
.kp-btn--on-dark:hover {
  background: var(--kp-peach, #c96f70);
  border-color: var(--kp-peach, #c96f70);
  color: var(--kp-espresso, #000000);
}

.kp-deep .kp-btn--ghost,
.kp-peach .kp-btn--ghost {
  border-color: currentColor;
  color: inherit;
}
.kp-deep .kp-btn--ghost:hover {
  background: var(--kp-ivory, #fbf8f4);
  border-color: var(--kp-ivory, #fbf8f4);
  color: var(--kp-espresso, #000000);
}

.kp-btn--block {
  width: 100%;
}

.kp-arrow {
  display: inline-block;
  transition: transform var(--kp-t-fast) var(--kp-ease);
}
.kp-btn:hover .kp-arrow,
.kp-row:hover .kp-arrow {
  transform: translateX(4px);
}

/* ============================================================
   5. HEADER + NAVIGATION
   ============================================================ */
.kp-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(251, 248, 244, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--kp-line);
}

.kp-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--kp-space-5);
  min-height: var(--kp-header-h);
}

.kp-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
}
.kp-brand img {
  max-height: 2.75rem;
  width: auto;
}
.kp-brand__name {
  font-family: var(--kp-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.kp-brand__sub {
  font-family: var(--kp-font-display);
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--kp-taupe);
}
.kp-footer .kp-brand__sub {
  color: rgba(251, 248, 244, 0.6);
}

.kp-nav__list {
  display: flex;
  align-items: center;
  gap: var(--kp-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.kp-nav__list a {
  display: inline-block;
  padding-block: var(--kp-space-2);
  font-family: var(--kp-font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--kp-t-fast) var(--kp-ease);
}
.kp-nav__list a:hover,
.kp-nav__list .current-menu-item > a {
  border-bottom-color: var(--kp-terracotta);
}

.kp-nav__cta {
  min-height: 2.75rem;
  padding: var(--kp-space-3) var(--kp-space-5);
}

.kp-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: var(--kp-space-2);
  border: 1px solid var(--kp-line);
  border-radius: var(--kp-radius-sm);
  background: transparent;
  cursor: pointer;
}
.kp-burger span:not(.screen-reader-text) {
  display: block;
  width: 1.25rem;
  height: 1.5px;
  margin-inline: auto;
  background: var(--kp-cocoa);
  transition: transform var(--kp-t-fast) var(--kp-ease), opacity var(--kp-t-fast) var(--kp-ease);
}
.kp-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.kp-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.kp-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.kp-mobile {
  display: none;
  border-top: 1px solid var(--kp-line);
  background: var(--kp-canvas);
}
.kp-mobile[data-open="true"] {
  display: block;
}
.kp-mobile__inner {
  max-height: calc(100vh - var(--kp-header-h));
  overflow-y: auto;
  padding-block: var(--kp-space-4) var(--kp-space-6);
}

.kp-mobile__group {
  border-bottom: 1px solid var(--kp-line);
}
.kp-mobile__group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--kp-space-4);
  min-height: 44px;
  padding-block: var(--kp-space-4);
  font-family: var(--kp-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}
.kp-mobile__group > summary::-webkit-details-marker {
  display: none;
}
.kp-mobile__group > summary::after {
  content: "+";
  color: var(--kp-terracotta);
  font-size: 1.05rem;
}
.kp-mobile__group[open] > summary::after {
  content: "\2013";
}

.kp-mobile__list {
  margin: 0;
  padding: 0 0 var(--kp-space-4);
  list-style: none;
}
.kp-mobile__list li {
  border-top: 1px solid var(--kp-line);
}
.kp-mobile__list a {
  display: block;
  min-height: 44px;
  padding-block: var(--kp-space-3);
  font-family: var(--kp-font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.kp-mobile__cta {
  padding-top: var(--kp-space-5);
}

@media (max-width: 1079px) {
  .kp-burger {
    display: flex;
  }
  .kp-nav,
  .kp-nav__cta {
    display: none;
  }
}

/* ============================================================
   6. SERVICE / SECTION INDEX ROWS
   An editorial contents page rather than a card wall.
   ============================================================ */
.kp-index {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--kp-line);
}
.kp-index > li {
  border-bottom: 1px solid var(--kp-line);
}

.kp-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: var(--kp-space-5);
  padding-block: var(--kp-space-5);
  text-decoration: none;
  transition: background-color var(--kp-t-fast) var(--kp-ease);
}
.kp-row:hover {
  background: var(--kp-surface-alt);
}

.kp-row__num {
  font-family: var(--kp-font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--kp-terracotta);
}

.kp-row__name {
  font-family: var(--kp-font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.012em;
}

.kp-row__desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--kp-text-muted);
}

.kp-row__price {
  display: inline-flex;
  align-items: baseline;
  gap: var(--kp-space-3);
  font-family: var(--kp-font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .kp-row {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    row-gap: var(--kp-space-2);
  }
  .kp-row__desc,
  .kp-row__price {
    grid-column: 2;
  }
}

/* ============================================================
   7. FORMS
   ============================================================ */
.kp-field {
  display: block;
  margin: 0;
}
.kp-field label {
  display: block;
  margin-bottom: var(--kp-space-2);
  font-family: var(--kp-font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

input[type="text"],
input[type="search"],
input[type="tel"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--kp-field-line);
  border-radius: var(--kp-radius-sm);
  background: var(--kp-surface);
  color: var(--kp-text);
  font-family: var(--kp-font-body);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition:
    border-color var(--kp-t-fast) var(--kp-ease),
    box-shadow var(--kp-t-fast) var(--kp-ease);
}

textarea {
  min-height: 6.5rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--kp-taupe);
  opacity: 0.75;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--kp-terracotta);
  box-shadow: 0 0 0 3px rgba(169, 111, 82, 0.18);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #a03b2e;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: var(--kp-terracotta);
}

/* Submit controls follow the button system rather than the browser default. */
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--kp-space-3);
  min-height: 3.25rem;
  padding: var(--kp-space-4) var(--kp-space-6);
  /*
    Every fill and its label are declared together, with the token's own value
    as the fallback.

    A missing token does not mean "no colour": `color: var(--kp-ivory)` is
    invalid at computed-value time, and CSS drops the declaration, so the label
    inherits the page's text colour. On the near-black fill below that is
    invisible until a hover rule happens to set a valid colour — the exact
    "the text only appears on hover" report, and the reason these fallbacks are
    part of the button rather than a patch on top of it.
  */
  border: 1px solid var(--kp-cocoa, #0a0a0a);
  border-radius: var(--kp-radius-sm);
  background: var(--kp-cocoa, #0a0a0a);
  color: var(--kp-ivory, #fbf8f4);
  font-family: var(--kp-font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color var(--kp-t-fast) var(--kp-ease),
    border-color var(--kp-t-fast) var(--kp-ease);
}
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: var(--kp-terracotta);
  border-color: var(--kp-terracotta);
}

.search-form {
  display: flex;
  gap: var(--kp-space-3);
  width: 100%;
}
.search-field {
  flex: 1 1 auto;
  min-width: 0;
}
.search-submit {
  flex: none;
}

/* ============================================================
   8. FOOTER
   A navigation, trust and SEO surface — not an afterthought.
   ============================================================ */
.kp-footer {
  background: var(--kp-espresso);
  color: var(--kp-text-inverse);
}
.kp-footer a {
  text-decoration: none;
  transition: color var(--kp-t-fast) var(--kp-ease);
}
.kp-footer a:hover {
  color: var(--kp-blush);
}

.kp-footer__cols {
  display: grid;
  gap: var(--kp-space-6);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
}
@media (min-width: 900px) {
  .kp-footer__cols {
    grid-template-columns: minmax(min(100%, 16rem), 1.4fr) repeat(4, minmax(0, 1fr));
    align-items: start;
  }
}

.kp-footer__brand {
  grid-column: 1 / -1;
}
@media (min-width: 900px) {
  .kp-footer__brand {
    grid-column: auto;
  }
}

.kp-footer__blurb {
  max-width: 38ch;
  margin: var(--kp-space-5) 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(251, 248, 244, 0.68);
}

.kp-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: var(--kp-space-2) var(--kp-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--kp-font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.kp-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
}
.kp-footer__list li {
  margin-bottom: var(--kp-space-3);
}

.kp-footer__area {
  color: rgba(251, 248, 244, 0.5);
  font-size: 0.8125rem;
}

.kp-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--kp-space-4);
  padding-block: var(--kp-space-5);
  border-top: 1px solid rgba(251, 248, 244, 0.14);
  font-size: 0.8125rem;
  color: rgba(251, 248, 244, 0.55);
}

.kp-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--kp-space-2) var(--kp-space-5);
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--kp-font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.kp-footer__legal li {
  margin: 0;
}

/* ============================================================
   9. PROSE
   ============================================================ */
/* Constrain the reading measure on article bodies only — the same class is
   reused as a neutral wrapper for post navigation and the 404 block. */
article.kp-entry,
.kp-prose {
  max-width: 68ch;
  font-size: 1.0625rem;
  line-height: 1.75;
}
.kp-prose h2,
.kp-prose h3 {
  margin-top: var(--kp-space-7);
}
.kp-prose blockquote {
  margin: var(--kp-space-6) 0;
  padding-left: var(--kp-space-5);
  border-left: 2px solid var(--kp-peach);
  font-family: var(--kp-font-display);
  font-size: 1.25rem;
  line-height: 1.3;
}
.kp-prose img {
  border-radius: var(--kp-radius-sm);
}

/* ---- Comments ---- */
.kp-comments {
  margin-top: var(--kp-space-8);
  padding-top: var(--kp-space-8);
  border-top: 1px solid var(--kp-line);
}

.kp-comment-list,
.kp-comment-list ul {
  margin: 0 0 var(--kp-space-6);
  padding: 0;
  list-style: none;
}

.kp-comment-list li {
  padding-block: var(--kp-space-5);
  border-bottom: 1px solid var(--kp-line);
}

.kp-comment-list .children {
  margin: var(--kp-space-5) 0 0 var(--kp-space-5);
  padding-left: var(--kp-space-5);
  border-left: 1px solid var(--kp-line);
}

.kp-comment-list .comment-author img {
  float: left;
  margin-right: var(--kp-space-3);
  border-radius: 50%;
}

.kp-comment-list .comment-metadata {
  font-family: var(--kp-font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--kp-taupe);
}

.kp-comment-list .comment-body p:last-child {
  margin-bottom: 0;
}

.kp-comment-list .reply {
  font-family: var(--kp-font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.comment-respond {
  margin-top: var(--kp-space-7);
}

.comment-form label {
  display: block;
  margin-bottom: var(--kp-space-2);
  font-family: var(--kp-font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.comment-form .comment-notes,
.comment-form .logged-in-as {
  font-size: 0.875rem;
  color: var(--kp-text-muted);
}

.comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--kp-space-3);
  font-size: 0.875rem;
}

.comment-form-cookies-consent input {
  flex: none;
  margin-top: 0.3rem;
}

.comment-form-cookies-consent label {
  margin: 0;
  font-family: var(--kp-font-body);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

/* ============================================================
   10. MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .kp-header,
  .kp-mobile {
    position: static;
  }
}
