/* ============================================================
   PAUL KAPISCHKA — WordPress Theme Styles
   Editorial graphic-designer portfolio aesthetic.
   • Type: PP Editorial New (Pangram Pangram) + JetBrains Mono
   • Palette: warm paper / deep ink / one cinnabar accent
   ============================================================ */

/* ---------- @font-face ---------- */
@font-face {
  font-family: "PP Editorial New";
  src: url("../fonts/PPEditorialNew-Ultralight.woff2") format("woff2");
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Editorial New";
  src: url("../fonts/PPEditorialNew-UltralightItalic.woff2") format("woff2");
  font-weight: 200; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "PP Editorial New";
  src: url("../fonts/PPEditorialNew-Thin.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Editorial New";
  src: url("../fonts/PPEditorialNew-ThinItalic.woff2") format("woff2");
  font-weight: 300; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "PP Editorial New";
  src: url("../fonts/PPEditorialNew-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Editorial New";
  src: url("../fonts/PPEditorialNew-Italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}

@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap");

/* ---------- Tokens ---------- */
:root {
  --pk-ink:       #15110E;
  --pk-ink-soft:  #2A241F;
  --pk-paper:     #F2ECE0;
  --pk-paper-2:   #E8DFCD;
  --pk-cream:     #F8F4EC;
  --pk-stone:     #8C8475;
  --pk-stone-2:   #B8B0A0;
  --pk-line:      #1511101A;
  --pk-spark:     #E5462B;
  --pk-spark-ink: #B4361F;
  --pk-night:     #0A0807;
  --pk-night-fg:  #EDE6D6;

  --bg:           var(--pk-paper);
  --bg-elevated:  var(--pk-cream);
  --bg-banded:    var(--pk-paper-2);
  --bg-inverse:   var(--pk-ink);

  --fg-1:         var(--pk-ink);
  --fg-2:         var(--pk-ink-soft);
  --fg-3:         var(--pk-stone);
  --fg-4:         var(--pk-stone-2);
  --fg-on-dark:   var(--pk-night-fg);
  --fg-accent:    var(--pk-spark);

  --border:       var(--pk-line);
  --border-strong:var(--pk-ink);

  --font-display: "PP Editorial New", "Times New Roman", Georgia, serif;
  --font-serif:   "PP Editorial New", "Times New Roman", Georgia, serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --w-ultralight: 200;
  --w-thin:       300;
  --w-regular:    400;

  --fs-mono:     11px;
  --fs-small:    13px;
  --fs-body:     17px;
  --fs-lead:     21px;
  --fs-h4:       28px;
  --fs-h3:       40px;
  --fs-h2:       64px;
  --fs-h1:       96px;
  --fs-display:  168px;

  --lh-display:  0.92;
  --lh-tight:    1.04;
  --lh-snug:     1.18;
  --lh-body:     1.5;

  --ls-display:  -0.025em;
  --ls-tight:    -0.015em;
  --ls-mono:      0.06em;

  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --ease-out:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:    140ms;
  --dur-base:    240ms;

  --page-x: 48px;
}

/* ---------- Dark mode ---------- */
html[data-pk-theme="dark"] {
  --bg:           var(--pk-night);
  --bg-elevated:  var(--pk-ink);
  --bg-banded:    #110D0A;
  --bg-inverse:   var(--pk-paper);
  --fg-1:         var(--pk-night-fg);
  --fg-2:         #D4CCB8;
  --fg-3:         var(--pk-stone-2);
  --fg-4:         var(--pk-stone);
  --pk-ink:       var(--pk-night-fg);
  --pk-paper:     var(--pk-night);
  --pk-paper-2:   #110D0A;
  --border:       #EDE6D61A;
  --border-strong:var(--pk-night-fg);
}

/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg-1);
  font-family: var(--font-serif);
  font-weight: var(--w-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-width: 1024px;
}

body { transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
::selection { background: var(--pk-spark); color: var(--pk-paper); }

img, svg { max-width: 100%; display: block; }
button { font: inherit; }

/* ---------- Typography primitives ---------- */
.pk-display {
  font-family: var(--font-display); font-weight: var(--w-ultralight);
  font-size: clamp(72px, 14vw, 200px); line-height: 0.92;
  letter-spacing: -0.03em; margin: 0; color: var(--fg-1);
}
.pk-h1 {
  font-family: var(--font-display); font-weight: var(--w-ultralight);
  font-size: 110px; line-height: 0.95; letter-spacing: var(--ls-display);
  margin: 0; color: var(--fg-1);
}
.pk-h2 {
  font-family: var(--font-display); font-weight: var(--w-ultralight);
  font-size: 88px; line-height: 0.95; letter-spacing: var(--ls-display);
  margin: 0; color: var(--fg-1);
}
.pk-h3 {
  font-family: var(--font-display); font-weight: var(--w-thin);
  font-size: 36px; line-height: 1.05; letter-spacing: var(--ls-tight);
  margin: 0; color: var(--fg-1);
}
.pk-h4 {
  font-family: var(--font-display); font-weight: var(--w-thin);
  font-size: 28px; line-height: 1.05; letter-spacing: var(--ls-tight);
  margin: 0; color: var(--fg-1);
}
.pk-italic { font-style: italic; font-weight: var(--w-thin); }
.pk-spark  { color: var(--pk-spark); }

.pk-lead {
  font-family: var(--font-serif); font-weight: var(--w-thin); font-style: italic;
  font-size: 24px; line-height: 1.4; color: var(--fg-1);
  margin: 0; max-width: 34ch;
}
.pk-lead-lg {
  font-family: var(--font-serif); font-weight: var(--w-thin); font-style: italic;
  font-size: 26px; line-height: 1.35; color: var(--fg-1);
  margin: 0; max-width: 32ch;
}

.pk-p {
  font-family: var(--font-serif); font-weight: var(--w-regular);
  font-size: var(--fs-body); line-height: var(--lh-body);
  color: var(--fg-2); max-width: 68ch; margin: 0;
}

.pk-mono {
  font-family: var(--font-mono); font-weight: 500;
  font-size: var(--fs-mono); letter-spacing: var(--ls-mono);
  text-transform: uppercase; color: var(--fg-3);
}
.pk-mono--ink   { color: var(--fg-1); }
.pk-mono--spark { color: var(--pk-spark); }

a {
  color: inherit; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 0.18em;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--pk-spark); }

hr, .pk-rule { border: 0; border-top: 1px solid var(--border-strong); margin: 0; }
.pk-rule--soft { border-top-color: var(--border); }

/* ---------- Sparkle ---------- */
.pk-sparkle {
  display: inline-block; width: 1em; height: 1em; vertical-align: -0.12em;
  background: currentColor;
  mask: var(--pk-sparkle-mask) center / contain no-repeat;
  -webkit-mask: var(--pk-sparkle-mask) center / contain no-repeat;
}

/* ---------- Buttons ---------- */
.pk-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 14px 22px; border: 0; border-radius: 0;
  cursor: pointer; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.pk-btn--primary   { background: var(--pk-ink); color: var(--pk-paper); }
.pk-btn--primary:hover { background: var(--pk-spark); color: var(--pk-paper); }
.pk-btn--secondary { background: transparent; color: var(--pk-ink); border: 1px solid var(--pk-ink); }
.pk-btn--secondary:hover { background: var(--pk-ink); color: var(--pk-paper); }

/* ---------- Site chrome ---------- */
.pk-site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--pk-ink);
}
.pk-site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--page-x);
}
.pk-brand { display: flex; align-items: center; gap: 14px; color: var(--pk-ink); text-decoration: none; }
.pk-brand__logo { color: var(--pk-ink); }
.pk-brand__logo svg { width: 32px; height: 32px; display: block; }
.pk-brand__name {
  font-family: var(--font-display); font-weight: var(--w-thin);
  font-size: 22px; letter-spacing: -0.015em; color: var(--pk-ink);
}

.pk-nav { display: flex; align-items: center; gap: 28px; }
.pk-nav ul { list-style: none; display: flex; gap: 28px; padding: 0; margin: 0; align-items: center; }
.pk-nav a {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pk-ink); text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.pk-nav .current-menu-item a,
.pk-nav .current_page_item a,
.pk-nav .current-page-ancestor a,
.pk-nav a:hover {
  color: var(--pk-spark);
  border-bottom-color: var(--pk-spark);
}

.pk-status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--pk-spark); border-radius: 999px;
}
.pk-status__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--pk-spark);
  animation: pkPulse 1.8s var(--ease-in-out) infinite;
}
@keyframes pkPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.7); }
}

/* ---------- Theme toggle (Light / Dark) ---------- */
.pk-theme-toggle {
  all: unset; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3); padding: 6px 10px;
  border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; gap: 8px;
}
.pk-theme-toggle:hover { color: var(--pk-spark); border-color: var(--pk-spark); }

/* Moon / sun dot — crescent effect via inset box-shadow, no JS needed */
.pk-theme-toggle__moon {
  display: inline-block; flex-shrink: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--pk-ink);
  box-shadow: inset -3px 1px 0 var(--bg);    /* light-mode: moon crescent */
  transition: box-shadow var(--dur-fast) var(--ease-out),
              background  var(--dur-fast) var(--ease-out);
}
html[data-pk-theme="dark"] .pk-theme-toggle__moon {
  box-shadow: inset 3px -1px 0 var(--bg);    /* dark-mode: flipped crescent → sun */
}

/* ---------- Sections ---------- */
.pk-section { padding: 64px var(--page-x) 96px; }
.pk-section--narrow { padding: 64px var(--page-x) 96px; }
.pk-section__header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 18px; border-bottom: 1px solid var(--pk-ink);
}
.pk-section__title-row { display: flex; align-items: baseline; gap: 24px; }

/* ---------- Home / Hero ---------- */
.pk-hero { padding: 96px var(--page-x) 64px; }
.pk-hero__masthead {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 64px;
}
.pk-hero__title {
  font-family: var(--font-display); font-weight: var(--w-ultralight);
  font-size: clamp(72px, 14vw, 200px); line-height: 0.92;
  letter-spacing: -0.03em; color: var(--fg-1); margin: 0;
}
.pk-hero__title em { font-style: italic; font-weight: var(--w-thin); }
.pk-hero__title-spark { color: var(--pk-spark); margin: 0 24px; vertical-align: -0.1em; }
.pk-hero__title-spark svg { width: 120px; height: 120px; display: inline-block; }

.pk-hero__grid {
  margin-top: 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
}
.pk-hero__list {
  list-style: none; padding: 0; margin: 0;
  font-family: var(--font-serif); font-size: 18px; line-height: 1.55;
  color: var(--fg-2);
}
.pk-hero__col { display: flex; flex-direction: column; gap: 16px; align-self: end; }
.pk-hero__cta { display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.pk-hero__ticker {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-top: 24px;
}
.pk-hero__divider {
  border: 0; border-top: 1px solid var(--pk-ink);
  margin: 96px 0 24px;
}

/* ---------- Work index (list) ---------- */
.pk-work {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 64px; margin-top: 32px;
}
.pk-work__list { list-style: none; padding: 0; margin: 0; font-family: var(--font-serif); }
.pk-work__row {
  display: grid;
  grid-template-columns: 56px 1fr 140px 70px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  color: var(--fg-1);
  transition: color var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.pk-work__row:hover,
.pk-work__row:hover .pk-work__num,
.pk-work__row:hover .pk-work__cat,
.pk-work__row:hover .pk-work__year { color: var(--pk-spark); }
.pk-work__row:hover .pk-work__title { font-style: italic; }

.pk-work__num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; color: var(--fg-3);
}
.pk-work__title {
  font-family: var(--font-display); font-weight: var(--w-thin);
  font-size: 36px; line-height: 1.05; letter-spacing: -0.015em;
  color: inherit;
}
.pk-work__cat,
.pk-work__year {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3);
}
.pk-work__year { text-align: right; }

.pk-work__aside { position: sticky; top: 96px; align-self: start; }
.pk-work__preview {
  aspect-ratio: 4 / 5; background: var(--pk-paper-2);
  position: relative; overflow: hidden;
  transition: background var(--dur-base) var(--ease-out);
}
.pk-work__preview-empty {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
}
.pk-work__preview-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.pk-work__preview-label {
  position: absolute; inset: auto 20px 20px 20px;
  font-family: var(--font-display); font-weight: var(--w-ultralight);
  font-size: 54px; line-height: 0.95; letter-spacing: -0.02em;
  color: var(--pk-paper);
}
.pk-work__preview-blurb {
  margin-top: 16px; font-family: var(--font-serif); font-style: italic;
  font-size: 15px; color: var(--fg-2); line-height: 1.5;
}

/* ---------- Work grid (alternate layout) ---------- */
.pk-work-grid {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.pk-work-card { text-decoration: none; color: inherit; display: block; }
.pk-work-card__cover {
  aspect-ratio: 4 / 5; background: var(--pk-paper-2);
  position: relative; overflow: hidden;
  filter: grayscale(100%);
  transition: filter var(--dur-base) var(--ease-out);
}
.pk-work-card:hover .pk-work-card__cover { filter: none; }
.pk-work-card__cover img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.pk-work-card__num {
  position: absolute; top: 16px; left: 20px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--pk-paper); opacity: 0.8;
}
.pk-work-card__label {
  position: absolute; inset: auto 20px 20px 20px;
  font-family: var(--font-display); font-weight: var(--w-ultralight);
  font-size: 48px; line-height: 0.95; letter-spacing: -0.02em;
  color: var(--pk-paper);
}
.pk-work-card__meta {
  margin-top: 14px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.pk-work-card__title {
  font-family: var(--font-display); font-weight: var(--w-thin);
  font-size: 28px; line-height: 1.05; letter-spacing: -0.015em;
  color: var(--fg-1); margin: 0;
  transition: color var(--dur-fast) var(--ease-out);
}
.pk-work-card:hover .pk-work-card__title { color: var(--pk-spark); font-style: italic; }

/* ---------- Project detail ---------- */
.pk-project { padding: 48px var(--page-x) 96px; }
.pk-breadcrumb { display: flex; align-items: center; gap: 12px; margin-bottom: 48px; }
.pk-breadcrumb a {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-3); text-decoration: none;
}
.pk-breadcrumb a:hover { color: var(--pk-spark); }

.pk-project__cover {
  aspect-ratio: 16 / 9; background: var(--pk-paper-2);
  position: relative; overflow: hidden;
}
.pk-project__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pk-project__cover-label {
  position: absolute; inset: auto 48px 48px 48px;
  font-family: var(--font-display); font-weight: var(--w-ultralight);
  font-size: 140px; line-height: 0.9; letter-spacing: -0.025em;
  color: var(--pk-paper); pointer-events: none;
}

.pk-project__head {
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr 360px; gap: 64px;
}
.pk-project__title {
  font-family: var(--font-display); font-weight: var(--w-ultralight);
  font-size: 110px; line-height: 0.95; letter-spacing: -0.025em;
  color: var(--fg-1); margin: 0;
}
.pk-project__title-dot { color: var(--pk-spark); }
.pk-project__meta { margin: 0; display: flex; flex-direction: column; gap: 18px; padding-top: 16px; }
.pk-project__meta-row {
  display: flex; flex-direction: column; gap: 4px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.pk-project__meta-val {
  font-family: var(--font-serif); font-size: 16px; color: var(--fg-1);
}

.pk-prose {
  margin-top: 72px; column-count: 2; column-gap: 48px;
  font-family: var(--font-serif); font-size: 17px; line-height: 1.6;
  color: var(--fg-2);
}
.pk-prose p { margin: 0 0 1em; max-width: none; }
.pk-prose .pk-dropcap {
  float: left;
  font-family: var(--font-display); font-weight: var(--w-ultralight);
  font-size: 96px; line-height: 0.8; letter-spacing: -0.02em;
  margin: 0.08em 0.08em 0 0; color: var(--fg-1);
}

.pk-bleed {
  margin: 80px calc(-1 * var(--page-x)) 0;
  position: relative; overflow: hidden;
}
.pk-bleed img { width: 100%; display: block; }
.pk-bleed-placeholder {
  aspect-ratio: 21 / 9;
  background: linear-gradient(180deg, #2A241F 0%, #15110E 100%);
  position: relative;
}
.pk-bleed-placeholder__label {
  position: absolute; inset: auto 64px 48px 64px;
  font-family: var(--font-display); font-weight: var(--w-ultralight);
  font-size: 120px; line-height: 0.9; letter-spacing: -0.025em;
  color: var(--pk-night-fg);
}

.pk-gallery {
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.pk-gallery figure { margin: 0; }
.pk-gallery img,
.pk-gallery__placeholder {
  aspect-ratio: 4 / 5;
  width: 100%; display: block; object-fit: cover;
  background: var(--pk-paper-2);
}
.pk-gallery figcaption { margin-top: 10px; }

.pk-project-next {
  margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--pk-ink);
}
.pk-project-next__head {
  display: flex; justify-content: space-between; align-items: baseline;
}
.pk-project-next__title {
  font-family: var(--font-display); font-weight: var(--w-ultralight);
  font-size: 96px; line-height: 0.95; letter-spacing: -0.025em;
  color: var(--fg-1); margin: 16px 0 0; text-decoration: none; display: block;
}
.pk-project-next__title:hover { color: var(--pk-spark); font-style: italic; }
.pk-project-next__arrow { color: var(--pk-spark); }

/* ---------- About ---------- */
.pk-about { display: grid; grid-template-columns: 360px 1fr; gap: 64px; margin-top: 56px; }
.pk-about__portrait {
  aspect-ratio: 4 / 5;
  background: linear-gradient(180deg, #C9B89A 0%, #8C7656 100%);
  position: relative; overflow: hidden;
}
.pk-about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.pk-about__portrait-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: var(--w-ultralight);
  font-size: 200px; color: #15110E22; letter-spacing: -0.02em;
}
.pk-about__prose {
  display: flex; flex-direction: column; gap: 32px; max-width: 60ch;
}
.pk-about__prose p { font-family: var(--font-serif); font-size: 17px; line-height: 1.6; color: var(--fg-2); margin: 0; }
.pk-about__lede {
  font-family: var(--font-serif) !important; font-weight: var(--w-thin) !important;
  font-style: italic !important;
  font-size: 28px !important; line-height: 1.35 !important;
  color: var(--fg-1) !important; max-width: none !important;
}
.pk-about__credits { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 16px; }
.pk-about__credits ul {
  list-style: none; padding: 0; margin: 10px 0 0;
  font-family: var(--font-serif); font-size: 15px; line-height: 1.6; color: var(--fg-2);
}

/* ---------- Contact ---------- */
.pk-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; margin-top: 56px; }
.pk-contact__info { display: flex; flex-direction: column; gap: 48px; }
.pk-contact__info-block p { margin: 6px 0 0; font-family: var(--font-serif); font-size: 18px; line-height: 1.4; }
.pk-contact__info-block a { color: var(--fg-1); }

.pk-form { display: flex; flex-direction: column; gap: 28px; }
.pk-field { display: flex; flex-direction: column; gap: 8px; }
.pk-field__input,
.pk-field__textarea {
  font-family: var(--font-serif); font-size: 18px;
  color: var(--fg-1); background: transparent;
  border: 0; border-bottom: 1px solid var(--pk-ink);
  padding: 8px 0; outline: none; resize: vertical;
  font-style: italic;
  width: 100%;
}
.pk-field__input:focus,
.pk-field__textarea:focus { border-bottom-color: var(--pk-spark); }
.pk-field__input:not(:placeholder-shown),
.pk-field__textarea:not(:placeholder-shown) { font-style: normal; }

.pk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pk-chip {
  all: unset; cursor: pointer;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--pk-ink);
  color: var(--pk-ink); background: transparent;
}
.pk-chip[aria-checked="true"] {
  background: var(--pk-ink); color: var(--pk-paper);
}

.pk-form__submit { display: flex; gap: 16px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.pk-form__hint {
  font-family: var(--font-serif); font-style: italic;
  font-size: 14px; color: var(--fg-3);
}
.pk-form__sent {
  display: flex; flex-direction: column; gap: 16px; align-self: start;
}
.pk-form__sent .pk-sparkle { color: var(--pk-spark); width: 48px; height: 48px; }
.pk-form__error {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--pk-spark);
  padding: 10px 0; border-top: 1px solid var(--pk-spark);
}

/* ---------- Legal pages ---------- */
.pk-legal { max-width: 68ch; margin-top: 56px; font-family: var(--font-serif); font-size: 17px; line-height: 1.65; color: var(--fg-2); }
.pk-legal h3 {
  font-family: var(--font-display); font-weight: var(--w-thin);
  font-size: 36px; line-height: 1.05; letter-spacing: -0.015em;
  color: var(--fg-1); margin: 48px 0 16px;
}
.pk-legal p { margin: 0 0 16px; }
.pk-legal__lede {
  font-style: italic; font-size: 21px; line-height: 1.45;
  color: var(--fg-1); margin: 0 0 32px; max-width: 44ch;
}

/* ---------- Footer ---------- */
.pk-site-footer {
  background: var(--bg-banded);
  border-top: 1px solid var(--pk-ink);
  padding: 64px var(--page-x) 32px;
  margin-top: 96px;
}
.pk-site-footer__grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 64px;
}
.pk-site-footer__farewell {
  font-family: var(--font-display); font-weight: var(--w-ultralight);
  font-size: 44px; line-height: 0.95; letter-spacing: -0.025em;
  color: var(--fg-1); margin: 24px 0 0; max-width: 12ch;
}
.pk-site-footer__col p {
  margin: 10px 0 0;
  font-family: var(--font-serif); font-size: 15px; line-height: 1.55; color: var(--fg-2);
}
.pk-site-footer__col a { color: inherit; text-decoration: none; }
.pk-site-footer__col a:hover { color: var(--pk-spark); text-decoration: underline; }
.pk-site-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 16px; border-top: 1px solid var(--border);
}

/* ---------- Common ---------- */
.pk-row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.pk-col-gap-16 { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Cover placeholder (used when project has no featured image) ---------- */
.pk-cover {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  background: var(--pk-paper-2);
}
.pk-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.pk-cover__inner {
  position: relative; padding: 20px;
  font-family: var(--font-display); font-weight: var(--w-ultralight);
  letter-spacing: -0.02em; color: var(--pk-paper);
}

/* ---------- Skip link & WP utility classes ---------- */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); -webkit-clip-path: inset(50%); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
  word-wrap: normal !important;
}
.skip-link:focus {
  background-color: var(--pk-ink); color: var(--pk-paper);
  clip: auto !important; -webkit-clip-path: none; clip-path: none;
  display: block; font-size: 11px; font-family: var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  height: auto; left: 6px; line-height: normal; padding: 12px 18px;
  text-decoration: none; top: 7px; width: auto; z-index: 100000;
}
.alignwide  { max-width: 1200px; margin-left: auto; margin-right: auto; }
.alignfull  { max-width: 100%; margin-left: 0; margin-right: 0; }

/* ---------- WP admin bar offset ---------- */
.admin-bar .pk-site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .pk-site-header { top: 46px; } }
