/*
Theme Name: Emiel van Rossum — Profile
Theme URI: https://emielvanrossum.nl/
Author: Emiel van Rossum
Author URI: https://emielvanrossum.nl/
Description: Lichtgewicht tweetalig profielthema voor emielvanrossum.nl, met Nederlands op / en Engels op /en/.
Version: 1.0.7
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: emiel-profile
*/

:root {
  --ink: #0a1925;
  --ink-soft: #153247;
  --paper: #f7f4ed;
  --paper-bright: #fffdf8;
  --paper-warm: #eee8dc;
  --line: rgba(10, 25, 37, 0.14);
  --muted: #5e6c75;
  --signal: #e94f35;
  --signal-dark: #b93423;
  --aqua: #74c9bd;
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(10, 25, 37, 0.13);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: min(1180px, calc(100vw - 40px));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  overflow: hidden;
}

.evr-container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: absolute;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  padding-top: 26px;
  color: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: block;
  padding: 7px 13px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.13);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease;
}

.wordmark:hover,
.wordmark:focus-visible {
  transform: translateY(-2px);
  background: var(--white);
}

.site-logo {
  width: 238px;
  height: auto;
}

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

.primary-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.primary-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--white);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  font-size: 13px;
  font-weight: 720;
  text-decoration: none;
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, background 180ms ease;
}

.language-switch:hover,
.language-switch:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
}

.flag {
  width: 22px;
  height: 15px;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.hero {
  position: relative;
  min-height: 780px;
  padding: 152px 0 108px;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(116, 201, 189, 0.18), transparent 24%),
    radial-gradient(circle at 72% 80%, rgba(233, 79, 53, 0.16), transparent 28%),
    var(--ink);
  color: var(--white);
}

.hero::before {
  position: absolute;
  top: -240px;
  right: -220px;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.hero::after {
  position: absolute;
  right: 17%;
  bottom: -320px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  content: "";
}

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

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--aqua);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  background: currentColor;
  content: "";
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 5.4vw, 72px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-lead {
  max-width: 660px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 760;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--signal);
  color: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #f15d43;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.hero-portrait-wrap {
  position: relative;
  justify-self: end;
  width: min(100%, 480px);
}

.hero-portrait-wrap::before {
  position: absolute;
  z-index: -1;
  right: -24px;
  bottom: -24px;
  width: 72%;
  height: 58%;
  border-radius: 0 0 var(--radius-lg) 0;
  background: var(--signal);
  content: "";
}

.hero-portrait {
  aspect-ratio: 4 / 5;
  width: 100%;
  overflow: hidden;
  border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
  background: #d8d8d4;
  box-shadow: var(--shadow);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 51% 38%;
  transform: scale(1.13);
}

.portrait-note {
  position: absolute;
  bottom: 24px;
  left: -34px;
  max-width: 225px;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  background: var(--paper-bright);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.2);
  color: var(--ink);
}

.portrait-note strong,
.portrait-note span {
  display: block;
}

.portrait-note strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.portrait-note span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fact-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: var(--container);
  margin: -46px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-bright);
  box-shadow: 0 18px 55px rgba(10, 25, 37, 0.1);
}

.fact {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 15px;
  min-height: 92px;
  padding: 20px 28px;
}

.fact + .fact {
  border-left: 1px solid var(--line);
}

.fact-number {
  color: var(--signal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
}

.fact-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.section {
  padding: 112px 0;
}

.section-compact {
  padding-top: 72px;
}

.section-dark {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.section-tint {
  background: var(--paper-warm);
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: end;
  gap: 40px;
  margin-bottom: 52px;
}

.section-kicker {
  margin: 0 0 16px;
  color: var(--signal-dark);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-dark .section-kicker {
  color: var(--aqua);
}

.section h2 {
  max-width: 680px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.section-intro {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.section-dark .section-intro {
  color: rgba(255, 255, 255, 0.66);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.68fr);
  gap: 72px;
}

.profile-copy p {
  margin: 0 0 24px;
  color: #33434e;
  font-size: 19px;
  line-height: 1.82;
}

.profile-copy p:first-child {
  color: var(--ink);
  font-size: clamp(23px, 2.4vw, 29px);
  line-height: 1.55;
}

.profile-aside {
  align-self: start;
  padding: 30px;
  border-top: 4px solid var(--signal);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--ink);
  color: var(--white);
}

.profile-aside h3 {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 500;
}

.profile-aside ul {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-aside li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 15px;
}

.profile-aside li::before {
  position: absolute;
  top: 0.69em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  content: "";
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.timeline::before {
  position: absolute;
  top: 14px;
  bottom: 18px;
  left: 152px;
  width: 1px;
  background: rgba(255, 255, 255, 0.16);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 65px;
  padding: 0 0 42px;
}

.timeline-item::before {
  position: absolute;
  top: 9px;
  left: 146px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
  content: "";
}

.timeline-date {
  padding-top: 3px;
  color: var(--aqua);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-content {
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.timeline-content h3 {
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 500;
}

.timeline-role {
  margin: 0 0 12px;
  color: var(--signal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline-content p:last-child {
  max-width: 790px;
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.expertise-card {
  min-height: 230px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-bright);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(10, 25, 37, 0.08);
}

.expertise-index {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(233, 79, 53, 0.1);
  color: var(--signal-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  font-weight: 700;
}

.expertise-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.expertise-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 74px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.credentials h3 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 600;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: #42515b;
  font-size: 13px;
  font-weight: 650;
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 238px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-bright);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.link-card::after {
  position: absolute;
  right: -58px;
  bottom: -72px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(116, 201, 189, 0.1);
  content: "";
  transition: transform 220ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(233, 79, 53, 0.35);
  box-shadow: 0 20px 50px rgba(10, 25, 37, 0.1);
  outline: none;
}

.link-card:hover::after,
.link-card:focus-visible::after {
  transform: scale(1.15);
}

.link-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.link-abbr {
  display: grid;
  min-width: 48px;
  height: 48px;
  padding: 0 9px;
  place-items: center;
  border-radius: 13px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.04em;
}

.link-logo {
  display: block;
  width: 190px;
  max-width: calc(100% - 42px);
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.link-arrow {
  color: var(--signal);
  font-size: 22px;
  transition: transform 180ms ease;
}

.link-card:hover .link-arrow,
.link-card:focus-visible .link-arrow {
  transform: translate(3px, -3px);
}

.link-card h3 {
  position: relative;
  z-index: 2;
  margin: auto 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.2;
}

.link-card p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.site-footer {
  padding: 48px 0;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  margin: 0;
  font-size: 14px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-links a {
  color: var(--white);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.protected-page {
  display: grid;
  min-height: 100vh;
  padding: 48px 20px;
  place-items: center;
  background: var(--ink);
  color: var(--white);
}

.protected-card {
  width: min(720px, 100%);
  padding: clamp(32px, 7vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--paper-bright);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.protected-card h1 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 500;
  line-height: 1.05;
}

.protected-card p {
  color: var(--muted);
}

.protected-card .button-secondary {
  border-color: var(--line);
  color: var(--ink);
}

@media (max-width: 980px) {
  .primary-nav {
    display: none;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-portrait-wrap {
    justify-self: center;
    width: min(78vw, 500px);
  }

  .fact-strip,
  .expertise-grid,
  .links-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fact:nth-child(3) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section-header,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: start;
    gap: 24px;
  }

  .profile-grid {
    gap: 44px;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100% - 28px, 1180px);
    --radius-lg: 24px;
    --radius-md: 18px;
  }

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

  .site-header {
    padding-top: 18px;
  }

  .language-label {
    display: none;
  }

  .site-logo {
    width: 184px;
  }

  .language-switch {
    width: 44px;
    padding: 8px;
    justify-content: center;
  }

  .hero {
    min-height: 0;
    padding: 112px 0 92px;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 52px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-portrait-wrap {
    width: min(86vw, 430px);
  }

  .portrait-note {
    bottom: 16px;
    left: -8px;
  }

  .fact-strip,
  .expertise-grid,
  .links-grid,
  .credentials {
    grid-template-columns: 1fr;
  }

  .fact + .fact,
  .fact:nth-child(3) {
    grid-column: auto;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding: 82px 0;
  }

  .section-compact {
    padding-top: 56px;
  }

  .section h2 {
    font-size: clamp(38px, 11vw, 50px);
  }

  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 34px;
  }

  .timeline-item::before {
    top: 7px;
    left: 2px;
  }

  .timeline-content {
    padding-bottom: 28px;
  }

  .credentials {
    gap: 36px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
