/*
Theme Name: Andreas Athanasiadis, Pharmacist
Theme URI: https://epharmakeio.gr/
Author: ATCOM
Author URI: https://www.atcom.gr/
Description: Mobile-first one-page CV theme for pharmacist Andreas Athanasiadis. Pastel panels, Manrope, a glass molecule that reshapes per section, wave timeline, Greek and English, auto/light/dark appearance, SEO metadata, structured data and security hardening.
Version: 5.3.0
Requires at least: 6.4
Tested up to: 7.1
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: andreas-pharmacist
Tags: one-column, portfolio, accessibility-ready, translation-ready
*/

/* ---------- Tokens: the CV palette, softened into pastel panels ---------- */
:root {
  --mint: #dbe9e4;
  --blush: #efdfda;
  --sky: #d6e5ea;
  --bg: var(--mint);
  --ink: #12393b;
  --ink-soft: #3f6264;
  --line: rgba(18, 57, 59, .18);
  --accent: #b5573f;               /* CV salmon, accessible */
  --surface: rgba(255, 255, 255, .62);
  --surface-solid: #ffffff;
  --pill: rgba(255, 255, 255, .7);

  --serif: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 3.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mint: #0f2a2a; --blush: #2a2124; --sky: #12262e;
    --ink: #e4efec; --ink-soft: #a8c0bc; --line: rgba(228, 239, 236, .18);
    --accent: #f0a089; --surface: rgba(10, 30, 31, .62); --surface-solid: #0b2223; --pill: rgba(20, 45, 46, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --mint: #0f2a2a; --blush: #2a2124; --sky: #12262e;
  --ink: #e4efec; --ink-soft: #a8c0bc; --line: rgba(228, 239, 236, .18);
  --accent: #f0a089; --surface: rgba(10, 30, 31, .62); --surface-solid: #0b2223; --pill: rgba(20, 45, 46, .7);
  color-scheme: dark;
}
:root[data-bg="blush"] { --bg: var(--blush); }
:root[data-bg="sky"] { --bg: var(--sky); }

*, *::before, *::after { box-sizing: inherit; }
html {
  background: var(--bg);
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 5rem);
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scrollbar-color: color-mix(in srgb, var(--ink) 35%, transparent) transparent;
  transition: background-color 1s var(--ease);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
  transition: background-color 1s var(--ease), color .4s;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 40; background: var(--bg);
}
::selection { background: var(--ink); color: var(--bg); }
p, ul, ol, dl, dd, h1, h2, h3, figure { margin: 0; padding: 0; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
button { font: inherit; color: inherit; }

:root[lang="el"] [data-l="en"], :root[lang="en"] [data-l="el"] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--gutter); top: -4rem; z-index: 60; background: var(--ink); color: var(--bg); padding: .6rem 1rem; border-radius: 999px; text-decoration: none; }
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + .75rem); }

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

/* ---------- The molecule canvas sits behind everything ---------- */
.molecule { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.page { position: relative; z-index: 1; }

/* ---------- Type ---------- */
.display {
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(2.5rem, 10.5vw, 5.75rem);
  line-height: 1;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--serif);
  font-weight: 250;
  font-size: clamp(2.1rem, 7.5vw, 4rem);
  line-height: 1.04;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.lead { font-size: clamp(1.0625rem, 2.4vw, 1.25rem); line-height: 1.6; color: var(--ink); max-width: 38rem; }
.muted { color: var(--ink-soft); }

/* ---------- Top bar ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  pointer-events: none;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; }
.nav > .wrap > * { pointer-events: auto; }
.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--pill);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: .875rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .3s, border-color .3s;
}
.pill:hover { border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.menu-dot { display: inline-flex; gap: 3px; }
.menu-dot i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.menu-dot i:first-child { background: currentColor; }
.logo {
  display: grid; justify-items: center;
  padding: .4rem 0 .4rem .26em;           /* balances the trailing letter-spacing */
  color: var(--ink); text-decoration: none; text-transform: uppercase;
  font-size: .6875rem; font-weight: 500; letter-spacing: .26em; line-height: 1.35;
  transition: opacity .3s;
}
.logo:hover { opacity: .7; }
.logo-l { display: grid; justify-items: center; }
/* Logged-in WordPress users: keep the top bar and menu below the admin bar */
.admin-bar .nav { top: 32px; }
.admin-bar .menu { padding-top: calc(env(safe-area-inset-top, 0px) + 32px + 6rem); }
.admin-bar .menu-close { top: calc(env(safe-area-inset-top, 0px) + 32px + 1.1rem); }
@media (max-width: 782px) {
  .admin-bar .nav { top: 46px; }
  .admin-bar .menu { padding-top: calc(env(safe-area-inset-top, 0px) + 46px + 6rem); }
  .admin-bar .menu-close { top: calc(env(safe-area-inset-top, 0px) + 46px + 1.1rem); }
}
@media (min-width: 40rem) { .logo { font-size: .8125rem; letter-spacing: .3em; padding-left: .3em; } }
.lang { padding: 3px; gap: 2px; }
.lang button {
  min-width: 40px; min-height: 36px; border: 0; border-radius: 999px; background: transparent;
  font-size: .8125rem; font-weight: 700; letter-spacing: .05em; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 50;
  background: var(--bg);
  padding: calc(env(safe-area-inset-top, 0px) + 6rem) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 2rem);
  display: grid; align-content: space-between; gap: 2rem;
  clip-path: circle(0 at 2.5rem 2.5rem);
  visibility: hidden;
  transition: clip-path .8s var(--ease), visibility 0s .8s;
}
.menu.is-open { clip-path: circle(150% at 2.5rem 2.5rem); visibility: visible; transition: clip-path .8s var(--ease); }
.menu ol { list-style: none; display: grid; gap: .2rem; }
.menu ol a {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.4rem, 10vw, 5rem); line-height: 1.08; text-decoration: none; letter-spacing: -.02em;
  transition: color .3s, padding .4s var(--ease);
}
.menu ol a:hover { color: var(--accent); padding-left: .25em; }
.menu-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 1.1rem); left: var(--gutter); }
.menu-foot { display: grid; gap: .25rem; font-size: .9375rem; }
.menu-foot a { text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: 6.5rem;
  text-align: center;
}
.hero .display { margin-inline: auto; }
/* Two fixed lines, so the headline never re-wraps when the web font arrives */
.hero .display .reveal-line { display: block; }
.hero-foot {
  display: grid; gap: 1.5rem; justify-items: center;
  padding-bottom: 4.5rem;
}
@media (min-width: 56rem) { .hero-foot { padding-bottom: 5.5rem; } }
.hero-id { display: grid; gap: .15rem; }
.hero-id h1 { font-size: 1.0625rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; }
.hero-id p { font-size: .9375rem; max-width: 34ch; }
.orb {
  display: grid; place-items: center; text-align: center;
  width: 6.5rem; height: 6.5rem; border-radius: 50%;
  background: var(--surface-solid); color: var(--ink);
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em; line-height: 1.25; text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 18px 40px -18px rgba(18, 57, 59, .45);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.orb:hover { transform: scale(1.08); box-shadow: 0 24px 50px -16px rgba(18, 57, 59, .5); }
.hero-text { align-self: start; padding-top: clamp(1rem, 6vh, 4rem); }
@media (min-width: 56rem) {
  .hero-foot { grid-template-columns: 1fr auto 1fr; align-items: end; justify-items: stretch; text-align: left; }
  .hero-foot .orb { justify-self: center; }
  .hero-foot .hero-cap { justify-self: end; text-align: right; max-width: 24ch; }
}

/* Page load: the headline is unveiled line by line with a soft blur */
.js .reveal-line { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(.35em); }
.is-ready .reveal-line {
  opacity: 1; filter: none; transform: none;
  transition: opacity 1.4s var(--ease), filter 1.4s var(--ease), transform 1.4s var(--ease);
  transition-delay: calc(var(--d, 0) * 140ms + 200ms);
}
.js .hero-foot { opacity: 0; }
.is-ready .hero-foot { opacity: 1; transition: opacity 1.2s var(--ease) .9s; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(5rem, 14vw, 9rem); }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
  .split-left { max-width: 34rem; }
}

/* Profile */
.facts { display: grid; gap: 0; margin-top: 2.5rem; max-width: 38rem; }
.facts div { display: grid; gap: .1rem; padding: .9rem 0; border-top: 1px solid var(--line); }
.facts dt { font-size: .8125rem; font-weight: 700; color: var(--ink-soft); }
@media (min-width: 40rem) { .facts div { grid-template-columns: 13rem 1fr; gap: 1rem; } }
.keywords { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 2rem; }
@media (max-width: 40rem) { .keywords { flex-direction: column; gap: .55rem; } }
.keywords li {
  position: relative; padding-left: 1rem;
  font-size: .9375rem; font-weight: 500; color: var(--ink-soft);
}
.keywords li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.prose { display: grid; gap: 1.25rem; max-width: 38rem; }
.portrait { margin: 0; width: min(78%, 20rem); justify-self: start; }
.portrait img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 28%;
  border-radius: 999px 999px 1.75rem 1.75rem;
  background: var(--sky);
  box-shadow: 0 34px 60px -32px rgba(18, 57, 59, .5);
}
@media (min-width: 56rem) {
  .portrait { order: 2; width: min(100%, 23rem); justify-self: center; align-self: start; position: sticky; top: 7rem; }
}

/* ---------- Care counter ---------- */
.needs { border: 0; margin: 2rem 0 0; padding: 0; display: grid; gap: .1rem; }
.need { position: relative; display: block; }
.need input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.need > span {
  display: inline-flex; align-items: baseline; gap: .6rem;
  font-family: var(--serif); font-weight: 250;
  font-size: clamp(1.6rem, 6vw, 2.5rem); line-height: 1.25; letter-spacing: -.035em;
  color: color-mix(in srgb, var(--ink) 45%, transparent);
  transition: color .4s, transform .6s var(--ease);
}
.need > span::before {
  content: ""; width: .32em; height: .32em; border-radius: 50%; border: 1.5px solid currentColor;
  transform: translateY(-.12em); transition: background-color .3s;
}
.need:hover > span { color: color-mix(in srgb, var(--ink) 75%, transparent); }
.need input:checked + span { color: var(--ink); transform: translateX(.25em); }
.need input:checked + span::before { background: var(--accent); border-color: var(--accent); }
.need input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

.rx-stack { display: grid; align-self: end; }
.rx {
  grid-area: 1 / 1;
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  opacity: 0; visibility: hidden; transform: translateY(1.25rem);
  transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s .6s;
}
.rx.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease) .1s, transform .8s var(--ease) .1s; }
.rx h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.6rem, 4.6vw, 2.2rem); line-height: 1.15; letter-spacing: -.035em; }
.rx dl { display: grid; gap: .9rem; margin-top: 1.25rem; }
.rx dt { font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-soft); text-transform: uppercase; }
.rx dd { margin-top: .1rem; }
.rx a { color: var(--accent); font-weight: 700; }
@media (min-width: 56rem) {
  .care-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); align-items: end; }
}

/* ---------- Timeline ---------- */
.tl { position: relative; margin-top: 2.5rem; }
.tl-year {
  position: absolute; left: 50%; top: -1rem; transform: translateX(-50%);
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(8rem, 34vw, 24rem); line-height: .8; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 16%, transparent);
  pointer-events: none; white-space: nowrap; user-select: none;
  transition: opacity .5s var(--ease);
}
.tl-panels { position: relative; display: grid; min-height: 20rem; }
.tl-panel {
  grid-area: 1 / 1; max-width: 34rem; margin-left: auto; margin-right: auto;
  opacity: 0; visibility: hidden; transform: translateY(1rem);
  transition: opacity .5s var(--ease), transform .7s var(--ease), visibility 0s .5s;
}
.tl-panel.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .5s var(--ease) .05s, transform .7s var(--ease) .05s; }
.tl-date { font-size: .8125rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); }
.tl-panel h3 { margin-top: .4rem; font-family: var(--serif); font-weight: 300; font-size: clamp(1.75rem, 5.5vw, 2.5rem); line-height: 1.1; letter-spacing: -.035em; }
.tl-org { margin-top: .5rem; font-weight: 700; }
.tl-place { color: var(--ink-soft); font-size: .9375rem; }
.tl-panel ul { list-style: none; display: grid; gap: .5rem; margin-top: 1rem; }
.tl-panel li { position: relative; padding-left: 1.1rem; }
.tl-panel li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@media (min-width: 56rem) { .tl-panel { margin-left: 52%; margin-right: 0; } }

.tl-track { position: relative; height: 13rem; margin-top: 2rem; touch-action: pan-y; cursor: grab; user-select: none; }
.tl-track:active { cursor: grabbing; }
.tl-track svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Career as a molecular chain: bonds, double bonds and side atoms */
.tl-track line { stroke: var(--line); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke .5s var(--ease); }
.tl-track line.dbl { stroke-width: 2; }
.tl-track line.is-past { stroke: var(--accent); }
.tl-sides span {
  position: absolute; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #fff, rgba(146,188,208,.6) 35%, rgba(146,188,208,.25) 80%, rgba(146,188,208,.85));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.tl-sides span.s-salmon { background: radial-gradient(circle at 35% 30%, #fff, rgba(233,150,124,.6) 35%, rgba(233,150,124,.25) 80%, rgba(233,150,124,.85)); }
.tl-sides i { position: absolute; height: 2px; background: var(--line); transform-origin: 0 50%; border-radius: 2px; }
.tl-dot {
  position: absolute; transform: translate(-50%, -50%);
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-solid) 70%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--serif); font-size: .875rem; font-weight: 500;
  cursor: pointer;
  transition: width .6s var(--ease), height .6s var(--ease), background-color .4s, color .4s, box-shadow .6s var(--ease);
}
.tl-dot.is-past { background: radial-gradient(circle at 35% 30%, #fff, rgba(233,150,124,.55) 35%, rgba(233,150,124,.3) 80%, rgba(233,150,124,.8)); border-color: rgba(233,150,124,.6); }
.tl-dot::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px dashed var(--line); }
.tl-dot[aria-selected="true"] {
  width: 4.75rem; height: 4.75rem; background: var(--ink); color: var(--bg); font-size: 1.25rem;
  box-shadow: 0 16px 34px -14px rgba(18, 57, 59, .55);
}
.tl-hint { margin-top: .5rem; text-align: center; font-size: .8125rem; color: var(--ink-soft); }
@media (max-width: 40rem) { .tl-dot { width: 2.9rem; height: 2.9rem; font-size: .875rem; } .tl-dot[aria-selected="true"] { width: 3.9rem; height: 3.9rem; font-size: 1.05rem; } }

/* ---------- Expertise ---------- */
.cols { display: grid; gap: 3rem; margin-top: 3rem; }
@media (min-width: 56rem) { .cols { grid-template-columns: 1.3fr 1fr 1fr; gap: 3.5rem; } }
.cols h3 { font-family: var(--serif); font-weight: 300; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.03em; padding-bottom: .9rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.list { list-style: none; display: grid; gap: .55rem; }
.list li { position: relative; padding-left: 1.1rem; }
.list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--ink); }
.sub { margin-top: 2rem; }
.sub h4 { margin: 0 0 .5rem; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-soft); }
.small { font-size: .9375rem; }

/* ---------- Contact ---------- */
.contact { text-align: center; min-height: 100svh; display: grid; align-content: center; }
.contact .h2 { max-width: 18ch; margin-inline: auto; }
.email {
  display: inline-block; margin-top: 2.5rem;
  font-family: var(--serif); font-weight: 200;
  font-size: clamp(1.5rem, 6.2vw, 3.25rem); line-height: 1.15; letter-spacing: -.035em; text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--accent), var(--accent)) center bottom / 0% 1px no-repeat; padding-bottom: .1em;
  transition: background-size .7s var(--ease);
}
.email:hover, .email:focus-visible { background-size: 100% 1px; }
.contact-rows { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 2rem; }
.contact-rows a, .contact-rows span { text-decoration: none; }
.foot { padding: 2rem var(--gutter) 6rem; text-align: center; font-size: .8125rem; color: var(--ink-soft); }

/* ---------- Fixed corner instruments ---------- */
.wave-ind {
  position: fixed; z-index: 20; left: calc(env(safe-area-inset-left, 0px) + var(--gutter));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1.4rem);
  width: 7.5rem; height: 1.5rem; pointer-events: none; overflow: visible;
}
.wave-ind path { fill: none; stroke: color-mix(in srgb, var(--ink) 40%, transparent); stroke-width: 1.2; }
.wave-ind circle { fill: var(--accent); }
.mode {
  position: fixed; z-index: 30;
  right: calc(env(safe-area-inset-right, 0px) + var(--gutter));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
  width: 48px; height: 48px; padding: 0; justify-content: center;
}
.mode svg { width: 1.25rem; height: 1.25rem; display: none; }
.mode[data-mode="auto"] .i-auto, .mode[data-mode="light"] .i-light, .mode[data-mode="dark"] .i-dark { display: block; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ---------- Inner pages (privacy policy, 404) ---------- */
.inner { padding-top: 7.5rem; padding-bottom: 6rem; }
.inner .h2 { margin-bottom: 2rem; }
.page-content { max-width: 44rem; display: grid; gap: 1.1rem; }
.page-content h2 { font-weight: 300; font-size: 1.75rem; letter-spacing: -.03em; line-height: 1.2; margin: 1.5rem 0 0; }
.page-content h3 { font-weight: 600; font-size: 1.125rem; margin: 1rem 0 0; }
.page-content ul, .page-content ol { padding-left: 1.25rem; display: grid; gap: .4rem; }
.page-content a { color: var(--accent); }
.page-content img { max-width: 100%; height: auto; border-radius: 1rem; }
.back { margin-bottom: 2rem; }
.foot a { color: inherit; }

/* ---------- 404 ---------- */
.e404 {
  min-height: 100svh;
  display: grid; align-content: end; justify-items: center; gap: 1.25rem;
  padding-top: 6rem; padding-bottom: clamp(5rem, 11vh, 7rem);
  text-align: center;
}
.e404 .h2 { max-width: 20ch; }
.e404 .lead { max-width: 36rem; }
.e404-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .75rem; }
