/* Tokyo Night Storm — light day / dark storm */
:root {
  --bg: #e1e2e7;
  --text: #343b58;
  --text-muted: #848cb5;
  --link: #2e7de9;
  --hr: #b4b5c0;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #24283b;
    --text: #c0caf5;
    --text-muted: #565f89;
    --link: #7aa2f7;
    --hr: #292e42;
  }
}

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

html {
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  line-height: 1.2;
  padding: 3rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  body {
    padding: 2rem 1.25rem;
  }
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:hover {
  opacity: 0.7;
}

/* ── Navigation ── */
nav {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

nav a {
  color: var(--text-muted);
}

/* ── Headings ── */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

/* ── Body text ── */
p {
  line-height: 1.2;
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 0.6rem;
}

ul li {
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

ul li:last-child {
  margin-bottom: 0;
}

em {
  font-style: italic;
}

::selection {
  background-color: var(--text);
  color: var(--bg);
}

/* ── Divider ── */
hr {
  border: none;
  border-top: 1px solid var(--hr);
  margin: 2rem 0;
}

/* ── Sections ── */
section {
  margin-bottom: 2rem;
}

section:last-child {
  margin-bottom: 0;
}

/* ── CV entry (date + role block) ── */
.entry {
  margin-bottom: 1.6rem;
}

.entry:last-child {
  margin-bottom: 0;
}

.meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

/* ── Contact list (no bullets) ── */
.contact-list {
  list-style: none;
  padding: 0;
}

.contact-list li {
  margin-bottom: 0.3rem;
  line-height: 1.2;
}

/* ── Tech tag list ── */
.tag-list {
  color: var(--text);
  line-height: 1.4;
}

/* ── Home links line ── */
.links {
  margin-top: 2rem;
  font-size: 0.95rem;
}

.links a {
  color: var(--link);
}

/* ── Promotion group (LinkedIn-style) ── */
.company {
  margin-bottom: 1.6rem;
}

.company:last-child {
  margin-bottom: 0;
}

.company-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.company-total {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.promotion {
  padding-left: 1rem;
  border-left: 2px solid var(--hr);
  margin-bottom: 1rem;
}

.promotion:last-child {
  margin-bottom: 0;
}

.promotion-role {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.15rem;
  line-height: 1.2;
}

.promotion-period {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

/*
 * ── Tokyo Night Storm accent highlights ──
 *
 * Colors have semantic meaning — each maps to a vertical:
 *
 * | Color  | Vertical         | Words                                              |
 * |--------|------------------|----------------------------------------------------|
 * | Purple | Creative         | creative person, design, creative coding             |
 * | Green  | Engineering      | engineering, code, Staff Software Engineer, Qonto, WebGL, Oakley |
 * | Blue   | Thinking         | philosophy, shoshin, dig, introspection             |
 * | Cyan   | Water            | swim, freedive, open water competitions             |
 * | Yellow | Data / Teaching  | data visualisation, UN IPCC, IED Turin               |
 */
:root {
  --accent-blue:    #2e7de9;
  --accent-purple:  #9854f1;
  --accent-green:   #587539;
  --accent-yellow:  #8c6c3e;
  --accent-red:     #c64343;
  --accent-cyan:    #007197;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-blue:    #7aa2f7;
    --accent-purple:  #bb9af7;
    --accent-green:   #9ece6a;
    --accent-yellow:  #e0af68;
    --accent-red:     #f7768e;
    --accent-cyan:    #7dcfff;
  }
}

.hl-blue,
.hl-purple,
.hl-green,
.hl-yellow,
.hl-red,
.hl-cyan {
  padding: 0 0.15em;
  border-radius: 2px;
}

.hl-blue   { color: var(--accent-blue); }
.hl-purple { color: var(--accent-purple); }
.hl-green  { color: var(--accent-green); }
.hl-yellow { color: var(--accent-yellow); }
.hl-red    { color: var(--accent-red); }
.hl-cyan   { color: var(--accent-cyan); }

.hl-blue:hover   { background-color: var(--accent-blue);   color: var(--bg); }
.hl-purple:hover { background-color: var(--accent-purple); color: var(--bg); }
.hl-green:hover  { background-color: var(--accent-green);  color: var(--bg); }
.hl-yellow:hover { background-color: var(--accent-yellow); color: var(--bg); }
.hl-red:hover    { background-color: var(--accent-red);    color: var(--bg); }
.hl-cyan:hover   { background-color: var(--accent-cyan);   color: var(--bg); }
