/*
Theme Name: Pascha
Theme URI: https://pascha.ca
Author: Pascha Protter
Description: Personal portfolio theme for pascha.ca — intro, key work, beyond work, writing and resume.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.3.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pascha
*/

:root {
  --pp-sand: #F3EAE2;
  --pp-cream: #FBF7F3;
  --pp-wine: #6B1E4A;
  --pp-wine-soft: #E9D6C9;
  --pp-peri: #D9DFF2;
  --pp-navy: #2E3F72;
  --pp-slate: #2B2F45;
  --pp-plum: #2A1022;
  --pp-mauve: #5A3A4C;
  --pp-line: #E2D3C8;
  --pp-display: 'Bricolage Grotesque', 'Hanken Grotesk', 'Helvetica Neue', sans-serif;
  --pp-body: 'Hanken Grotesk', 'Helvetica Neue', system-ui, sans-serif;
}

body { margin: 0; background: var(--pp-cream); color: var(--pp-plum); font-family: var(--pp-body); font-size: 19px; line-height: 1.6; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a:hover { opacity: 0.75; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block: 0; }

/* Shared layout */
.pp-wrap { max-width: 1360px; margin-inline: auto; padding-inline: 32px; box-sizing: border-box; }
.pp-wrap > *, .pp-stack > * { margin-block: 0; }
.pp-head { display: flex; flex-wrap: wrap; gap: 24px 80px; align-items: flex-end; justify-content: space-between; }
.pp-head > * { margin: 0; }
.pp-head > p { flex: 1 1 380px; max-width: 480px; }
.pp-h2 { flex: 1 1 520px; font-family: var(--pp-display); font-weight: 700; font-size: clamp(36px, 4vw, 56px); line-height: 0.98; letter-spacing: -0.035em; }

/* Hello */
.pp-hello { background: var(--pp-sand); color: var(--pp-wine); }
.pp-hello > .pp-wrap { padding-block: 64px 120px; display: flex; flex-direction: column; gap: 64px; }
.pp-name { margin: 0; font-family: var(--pp-display); font-weight: 700; font-size: clamp(64px, 11vw, 164px); line-height: 0.9; letter-spacing: -0.045em; }
.pp-hello-body { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: flex-start; }
.pp-portrait { flex: 0 1 340px; margin: 0; }
.pp-portrait img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--pp-wine-soft); }
.pp-intro { flex: 1 1 480px; max-width: 680px; display: flex; flex-direction: column; gap: 22px; color: var(--pp-plum); }
.pp-intro > * { margin: 0; }
.pp-hi { font-family: var(--pp-display); font-weight: 600; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; color: var(--pp-wine); }
.pp-lead { font-size: 22px; line-height: 1.5; }

/* Key work */
.pp-tech { background: var(--pp-wine); color: var(--pp-sand); }
.pp-tech > .pp-wrap { padding-block: 120px; display: flex; flex-direction: column; gap: 64px; }
.pp-soft { color: var(--pp-wine-soft); }
.pp-scope { display: flex; flex-wrap: wrap; gap: 8px 0; border-top: 1.5px solid var(--pp-sand); }
.pp-scope > p { flex: 1 1 220px; margin: 0; padding: 20px 24px 0 0; display: flex; flex-direction: column; gap: 4px; }
.pp-scope span { font-size: 15px; font-weight: 600; color: var(--pp-wine-soft); }
.pp-scope strong { font-family: var(--pp-display); font-weight: 600; font-size: 22px; line-height: 1.25; }
.pp-feature { display: flex; flex-wrap: wrap; gap: 40px 80px; align-items: flex-end; padding: 56px; background: rgba(0, 0, 0, 0.2); }
.pp-feature > * { margin: 0; }
.pp-feature-big { flex: 1 1 480px; font-family: var(--pp-display); font-weight: 700; font-size: clamp(56px, 7.4vw, 112px); line-height: 0.92; letter-spacing: -0.045em; }
.pp-feature-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.pp-feature-text > * { margin: 0; }
.pp-feature-text h3 { font-size: 26px; font-weight: 600; line-height: 1.25; }
.pp-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.pp-card { flex: 1 1 360px; display: flex; flex-direction: column; gap: 16px; padding: 44px; background: rgba(0, 0, 0, 0.2); }
.pp-card > * { margin: 0; }
.pp-card-big { font-family: var(--pp-display); font-weight: 700; font-size: clamp(30px, 2.8vw, 42px); line-height: 0.95; letter-spacing: -0.04em; }
.pp-card h3 { font-size: 22px; font-weight: 600; line-height: 1.25; }
.pp-timeline-block { display: flex; flex-direction: column; gap: 28px; padding-top: 16px; }
.pp-timeline-block > * { margin: 0; }
.pp-timeline-block h3 { font-size: 20px; font-weight: 600; }
.pp-timeline { display: flex; flex-wrap: wrap; gap: 24px 0; border-top: 1.5px solid var(--pp-sand); }
.pp-timeline > p { flex: 1 1 180px; margin: 0; padding: 20px 24px 0 0; display: flex; flex-direction: column; gap: 4px; font-size: 17px; color: var(--pp-wine-soft); }
.pp-timeline strong { font-family: var(--pp-display); font-weight: 700; font-size: 32px; line-height: 1; color: var(--pp-sand); }
.pp-more { font-size: 22px; font-weight: 600; }

/* Beyond work */
.pp-beyond { background: var(--pp-peri); color: var(--pp-plum); }
.pp-beyond > .pp-wrap { padding-block: 120px; display: flex; flex-direction: column; gap: 56px; }
.pp-beyond .pp-head > p { color: var(--pp-slate); }
.pp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.pp-tile { display: flex; flex-direction: column; gap: 14px; padding: 44px; background: var(--pp-cream); color: var(--pp-slate); }
.pp-tile > * { margin: 0; }
.pp-tile h3 { font-family: var(--pp-display); font-weight: 700; font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; color: var(--pp-navy); }
.pp-mini { display: flex; gap: 8px; padding-top: 6px; }
.pp-mini > figure { flex: 1 1 0; margin: 0; }
.pp-mini img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* Writing */
.pp-writing > .pp-wrap { padding-block: 120px; display: flex; flex-direction: column; gap: 40px; }
.pp-writing-title { margin: 0; font-family: var(--pp-display); font-weight: 700; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.035em; color: var(--pp-wine); }
.pp-posts .wp-block-post-template { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; list-style: none; margin: 0; padding: 0; }
.pp-posts .wp-block-post { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 2px solid var(--pp-plum); margin: 0; }
.pp-posts .wp-block-post > * { margin: 0; }
.pp-posts .wp-block-post-date { font-size: 15px; color: var(--pp-mauve); }
.pp-posts .wp-block-post-title { font-family: var(--pp-display); font-weight: 600; font-size: 26px; line-height: 1.2; }
.pp-posts .wp-block-post-title a { text-decoration: none; }

/* Contact + footer */
.pp-contact { background: var(--pp-plum); color: var(--pp-sand); }
.pp-contact > .pp-wrap { padding-block: 120px 40px; display: flex; flex-direction: column; gap: 32px; }
.pp-say { margin: 0; font-family: var(--pp-display); font-weight: 700; font-size: clamp(48px, 6.4vw, 96px); line-height: 0.9; letter-spacing: -0.045em; }
.pp-contact-line { max-width: 640px; font-size: 22px; line-height: 1.45; }
.pp-footer { background: var(--pp-plum); color: #D9C7BC; font-size: 15px; }
.pp-footer > .pp-wrap { padding-block: 0 120px; }
.pp-footer p { margin: 0; padding-top: 20px; border-top: 1px solid var(--pp-mauve); }

/* Floating dock */
.pp-dock { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 6px; border-radius: 14px; background: rgba(42, 16, 34, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 16px 40px -16px rgba(42, 16, 34, 0.5); }
.pp-dock p { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; font-size: 15px; font-weight: 500; }
.pp-dock a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; color: var(--pp-sand); text-decoration: none; }
.pp-dock a:hover { background: rgba(243, 234, 226, 0.12); opacity: 1; }

/* Resume page */
.pp-rhead { background: var(--pp-wine); color: var(--pp-sand); }
.pp-rhead > .pp-wrap { padding-block: 72px 56px; display: flex; flex-direction: column; gap: 48px; }
.pp-rhead .pp-head { align-items: flex-end; }
.pp-rhead-name { display: flex; flex-direction: column; gap: 12px; }
.pp-rhead-name > * { margin: 0; }
.pp-rhead-name p { font-size: 17px; font-weight: 600; color: var(--pp-wine-soft); }
.pp-rhead-name h1 { font-family: var(--pp-display); font-weight: 700; font-size: clamp(52px, 7vw, 104px); line-height: 0.92; letter-spacing: -0.045em; }
.pp-rhead-bio { flex: 0 1 540px; display: flex; flex-direction: column; gap: 10px; }
.pp-rhead-bio > * { margin: 0; }
.pp-rhead-bio .pp-tagline { font-family: var(--pp-display); font-weight: 600; font-size: 24px; line-height: 1.25; }
.pp-figures { display: flex; flex-wrap: wrap; gap: 24px 0; border-top: 1px solid rgba(243, 234, 226, 0.4); }
.pp-figures > p { flex: 1 1 200px; margin: 0; padding: 20px 24px 0 0; display: flex; flex-direction: column; gap: 2px; font-size: 16px; color: var(--pp-wine-soft); }
.pp-figures strong { font-family: var(--pp-display); font-weight: 700; font-size: 40px; line-height: 1; color: var(--pp-sand); }
.pp-rbody > .pp-wrap { padding-block: 88px 160px; display: flex; flex-direction: column; gap: 112px; font-size: 18px; }
.pp-rcols { display: flex; flex-wrap: wrap-reverse; gap: 64px 80px; align-items: flex-start; }
.pp-rside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 48px; }
.pp-rmain { flex: 999 1 640px; display: flex; flex-direction: column; gap: 32px; }
.pp-rside > *, .pp-rmain > * { margin: 0; }
.pp-rtitle { margin: 0; font-family: var(--pp-display); font-weight: 700; font-size: 36px; line-height: 1; letter-spacing: -0.03em; color: var(--pp-wine); }
.pp-skills { display: flex; flex-direction: column; gap: 24px; }
.pp-skills > * { margin: 0; }
.pp-skill { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--pp-line); }
.pp-skill > * { margin: 0; }
.pp-skill h3 { font-size: 17px; font-weight: 600; }
.pp-skill p, .pp-edu p { font-size: 16px; color: var(--pp-mauve); }
.pp-edu { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 1.5px solid var(--pp-plum); }
.pp-edu > * { margin: 0; }
.pp-edu strong { color: var(--pp-plum); font-weight: 600; }
.pp-job { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--pp-line); }
.pp-job:first-of-type { border-top: 1.5px solid var(--pp-plum); }
.pp-job > * { margin: 0; }
.pp-job h3 { font-family: var(--pp-display); font-weight: 600; font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
.pp-job h4 { font-size: 15px; font-weight: 600; color: var(--pp-wine); margin-bottom: -6px; }
.pp-job-meta { font-weight: 500; color: var(--pp-mauve); }
.pp-job-meta strong { color: var(--pp-wine); font-weight: 600; }
.pp-scope-note { padding: 18px 22px; background: var(--pp-sand); }
.pp-job ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.pp-projects { display: flex; flex-direction: column; gap: 40px; }
.pp-projects > * { margin: 0; }
.pp-projects .pp-h2 { font-size: clamp(40px, 4.4vw, 64px); color: var(--pp-wine); }
.pp-proj-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }
.pp-proj { display: flex; flex-direction: column; gap: 12px; padding: 36px; background: var(--pp-sand); }
.pp-proj > * { margin: 0; }
.pp-proj h3 { font-family: var(--pp-display); font-weight: 600; font-size: 24px; line-height: 1.2; }
.pp-proj p { font-size: 17px; color: var(--pp-mauve); }
.pp-proj .pp-tags { font-size: 15px; font-weight: 600; color: var(--pp-wine); }

/* Simple pages, posts, 404 */
.pp-page > .pp-wrap { padding-block: 72px 160px; }
.pp-page-title { margin: 0 0 40px; font-family: var(--pp-display); font-weight: 700; font-size: clamp(44px, 6vw, 80px); line-height: 1; letter-spacing: -0.035em; color: var(--pp-wine); }
.pp-home-link { margin: 0 0 56px; font-weight: 600; }
.pp-home-link a { text-decoration: none; }
.pp-prose { max-width: 720px; }
.pp-prose > * + * { margin-top: 1.1em; }
.pp-prose h2, .pp-prose h3 { font-family: var(--pp-display); font-weight: 600; line-height: 1.2; margin-top: 1.6em; }
.pp-prose img { max-width: 100%; height: auto; }
.pp-post-date { margin: -24px 0 40px; color: var(--pp-mauve); font-size: 16px; }

@media (max-width: 640px) {
  .pp-wrap { padding-inline: 20px; }
  .pp-feature, .pp-card, .pp-tile { padding: 28px; }
  .pp-dock a { padding: 0 10px; }
}

/* Hobbies (full-width tile in Beyond work) */
.pp-tiles > .pp-tile-wide { grid-column: 1 / -1; }
.pp-hobbies { display: flex; flex-wrap: wrap; gap: 32px; padding-top: 10px; }
.pp-hobby { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pp-hobby > * { margin: 0; }
.pp-hobby figure { margin: 0; width: 100%; }
.pp-hobby img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3 !important; object-fit: cover !important; }
.pp-hobby h4 { font-family: var(--pp-display); font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--pp-slate); }
.pp-hobby p { font-size: 17px; }

/* Pull quote in the intro, with a running-stitch rule */
.pp-pullquote { position: relative; margin: 8px 0; padding: 4px 0 4px 28px; border: 0; }
.pp-pullquote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: repeating-linear-gradient(180deg, var(--pp-wine) 0 14px, transparent 14px 24px); }
.pp-pullquote p { margin: 0; font-family: var(--pp-display); font-weight: 600; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -0.02em; color: var(--pp-wine); }

/* Running stitch above the Beyond work heading */
.pp-beyond > .pp-wrap::before { content: ""; display: block; height: 3px; max-width: 160px; margin-bottom: -24px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--pp-navy) 0 14px, transparent 14px 24px); }

/* Nav: current section, and shorter labels on phones */
.pp-dock a[aria-current="true"] { background: var(--pp-sand); color: var(--pp-plum); }
.pp-dock a[aria-current="true"]:hover { background: var(--pp-sand); }
@media (max-width: 640px) {
  .pp-dock a[href="/#contact"] { display: none; }
  .pp-dock p { flex-wrap: nowrap; gap: 0; font-size: 14px; }
  .pp-dock a { padding: 0 10px; white-space: nowrap; }
}

/* Skip link added by WordPress */
.skip-link.screen-reader-text:focus { z-index: 100; background: var(--pp-plum); color: var(--pp-sand); padding: 12px 18px; border-radius: 10px; text-decoration: none; font-weight: 600; }

/* v1.3 — "How I got here" sits on its own light band below Key work */
.pp-tech .pp-timeline-block { margin: 0 calc(50% - 50vw) -120px; padding: 88px max(32px, calc(50vw - 648px)); background: var(--pp-sand); color: var(--pp-plum); }
.pp-tech .pp-timeline { border-top-color: var(--pp-plum); }
.pp-tech .pp-timeline > p { color: var(--pp-mauve); }
.pp-tech .pp-timeline strong { color: var(--pp-wine); }
.pp-tech .pp-more a { color: var(--pp-wine); }
.pp-tech { overflow-x: clip; }

/* v1.3 — softer, rounded corners */
.pp-feature, .pp-card, .pp-tile { border-radius: 20px; }
.pp-portrait img { border-radius: 20px; }
.pp-hobby img, .pp-mini img { border-radius: 12px; }
@media (max-width: 640px) { .pp-tech .pp-timeline-block { padding: 64px 20px; } }

/* Hide any Writing link left in a customized nav until there are posts */
.pp-dock a[href$="#writing"] { display: none; }
