/* alexprezioso.com
   Colors from Alex's cards: navy #0b3550 to #041b2b, accent #e8450a.
   #e8450a is used only for shapes and lines; text in orange uses --accent-text (AA contrast).
   When you change this file, bump ?v= in the <link> of every page. */

:root {
  --navy: #0b3550;
  --navy-deep: #041b2b;
  --navy-night: #020b12;
  --orange: #e8450a;

  --paper: #f7f5f0;
  --card: #ffffff;
  --ink: #102a3c;
  --muted: #4b5f6d;
  --line: #ddd8cd;
  --accent-text: #b83806;
  --button: #b83806;
  --button-ink: #ffffff;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #041b2b;
    --card: #082a40;
    --ink: #e6edf2;
    --muted: #a3b6c4;
    --line: #17384d;
    --accent-text: #ff7a45;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

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

a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: 16px; top: -100px;
  background: var(--card); color: var(--ink); padding: 8px 12px; z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 46rem; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  background: var(--navy-deep);
  color: #ffffff;
}
.site-header .wrap {
  max-width: 60rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px; padding-top: 14px; padding-bottom: 14px;
}
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; text-decoration: none; }
.brand:hover { color: #ffffff; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.9375rem; }
.site-nav a { text-decoration: none; color: #d5e0e8; }
.site-nav a:hover { color: #ffffff; text-decoration: underline; text-decoration-color: var(--orange); }
.site-nav .lang a { color: #ffffff; font-weight: 600; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 55%, var(--navy-night) 100%);
  color: #ffffff;
}
.hero::after {
  content: ""; position: absolute; width: 96px; height: 96px; border-radius: 50%;
  background: var(--orange); right: -20px; top: 28px;
}
.hero .wrap {
  max-width: 60rem; position: relative; z-index: 1;
  display: grid; gap: 28px; padding-top: 48px; padding-bottom: 56px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em;
  font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: 1.02; margin: 0;
}
.hero .bar { width: 72px; height: 6px; background: var(--orange); margin: 22px 0 20px; }
.hero .lede { font-size: clamp(1.15rem, 3.2vw, 1.4rem); line-height: 1.5; color: #d5e0e8; margin: 0; max-width: 36rem; }
.hero .lede strong { color: #ffffff; font-weight: 600; }
.portrait {
  width: 152px; height: 152px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  background: var(--navy);
  color: #d5e0e8; font-size: 0.8rem; text-align: center;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-block; padding: 11px 18px; border-radius: 6px;
  background: var(--button); color: var(--button-ink); font-weight: 600; text-decoration: none; line-height: 1.3;
}
.button:hover { color: var(--button-ink); background: #9e3005; }
.button.ghost { background: transparent; border: 2px solid rgba(255, 255, 255, 0.7); color: #ffffff; padding: 9px 16px; }
.button.ghost:hover { border-color: var(--orange); color: #ffffff; }

@media (min-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr auto; align-items: center; padding-top: 72px; padding-bottom: 80px; }
  .portrait { width: 208px; height: 208px; order: 2; }
  .hero::after { width: 128px; height: 128px; right: 40px; top: 36px; }
}

/* Sections */
main section { padding: 56px 0 8px; }
main section + section { border-top: 1px solid var(--line); margin-top: 40px; }
h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 5vw, 2.2rem);
  line-height: 1.15; margin: 0 0 20px;
}
h2::before { content: ""; display: block; width: 48px; height: 5px; background: var(--orange); margin-bottom: 16px; }
h3 { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; line-height: 1.25; margin: 0 0 6px; }
p { margin: 0 0 16px; }

.kicker {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-text); margin: 0 0 8px;
}
.meta { color: var(--muted); font-size: 0.9375rem; margin: 0 0 10px; }
.subtitle { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--muted); margin: 0 0 14px; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 20px; margin: 0 0 20px;
}
.card.feature { border-top: 5px solid var(--orange); }
.card p:last-child { margin-bottom: 0; }

.item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.item:first-of-type { padding-top: 4px; }
.item:last-child { border-bottom: 0; }
.item p:last-child { margin-bottom: 0; }

.more { font-weight: 600; }

.bio {
  border-left: 4px solid var(--orange); padding: 4px 0 4px 16px; margin: 24px 0 0;
}
.bio .kicker { margin-bottom: 6px; }

.links { list-style: none; margin: 0 0 20px; padding: 0; }
.links li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.links li:last-child { border-bottom: 0; }
.links a { font-weight: 600; overflow-wrap: anywhere; }
.links span { color: var(--muted); }

/* Footer */
.site-footer { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; }
.site-footer p { margin: 0 0 6px; }

/* 404 */
.notfound { padding: 72px 0; }
.notfound h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.1; margin: 0 0 16px; }

/* Work: lists and career timeline */
.plain { margin: 0; padding-left: 1.1rem; }
.plain li { margin: 0 0 10px; }
.plain li:last-child { margin-bottom: 0; }
h3.group { margin: 40px 0 14px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--orange); }
.timeline li { padding: 2px 0 20px 18px; }
.timeline li:last-child { padding-bottom: 4px; }
.timeline p { margin: 0 0 4px; }
.timeline .when { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; color: var(--accent-text); }
