/* angelomanos.com — one stylesheet, two schemes. Tokens on :root; dark is the
   default, light follows the OS preference. No web fonts: the system stack is
   fast and looks native everywhere. */
:root {
  --bg: #0f1216;
  --bg-raised: #161b22;
  --bg-sunken: #0a0d10;
  --fg: #e6e8eb;
  --fg-muted: #9aa4b2;
  --line: #273039;
  --accent: #f2b94f;
  --accent-ink: #1a1304;
  --link: #8ec5ff;
  --code-bg: #12171d;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 10px 30px rgba(0, 0, 0, 0.35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 14px;
  --container: 72rem;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfaf7;
    --bg-raised: #ffffff;
    --bg-sunken: #f1efe9;
    --fg: #1d2127;
    --fg-muted: #5c6673;
    --line: #e3dfd5;
    --accent: #b9770e;
    --accent-ink: #ffffff;
    --link: #0b5fc0;
    --code-bg: #22272e; /* keep code dark in both schemes: the hljs theme is dark */
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(20, 20, 10, 0.06);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 750; margin-top: 0; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
code, pre, kbd { font-family: var(--mono); }
img { max-width: 100%; height: auto; }

.container { width: min(var(--container), 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--accent); color: var(--accent-ink); padding: 0.5rem 1rem; z-index: 10; }

/* header */
.site-header { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(10px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; }
.nav ul { list-style: none; display: flex; gap: 1.1rem; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--fg); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--accent); }
.brand { font-weight: 800; letter-spacing: -0.02em; }

/* sections */
main > section { padding: 3.5rem 0; border-bottom: 1px solid var(--line); }
main > section:last-child { border-bottom: 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--accent); margin-bottom: 0.75rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: 1.2rem; color: var(--fg-muted); max-width: 46rem; }
.muted { color: var(--fg-muted); font-weight: 500; }

.hero { padding-top: 5rem; }
.hero h1 { margin-bottom: 0.35em; }
.hero__links { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn { display: inline-block; padding: 0.65rem 1.1rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; border: 1px solid transparent; }
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.grid { display: grid; gap: 1rem; }
.grid--skills { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.grid--projects { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.grid--mlops { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1.5rem 0; }
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card h3 a { color: inherit; }
.card--flat { box-shadow: none; background: var(--bg-sunken); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li { font-size: 0.86rem; padding: 0.25rem 0.6rem; border-radius: 999px; background: var(--bg-sunken); border: 1px solid var(--line); color: var(--fg); }
.chips--small li { font-size: 0.78rem; padding: 0.15rem 0.5rem; }

.feature { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%); margin-inline: calc(-1 * (100vw - min(var(--container), 100vw - 2rem)) / 2); padding-inline: calc((100vw - min(var(--container), 100vw - 2rem)) / 2); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline > li { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.timeline > li:first-child { border-top: 0; }
.timeline__when { color: var(--fg-muted); font-size: 0.92rem; font-variant-numeric: tabular-nums; padding-top: 0.2rem; }
.timeline__what h3 { margin-bottom: 0.4rem; }
.timeline__what ul { margin: 0; color: var(--fg); }
.timeline__what li { margin-bottom: 0.3rem; }
@media (max-width: 640px) { .timeline > li { grid-template-columns: 1fr; gap: 0.25rem; } }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-card { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.post-card:first-child { border-top: 0; }
.post-card__title { font-size: 1.2rem; font-weight: 700; color: var(--fg); text-decoration: none; }
.post-card__title:hover { color: var(--accent); }
.post-card__meta { color: var(--fg-muted); font-size: 0.9rem; margin: 0.25rem 0 0.4rem; }
.post-card__summary { margin: 0; max-width: 60rem; }
.tag { display: inline-block; font-size: 0.78rem; padding: 0.05rem 0.5rem; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-muted); }

.page-head { padding-top: 3rem; }

/* post */
.post { padding: 3rem 0 4rem; max-width: 46rem; margin-inline: auto; }
.post__head h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.post__meta { color: var(--fg-muted); font-size: 0.95rem; }
.post__foot { margin-top: 3rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.prose { font-size: 1.1rem; }
.prose h2 { margin-top: 2.4rem; font-size: 1.6rem; }
.prose h3 { margin-top: 1.8rem; font-size: 1.2rem; }
.prose h2 .anchor, .prose h3 .anchor, .prose h4 .anchor { color: inherit; text-decoration: none; }
.prose h2 .anchor:hover::after, .prose h3 .anchor:hover::after { content: " #"; color: var(--accent); }
.prose blockquote { margin: 1.5rem 0; padding: 0.25rem 1.25rem; border-left: 3px solid var(--accent); color: var(--fg-muted); background: var(--bg-sunken); border-radius: 0 8px 8px 0; }
.prose pre { background: var(--code-bg); color: #adbac7; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem; overflow-x: auto; font-size: 0.9rem; line-height: 1.5; margin: 1.25rem 0; }
.prose code { font-size: 0.92em; }
.prose :not(pre) > code { background: var(--bg-sunken); border: 1px solid var(--line); padding: 0.1em 0.4em; border-radius: 6px; }
.prose table { border-collapse: collapse; width: 100%; margin: 1.25rem 0; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.5rem 0.7rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-sunken); }
.prose img { border-radius: 10px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; color: var(--fg-muted); font-size: 0.9rem; }
.site-footer p { margin: 0; }

/* Phone: keep the sticky header to one row — a two-line header eats a fifth
   of a 390px-tall viewport before the content starts. */
@media (max-width: 640px) {
  .nav { padding: 0.6rem 0; gap: 0.75rem; }
  .brand { white-space: nowrap; font-size: 0.95rem; }
  .nav ul { gap: 0.7rem; }
  .nav a { font-size: 0.85rem; }
}
