/* ===========================================================
   adnanumar.com - Solutions Architect pages (/ and /about/)

   No framework, no webfont, no render-blocking anything.
   The founder-facing pages (/mvp/, /case-study/, /build/*)
   still use Tailwind + the dark theme in main.css.

   Design language
   ---------------
   Deep navy carries authority; a single teal accent marks
   anything technical. Prose is set in the system sans; every
   *label* - section kickers, tech lines, metric chips, table
   headers, trade-off keys - is set in monospace. That split is
   the whole identity: it should read as engineering notes,
   not a sales page. No images anywhere on these two pages.
   =========================================================== */

/* ---------- 1. tokens ---------- */
:root {
    --navy:        #10243D;   /* headings, brand */
    --navy-600:    #1B3A5C;   /* links, buttons */
    --navy-700:    #142E4A;   /* hover */
    --accent:      #0F766E;   /* teal - technical marker */
    --accent-soft: #E8F3F2;
    --accent-line: #9CC9C5;

    --ink:    #0E1A28;
    --body:   #3C4A5A;
    --muted:  #64758A;

    --rule:        #DCE3EB;
    --rule-strong: #C3CEDA;

    --bg:     #FCFDFE;
    --bg-alt: #F1F5F9;

    --ok-bg: #ECF6F1; --ok-line: #C3DFD0; --ok-ink: #1B5E42; --ok-dot: #2E9E6B;
    --err-ink: #8C2F1B;

    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    --measure: 68ch;
    --head-h: 62px;
}

/* ---------- 2. base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--body);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent-soft); color: var(--navy); }

[id] { scroll-margin-top: calc(var(--head-h) + 20px); }

a { color: var(--navy-600); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

img { max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- 3. typography ---------- */
h1, h2, h3 {
    color: var(--ink);
    line-height: 1.18;
    letter-spacing: -0.021em;
    margin: 0;
    font-weight: 700;
}
h1 { font-size: clamp(2.05rem, 5vw, 2.95rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.8rem); }
h3 { font-size: 1.06rem; font-weight: 650; letter-spacing: -0.012em; }

p { margin: 0 0 1.1em; max-width: var(--measure); }

/* Monospace label - the recurring "engineering document" cue. */
.label {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--accent);
    margin: 0 0 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.label::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--rule);
    max-width: 90px;
}

/* ---------- 4. layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

section { padding: 48px 0; }
section + section { border-top: 1px solid var(--rule); }
.alt { background: var(--bg-alt); }

/* Flow spacing - replaces inline style attributes. */
h2 + p, h2 + div, h2 + table, h2 + form { margin-top: 24px; }
.role + p, .role + div { margin-top: 0; }

/* ---------- 5. header ---------- */
.site-head {
    border-bottom: 1px solid var(--rule);
    background: rgba(252, 253, 254, 0.88);
    backdrop-filter: saturate(1.6) blur(10px);
    -webkit-backdrop-filter: saturate(1.6) blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}
.site-head .wrap {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap; min-height: var(--head-h);
    padding-top: 12px; padding-bottom: 12px;
}
.brand {
    font-weight: 700; color: var(--ink); text-decoration: none;
    font-size: 1.02rem; letter-spacing: -0.015em;
    display: inline-flex; align-items: center; gap: 9px;
}
.brand::before {
    content: ""; width: 9px; height: 9px; flex: none;
    background: var(--accent); border-radius: 2px; transform: rotate(45deg);
}
.site-nav { display: flex; gap: 24px; font-size: 0.93rem; }
.site-nav a {
    color: var(--body); text-decoration: none; padding: 2px 0;
    border-bottom: 1.5px solid transparent;
}
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--accent-line); }
.site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--accent); }

/* ---------- 6. hero ---------- */
.hero {
    padding: 52px 0 44px;
    background:
        radial-gradient(70ch 34ch at 18% -10%, var(--accent-soft) 0%, transparent 62%),
        var(--bg);
    border-bottom: 1px solid var(--rule);
}
.hero h1 { margin-bottom: 9px; }
.role {
    font-size: clamp(1.02rem, 2.2vw, 1.2rem);
    color: var(--navy-600); font-weight: 600;
    margin: 0 0 18px; letter-spacing: -0.014em;
    max-width: 52ch;              /* a subtitle should not run the full 1080px */
    line-height: 1.4;
}
.lede { font-size: 1.16rem; color: var(--ink); max-width: 58ch; }

.badge {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--ok-line); background: var(--ok-bg); color: var(--ok-ink);
    border-radius: 999px; padding: 5px 14px;
    font-family: var(--mono); font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.01em; margin: 0 0 15px;
}
.badge::before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--ok-dot); flex: none;
}

/* ---------- 7. buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.btn {
    display: inline-block; padding: 11px 20px; border-radius: 4px;
    font-family: inherit; font-size: 0.94rem; font-weight: 600;
    text-decoration: none; cursor: pointer;
    border: 1px solid var(--navy-600);
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-solid { background: var(--navy-600); color: #fff; }
.btn-solid:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-600); }
.btn-ghost:hover { background: var(--navy-600); border-color: var(--navy-600); color: #fff; }
button.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- 8. proof strip ---------- */
.proof { border-bottom: 1px solid var(--rule); background: var(--bg-alt); }
/* Flex, not a fixed grid - the strip stays tight and left-aligned
   whether it carries two facts or six, instead of stretching them
   across the full width. */
.proof ul {
    list-style: none; margin: 0; padding: 20px 0;
    display: flex; flex-wrap: wrap; gap: 18px 56px;
}
.proof li { flex: 0 1 auto; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.proof strong {
    display: block; color: var(--navy); font-size: 1.38rem;
    font-weight: 700; letter-spacing: -0.025em; margin-bottom: 2px;
}

/* ---------- 9. expertise cards (capability + its toolkit) ---------- */
.caps { display: grid; gap: 24px 34px; margin-top: 26px; }
@media (min-width: 700px)  { .caps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .caps { grid-template-columns: repeat(3, 1fr); } }
.cap { border-top: 1px solid var(--rule); padding-top: 17px; }
.cap h3 { margin-bottom: 7px; }
.cap p { margin: 0 0 11px; font-size: 0.97rem; }
.cap .tech {
    font-family: var(--mono); font-size: 0.75rem; line-height: 1.7;
    color: var(--accent); margin: 0;
}

/* ---------- 10. build cards + worked example ---------- */
.builds { display: grid; gap: 22px; margin-top: 28px; }
@media (min-width: 820px) { .builds { grid-template-columns: 1fr 1fr; } }
.build {
    border: 1px solid var(--rule); border-top: 3px solid var(--accent);
    border-radius: 4px; padding: 22px 24px; background: var(--bg);
}
.build h3 { font-size: 1.14rem; margin-bottom: 4px; }
.build .kicker {
    font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
    color: var(--accent); margin: 0 0 13px; text-transform: uppercase;
}
.build p { margin: 0; font-size: 0.96rem; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; }
.chips li {
    font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
    color: var(--accent); background: var(--accent-soft);
    border: 1px solid var(--accent-line); border-radius: 3px; padding: 3px 8px;
}

/* Positioning statement under the expertise grid: platform is a choice,
   architecture is the craft. Deliberately given more weight than a caption. */
.platform-note {
    margin-top: 34px; padding: 20px 24px;
    background: var(--accent-soft); border: 1px solid var(--accent-line);
    border-radius: 4px; font-size: 0.97rem; color: var(--ink);
    max-width: none;
}
.platform-note b { color: var(--navy); }

/* Worked example: problem -> decision -> cost -> result, in plain language. */
.example {
    margin: 22px 0 26px; padding: 22px 26px; max-width: var(--measure);
    background: var(--bg); border: 1px solid var(--rule);
    border-left: 3px solid var(--accent); border-radius: 0 4px 4px 0;
}
.example > div { padding-bottom: 14px; }
.example > div:last-child { padding-bottom: 0; }
.example dt {
    font-family: var(--mono); font-size: 0.68rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--accent); margin-bottom: 3px;
}
.example dd { margin: 0; font-size: 0.96rem; color: var(--ink); }

/* ---------- 14. quotes ---------- */
.quotes { display: grid; gap: 24px; margin-top: 30px; }
@media (min-width: 820px) { .quotes { grid-template-columns: 1fr 1fr; } }
blockquote {
    margin: 0; padding: 22px 24px;
    background: var(--bg); border: 1px solid var(--rule);
    border-left: 3px solid var(--accent); border-radius: 0 4px 4px 0;
    max-width: var(--measure);
}
blockquote p { font-size: 1.01rem; color: var(--ink); margin-bottom: 14px; }
blockquote cite { font-style: normal; font-size: 0.88rem; color: var(--muted); }
blockquote cite b { color: var(--ink); font-weight: 650; }
.verify { display: block; margin-top: 7px; font-size: 0.83rem; }

/* ---------- 15. contact list ---------- */
.contact-list { list-style: none; margin: 26px 0 0; padding: 0; max-width: var(--measure); }
.contact-list li {
    display: flex; gap: 16px; align-items: baseline;
    padding: 11px 0; border-bottom: 1px solid var(--rule);
    font-size: 0.97rem; color: var(--ink);
}
.contact-list li:first-child { border-top: 1px solid var(--rule); }
.ct-k {
    font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
    flex: none; width: 88px;
}
.contact-list a { font-weight: 600; }

/* ---------- 16. experience table (about) ---------- */
.cv-table { width: 100%; border-collapse: collapse; margin-top: 26px; font-size: 0.95rem; }
.cv-table caption {
    text-align: left; color: var(--muted); font-size: 0.84rem; padding-bottom: 11px;
}
.cv-table th {
    text-align: left; font-family: var(--mono); font-size: 0.68rem;
    text-transform: uppercase; letter-spacing: 0.11em;
    color: var(--accent); font-weight: 600;
    padding: 0 16px 10px 0; border-bottom: 1px solid var(--rule-strong);
}
.cv-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.cv-table td:first-child {
    color: var(--muted); white-space: nowrap;
    font-family: var(--mono); font-size: 0.85rem;
}
.cv-table td.role-cell { color: var(--ink); font-weight: 600; }

@media (max-width: 620px) {
    .cv-table, .cv-table tbody, .cv-table tr, .cv-table td { display: block; width: 100%; }
    .cv-table thead { display: none; }
    .cv-table tr { border-bottom: 1px solid var(--rule); padding: 14px 0; }
    .cv-table td { border: 0; padding: 0 0 3px; }
}

/* ---------- 17. faq ---------- */
details { border-bottom: 1px solid var(--rule); padding: 16px 0; max-width: var(--measure); }
details summary {
    cursor: pointer; font-weight: 650; color: var(--ink); font-size: 1rem;
    list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary:hover { color: var(--navy-600); }
details summary::after {
    content: "+"; color: var(--accent); font-weight: 400; font-size: 1.35rem; line-height: 1;
}
details[open] summary::after { content: "\2212"; }
details > p { margin: 12px 0 0; font-size: 0.97rem; }

/* ---------- 18. footer ---------- */
.site-foot {
    border-top: 1px solid var(--rule); background: var(--bg-alt);
    padding: 42px 0; font-size: 0.91rem;
}
.site-foot p { max-width: none; }
.foot-contact { color: var(--ink); }
.foot-contact a { font-weight: 600; }
.foot-mvp { margin: 20px 0 18px; font-size: 0.87rem; color: var(--muted); }
.foot-meta { color: var(--muted); font-size: 0.84rem; margin: 0; }

/* ---------- 19. noscript fallback ---------- */
.ns-fallback {
    border-bottom: 1px solid var(--rule); background: var(--bg-alt);
    padding: 14px 0; font-size: 0.92rem;
}
.ns-fallback a { margin-right: 18px; }

/* ---------- 19b. notes: index + article prose ---------- */
.note-list { list-style: none; margin: 26px 0 0; padding: 0; max-width: var(--measure); }
.note-list li { border-top: 1px solid var(--rule); padding: 20px 0; }
.note-list li:last-child { border-bottom: 1px solid var(--rule); }
.note-list h3 { margin-bottom: 5px; }
.note-list a { text-decoration: none; }
.note-list a:hover h3 { color: var(--navy-600); }
.note-list p { margin: 0; font-size: 0.95rem; }
.note-meta {
    font-family: var(--mono); font-size: 0.7rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted);
    margin: 0 0 7px;
}

.prose { max-width: var(--measure); }
.prose > p { font-size: 1.02rem; }
.prose h2 { font-size: clamp(1.25rem, 2.4vw, 1.45rem); margin: 38px 0 0; }
.prose h2 + p { margin-top: 12px; }
.prose h3 { margin: 28px 0 6px; }
.prose ul, .prose ol { max-width: var(--measure); padding-left: 22px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 8px; font-size: 1.0rem; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose blockquote {
    border-left: 3px solid var(--accent); border-top: 0; border-right: 0; border-bottom: 0;
    background: var(--bg-alt); border-radius: 0; padding: 18px 22px; margin: 24px 0;
}
.prose blockquote p { margin: 0; font-size: 1.0rem; }
.prose code {
    font-family: var(--mono); font-size: 0.86em; background: var(--bg-alt);
    border: 1px solid var(--rule); border-radius: 3px; padding: 1px 5px; color: var(--navy);
}
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 38px 0; }

/* ---------- 20. misc ---------- */
.aside-note { margin-top: 28px; font-size: 0.93rem; color: var(--muted); }

@media (max-width: 560px) {
    body { font-size: 16px; }
    .hero { padding: 44px 0 38px; }
    section { padding: 46px 0; }
    .site-nav { gap: 16px; font-size: 0.89rem; }
    blockquote { padding: 18px 20px; }
}
