/* danielcor.cloud — design tokens
   Palette: paper #F2F4F3 · ink #18242B · muted #4C5B63 · rule #C9D1D3 · signal #0B6E99 · now #8A5F00
   Type: IBM Plex Sans (body) + IBM Plex Sans Condensed (display). One superfamily, width as the display device. */

@font-face { font-family: "Plex Sans"; src: url("/fonts/IBMPlexSans-var.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/IBMPlexSans-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Condensed"; src: url("/fonts/IBMPlexSansCondensed-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Condensed"; src: url("/fonts/IBMPlexSansCondensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #F2F4F3; --ink: #18242B; --muted: #4C5B63; --rule: #C9D1D3; --signal: #0B6E99; --now: #8A5F00;
  --measure: 68ch; --gutter: clamp(1.25rem, 4vw, 3rem);
  --step-0: 1.0625rem; --step-1: 1.25rem; --step-2: 1.6rem; --step-3: clamp(2rem, 4.5vw, 2.75rem); --step-4: clamp(2.75rem, 8vw, 5.25rem);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.6 "Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size-adjust: from-font; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--signal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: "Plex Condensed", "Plex Sans", sans-serif; line-height: 1.08; text-wrap: balance; margin: 0; }
h2 { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-weight: 500; line-height: 1.25; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }

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

/* Header */
.site-head { padding-block: 1.25rem; }
.site-head .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: baseline; justify-content: space-between; }
.wordmark { font-family: "Plex Condensed", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-nav a { color: var(--ink); text-decoration: none; padding-block: .35rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--signal); }

/* Hero */
.hero { padding-block: clamp(3rem, 9vw, 7rem) clamp(2rem, 5vw, 3.5rem); }
.hero h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.02em; max-width: 16ch; }
.hero .lede { font-size: var(--step-1); color: var(--muted); margin-top: 1.5rem; max-width: 56ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; margin-top: 2rem; align-items: center; }
.button { display: inline-block; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 500; padding: .8rem 1.3rem; border-radius: 3px; transition: background-color .15s ease; }
.button:hover { background: var(--signal); }

/* Career track — the one memorable element */
.track { margin: clamp(3rem, 7vw, 5rem) 0 0; padding-right: clamp(0rem, 12vw, 9rem); }
.track-line { position: relative; height: 9.5rem; border-bottom: 2px solid var(--ink); transform-origin: left center; }
.track-line ul { margin: 0; padding: 0; }
.track-line li { position: absolute; bottom: -2px; left: var(--x); list-style: none; width: 0; }
.track-line li::before { content: ""; position: absolute; bottom: 0; left: -1px; width: 2px; height: .9rem; background: var(--ink); }
.track-line li span { position: absolute; bottom: 1.3rem; left: 0; transform: rotate(-50deg); transform-origin: left bottom; white-space: nowrap; font-size: .9rem; color: var(--muted); }
.track-line li b { font-weight: 600; color: var(--ink); }
.track-line li.now::before { background: var(--now); height: 1.6rem; width: 4px; left: -2px; }
.track-line li.now span b { color: var(--now); }
.track-years { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-top: .5rem; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .track-line { animation: draw 1.1s cubic-bezier(.2,.7,.2,1) both .15s; }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media (max-width: 46rem) {
  .track { padding-right: 0; }
  .track-line { height: auto; border-bottom: 0; border-left: 2px solid var(--ink); padding-left: 1.25rem; animation: none; }
  .track-line li { position: static; width: auto; margin-bottom: .6rem; }
  .track-line li::before { display: none; }
  .track-line li span { position: static; transform: none; white-space: normal; }
  .track-years { display: none; }
}

/* Sections */
section { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--rule); }
.section-head { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); margin: 0; }
@media (min-width: 60rem) {
  .split { display: grid; grid-template-columns: 18rem 1fr; gap: 4rem; }
  .split .section-head { margin: 0; align-content: start; position: sticky; top: 1.5rem; }
}

/* Services: definition list, not cards */
.services { margin: 0; display: grid; gap: 2rem; }
.services div { display: grid; gap: .4rem; }
@media (min-width: 46rem) { .services div { grid-template-columns: 15rem 1fr; gap: 2rem; } }
.services dt { font-family: "Plex Condensed", sans-serif; font-weight: 700; font-size: var(--step-1); line-height: 1.25; }
.services dd { margin: 0; }
.services dd p { margin-bottom: .5em; }
.services .evidence { color: var(--muted); font-size: .95rem; }

/* Work list */
.work { list-style: none; margin: 0; padding: 0; }
.work li { padding-block: 1.6rem; border-bottom: 1px solid var(--rule); display: grid; gap: .4rem; }
.work li:first-child { padding-top: 0; }
.work h3 { font-size: var(--step-2); font-weight: 700; }
.work h3 a { color: var(--ink); text-decoration-color: var(--signal); }
.work .role { color: var(--muted); font-size: .95rem; margin: 0; }
.work .url { font-size: .95rem; overflow-wrap: anywhere; margin: 0; }
.work p { margin-bottom: 0; }

/* About strip */
.facts { display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 2rem 0 0; padding: 0; list-style: none; }
.facts li { border-left: 2px solid var(--signal); padding-left: 1rem; }
.facts b { display: block; font-family: "Plex Condensed", sans-serif; font-size: var(--step-1); }

/* Contact */
.contact h2 { font-size: var(--step-4); }
.contact .mail { font-size: var(--step-2); font-family: "Plex Condensed", sans-serif; font-weight: 500; overflow-wrap: anywhere; }

.site-foot { padding-block: 2.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .9rem; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* Resume page */
.resume { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.resume header h1 { font-size: var(--step-4); }
.resume .contact-line { color: var(--muted); margin-top: .75rem; }
.resume .tools { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; margin-top: 1.5rem; align-items: center; }
.resume section { padding-block: 2.5rem; }
.resume h2 { font-size: var(--step-2); margin-bottom: 1.25rem; }
.job { margin-bottom: 2rem; max-width: 52rem; }
.job header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; align-items: baseline; }
.job h3 { font-size: var(--step-1); font-weight: 700; }
.job .when { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .95rem; white-space: nowrap; }
.job .title { margin: .15rem 0 .6rem; color: var(--muted); }
.job ul { margin: 0; padding-left: 1.2rem; }
.job li { margin-bottom: .35rem; max-width: var(--measure); }
.skills { display: grid; gap: .75rem; max-width: 52rem; margin: 0; }
.skills div { display: grid; gap: .2rem; }
@media (min-width: 46rem) { .skills div { grid-template-columns: 12rem 1fr; gap: 1.5rem; } }
.skills dt { font-weight: 600; }
.skills dd { margin: 0; }

@media print {
  @page { margin: 14mm 14mm; }
  body { background: #fff; font-size: 10pt; line-height: 1.4; }
  .site-head, .site-foot, .tools, .skip { display: none !important; }
  .wrap { width: 100%; }
  .resume { padding: 0; }
  .resume header h1 { font-size: 24pt; }
  .resume section { padding-block: 10pt; border-top: 1px solid #bbb; }
  .resume h2 { font-size: 13pt; margin-bottom: 6pt; }
  .job { margin-bottom: 9pt; break-inside: avoid; }
  .job h3 { font-size: 11pt; }
  .job li { margin-bottom: 1pt; }
  a { color: inherit; text-decoration: none; }
  .skills div { grid-template-columns: 9rem 1fr; gap: 8pt; }
}
