/* =============================================================================
   markono.dev — stylesheet

   Palette is lifted from the printed CV (cv-marko-nonninger - blocks.html) so
   the site and the PDF read as one identity:
       #3f4b5b  slate    — masthead / hero band
       #4d6f7e  accent   — headings, rules, marks
       #dfe6ea  soft     — fills
       #2f3640  ink      — body text
       #3f6d99  link

   Structure
     1. Tokens          — light + dark, one place
     2. Reset & base
     3. Layout helpers  — .shell, .section, .kicker
     4. Components      — buttons, chips, badges, icons
     5. Header & nav
     6. Hero & stats
     7. About
     8. Projects
     9. Timeline
    10. Skills
    11. Services
    12. Contact & footer
    13. Motion & print
   ============================================================================= */

/* ============================================================ 1. TOKENS ==== */

:root {
  /* Colour — light */
  --bg:            #ffffff;
  --bg-alt:        #f4f6f8;
  --bg-deep:       #3f4b5b;
  --bg-deep-2:     #364150;

  --ink:           #2f3640;
  --ink-strong:    #1b222b;
  --muted:         #6b7683;

  --line:          #e2e6ea;
  --line-strong:   #cfd7de;

  --accent:        #4d6f7e;
  --accent-strong: #3b5967;
  --accent-soft:   #dfe6ea;
  --link:          #3f6d99;

  --on-deep:       #ffffff;
  --on-deep-soft:  #c9d3dd;
  --on-deep-line:  rgba(255, 255, 255, .16);

  --live:          #2f7d63;
  --live-bg:       #e2f2ec;
  --wip:           #8a6320;
  --wip-bg:        #f6eddc;

  --shadow-sm:     0 1px 2px rgba(27, 34, 43, .06), 0 2px 8px rgba(27, 34, 43, .05);
  --shadow-md:     0 2px 6px rgba(27, 34, 43, .07), 0 12px 32px rgba(27, 34, 43, .10);

  /* Type */
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Mono",
               Consolas, "Liberation Mono", monospace;

  /* Space & shape */
  --shell:   1120px;
  --gutter:  clamp(1.25rem, 5vw, 3rem);
  --radius:  14px;
  --radius-sm: 9px;

  --header-h: 68px;
}

/* Dark palette. main.js writes data-theme on <html>: "light", "dark" or "auto".
   Two selectors need it — an explicit dark choice, and "auto" while the OS is
   dark — so the block below is repeated once inside the media query. Keep the
   two copies in sync; they are the only duplicated rules in this file. */
:root[data-theme="light"] { color-scheme: light; }

:root[data-theme="dark"] {
  --bg:            #131b23;
  --bg-alt:        #18222c;
  --bg-deep:       #0e151b;
  --bg-deep-2:     #0a1015;

  --ink:           #d7e0e8;
  --ink-strong:    #f1f6fa;
  --muted:         #90a0ad;

  --line:          #26333f;
  --line-strong:   #354756;

  --accent:        #82b4c6;
  --accent-strong: #a2cddc;
  --accent-soft:   #1d2b35;
  --link:          #8ab9df;

  --on-deep:       #f1f6fa;
  --on-deep-soft:  #a9b8c5;
  --on-deep-line:  rgba(255, 255, 255, .12);

  --live:          #6fceac;
  --live-bg:       #163229;
  --wip:           #e0b970;
  --wip-bg:        #33280f;

  --shadow-sm:     0 1px 2px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .22);
  --shadow-md:     0 2px 6px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .3);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg:            #131b23;
    --bg-alt:        #18222c;
    --bg-deep:       #0e151b;
    --bg-deep-2:     #0a1015;

    --ink:           #d7e0e8;
    --ink-strong:    #f1f6fa;
    --muted:         #90a0ad;

    --line:          #26333f;
    --line-strong:   #354756;

    --accent:        #82b4c6;
    --accent-strong: #a2cddc;
    --accent-soft:   #1d2b35;
    --link:          #8ab9df;

    --on-deep:       #f1f6fa;
    --on-deep-soft:  #a9b8c5;
    --on-deep-line:  rgba(255, 255, 255, .12);

    --live:          #6fceac;
    --live-bg:       #163229;
    --wip:           #e0b970;
    --wip-bg:        #33280f;

    --shadow-sm:     0 1px 2px rgba(0, 0, 0, .3), 0 2px 8px rgba(0, 0, 0, .22);
    --shadow-md:     0 2px 6px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .3);
  }
}


/* ==================================================== 2. RESET & BASE ==== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink-strong);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.012em;
}

p  { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  text-decoration: none;
}


/* =================================================== 3. LAYOUT HELPERS ==== */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
}
.section--about   { background: var(--bg); }
.section--work    { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--path    { background: var(--bg); }
.section--skills  { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--services{ background: var(--bg); }

.section__head { max-width: 46rem; margin-bottom: clamp(2.25rem, 5vw, 3.25rem); }
.section__title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: .7rem; }
.section__intro { color: var(--muted); font-size: 1.075rem; max-width: 40rem; }

/* Small mono label above every section title — the "code" side of the brand. */
.kicker {
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .85rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  flex: 0 0 auto;
  border-radius: 2px;
}
.kicker--onDark { color: var(--on-deep-soft); }


/* ======================================================= 4. COMPONENTS ==== */

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ink-strong);
  --btn-bd: var(--line-strong);

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .78em 1.5em;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: .975rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease,
              background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--accent);
  --btn-fg: #ffffff;
  --btn-bd: var(--accent);
}
.btn--primary:hover { --btn-bg: var(--accent-strong); --btn-bd: var(--accent-strong); }
/* The dark accent is a light blue, so filled buttons flip to dark ink. */
:root[data-theme="dark"] .btn--primary { --btn-fg: #0d161c; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .btn--primary { --btn-fg: #0d161c; }
}

.btn--outline { --btn-bg: var(--bg); }
.btn--outline:hover { --btn-bd: var(--accent); --btn-fg: var(--accent); }

/* Ghost sits on the dark hero band. */
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--on-deep);
  --btn-bd: var(--on-deep-line);
}
.btn--ghost:hover { --btn-bd: var(--on-deep); }

.btn--small { padding: .6em 1.15em; font-size: .89rem; }

/* Technology chips ------------------------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.chip {
  font-family: var(--font-mono);
  font-size: .78rem;
  line-height: 1;
  letter-spacing: .01em;
  padding: .5em .75em;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  white-space: nowrap;
}

/* Status badges ---------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .42em .7em;
  border-radius: 5px;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge--live { background: var(--live-bg); color: var(--live); }
.badge--wip  { background: var(--wip-bg);  color: var(--wip); }
.badge--oss  { background: var(--accent-soft); color: var(--accent-strong); }

/* Tick list -------------------------------------------------------------- */
.ticks { display: grid; gap: .6rem; margin-bottom: 1.75rem; }
.ticks li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--ink);
  font-size: .99rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 10px; height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}


/* ==================================================== 5. HEADER & NAV ==== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(27, 34, 43, .06);
}

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: .55rem;
  color: var(--ink-strong);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  font-family: var(--font-mono);
  font-size: .95rem;
  font-weight: 700;
  color: var(--accent);
}
.brand__text { font-size: 1.06rem; }
.brand__dot { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.site-nav__link {
  position: relative;
  padding: .5rem .8rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 600;
  transition: color .18s ease, background-color .18s ease;
}
.site-nav__link:hover { color: var(--ink-strong); background: var(--bg-alt); text-decoration: none; }
.site-nav__link.is-active { color: var(--accent); }
.site-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: .8rem; right: .8rem; bottom: .18rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.site-nav__link--cta {
  margin-left: .4rem;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
}
.site-nav__link--cta:hover { background: var(--accent-soft); color: var(--accent-strong); }

.header-tools { display: flex; align-items: center; gap: .5rem; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--bg-alt);
}
.lang-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .38em .72em;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}
.lang-switch__btn:hover { color: var(--ink-strong); }
.lang-switch__btn[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
}
:root[data-theme="dark"] .lang-switch__btn[aria-pressed="true"] { color: #0d161c; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .lang-switch__btn[aria-pressed="true"] { color: #0d161c; }
}

.icon-btn {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--muted);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn .icon { width: 18px; height: 18px; }

/* Only one of sun/moon shows, matching the resolved theme: the sun means
   "currently light, click for dark", the moon the reverse. */
.icon--moon { display: none; }
:root[data-theme="dark"] .icon--sun  { display: none; }
:root[data-theme="dark"] .icon--moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .icon--sun  { display: none; }
  :root[data-theme="auto"] .icon--moon { display: block; }
}

.nav-toggle { display: none; }
.nav-toggle__bars { display: grid; gap: 4px; width: 17px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; }

  .site-nav {
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.25rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .site-nav__link { padding: .85rem .25rem; font-size: 1.05rem; border-radius: 0; }
  .site-nav__link + .site-nav__link { border-top: 1px solid var(--line); }
  .site-nav__link.is-active::after { display: none; }
  .site-nav__link--cta { margin: .8rem 0 0; border-radius: 999px; text-align: center; padding: .85rem; }
  .site-nav__link--cta + * { border-top: 0; }
}


/* ====================================================== 6. HERO & STATS === */

.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(255, 255, 255, .09), transparent 58%),
    linear-gradient(168deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
  color: var(--on-deep);
  padding-block: clamp(3.25rem, 8vw, 6rem) 0;
  overflow: hidden;
}

/* Faint code-grid texture — the "MarkoNo.Code" side of the brand, quiet. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(80% 70% at 70% 25%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(80% 70% at 70% 25%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-deep-soft);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1.4rem;
}
.hero .eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #5fbf95;
  box-shadow: 0 0 0 4px rgba(95, 191, 149, .2);
  flex: 0 0 auto;
}

.hero__name {
  font-size: clamp(2.9rem, 7.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: var(--on-deep);
  margin-bottom: .55rem;
}

.hero__role {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 300;
  color: var(--on-deep);
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--on-deep-line);
  max-width: 34ch;
}

.hero__lead {
  color: var(--on-deep-soft);
  font-size: 1.075rem;
  max-width: 56ch;
}
.hero__lead--secondary { color: var(--on-deep-soft); opacity: .85; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.hero__social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--on-deep-soft);
  font-size: .93rem;
  font-weight: 600;
}
.social-link:hover { color: var(--on-deep); text-decoration: none; }
.social-link .icon { width: 17px; height: 17px; }

.hero__portrait {
  position: relative;
  justify-self: center;
  width: min(340px, 100%);
}
.hero__portrait img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
/* Thin accent arc, echoing the CV's accent bars. */
.hero__portrait::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  border-bottom-color: transparent;
  border-left-color: transparent;
  transform: rotate(-35deg);
  pointer-events: none;
}

/* Stat strip. Dividers are borders rather than a grid gap showing a background
   colour, so the hero's gradient stays continuous behind the strip. */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--on-deep-line);
}
.stat {
  padding: 1.6rem 1.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.stat:not(:first-child) { border-left: 1px solid var(--on-deep-line); }
.stat:first-child { padding-left: 0; }
.stat__value {
  font-size: clamp(1.55rem, 3.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--on-deep);
  letter-spacing: -0.02em;
}
.stat__label {
  font-size: .84rem;
  line-height: 1.45;
  color: var(--on-deep-soft);
}

@media (max-width: 860px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero__portrait { order: -1; justify-self: start; width: min(180px, 45%); }
  .hero__portrait::before { inset: -10px; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 1.3rem 1.25rem 1.6rem; }
  /* Only the second column keeps a divider; the third item starts a new row. */
  .stat:not(:first-child) { border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--on-deep-line); }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--on-deep-line); padding-top: 1.3rem; }
}
@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stat:nth-child(even) { border-left: 0; padding-left: 0; }
  .stat:not(:first-child) { border-top: 1px solid var(--on-deep-line); padding-top: 1.3rem; }
}


/* =========================================================== 7. ABOUT ==== */

.about { max-width: 54rem; }
.about__title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  max-width: 22ch;
  margin-bottom: 1.75rem;
}
.about__body {
  display: grid;
  gap: 1.1rem;
  color: var(--ink);
  font-size: 1.075rem;
  border-left: 3px solid var(--accent-soft);
  padding-left: clamp(1.25rem, 3vw, 2rem);
}


/* ======================================================== 8. PROJECTS ==== */

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.6vw, 1.75rem);
}

.project {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.project:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

/* Tap2Card gets the full row — it is the live flagship. */
.project--feature {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
}

.project__mark {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent-strong);
}
/* Each mark carries its app's own brand colour, so the cards echo the products
   they link to. The two values are picked at a mid lightness that clears 3:1
   against the chip fill in both themes, which is why they are literals rather
   than theme tokens. Sources: Tap2Card `TealPrimary`, Ausgetrunken `Burgundy`. */
/* Shipped apps carry their real store icon, full-bleed in the tile. The tile
   clips it to the same radius as the line-icon variant, so both kinds sit in
   one row without reading as two systems. The hairline keeps the Ausgetrunken
   icon (near-black) from dissolving into the card on the dark theme. */
.project__mark--app {
  background: none;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line);
}
.project__mark--app img { width: 100%; height: 100%; display: block; }

.project__mark svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.project--feature .project__mark { width: 64px; height: 64px; }
.project--feature .project__mark svg { width: 32px; height: 32px; }

.project__body { flex: 1 1 auto; min-width: 0; }

.project__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem .9rem;
  margin-bottom: .45rem;
}
.project__name { font-size: 1.4rem; }
.project--feature .project__name { font-size: 1.65rem; }

.project__tagline {
  color: var(--accent);
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: .85rem;
}
.project__text { color: var(--muted); margin-bottom: 1.4rem; }

.project__techlabel {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem;
}

.project__links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.5rem;
}

.project__note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  font-style: italic;
}

/* The feature card spans the full row, so its body splits in two rather than
   leaving half the card empty: prose and buttons left, tech stack right. */
@media (min-width: 801px) {
  .project--feature .project__body {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 3.5rem);
    grid-template-areas:
      "head  head"
      "tag   tag"
      "text  tech"
      "links tech";
    align-items: start;
  }
  .project--feature .project__head    { grid-area: head; }
  .project--feature .project__tagline { grid-area: tag; }
  .project--feature .project__text    { grid-area: text; margin-bottom: 0; }
  .project--feature .project__tech    { grid-area: tech; }
  .project--feature .project__links   { grid-area: links; }
}

@media (max-width: 800px) {
  .projects { grid-template-columns: 1fr; }
  .project--feature { flex-direction: column; }
}


/* ======================================================== 9. TIMELINE ==== */

.timeline {
  position: relative;
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem);
  padding-left: clamp(1.75rem, 4vw, 2.5rem);
  border-left: 2px solid var(--line);
  max-width: 54rem;
}

.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(clamp(1.75rem, 4vw, 2.5rem) * -1 - 7px);
  top: .5rem;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
/* The current role is filled in; earlier ones are outlined. */
.timeline__item:first-child::before { background: var(--accent); }
.timeline__item--education::before { border-color: var(--line-strong); }

.timeline__meta {
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.timeline__item--education .timeline__meta { color: var(--muted); }

.timeline__role { font-size: 1.2rem; margin-bottom: .2rem; }
.timeline__company { color: var(--ink); font-weight: 600; margin-bottom: .7rem; }
.timeline__text { color: var(--muted); margin: 0; }


/* ========================================================== 10. SKILLS ==== */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1.25rem, 2.6vw, 1.75rem);
}

.skill-group {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.35rem, 2.6vw, 1.75rem);
}
.skill-group__title {
  font-size: 1.02rem;
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
}


/* ======================================================== 11. SERVICES ==== */

.offers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.25rem, 2.6vw, 1.75rem);
}

.offer {
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3.2vw, 2.5rem);
}
.offer__title {
  font-size: 1.3rem;
  margin-bottom: .85rem;
  padding-top: 1rem;
  border-top: 3px solid var(--accent);
}
.offer__text { color: var(--muted); margin-bottom: 1.4rem; }
.offer .ticks { margin-top: auto; }
.offer .btn { align-self: flex-start; }


/* =============================================== 12. CONTACT & FOOTER ==== */

.section--contact {
  background:
    radial-gradient(110% 90% at 15% 10%, rgba(255, 255, 255, .07), transparent 60%),
    linear-gradient(168deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
  color: var(--on-deep);
}

/* Wider than the 56rem this block started at: at four cards across it gives the
   tiles room to breathe and leaves "contact@markono.dev" comfortably on one
   line. Still short of the 1120px .shell, so the section keeps its own rhythm. */
.contact { max-width: 64rem; }
.contact__title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--on-deep);
  margin-bottom: .9rem;
}
.contact__lead {
  color: var(--on-deep-soft);
  font-size: 1.1rem;
  max-width: 46ch;
  margin-bottom: 2.75rem;
}

/* Separate cards rather than one gapped grid: an odd number of entries then
   leaves clean space instead of an empty filled cell. */
.contact__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr));
  gap: .85rem;
}
.contact__item {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--on-deep-line);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.contact__label {
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-deep-soft);
}
/* "contact@markono.dev" fits one line at the 58rem row width (see .contact).
   The <wbr> before the "@" in the markup and "break-word" rather than
   "anywhere" are the safety net: the font stack starts at "Segoe UI" and falls
   back to different metrics on macOS and Linux, so where the line does not
   quite fit, the break lands on a readable boundary instead of mid-domain. */
.contact__value {
  color: var(--on-deep);
  font-weight: 600;
  font-size: .95rem;
  overflow-wrap: break-word;
}
a.contact__value { border-bottom: 1px solid var(--on-deep-line); padding-bottom: 2px; align-self: flex-start; }
a.contact__value:hover { border-bottom-color: var(--on-deep); text-decoration: none; }
.contact__value--plain { font-weight: 500; color: var(--on-deep-soft); }

.contact__note {
  margin-top: 1.5rem;
  color: var(--on-deep-soft);
  font-size: .9rem;
}

.site-footer {
  background: var(--bg-deep-2);
  color: var(--on-deep-soft);
  border-top: 1px solid var(--on-deep-line);
  padding-block: 2.25rem;
  font-size: .89rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer__brand { display: flex; flex-direction: column; gap: .15rem; }
.site-footer__brand .brand__text { color: var(--on-deep); font-weight: 700; font-size: 1rem; }
.site-footer__brand .brand__dot { color: #82b4c6; }
.site-footer__tagline { color: var(--on-deep-soft); font-size: .84rem; }
.site-footer__meta { display: flex; flex-direction: column; gap: .15rem; }
.site-footer__built { opacity: .7; font-size: .82rem; }
.site-footer__top {
  color: var(--on-deep-soft);
  font-weight: 600;
  border-bottom: 1px solid var(--on-deep-line);
  padding-bottom: 2px;
}
.site-footer__top:hover { color: var(--on-deep); text-decoration: none; }


/* ================================================= 13. MOTION & PRINT ==== */

/* ============================================================== 404 PAGE ===
   Served by Cloudflare Pages for unknown paths. The page carries no JS: the
   CSP in _headers is script-src 'self', so an inline script that reads the
   stored theme is not an option -- it follows prefers-color-scheme only. For
   the same reason both languages are shown at once instead of switched. */
.notfound {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 4rem;
}
.notfound .kicker { justify-content: center; }
.notfound__title {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  line-height: 1.15;
  color: var(--ink-strong);
  margin: 0 0 1.1rem;
}
.notfound__text {
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto;
}
.notfound__text--alt {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.notfound__actions { margin-top: 2rem; }

/* Reveal-on-scroll only hides content once main.js has confirmed it is running
   (it puts `js` on <html>). Without JS the page renders fully visible. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1),
              transform .6s cubic-bezier(.16, 1, .3, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .hero__actions, .hero__social,
  .site-footer__top, .project__links { display: none !important; }
  .hero, .section--contact { background: #fff !important; color: #000 !important; }
  .hero__name, .hero__role, .hero__lead, .contact__title, .contact__lead,
  .stat__value, .stat__label, .contact__value, .contact__label { color: #000 !important; }
  .section { padding-block: 1.5rem; break-inside: avoid; }
  .project, .timeline__item, .skill-group, .offer { break-inside: avoid; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
