/*
============================================================================
SCRIPT TITLE: HendrikExec public site — design system
============================================================================
Project:  hendrikexec.com executive profile, services, and blog
File:     hendrikexec-site/styles.css
Purpose:  One stylesheet for every page of the public site. Plain CSS, no
          build step, no framework, matching the repository convention in
          the root CLAUDE.md.
Design:   Continues the original published profile's drawing-sheet language —
          navy sheets, paper sheets, IBM Plex Mono technical labels, numbered
          sections with sheet references, orange flag accent.
Does not: run scripts, load trackers, or fetch anything except Google Fonts.
============================================================================
*/

/* ---------- tokens (same values as the published profile) ---------- */

:root {
    --navy: #14203a;
    --navy: oklch(22% 0.055 255);
    --navy-light: #1f2b4a;
    --navy-light: oklch(30% 0.06 255);
    --paper: #f6f4f0;
    --paper: oklch(97.2% 0.006 85);
    --ink: #1a2333;
    --ink: oklch(24% 0.03 255);
    --flag: #e2703a;
    --flag: oklch(68% 0.175 45);
    --muted: oklch(48% 0.025 255);

    --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;
    --font-serif: "Source Serif 4", Georgia, serif;

    --page: 1280px;
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.08; }

p { margin: 0 0 1rem; }

:focus-visible { outline: 2px solid var(--flag); outline-offset: 3px; }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--flag);
    color: #fff;
    padding: 0.6rem 1rem;
    z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- shared pieces ---------- */

.container {
    width: 100%;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px) { .container { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container { max-width: var(--page); padding-left: 2rem; padding-right: 2rem; } }

.tech-label {
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    font-weight: 500;
}

.blueprint-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
}

.dim-line {
    opacity: 0.35;
    background: currentColor;
    height: 1px;
    position: relative;
}
.dim-line::before, .dim-line::after {
    content: "";
    background: currentColor;
    width: 1px;
    height: 9px;
    position: absolute;
    top: -4px;
}
.dim-line::before { left: 0; }
.dim-line::after { right: 0; }

.sheet-dark { background: var(--navy); color: #fff; }
.sheet-light { background: var(--paper); color: var(--ink); }

/* section head: 01 / Scope / What I Deliver / A-101 */
.sheet-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}
.sheet-head .sheet-number {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.5;
}
.sheet-head h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-top: 0.4rem;
}
.sheet-head .sheet-ref {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0.4;
    white-space: nowrap;
}

.section { padding: 3rem 0; }
@media (min-width: 768px) { .section { padding: 4rem 0; } }

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.85rem 1.35rem;
    border: 1px solid transparent;
    transition: filter 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: scale(0.98); }
.btn-flag { background: var(--flag); color: #fff; }
.btn-flag:hover { filter: brightness(1.1); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-outline-dark { border-color: rgba(26, 35, 51, 0.35); color: var(--ink); }
.btn-outline-dark:hover { border-color: var(--ink); }

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}
.site-header .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
}
.brand img { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.brand .brand-name { font-weight: 700; letter-spacing: -0.01em; }
.brand .brand-cred { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; opacity: 0.55; margin-left: 0.5rem; }

.site-nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.site-nav a {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    transition: color 0.15s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-nav a.nav-cta {
    background: var(--flag);
    color: #fff;
    padding: 0.6rem 1rem;
}
.site-nav a.nav-cta:hover { filter: brightness(1.1); }

/* ---------- hero (drawing sheet title block) ---------- */

.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero .hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}
.hero .hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--navy) 0%, rgba(20, 32, 58, 0.86) 45%, rgba(20, 32, 58, 0.4) 100%);
}
.hero .container { position: relative; padding-top: 3rem; padding-bottom: 2.5rem; }

.title-block {
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 1024px) { .title-block { grid-template-columns: 300px 1fr; } }

.title-block .aside { border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
@media (min-width: 1024px) {
    .title-block .aside { border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, 0.25); }
}
.aside-cell { padding: 1.25rem; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.aside-cell:last-child { border-bottom: 0; }
.seal { display: flex; align-items: center; gap: 0.75rem; }
.seal img { width: 3rem; height: 3rem; object-fit: contain; }
.seal .seal-cred { color: var(--flag); }
.name-stack {
    margin-top: 0.75rem;
    font-size: 1.125rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.spec-list { margin: 0; font-size: 0.875rem; }
.spec-list div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.spec-list div:last-child { border-bottom: 0; }
.spec-list dt {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    opacity: 0.5;
}
.spec-list dd { margin: 0; text-align: right; font-weight: 600; color: rgba(255, 255, 255, 0.92); }

.title-block .main { padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; }
@media (min-width: 768px) { .title-block .main { padding: 3rem; } }
.sheet-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.55;
}
.title-block h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.03;
    margin-bottom: 1.25rem;
}
.title-block h1 .thin { display: block; font-weight: 300; text-transform: none; font-size: 0.36em; letter-spacing: 0.02em; opacity: 0.8; margin-top: 0.6rem; }
.role-line { color: var(--flag); margin-bottom: 1.5rem; }
.lede { font-size: 1.125rem; color: rgba(255, 255, 255, 0.85); max-width: 42rem; }
.org-line { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.5; margin: 1.5rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }

/* metrics strip */
.metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    margin-top: 1rem;
}
@media (min-width: 1024px) { .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.metrics .metric { padding: 1.25rem 1.25rem 1.25rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
@media (min-width: 1024px) { .metrics .metric { border-right: 1px solid rgba(255, 255, 255, 0.15); padding-right: 1.5rem; } .metrics .metric:last-child { border-right: 0; } }
.metrics .value { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 900; line-height: 1; }
.metrics .value .suffix { color: var(--flag); }
.metrics .unit { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; opacity: 0.55; margin-left: 0.25rem; }
.metrics .label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; margin-top: 0.55rem; line-height: 1.4; }

/* credential badges + keyword columns */
.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.badge {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 0.85rem;
}
.badge-dark { border-color: rgba(26, 35, 51, 0.25); }

.icon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.icon-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.icon-list li::before {
    content: "";
    flex: 0 0 auto;
    width: 0.45rem;
    height: 0.45rem;
    margin-top: 0.5rem;
    background: var(--flag);
}
.icon-list.on-light li::before { background: var(--navy); }
.icon-list .strong { font-weight: 600; }

/* ---------- record ---------- */

.record-entry {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding: 1.75rem 0;
    display: grid;
    gap: 0.75rem;
}
@media (min-width: 900px) { .record-entry { grid-template-columns: 16rem 1fr; gap: 2rem; } }
.record-entry .period { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; opacity: 0.55; }
.record-entry h3 { font-size: 1.4rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; margin: 0.35rem 0 0.2rem; }
.record-entry .org { font-weight: 700; color: rgba(255, 255, 255, 0.95); }
.record-entry .proof { color: rgba(255, 255, 255, 0.72); max-width: 48rem; margin-top: 0.5rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 1rem; }
.tag-row span { font-size: 0.875rem; color: rgba(255, 255, 255, 0.58); }

/* ---------- services ---------- */

.service-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.service-card {
    border: 1px solid rgba(26, 35, 51, 0.18);
    background: #fff;
    padding: 1.5rem;
}
.service-card h3 { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.service-card p { margin: 0; color: rgba(26, 35, 51, 0.78); }
.service-card .index { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--flag); margin-bottom: 0.75rem; }

.statement {
    border-left: 3px solid var(--flag);
    background: rgba(226, 112, 58, 0.06);
    padding: 1.5rem;
    margin: 0 0 2rem;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    line-height: 1.55;
    color: var(--ink);
}
.statement strong { font-weight: 600; }

.terms { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 768px) { .terms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.term { border-top: 2px solid var(--navy); padding-top: 0.85rem; }
.term .term-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.term .term-value { font-weight: 700; font-size: 1.05rem; }

/* ---------- blog ---------- */

.post-list { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 768px) { .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-card {
    border: 1px solid rgba(26, 35, 51, 0.18);
    background: #fff;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.post-card .post-meta { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.post-card h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--flag); }
.post-card p { margin: 0; color: rgba(26, 35, 51, 0.78); }
.post-card .read-more { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--flag); text-decoration: none; margin-top: auto; }

.article { max-width: 46rem; }
.article h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); font-weight: 900; letter-spacing: -0.02em; text-transform: uppercase; margin-bottom: 1rem; }
.article h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; margin: 2.25rem 0 0.75rem; }
.article h3 { font-size: 1.15rem; font-weight: 800; margin: 1.75rem 0 0.5rem; }
.article p, .article li { font-family: var(--font-serif); font-size: 1.075rem; line-height: 1.7; color: rgba(26, 35, 51, 0.9); }
.article ul, .article ol { padding-left: 1.15rem; }
.article li { margin-bottom: 0.5rem; }
.article .article-meta { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.5rem; }
.article blockquote {
    margin: 2rem 0;
    border-left: 3px solid var(--flag);
    padding: 0.25rem 0 0.25rem 1.25rem;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--ink);
}
.article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-family: var(--font-serif); }
.article th, .article td { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 1px solid rgba(26, 35, 51, 0.15); }
.article th { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.article .callout {
    border: 1px solid rgba(26, 35, 51, 0.18);
    background: #fff;
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}
.article .callout p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */

.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr auto; gap: 3rem; align-items: start; } }
.contact-headline { font-size: clamp(1.9rem, 5vw, 3.5rem); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.contact-headline span { display: block; }
.contact-cards { display: grid; gap: 1rem; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.contact-card {
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 1.25rem;
    text-decoration: none;
    color: #fff;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.contact-card:hover { border-color: #fff; background: rgba(255, 255, 255, 0.04); }
.contact-card .contact-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.55; margin-bottom: 0.35rem; }
.contact-card .contact-value { font-weight: 600; word-break: break-word; }

.resume-card {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid var(--flag);
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: #fff;
    margin-top: 1rem;
}
.resume-card:hover { background: rgba(226, 112, 58, 0.15); }

/* ---------- footer ---------- */

.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2.5rem 0;
    font-size: 0.875rem;
}
.site-footer .footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .site-footer .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); margin-bottom: 0.65rem; }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .footer-bottom {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
