/*
Theme Name: Resul Korkmaz
Theme URI: https://resulkorkmaz.com
Author: Resul Korkmaz
Description: Yazılar, projeler, kariyer ve podcast içerikleri için hazırlanmış erişilebilir kişisel WordPress teması.
Version: 1.0.11
Requires at least: 6.5
Tested up to: 6.6
Requires PHP: 8.1
Text Domain: resul-korkmaz
*/

/* Hallmark · component: newsletter · genre: editorial · theme: existing warm editorial
 * states: default · hover · focus · active · disabled · loading · error · success
 * pre-emit critique: P5 H5 E4 S5 R5 V4 · contrast: pass (40–41)
 */

:root {
  color-scheme: light;
  --paper: #f7f3ed;
  --paper-2: #fff;
  --paper-3: #ede6dc;
  --ink: #16120f;
  --body-ink: #3b342d;
  --muted: #6e655c;
  --line: rgba(22, 18, 15, .13);
  --line-2: rgba(22, 18, 15, .3);
  --accent: #a84b2b;
  --accent-soft: color-mix(in srgb, var(--accent) 11%, transparent);
  --violet: #6f55a5;
  --violet-soft: color-mix(in srgb, var(--violet) 11%, transparent);
  --shadow: rgba(22, 18, 15, .09);
  --shadow-lift: 0 22px 52px rgba(22, 18, 15, .11);
  --serif: "Roboto Slab", Georgia, serif;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #100e0c;
  --paper-2: #191614;
  --paper-3: #221e1a;
  --ink: #f3eee6;
  --body-ink: #dcd5cb;
  --muted: #a79e93;
  --line: rgba(243, 238, 230, .13);
  --line-2: rgba(243, 238, 230, .3);
  --accent-soft: color-mix(in srgb, var(--accent) 15%, transparent);
  --violet-soft: color-mix(in srgb, var(--violet) 15%, transparent);
  --shadow: rgba(0, 0, 0, .55);
  --shadow-lift: 0 22px 52px rgba(0, 0, 0, .36);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

body.menu-open { overflow: hidden; }

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

a:hover { color: var(--accent); }

button,
input,
textarea,
select { font: inherit; }

button { color: inherit; }

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

::selection {
  background: var(--accent);
  color: var(--paper);
}

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

.screen-reader-text:focus {
  position: fixed;
  z-index: 100000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 8px;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main { flex: 1; }

.site-main.page-enter { animation: page-enter .28s ease both; }

@supports (view-transition-name: none) {
  #main-content { view-transition-name: rk-main; }
  ::view-transition-old(rk-main) { animation: page-leave .18s ease both; }
  ::view-transition-new(rk-main) { animation: page-enter .3s ease both; }
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow { max-width: 820px; }
.wide { max-width: 1080px; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow.accent { color: var(--accent); }
.eyebrow.violet { color: var(--violet); }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  margin-bottom: clamp(26px, 3vw, 42px);
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.page-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.025em;
}

.page-title .accent { color: var(--accent); }

.section-heading h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.05;
}

.section-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16.5px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.text-link:hover { gap: 14px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 22px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--paper-3);
  color: var(--ink);
}

.button.primary {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.button.primary:hover { box-shadow: 0 12px 26px var(--shadow); }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: blur(18px) saturate(1.4);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  min-height: 74px;
}

.site-brand {
  flex: none;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
}

.site-brand .custom-logo { max-height: 44px; width: auto; }
.site-brand .accent { color: var(--accent); }

.primary-nav { margin-left: auto; }

.primary-menu,
.footer-menu {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  position: relative;
  display: block;
  padding: 9px 2px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.primary-menu .current-menu-item > a::after,
.primary-menu .current_page_item > a::after,
.primary-menu .current-menu-ancestor > a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  background: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.theme-toggle,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle {
  gap: 7px;
  padding: 7px 12px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.theme-toggle-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset -3px -1px 0 0 var(--paper);
}

.menu-toggle {
  display: none;
  width: 42px;
  padding: 0;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s ease;
}

.menu-toggle-lines { position: relative; }
.menu-toggle-lines::before,
.menu-toggle-lines::after { content: ""; position: absolute; left: 0; }
.menu-toggle-lines::before { top: -5px; }
.menu-toggle-lines::after { top: 5px; }

.hero {
  position: relative;
  padding: clamp(48px, 6vw, 82px) 0 clamp(38px, 5vw, 64px);
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
}

.hero-copy {
  position: relative;
  flex: 1 1 420px;
  max-width: 700px;
  animation: rise-in .55s cubic-bezier(.2, .8, .2, 1) both;
}

.profile-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.profile-image {
  flex: none;
  width: 46px;
  height: 46px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper-3);
  object-fit: cover;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.profile-meta::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blip 2.4s ease-in-out infinite;
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  max-width: 13ch;
  font-size: clamp(38px, 4.8vw, 62px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.hero h1 .accent {
  position: relative;
  z-index: 0;
  color: var(--accent);
}

.hero h1 .accent::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -.06em;
  bottom: .08em;
  left: -.06em;
  height: .22em;
  background: var(--accent-soft);
  transform: rotate(-1.5deg);
}

.hero-intro {
  max-width: 57ch;
  margin: 22px 0 0;
  color: var(--body-ink);
  font-family: var(--serif);
  font-size: clamp(17px, 1.5vw, 19px);
  font-weight: 300;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-mark {
  flex: 0 1 330px;
  min-width: 240px;
  display: grid;
  place-items: center;
  animation: rise-in .65s .1s cubic-bezier(.2, .8, .2, 1) both;
}

.hero-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(210px, 23vw, 286px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, color-mix(in srgb, var(--paper-2) 70%, transparent) 0 4%, transparent 5%),
    var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
  animation: float 5s ease-in-out infinite;
}

.hero-orbit::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px dashed var(--line-2);
  border-radius: 50%;
}

.hero-emoji {
  position: relative;
  z-index: 1;
  font-size: clamp(92px, 10vw, 124px);
  line-height: 1;
  filter: drop-shadow(0 10px 12px color-mix(in srgb, var(--accent) 18%, transparent));
}

.hero-greeting {
  position: absolute;
  top: 5px;
  right: -10px;
  padding: 7px 13px;
  transform: rotate(7deg);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  box-shadow: 0 10px 24px var(--shadow);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.topics {
  overflow: hidden;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.topics-track {
  display: flex;
  width: max-content;
  animation: marquee 45s linear infinite;
}

.topics-list {
  flex: none;
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  padding-right: 34px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
  white-space: nowrap;
}

.topics-list b { color: var(--accent); font-weight: 400; }

.featured-section { padding-top: clamp(56px, 8vw, 96px); }
.latest-section,
.projects-section { padding-block: clamp(56px, 8vw, 96px); }
.projects-section { padding-top: 0; }

.featured-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 26px;
}

.featured-label span:first-child {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.featured-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.featured-card,
.project-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--paper-2);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--paper-2) 75%, transparent) inset;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.featured-card.no-media,
.project-card.no-media { grid-template-columns: 1fr; }

.featured-card:hover,
.post-card:hover,
.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
}

.featured-media,
.project-media {
  min-height: 280px;
  overflow: hidden;
  background: var(--paper-3);
}

.featured-media img,
.project-media img,
.post-card-media img,
.archive-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}

.featured-card:hover img,
.project-card:hover img,
.post-card:hover img,
.archive-row:hover img { transform: scale(1.045); }

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: clamp(28px, 3.5vw, 52px);
}

.category-pill {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.featured-body h2,
.post-card h3,
.project-body h2,
.project-body h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.02em;
}

.featured-body h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; }
.featured-body p,
.post-card p,
.project-body p {
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.62;
}

.featured-body p { font-size: 17px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  align-items: stretch;
}

.project-invite-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  min-height: 100%;
  padding: clamp(28px, 3vw, 44px);
  overflow: hidden;
  border: 1px dashed var(--line-2);
  border-radius: 26px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 62%);
}

.project-invite-card::after {
  content: "→";
  position: absolute;
  z-index: -1;
  right: clamp(20px, 4vw, 46px);
  bottom: clamp(10px, 2vw, 28px);
  color: color-mix(in srgb, var(--accent) 19%, transparent);
  font-family: var(--serif);
  font-size: clamp(100px, 15vw, 190px);
  font-weight: 300;
  line-height: .7;
}

.project-invite-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.2;
}

.project-invite-card p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.62;
}

.project-invite-card .button {
  align-self: flex-start;
  margin-top: 4px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper-2);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.post-card-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--paper-3);
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 13px;
  padding: 24px 24px 26px;
}

.post-card h3 { font-size: 23px; line-height: 1.2; }
.post-card p { font-size: 15.5px; }
.post-card .text-link { margin-top: auto; padding-top: 14px; color: var(--ink); }

.podcast-section { padding: 0 0 clamp(56px, 8vw, 96px); }

.podcast-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper-2);
}

.podcast-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(30px, 3.5vw, 52px);
  background: var(--violet-soft);
}

.podcast-intro h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  line-height: 1.05;
}

.podcast-intro h2 span { color: var(--violet); }
.podcast-intro p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 16.5px; line-height: 1.62; }
.podcast-intro .button { align-self: flex-start; border-color: var(--violet); color: var(--violet); }

.episode-list { display: flex; flex-direction: column; justify-content: center; padding: clamp(18px, 2vw, 26px); }

.episode-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.episode-item:last-child { border-bottom: 0; }

.episode-play {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--violet);
  font-size: 12px;
}

.episode-title { display: block; font-family: var(--serif); font-size: 17.5px; line-height: 1.3; }
.episode-meta { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }

.project-card { border-radius: 20px; }
.project-media { min-height: 240px; }
.project-body { display: flex; flex-direction: column; justify-content: center; gap: 13px; padding: clamp(24px, 2.5vw, 36px); }
.project-body h3 { font-size: 26px; line-height: 1.15; }
.project-body h2 { font-size: 26px; line-height: 1.15; }
.project-body p { font-size: 16px; }

.newsletter-section { padding-bottom: clamp(56px, 8vw, 96px); }

.newsletter-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(26px, 4vw, 56px);
  padding: clamp(32px, 4.5vw, 64px);
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background:
    radial-gradient(circle at 87% 12%, color-mix(in srgb, var(--accent) 31%, transparent), transparent 27%),
    var(--ink);
  color: var(--paper);
}

.newsletter-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.15;
  letter-spacing: -.02em;
  min-width: 0;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.newsletter-panel h2 span {
  color: var(--accent);
  white-space: nowrap;
}

.newsletter-panel h2 span::after {
  content: "";
  display: block;
  width: 70%;
  height: 1px;
  margin-top: .12em;
  background: currentColor;
  opacity: .6;
}

.newsletter-copy .eyebrow {
  margin: 0 0 14px;
  opacity: .55;
}

.newsletter-panel .newsletter-description {
  max-width: 40ch;
  margin: 14px 0 0;
  opacity: .7;
  font-family: var(--serif);
  font-size: 16.5px;
  font-weight: 300;
  line-height: 1.62;
}

.newsletter-signup { min-width: 0; }

.newsletter-form-wrap form.mailpoet_form,
.newsletter-form-wrap .mailpoet_form > form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  margin: 0 !important;
}

.newsletter-panel .mailpoet_paragraph {
  min-width: 0;
  margin: 0 !important;
}

.newsletter-panel .mailpoet_paragraph:has(input[type="email"]) { grid-column: 1; }
.newsletter-panel .mailpoet_paragraph:has(input[type="submit"]) { grid-column: 2; }

.newsletter-panel input[type="email"],
.newsletter-panel input[type="text"] {
  width: 100% !important;
  min-height: 52px;
  padding: 14px 20px !important;
  border: 1px solid rgba(255, 255, 255, .28) !important;
  border-radius: 999px !important;
  outline: 2px solid transparent;
  outline-offset: 2px;
  background: transparent !important;
  color: var(--paper) !important;
  font-family: var(--sans);
  font-size: 14px !important;
  transition: background-color .2s ease, border-color .2s ease;
}

.newsletter-panel input::placeholder {
  color: var(--paper);
  opacity: .54;
}

.newsletter-panel input[type="submit"] {
  min-width: 150px;
  min-height: 52px;
  padding: 14px 26px !important;
  border: 0 !important;
  border-radius: 999px !important;
  outline: 2px solid transparent;
  outline-offset: 2px;
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .newsletter-panel input[type="email"]:hover,
  .newsletter-panel input[type="text"]:hover {
    background: color-mix(in srgb, var(--paper) 6%, transparent) !important;
  }

  .newsletter-panel input[type="submit"]:hover { transform: translateY(-2px); }
}

.newsletter-panel input[type="email"]:focus-visible,
.newsletter-panel input[type="text"]:focus-visible,
.newsletter-panel input[type="submit"]:focus-visible {
  outline-color: var(--paper);
}

.newsletter-panel input[type="submit"]:active { transform: translateY(1px); }

.newsletter-panel input:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.newsletter-panel input[aria-invalid="true"] {
  border-color: var(--accent) !important;
}

.newsletter-panel .mailpoet_validate_error,
.newsletter-panel .mailpoet_message {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.45;
}

.newsletter-panel .newsletter-note {
  margin: 12px 0 0;
  opacity: .5;
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
}

.archive-header,
.page-header { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); }

.page-title {
  font-size: clamp(46px, 7vw, 88px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.03em;
}

.page-description {
  max-width: 52ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.65;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 34px;
}

.category-nav a {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.category-nav a.active,
.category-nav a:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.archive-list { padding-bottom: clamp(64px, 9vw, 110px); }
.archive-list-inner { border-top: 1px solid var(--line); }

.archive-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  padding: clamp(22px, 3vw, 34px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s ease;
}

.archive-row.no-thumb { grid-template-columns: 1fr; }

.archive-row:hover { padding-left: 14px; color: var(--ink); }
.archive-copy { display: flex; align-items: flex-start; gap: 22px; }
.archive-number { padding-top: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.archive-meta { margin-bottom: 12px; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.archive-meta span { color: var(--accent); }
.archive-row h2 { margin: 0; font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); font-weight: 400; line-height: 1.1; }
.archive-row p { max-width: 52ch; margin: 12px 0 0; color: var(--muted); font-family: var(--serif); font-size: 16.5px; line-height: 1.6; }
.archive-thumb { overflow: hidden; width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; background: var(--paper-3); }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 42px; min-height: 42px; padding: 8px; border: 1px solid var(--line); border-radius: 50%; }
.pagination .current,
.pagination a:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.single-header { padding: clamp(40px, 6vw, 72px) 0 0; }
.back-link { margin-bottom: 30px; }
.single-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.single-title { margin: 0; font-family: var(--serif); font-size: clamp(38px, 5.6vw, 68px); font-weight: 400; line-height: 1.02; letter-spacing: -.03em; }
.single-featured { padding-top: clamp(30px, 4vw, 48px); }
.single-featured img { width: 100%; max-height: 560px; aspect-ratio: 21 / 9; border-radius: 22px; object-fit: cover; }

.article-wrap { padding: clamp(36px, 5vw, 60px) 0 clamp(56px, 8vw, 96px); }
.entry-content { color: var(--body-ink); font-family: var(--serif); font-size: 19px; line-height: 1.75; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content p { margin: 0 0 26px; }
.entry-content h2,
.entry-content h3 { color: var(--ink); font-family: var(--serif); line-height: 1.2; letter-spacing: -.02em; }
.entry-content h2 { margin: 44px 0 18px; font-size: 30px; }
.entry-content h3 { margin: 34px 0 14px; font-size: 24px; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: .15em; }
.entry-content blockquote { margin: 38px 0; padding: 6px 0 6px 26px; border-left: 2px solid var(--accent); color: var(--ink); font-size: 25px; line-height: 1.45; }
.entry-content blockquote p { margin: 0; }
.entry-content pre { overflow-x: auto; padding: 20px; border-radius: 12px; background: var(--paper-3); font-size: 15px; }
.entry-content figure { max-width: 100%; margin: 32px 0; }
.entry-content .alignwide { width: min(100vw - 40px, 1080px); max-width: none; margin-left: 50%; transform: translateX(-50%); }

.post-author {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.post-author img { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.post-author-label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.post-author-name { margin-top: 2px; color: var(--ink); font-size: 20px; }
.post-author .button { margin-left: auto; }

.post-navigation-section,
.comments-area { padding-bottom: clamp(64px, 9vw, 110px); }

.next-post-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-2);
}

.next-post-card small { display: block; margin-bottom: 10px; color: var(--accent); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.next-post-card strong { display: block; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); font-weight: 400; line-height: 1.15; }

.comments-title { margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.8vw, 32px); font-weight: 500; }
.comment-notes { color: var(--muted); font-family: var(--serif); }
.comment-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper-2);
}

.comment-form-comment,
.form-submit,
.comment-notes,
.comment-form-cookies-consent,
.logged-in-as { grid-column: 1 / -1; }

.comment-form label,
.contact-form-wrap label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.comment-form input:not([type="checkbox"]),
.comment-form textarea,
.contact-form-wrap input:not([type="submit"]),
.contact-form-wrap textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.comment-form input:focus,
.comment-form textarea:focus,
.contact-form-wrap input:focus,
.contact-form-wrap textarea:focus { border-color: var(--accent); }

.comment-form .submit,
.contact-form-wrap input[type="submit"] {
  padding: 13px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
}

.comment-list { margin: 22px 0 0; padding: 0; list-style: none; }
.comment-list .children { margin: 0 0 0 54px; padding: 0; list-style: none; }
.comment-body { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.comment-author-avatar img { width: 38px; height: 38px; border-radius: 50%; }
.comment-author-name { font-family: var(--serif); font-size: 16.5px; font-weight: 500; }
.comment-time { margin-left: 10px; color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.comment-content p { margin: 8px 0 0; color: var(--body-ink); font-family: var(--serif); font-size: 16.5px; line-height: 1.65; }
.comment-reply-link { display: inline-block; margin-top: 10px; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.about-cover {
  position: relative;
  overflow: hidden;
  padding: clamp(44px, 6vw, 84px) 0 clamp(34px, 4.5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  text-align: center;
}

.about-cover::before { content: ""; position: absolute; top: -90px; right: -90px; width: 340px; height: 340px; border-radius: 50%; background: var(--accent-soft); }
.about-cover-inner { position: relative; display: grid; justify-items: center; gap: 20px; }
.about-cover .profile-image { width: clamp(104px, 11vw, 130px); height: auto; aspect-ratio: 1; }
.about-cover h1 { margin: 0; max-width: 20ch; font-family: var(--serif); font-size: clamp(32px, 4.6vw, 56px); font-weight: 500; line-height: 1.06; }
.about-copy { max-width: 60ch; color: var(--body-ink); font-family: var(--serif); font-size: 17.5px; line-height: 1.75; }
.about-copy > *:first-child { margin-top: 0; }
.about-copy > *:last-child { margin-bottom: 0; }

.about-details { padding: clamp(40px, 5.5vw, 72px) 0 clamp(56px, 8vw, 96px); }
.about-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.6fr); gap: clamp(20px, 2.4vw, 30px); align-items: start; }
.info-card,
.career-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-2); }
.about-sidebar { display: grid; gap: 16px; }
.info-card h2 { margin: 0 0 14px; color: var(--muted); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; }
.fact-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.fact-row span:first-child { color: var(--muted); font-size: 13px; }
.fact-row span:last-child { font-family: var(--serif); font-size: 15.5px; text-align: right; }
.interest-list { display: flex; flex-wrap: wrap; gap: 7px; }
.interest-list span { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
.career-card { border-radius: 20px; }
.career-card h2 { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(24px, 2.8vw, 32px); font-weight: 500; }
.career-item { position: relative; padding: 0 0 28px 26px; }
.career-item:last-child { padding-bottom: 0; }
.career-item::before { content: ""; position: absolute; top: 8px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.career-item:not(:last-child)::after { content: ""; position: absolute; top: 22px; bottom: 2px; left: 3.5px; width: 1px; background: var(--line); }
.career-item h3 { margin: 0; font-family: var(--serif); font-size: 18px; }
.career-meta { margin-top: 4px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.career-item .career-description { margin-top: 10px; color: var(--body-ink); font-family: var(--serif); font-size: 15.5px; line-height: 1.6; }

.contact-section { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 110px); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-links { max-width: 440px; margin-top: 38px; }
.contact-link { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-link:last-child { border-bottom: 1px solid var(--line); }
.contact-link strong { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.contact-link span { color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.contact-form-wrap { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: var(--paper-2); }
.contact-form-wrap p { margin: 0 0 18px; }
.contact-form-wrap p:last-child { margin-bottom: 0; }
.contact-form-unavailable { color: var(--muted); font-family: var(--serif); line-height: 1.6; }

.podcast-page-list { padding-bottom: clamp(64px, 9vw, 110px); }
.podcast-episode-card { padding: clamp(22px, 3vw, 34px); margin-bottom: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 24px; background: var(--paper-2); }
.podcast-episode-head { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.podcast-episode-head h2 { flex: 1; min-width: 220px; margin: 0; font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); font-weight: 400; }
.podcast-episode-card audio { width: 100%; margin-top: 20px; accent-color: var(--violet); }
.platform-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.empty-state { padding: 30px; border: 1px dashed var(--line-2); border-radius: 20px; color: var(--muted); font-family: var(--serif); text-align: center; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(26px, 4vw, 56px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(30px, 4vw, 46px); }
.footer-brand { font-family: var(--serif); font-size: 24px; }
.footer-brand .accent { color: var(--accent); }
.footer-description { max-width: 32ch; margin: 14px 0 0; color: var(--muted); font-family: var(--serif); font-size: 16px; line-height: 1.6; }
.footer-title { display: block; margin-bottom: 12px; color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.footer-menu { align-items: flex-start; flex-direction: column; gap: 12px; }
.footer-social { display: flex; flex-direction: column; gap: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 20px 34px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes blip { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-8px) rotate(1deg); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes page-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes page-leave { from { opacity: 1; } to { opacity: 0; } }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-actions .header-cta { display: none; }
  .primary-nav {
    position: fixed;
    top: 74px;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    padding: 28px var(--gutter);
    background: var(--paper);
  }
  .primary-nav.is-open { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 6px; }
  .primary-menu a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .primary-menu .current-menu-item > a::after,
  .primary-menu .current_page_item > a::after { display: none; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter-panel { grid-template-columns: minmax(0, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .theme-toggle-label { display: none; }
  .theme-toggle { width: 42px; padding: 0; }
  .hero-mark { flex: 1 1 100%; }
  .featured-card,
  .project-card,
  .podcast-panel,
  .contact-grid { grid-template-columns: 1fr; }
  .featured-media { min-height: 220px; aspect-ratio: 16 / 10; }
  .projects-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .newsletter-form-wrap form.mailpoet_form,
  .newsletter-form-wrap .mailpoet_form > form { grid-template-columns: minmax(0, 1fr); }
  .newsletter-panel .mailpoet_paragraph:has(input[type="email"]),
  .newsletter-panel .mailpoet_paragraph:has(input[type="submit"]) { grid-column: 1; }
  .newsletter-panel input[type="submit"] { width: 100%; }
  .archive-row { grid-template-columns: 1fr; }
  .archive-thumb { max-width: none; }
  .archive-row:hover { padding-left: 0; }
  .comment-form { grid-template-columns: 1fr; }
  .comment-list .children { margin-left: 22px; }
  .post-author { align-items: flex-start; flex-wrap: wrap; }
  .post-author .button { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

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