/*
Theme Name: Axel Pas Fresh
Theme URI: https://axelpas.nl/
Author: Axel Pas
Author URI: https://axelpas.nl/
Description: Een fris, snel en toegankelijk portfolio- en blogthema voor axelpas.nl. Ontworpen voor radio, ICT, fotografie en persoonlijke verhalen.
Version: 1.2.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: axelpas-fresh
Tags: blog, portfolio, photography, custom-logo, custom-menu, featured-images, block-styles, wide-blocks, accessibility-ready, translation-ready
*/

:root {
  --ap-ink: #0d1728;
  --ap-ink-soft: #30405c;
  --ap-paper: #eef3f8;
  --ap-white: #ffffff;
  --ap-surface: #ffffff;
  --ap-on-light: #0d1728;
  --ap-footer-bg: #0d1728;
  --ap-nav-active: var(--ap-blue-dark);
  --ap-blue: #2864ff;
  --ap-blue-dark: #1648cb;
  --ap-coral: #ff6b42;
  --ap-mint: #bff7dd;
  --ap-portrait: #dce8f6;
  --ap-line: #d9dfe9;
  --ap-muted: #68758a;
  --ap-shadow: 0 20px 60px rgba(13, 23, 40, 0.1);
  --ap-radius-sm: 14px;
  --ap-radius: 24px;
  --ap-radius-lg: 38px;
  --ap-container: 1180px;
  --ap-narrow: 760px;
  --ap-transition: 180ms ease;
}

body.ap-theme-light { color-scheme: light; }

body.ap-theme-dark {
	color-scheme: dark;
  --ap-paper: #0b1220;
  --ap-surface: #131f32;
  --ap-ink: #f4f7fb;
  --ap-ink-soft: #c1cada;
  --ap-line: #2b3950;
  --ap-muted: #c1cada;
  --ap-portrait: #2a3a52;
  --ap-nav-active: #a9c1ff;
  --ap-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

@media (prefers-color-scheme: dark) {
  body.ap-theme-auto {
		color-scheme: dark;
    --ap-paper: #0b1220;
    --ap-surface: #131f32;
    --ap-ink: #f4f7fb;
    --ap-ink-soft: #c1cada;
    --ap-line: #2b3950;
    --ap-muted: #c1cada;
    --ap-portrait: #2a3a52;
    --ap-nav-active: #a9c1ff;
    --ap-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ap-paper);
  color: var(--ap-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar .site-header {
  top: 32px;
}

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

figure {
  margin: 0;
}

a {
  color: var(--ap-blue-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ap-blue);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--ap-coral);
  outline-offset: 4px;
}

::selection {
  background: var(--ap-mint);
  color: var(--ap-ink);
}

.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 {
  z-index: 100000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px 18px;
  background: var(--ap-surface);
  color: var(--ap-ink);
  border-radius: 8px;
  box-shadow: var(--ap-shadow);
}

.ap-container {
  width: min(calc(100% - 48px), var(--ap-container));
  margin-inline: auto;
}

.ap-narrow {
  width: min(calc(100% - 48px), var(--ap-narrow));
  margin-inline: auto;
}

.site-main {
  min-height: 60vh;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(13, 23, 40, 0.08);
  background: var(--ap-paper);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-branding {
  flex: 0 0 auto;
}

.custom-logo-link,
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ap-ink);
  text-decoration: none;
}

.custom-logo {
  width: auto;
  max-height: 52px;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: var(--ap-blue);
  color: var(--ap-white);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.06em;
  transform: rotate(-5deg);
}

.brand-mark::after {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ap-coral);
  content: "";
}

.brand-name {
  font-size: 17px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.primary-menu,
.primary-nav .menu,
.primary-nav .page_item,
.primary-nav ul {
  list-style: none;
}

.primary-menu,
.primary-nav > div > ul {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
}

.primary-menu a,
.primary-nav > div > ul > li > a {
  display: block;
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--ap-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--ap-transition), color var(--ap-transition);
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-nav > div > ul > .current_page_item > a {
  background: var(--ap-surface);
  color: var(--ap-nav-active);
}

.menu-toggle,
.theme-toggle {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--ap-line);
  border-radius: 14px;
  background: var(--ap-surface);
  color: var(--ap-ink);
  cursor: pointer;
}

.menu-toggle { display: none; }

.theme-toggle {
  display: grid;
  place-items: center;
  transition: border-color var(--ap-transition), background var(--ap-transition), color var(--ap-transition), transform var(--ap-transition);
}

.theme-toggle:hover {
  border-color: var(--ap-blue);
  color: var(--ap-blue);
  transform: translateY(-1px);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(40, 100, 255, 0.35);
  outline-offset: 3px;
}

.theme-icon {
  width: 22px;
  height: 22px;
}

.theme-icon-sun { display: none; }
body.ap-theme-dark .theme-icon-moon { display: none; }
body.ap-theme-dark .theme-icon-sun { display: block; }

@media (prefers-color-scheme: dark) {
  body.ap-theme-auto .theme-icon-moon { display: none; }
  body.ap-theme-auto .theme-icon-sun { display: block; }
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--ap-transition), opacity var(--ap-transition);
}

.menu-toggle-lines {
  position: relative;
}

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

.menu-toggle-lines::before { top: -6px; }
.menu-toggle-lines::after { top: 6px; }

.menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }

.ap-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 44px;
}

.ap-hero::before {
  position: absolute;
  top: 120px;
  left: -80px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(40, 100, 255, 0.2);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: clamp(48px, 7vw, 100px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--ap-blue-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 8px;
  border-radius: 99px;
  background: var(--ap-coral);
  content: "";
}

.hero-title,
.page-title,
.section-title,
.entry-title {
  margin: 0;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-title {
  max-width: 760px;
  font-size: clamp(54px, 7.2vw, 96px);
}

.hero-title span {
  display: block;
}

.hero-title .accent-line {
  color: var(--ap-blue);
}

.hero-intro {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--ap-ink-soft);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.ap-button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 2px solid var(--ap-blue);
  border-radius: 999px;
  background: var(--ap-blue);
  color: var(--ap-white);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--ap-transition), box-shadow var(--ap-transition), background var(--ap-transition);
}

.ap-button::after {
  content: "→";
  font-size: 18px;
  transition: transform var(--ap-transition);
}

.ap-button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: var(--ap-blue-dark);
  color: var(--ap-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(40, 100, 255, 0.24);
}

.ap-button:hover::after { transform: translateX(4px); }

.ap-button.is-secondary {
  border-color: var(--ap-line);
  background: transparent;
  color: var(--ap-ink);
}

.ap-button.is-secondary:hover {
  border-color: var(--ap-ink);
  background: var(--ap-surface);
  box-shadow: none;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0;
  margin: 38px 0 0;
  list-style: none;
}

.hero-chips li {
  padding: 7px 12px;
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  background: var(--ap-surface);
  color: var(--ap-muted);
  font-size: 13px;
  font-weight: 750;
}

.hero-visual {
  position: relative;
  min-height: 570px;
}

.visual-frame {
  position: absolute;
  inset: 0 0 40px 34px;
  overflow: hidden;
  border-radius: var(--ap-radius-lg);
  background: var(--ap-footer-bg);
  box-shadow: var(--ap-shadow);
  transform: rotate(2.2deg);
}

.visual-frame.has-image::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 23, 40, 0.62), transparent 48%);
  content: "";
}

.visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-frame.uses-default-portrait {
  border: 1px solid rgba(40, 100, 255, 0.12);
  background: var(--ap-portrait);
}

.visual-frame.uses-default-portrait::after {
  background: linear-gradient(to top, rgba(40, 100, 255, 0.12), transparent 50%);
}

.visual-frame.uses-default-portrait img {
  position: relative;
  z-index: 1;
  object-fit: contain;
  object-position: center bottom;
}

.portrait-signal {
  z-index: 0;
  top: 39%;
  left: 24%;
  opacity: 0.45;
  transform: translate(-50%, -50%) scale(0.62);
}

.uses-default-portrait .portrait-signal i {
  background: rgba(40, 100, 255, 0.5);
  box-shadow: none;
}

.uses-default-portrait .portrait-signal i:nth-child(5) {
  background: var(--ap-coral);
}

.visual-grid {
  position: absolute;
  inset: 0;
  opacity: 0.27;
  background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 52px 52px;
}

.visual-signal {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  height: 190px;
  align-items: center;
  gap: 10px;
  transform: translate(-50%, -50%);
}

.visual-signal i {
  display: block;
  width: 12px;
  border-radius: 999px;
  background: var(--ap-mint);
  box-shadow: 0 0 30px rgba(191, 247, 221, 0.28);
}

.visual-signal i:nth-child(1), .visual-signal i:nth-child(9) { height: 36px; }
.visual-signal i:nth-child(2), .visual-signal i:nth-child(8) { height: 72px; }
.visual-signal i:nth-child(3), .visual-signal i:nth-child(7) { height: 126px; }
.visual-signal i:nth-child(4), .visual-signal i:nth-child(6) { height: 84px; }
.visual-signal i:nth-child(5) { height: 174px; background: var(--ap-coral); }

.floating-card {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  width: min(260px, 70%);
  padding: 20px 22px;
  border: 1px solid rgba(13, 23, 40, 0.08);
  border-radius: 20px;
  background: var(--ap-surface);
  box-shadow: var(--ap-shadow);
  transform: rotate(-3deg);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card strong {
  font-size: 20px;
  letter-spacing: -0.025em;
}

.floating-card span {
  color: var(--ap-muted);
  font-size: 13px;
  font-weight: 650;
}

.section {
  padding: 96px 0;
}

.section.is-white { background: var(--ap-surface); }
.section.is-dark { background: var(--ap-footer-bg); color: var(--ap-white); }

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 42px;
}

.section-title {
  max-width: 760px;
  font-size: clamp(42px, 5.5vw, 72px);
}

.section-heading p {
  max-width: 390px;
  margin: 0;
  color: var(--ap-muted);
}

.is-dark .section-heading p { color: #aeb9ca; }

.home-intro {
  display: grid;
  align-items: start;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(44px, 8vw, 110px);
}

.intro-index {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ap-blue-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-index::after {
  width: 78px;
  height: 1px;
  background: var(--ap-line);
  content: "";
}

.intro-copy {
  color: var(--ap-ink-soft);
  font-size: clamp(23px, 3vw, 35px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.38;
}

.intro-copy > *:first-child { margin-top: 0; }
.intro-copy > *:last-child { margin-bottom: 0; }

.world-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.world-card {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 30px;
  border-radius: var(--ap-radius);
  background: var(--ap-surface);
  color: var(--ap-ink);
  text-decoration: none;
  transition: transform var(--ap-transition), box-shadow var(--ap-transition);
}

.world-card:hover {
  color: inherit;
  transform: translateY(-6px);
  box-shadow: var(--ap-shadow);
}

.world-card:nth-child(1) { grid-column: span 7; background: var(--ap-blue); color: var(--ap-white); }
.world-card:nth-child(2) { grid-column: span 5; }
.world-card:nth-child(3) { grid-column: span 5; background: var(--ap-mint); color: var(--ap-on-light); }
.world-card:nth-child(4) { grid-column: span 7; background: var(--ap-coral); color: var(--ap-on-light); }

.card-number {
  position: relative;
  z-index: 2;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.card-content h3 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.98;
}

.card-content p {
  max-width: 480px;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.card-arrow {
  position: absolute;
  z-index: 3;
  top: 24px;
  right: 24px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ap-on-light);
  font-size: 22px;
  transition: transform var(--ap-transition);
}

.world-card:hover .card-arrow { transform: rotate(-10deg) translate(3px, -3px); }

.world-card.has-image::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 23, 40, 0.85), rgba(13, 23, 40, 0.08) 74%);
  content: "";
}

.world-card.has-image { color: var(--ap-white); }
.world-card.has-image > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.radio-art {
  position: absolute;
  top: 60px;
  right: 35px;
  display: flex;
  height: 190px;
  align-items: center;
  gap: 8px;
  opacity: 0.56;
  transform: rotate(-7deg);
}

.radio-art i {
  width: 9px;
  border-radius: 99px;
  background: var(--ap-white);
}

.radio-art i:nth-child(1), .radio-art i:nth-child(7) { height: 38px; }
.radio-art i:nth-child(2), .radio-art i:nth-child(6) { height: 82px; }
.radio-art i:nth-child(3), .radio-art i:nth-child(5) { height: 130px; }
.radio-art i:nth-child(4) { height: 188px; background: var(--ap-coral); }

.lens-art {
  position: absolute;
  top: 52px;
  right: 44px;
  width: 180px;
  height: 180px;
  border: 22px solid rgba(13, 23, 40, 0.08);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(13, 23, 40, 0.18), 0 0 0 2px rgba(13, 23, 40, 0.06);
}

.lens-art::after {
  position: absolute;
  inset: 38px;
  border-radius: 50%;
  background: var(--ap-blue);
  content: "";
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.post-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ap-line);
  border-radius: var(--ap-radius);
  background: var(--ap-surface);
  transition: transform var(--ap-transition), box-shadow var(--ap-transition);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ap-shadow);
}

.post-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--ap-footer-bg);
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.post-card:hover .post-card-media img { transform: scale(1.04); }

.post-card-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--ap-mint);
  font-size: 50px;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-bottom: 12px;
  color: var(--ap-muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card h3,
.post-card h2 {
  margin: 0 0 13px;
  font-size: 29px;
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.post-card h3 a,
.post-card h2 a {
  color: var(--ap-ink);
  text-decoration: none;
}

.post-card-excerpt {
  margin: 0;
  color: var(--ap-ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--ap-blue-dark);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.text-link::after { content: "→"; transition: transform var(--ap-transition); }
.text-link:hover::after { transform: translateX(4px); }

.cta-panel {
  position: relative;
  display: grid;
  overflow: hidden;
  padding: clamp(42px, 7vw, 82px);
  border-radius: var(--ap-radius-lg);
  background: var(--ap-blue);
  color: var(--ap-white);
  grid-template-columns: 1.2fr auto;
  align-items: end;
  gap: 50px;
}

.cta-panel::before,
.cta-panel::after {
  position: absolute;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 50%;
  content: "";
}

.cta-panel::before { top: -160px; right: 12%; width: 360px; height: 360px; }
.cta-panel::after { right: -80px; bottom: -140px; width: 280px; height: 280px; }

.cta-panel > * { position: relative; z-index: 1; }

.cta-panel h2 {
  max-width: 780px;
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.cta-panel p {
  max-width: 650px;
  margin: 0;
  color: #e5ecff;
}

.cta-panel .ap-button {
  border-color: var(--ap-white);
  background: var(--ap-white);
  color: var(--ap-on-light);
  white-space: nowrap;
}

.cta-panel .ap-button:hover { background: var(--ap-mint); color: var(--ap-on-light); }

.page-hero {
  padding: 80px 0 64px;
}

.page-hero-grid {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 64px;
}

.page-title {
  max-width: 840px;
  font-size: clamp(58px, 9vw, 118px);
}

.page-hero-summary {
  margin: 0 0 8px;
  color: var(--ap-ink-soft);
  font-size: 19px;
}

.page-featured-image {
  width: min(calc(100% - 48px), var(--ap-container));
  max-height: 700px;
  margin: 0 auto 48px;
  overflow: hidden;
  border-radius: var(--ap-radius-lg);
  background: var(--ap-footer-bg);
}

.page-featured-image img { width: 100%; max-height: 700px; object-fit: cover; }

.entry-content {
  width: min(calc(100% - 48px), var(--ap-narrow));
  margin-inline: auto;
  padding-bottom: 96px;
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 1.8em 0 0.65em;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.entry-content h2 { font-size: clamp(36px, 5vw, 54px); }
.entry-content h3 { font-size: clamp(27px, 4vw, 38px); }
.entry-content p { margin: 0 0 1.4em; }
.entry-content a { font-weight: 700; }

.entry-content blockquote {
  margin: 2.3em 0;
  padding: 6px 0 6px 28px;
  border-left: 5px solid var(--ap-coral);
  color: var(--ap-ink-soft);
  font-size: 1.25em;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.entry-content .alignwide {
  width: min(calc(100vw - 48px), var(--ap-container));
  max-width: none;
  margin-right: calc((min(calc(100vw - 48px), var(--ap-container)) - 100%) / -2);
  margin-left: calc((min(calc(100vw - 48px), var(--ap-container)) - 100%) / -2);
}

.entry-content .alignfull {
  width: 100vw;
  max-width: none;
  margin-right: calc((100vw - 100%) / -2);
  margin-left: calc((100vw - 100%) / -2);
}

.wp-caption,
.wp-block-image,
.wp-block-gallery { max-width: 100%; }

.wp-caption-text,
.wp-element-caption {
  margin-top: 9px;
  color: var(--ap-muted);
  font-size: 13px;
  font-style: normal;
}

.wp-block-image img,
.entry-content > img {
  border-radius: var(--ap-radius-sm);
}

.single-header {
  padding: 80px 0 46px;
  text-align: center;
}

.single-header .entry-title {
  max-width: 930px;
  margin: 0 auto;
  font-size: clamp(52px, 8vw, 94px);
}

.single-header .post-meta {
  justify-content: center;
  margin: 0 0 22px;
}

.single-featured {
  width: min(calc(100% - 48px), var(--ap-container));
  max-height: 720px;
  margin: 0 auto 64px;
  overflow: hidden;
  border-radius: var(--ap-radius-lg);
}

.single-featured img { width: 100%; max-height: 720px; object-fit: cover; }

.archive-header {
  padding: 80px 0 52px;
}

.archive-header .page-title { margin-bottom: 20px; }
.archive-description { max-width: 690px; color: var(--ap-ink-soft); }
.posts-section { padding: 0 0 96px; }

.navigation.pagination {
  margin-top: 48px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-links .page-numbers {
  display: grid;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  place-items: center;
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  background: var(--ap-surface);
  color: var(--ap-ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.nav-links .current,
.nav-links a:hover { border-color: var(--ap-blue); background: var(--ap-blue); color: var(--ap-white); }

.post-navigation {
  width: min(calc(100% - 48px), var(--ap-narrow));
  margin: 0 auto 80px;
  padding-top: 30px;
  border-top: 1px solid var(--ap-line);
}

.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { color: var(--ap-ink); font-weight: 800; text-decoration: none; }

.not-found {
  padding: 110px 0;
  text-align: center;
}

.error-code {
  color: var(--ap-blue);
  font-size: clamp(90px, 20vw, 220px);
  font-weight: 950;
  letter-spacing: -0.09em;
  line-height: 0.8;
}

.not-found h1 { margin: 30px 0 14px; font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.05em; }
.not-found p { max-width: 560px; margin: 0 auto 28px; color: var(--ap-ink-soft); }

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  max-width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--ap-line);
  border-radius: 12px;
  background: var(--ap-surface);
  color: var(--ap-ink);
}

textarea { min-height: 160px; resize: vertical; }

label {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 800;
}

.search-form {
  display: flex;
  max-width: 560px;
  gap: 10px;
  margin: 0 auto;
}

.search-form label { flex: 1; margin: 0; }
.search-form .search-submit { flex: 0 0 auto; }

.comments-area {
  width: min(calc(100% - 48px), var(--ap-narrow));
  margin: 0 auto 90px;
}

.comments-title,
.comment-reply-title {
  font-size: 32px;
  letter-spacing: -0.04em;
}

.comment-list { padding: 0; list-style: none; }
.comment-body { margin: 0 0 24px; padding: 24px; border: 1px solid var(--ap-line); border-radius: var(--ap-radius-sm); background: var(--ap-surface); }

.site-footer {
  padding: 72px 0 28px;
  background: var(--ap-footer-bg);
  color: var(--ap-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr 0.6fr;
  gap: 64px;
}

.footer-brand .brand-link { color: var(--ap-white); }
.footer-brand p { max-width: 460px; margin: 22px 0 0; color: #aeb9ca; font-size: 16px; }

.footer-title {
  margin: 5px 0 18px;
  color: #7f8da5;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-menu,
.social-links {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-menu li,
.social-links li { margin: 8px 0; }
.footer-menu a,
.social-links a { color: var(--ap-white); font-size: 15px; font-weight: 700; text-decoration: none; }
.footer-menu a:hover,
.social-links a:hover { color: var(--ap-mint); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 28px;
  margin-top: 58px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #8996aa;
  font-size: 13px;
}

.footer-bottom a { color: #c4cede; }

.no-js .menu-toggle,
.no-js .theme-toggle { display: none; }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 32px; }
  .menu-toggle { display: grid; place-items: center; }
  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--ap-line);
    background: var(--ap-paper);
    box-shadow: 0 24px 50px rgba(13, 23, 40, 0.12);
    margin-left: 0;
  }
  .primary-nav.is-open { display: block; }
  .no-js .primary-nav {
    position: static;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .no-js .primary-menu,
  .no-js .primary-nav > div > ul {
    display: flex;
    flex-wrap: wrap;
  }
  .primary-menu,
  .primary-nav > div > ul { display: grid; gap: 4px; }
  .primary-menu a,
  .primary-nav > div > ul > li > a { padding: 13px 15px; font-size: 17px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .hero-visual { min-height: 520px; }
  .visual-frame { left: 8%; }
  .home-intro { grid-template-columns: 1fr; gap: 28px; }
  .section-heading { align-items: start; flex-direction: column; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-grid .post-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cta-panel { grid-template-columns: 1fr; align-items: start; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { font-size: 17px; }
  body.admin-bar .site-header { top: 46px; }
  .ap-container,
  .ap-narrow,
  .entry-content,
  .page-featured-image,
  .single-featured,
  .post-navigation,
  .comments-area { width: min(calc(100% - 32px), var(--ap-container)); }
  .header-inner { min-height: 74px; }
  .brand-name { font-size: 15px; }
  .brand-mark { width: 38px; height: 38px; }
  .ap-hero { padding-top: 48px; }
  .hero-title { font-size: clamp(48px, 15vw, 70px); }
  .hero-intro { font-size: 18px; }
  .hero-visual { min-height: 420px; }
  .visual-frame { inset: 0 0 35px 20px; border-radius: 28px; }
  .visual-signal { gap: 7px; transform: translate(-50%, -50%) scale(.75); }
  .floating-card { padding: 16px 18px; }
  .section { padding: 72px 0; }
  .section-heading { margin-bottom: 28px; }
  .world-grid { grid-template-columns: 1fr; }
  .world-card,
  .world-card:nth-child(1),
  .world-card:nth-child(2),
  .world-card:nth-child(3),
  .world-card:nth-child(4) { grid-column: auto; min-height: 360px; }
  .world-card { padding: 24px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-grid .post-card:last-child:nth-child(odd) { grid-column: auto; }
  .cta-panel { padding: 38px 26px; border-radius: 28px; }
  .page-hero { padding: 56px 0 44px; }
  .page-title { font-size: clamp(50px, 17vw, 82px); }
  .single-header { padding-top: 58px; }
  .entry-content { padding-bottom: 72px; }
  .entry-content .alignwide,
  .entry-content .alignfull { width: calc(100vw - 16px); margin-right: calc((calc(100vw - 16px) - 100%) / -2); margin-left: calc((calc(100vw - 16px) - 100%) / -2); }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { align-items: start; flex-direction: column; }
  .search-form { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-actions { align-items: stretch; flex-direction: column; }
  .ap-button { width: 100%; }
  .hero-visual { min-height: 360px; }
  .visual-frame { left: 10px; }
  .floating-card { width: 220px; }
}

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

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .post-navigation { display: none; }
  body { background: #fff; color: #000; }
  .entry-content { width: 100%; }
}
