/*
Theme Name: Katarzyna Freiwald
Theme URI: https://atelionstudio.com/
Author: Atelion Studio
Author URI: https://atelionstudio.com/
Description: Custom WordPress theme skeleton for a culture manager portfolio. Gutenberg + ACF Pro.
Version: 0.2.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: katarzyna-freiwald
*/

:root {
  --kf-content: 1440px;
  --kf-gutter: clamp(20px, 3vw, 48px);
  --kf-bg: #f4f4f1;
  --kf-surface: #efefec;
  --kf-card: #f8f8f6;
  --kf-line: #1a1a1a;
  --kf-line-soft: rgba(15, 15, 15, .16);
  --kf-text: #121212;
  --kf-muted: #66645f;
  --kf-accent: #0f0f0f;
  --kf-radius: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--kf-text);
  background: var(--kf-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1.05em; line-height: 1.65; color: var(--kf-muted); }
h1,h2,h3,h4 { margin: 0; font-weight: 600; letter-spacing: -.045em; line-height: .98; }
ul { margin: 0; padding: 0; }
blockquote { margin: 0; }

.kf-container { width: min(100% - (2 * var(--kf-gutter)), var(--kf-content)); margin-inline: auto; }
.kf-section { padding: clamp(52px, 8vw, 116px) 0; border-top: 1px solid var(--kf-line-soft); }
.kf-grid { display: grid; gap: clamp(22px, 3vw, 40px); }
.kf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kf-grid--1-2 { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }

.kf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--kf-text);
}
.kf-eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; display: inline-block; }
.kf-title { font-size: clamp(2rem, 4.3vw, 4rem); max-width: 14ch; }
.kf-title--sm { font-size: clamp(1.65rem, 3vw, 2.5rem); }
.kf-copy-lg { font-size: clamp(1rem, 1.25vw, 1.14rem); max-width: 56ch; }
.kf-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.kf-link,
.kf-button-link,
.kf-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--kf-text);
}
.kf-link::after,
.kf-button-link::after,
.kf-arrow-link::after { content: "→"; font-size: 1.05em; }
.kf-button-link {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--kf-line);
  justify-content: center;
  transition: background-color .22s ease, color .22s ease;
}
.kf-button-link:hover,
.kf-hero__scroll:hover { background: var(--kf-text); color: #fff; }
.kf-muted-box {
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(15,15,15,.08);
}

/* Header + menu */
.kf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px var(--kf-gutter);
  position: relative;
  z-index: 30;
}
.home .kf-header { position: absolute; inset: 0 0 auto 0; }
.kf-brand {
  text-decoration: none;
  font-size: clamp(1.3rem, 1.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -.065em;
  line-height: 1;
  text-transform: lowercase;
}
.kf-menu-toggle {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: #0b0b0b;
  color: #fff;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-content: center;
  transition: transform .25s ease, background-color .25s ease;
}
.kf-menu-toggle:hover { transform: scale(1.04); }
.kf-menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 20px;
  background: currentColor;
  margin: 3px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.kf-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.kf-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.kf-menu-panel {
  position: fixed;
  inset: 0;
  background: var(--kf-bg);
  z-index: 25;
  padding: 120px var(--kf-gutter) 40px;
  display: none;
}
.kf-menu-panel.is-open { display: block; }
.kf-menu-panel nav,
.kf-menu-panel > div,
.kf-menu-panel > ul { max-width: var(--kf-content); margin-inline: auto; }
.kf-menu-panel ul { list-style: none; padding: 0; margin: 0; }
.kf-menu-panel a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--kf-line-soft);
  text-decoration: none;
  font-size: clamp(28px, 5vw, 64px);
  letter-spacing: -.05em;
}

/* Hero */
.kf-hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  background: #fff;
  overflow: hidden;
}
.kf-hero__media {
  min-height: 100svh;
  background: #ececea;
  overflow: hidden;
  border-right: 1px solid var(--kf-line-soft);
}
.kf-hero__media img { width: 100%; height: 100%; min-height: 100svh; object-fit: cover; }
.kf-hero__placeholder { width: 100%; height: 100%; min-height: 100svh; background: linear-gradient(145deg,#f5f5f2 0%,#ebebe7 100%); }
.kf-hero__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(120px, 15vh, 180px) clamp(34px, 7vw, 120px) clamp(60px, 8vh, 100px);
}
.kf-hero h1 {
  max-width: 10ch;
  font-size: clamp(3.7rem, 7.2vw, 7.7rem);
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: .94;
}
.kf-hero__lead { max-width: 560px; margin: 22px 0 0; font-size: clamp(1rem, 1.2vw, 1.15rem); }
.kf-hero__scroll {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-width: 210px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--kf-line);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: background-color .22s ease, color .22s ease;
}

/* Projects */
.kf-projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.kf-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: rgba(255,255,255,.3);
  border: 1px solid rgba(15,15,15,.08);
}
.kf-card__image { aspect-ratio: 4/3; overflow: hidden; background: #efefec; }
.kf-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.kf-card:hover .kf-card__image img { transform: scale(1.03); }
.kf-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.kf-card__meta { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--kf-text); }
.kf-card h3,
.kf-card h2 { font-size: clamp(1.35rem, 1.9vw, 2rem); }
.kf-card__excerpt { margin-bottom: auto; }
.kf-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--kf-line-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--kf-text);
}
.kf-card__footer span:last-child { font-size: 16px; }

/* About */
.kf-about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr) minmax(0, .95fr); gap: 32px; align-items: stretch; }
.kf-about-photo { background: #ececea; min-height: 100%; }
.kf-about-photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.kf-panel {
  padding: clamp(22px, 3vw, 36px);
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(15,15,15,.08);
}
.kf-stats-list { list-style: none; display: grid; gap: 14px; }
.kf-stats-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--kf-line-soft);
  font-size: 15px;
  color: var(--kf-text);
}
.kf-stats-list strong { display: block; font-size: clamp(1.6rem, 2vw, 2rem); line-height: 1; letter-spacing: -.05em; margin-bottom: 6px; }
.kf-areas { margin-top: 22px; color: var(--kf-text); font-weight: 500; }

/* Column section */
.kf-column-card {
  padding: 28px;
  min-height: 100%;
  background: rgba(255,255,255,.38);
  border: 1px solid rgba(15,15,15,.08);
}
.kf-column-card__foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--kf-line-soft); }
.kf-timeline, .kf-list { list-style: none; padding: 0; margin: 0; }
.kf-timeline { display: grid; gap: 14px; }
.kf-timeline li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--kf-line-soft);
}
.kf-timeline li:first-child { padding-top: 0; border-top: 0; }
.kf-timeline__date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--kf-text);
}
.kf-timeline__content strong,
.kf-timeline__content h3 { display: block; font-size: 1.08rem; margin-bottom: 6px; }
.kf-recommendation { padding-top: 14px; border-top: 1px solid var(--kf-line-soft); }
.kf-recommendation:first-child { padding-top: 0; border-top: 0; }
.kf-recommendation p { color: var(--kf-text); font-size: 1.02rem; line-height: 1.7; }
.kf-recommendation footer { font-size: 13px; color: var(--kf-muted); }

/* Skills + orgs */
.kf-skill-list { list-style: none; display: grid; gap: 12px; }
.kf-skill-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--kf-line-soft);
  color: var(--kf-text);
}
.kf-skill-list li::before { content: "•"; line-height: 1; }
.kf-logo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.kf-logo-strip__item {
  min-height: 132px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255,255,255,.3);
  border: 1px solid rgba(15,15,15,.08);
}
.kf-logo-strip__item img { max-height: 54px; width: auto; object-fit: contain; }
.kf-logo-strip__item a { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* Archive + single */
.kf-page-hero { padding: 150px 0 50px; background: #fff; border-bottom: 1px solid var(--kf-line-soft); }
.kf-page-hero .kf-title { max-width: 10ch; }
.kf-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 34px; }
.kf-filter a {
  text-decoration: none;
  padding: 12px 16px;
  border: 1px solid var(--kf-line-soft);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.kf-filter a.is-active { background: var(--kf-text); color: #fff; border-color: var(--kf-text); }
.kf-pagination { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }
.kf-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--kf-line-soft);
  background: rgba(255,255,255,.28);
}
.kf-pagination .current { background: var(--kf-text); color: #fff; border-color: var(--kf-text); }
.kf-single-hero__image img { width: 100%; height: auto; max-height: 80svh; object-fit: cover; }
.kf-single-meta { display: grid; gap: 16px; align-content: start; }
.kf-single-meta strong { display: block; margin-bottom: 6px; }
.kf-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.kf-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* Footer */
.kf-footer {
  margin-top: 0;
  padding: clamp(52px, 8vw, 100px) 0 0;
  background: #e9e9e5;
  color: var(--kf-text);
  border-top: 1px solid var(--kf-line);
}
.kf-footer__grid { display: grid; grid-template-columns: 1.15fr .95fr .75fr; gap: clamp(28px, 4vw, 54px); }
.kf-footer h2 { font-size: clamp(2.5rem, 6vw, 5rem); max-width: 8ch; }
.kf-footer__contact a { text-decoration: none; }
.kf-footer__contact p,
.kf-footer__social li { color: var(--kf-text); }
.kf-footer__social li { list-style: none; padding: 0 0 10px; border-bottom: 1px solid var(--kf-line-soft); }
.kf-subfooter {
  border-top: 1px solid var(--kf-line);
  margin-top: clamp(42px, 5vw, 66px);
  padding: 18px 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: .9rem;
  color: var(--kf-text);
}
.kf-subfooter a { text-decoration: none; }

/* Generic content page */
.entry-content > * + * { margin-top: 1.1em; }

@media (max-width: 1100px) {
  .kf-about-grid { grid-template-columns: 1fr; }
  .kf-footer__grid,
  .kf-grid--3,
  .kf-grid--1-2,
  .kf-projects-grid,
  .kf-logo-strip,
  .kf-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .kf-header { padding: 20px var(--kf-gutter); }
  .kf-menu-toggle { width: 46px; height: 46px; }
  .kf-hero { min-height: 100svh; grid-template-columns: 1fr; grid-template-rows: minmax(38svh, 44svh) auto; }
  .kf-hero__media { min-height: 0; border-right: 0; border-bottom: 1px solid var(--kf-line-soft); }
  .kf-hero__media img, .kf-hero__placeholder { min-height: 0; height: 44svh; }
  .kf-hero__content { justify-content: flex-start; padding: 52px var(--kf-gutter) 64px; }
  .kf-hero h1 { font-size: clamp(3.2rem, 13vw, 5.2rem); }
  .kf-hero__scroll { min-width: 100%; }
  .kf-section-head { flex-direction: column; align-items: flex-start; }
  .kf-timeline li { grid-template-columns: 1fr; gap: 8px; }
  .kf-page-hero { padding-top: 120px; }
  .kf-subfooter { flex-direction: column; }
}
