/* =========================================================
   Design tokens
   Sections alternate slate (--ink) and light (--surface-light);
   never two lights in a row. Blue is for eyebrows, links and
   one button per screen. Blocks are square; only buttons and
   pills are round. Outline circles are the only decoration.
   ========================================================= */
:root {
    --ink:           #131B26;
    --ink-hover:     #1A2433;
    --border-dark:   #2E3C4E;
    --rule-dark:     #222E3E;

    --surface-light: #EEF1F7;
    --panel:         #DCE2EE;
    --border-light:  #C5CFDF;

    --accent:        #4C8DFF;
    --accent-hover:  #89B4FF;
    --accent-light:  #1553B8;   /* blue on light backgrounds */
    --btn-text:      #06152E;

    --text-dark:     #F4F7FA;
    --muted-dark:    #A8B5C6;
    --nav-link:      #C3CDD7;
    --mono-label:    #93A1AE;

    --text-light:    #2B3542;
    --muted-light:   #4C5A67;
    --date-color:    #55616D;

    --font-sans:    'Hanken Grotesk', system-ui, sans-serif;
    --font-display: 'Outfit', var(--font-sans);
    --font-mono:    'JetBrains Mono', ui-monospace, monospace;

    --gutter: clamp(20px, 5vw, 72px);
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html {
    background: var(--ink);
    scroll-behavior: smooth;
    scroll-padding-top: 88px;   /* clear the sticky header on anchor jumps */
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--text-dark);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .12s; }
a:hover { color: var(--accent-hover); }
::selection { background: var(--accent); color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 20;
    background: var(--accent);
    color: var(--btn-text);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--btn-text); }

/* =========================================================
   Header / footer
   ========================================================= */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 20px var(--gutter);
    border-bottom: 1px solid var(--rule-dark);
    position: sticky;
    top: 0;
    background: var(--ink);
    z-index: 10;
}

.site-logo { display: flex; align-items: center; gap: 14px; color: var(--text-dark); }
.site-logo:hover { color: var(--text-dark); }

.logo-dot {
    width: 22px;
    height: 22px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: block;
    flex: none;
}

.logo-avatar {
    width: 44px;
    height: 44px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex: none;
}

.logo-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.logo-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--mono-label);
}

.site-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.site-nav a { color: var(--nav-link); }
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--text-dark); }

.site-footer {
    border-top: 1px solid var(--rule-dark);
    padding: 24px var(--gutter);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mono-label);
}
.site-footer a { color: var(--mono-label); }
.site-footer a:hover { color: var(--nav-link); }
.footer-links { display: flex; gap: 20px; }

/* =========================================================
   Shared type & buttons
   ========================================================= */
.eyebrow,
.eyebrow-light {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin: 0;
}
.eyebrow       { color: var(--accent); margin-bottom: 26px; }
.eyebrow-light { color: var(--accent-light); }

.btn {
    display: inline-block;
    border-radius: 999px;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 16px;
    transition: background .15s, color .15s, border-color .15s;
}
.btn-sm { padding: 13px 26px; font-size: 15px; }

.btn-primary { background: var(--accent); color: var(--btn-text); }
.btn-primary:hover { background: var(--accent-hover); color: var(--btn-text); }

.btn-secondary { border: 1px solid var(--border-dark); color: var(--text-dark); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(64px, 10vw, 132px) var(--gutter) clamp(72px, 11vw, 148px);
}

.hero-ring { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-ring-1 { right: -180px; top: -120px; width: 620px; height: 620px; border: 1px solid #1E3350; }
.hero-ring-2 { right: -60px;  top: 40px;   width: 420px; height: 420px; border: 1px solid #1A2942; }

.hero-inner { position: relative; max-width: 900px; }

.hero h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(40px, 7.4vw, 86px);
    line-height: 1.02;
    letter-spacing: -.025em;
    margin: 0 0 30px;
    text-wrap: pretty;
}

.hero-dek {
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.6;
    color: var(--muted-dark);
    margin: 0;
    max-width: 60ch;
    text-wrap: pretty;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }

/* =========================================================
   Writing
   ========================================================= */
.writing-section {
    background: var(--surface-light);
    color: var(--ink);
    padding: clamp(56px, 8vw, 104px) var(--gutter);
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.post-count { font-family: var(--font-mono); font-size: 12px; color: var(--date-color); }

.featured-post {
    display: block;
    background: var(--ink);
    color: var(--text-dark);
    padding: clamp(28px, 4vw, 52px);
    margin-bottom: 20px;
    transition: background .15s;
}
a.featured-post:hover { background: var(--ink-hover); color: var(--text-dark); }

.featured-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.featured-post h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 0 0 18px;
    max-width: 20ch;
    text-wrap: pretty;
}

.featured-post p {
    font-size: 17px;
    line-height: 1.6;
    color: var(--muted-dark);
    margin: 0;
    max-width: 56ch;
    text-wrap: pretty;
}

.tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }

/* Default styling is for light backgrounds (post page, post rows). .featured-post
   and hovered post rows invert to a dark background, so their tags invert too. */
.tag {
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 7px 15px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted-light);
    transition: border-color .15s, color .15s;
}

a.tag:hover { border-color: var(--accent-light); color: var(--accent-light); }

.featured-post .tag,
a.post-row:hover .tag {
    border-color: var(--border-dark);
    color: var(--nav-link);
}

.post-list { display: grid; gap: 2px; }

.post-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    background: var(--panel);
    color: var(--ink);
    padding: clamp(20px, 3vw, 32px);
    transition: background .15s, color .15s;
}
a.post-row:hover { background: var(--ink); color: var(--text-dark); }

.post-meta {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.post-kind { color: var(--accent-light); transition: color .15s; }
.post-date { color: var(--date-color);   transition: color .15s; }
a.post-row:hover .post-kind { color: var(--accent); }
a.post-row:hover .post-date { color: var(--mono-label); }

.post-row h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(19px, 2.3vw, 26px);
    line-height: 1.22;
    letter-spacing: -.015em;
    margin: 0;
    text-wrap: pretty;
}

.post-dek {
    font-size: 16px;
    line-height: 1.55;
    color: var(--muted-light);
    margin: 0;
    max-width: 62ch;
    text-wrap: pretty;
    transition: color .15s;
}
a.post-row:hover .post-dek { color: var(--muted-dark); }

.all-posts { padding-top: 32px; }
.all-posts a {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-light);
}
.all-posts a:hover { color: var(--accent); }

/* Writing index / single post */
.writing-index { min-height: 60vh; }

.post-page-inner { max-width: 720px; margin: 0 auto; }
.back-link {
    display: inline-block;
    margin-bottom: 32px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent-light);
}
.back-link:hover { color: var(--accent); }

.post-page h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.06;
    letter-spacing: -.025em;
    margin: 18px 0 20px;
    text-wrap: pretty;
}
.post-page-dek { font-size: 20px; line-height: 1.55; color: var(--muted-light); margin: 0 0 40px; text-wrap: pretty; }

.prose { font-size: 18px; line-height: 1.7; color: var(--text-light); max-width: 65ch; }
.prose p, .prose ul, .prose ol, .prose pre, .prose blockquote { margin: 0 0 1.2em; }
.prose h2, .prose h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; letter-spacing: -.015em; margin: 2em 0 .6em; }
.prose a { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent); }
.prose code { font-family: var(--font-mono); font-size: .88em; background: var(--panel); padding: .1em .35em; }
.prose pre { background: var(--ink); color: var(--text-dark); padding: 20px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { border-left: 3px solid var(--accent-light); padding-left: 20px; color: var(--muted-light); }

/* =========================================================
   About
   ========================================================= */
.about-section {
    padding: clamp(56px, 8vw, 112px) var(--gutter);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}
.about-section .eyebrow { margin-bottom: 22px; }
.about-section h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -.02em;
    margin: 0;
    text-wrap: pretty;
}

.about-body { max-width: 58ch; }
.about-body p {
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.65;
    color: var(--muted-dark);
    margin: 0 0 18px;
    text-wrap: pretty;
}

.about-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 32px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
}

/* =========================================================
   Resume
   ========================================================= */
.resume-section {
    background: var(--surface-light);
    color: var(--ink);
    padding: clamp(56px, 8vw, 104px) var(--gutter);
}
.resume-inner { max-width: 960px; margin: 0 auto; }

.resume-name-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 24px;
    margin-bottom: 12px;
}
.resume-name-row .eyebrow-light { margin-bottom: 14px; }
.resume-name-row h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1;
    letter-spacing: -.025em;
    margin: 0;
}
.resume-name-row .btn { white-space: nowrap; flex: none; }

.resume-contact {
    display: flex;
    gap: 10px 28px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--date-color);
    padding-bottom: 48px;
}
.resume-contact a { color: var(--accent-light); }
.resume-contact a:hover { color: var(--accent); }

.resume-body { display: grid; gap: 48px; }

/* Label column + content column. (The design's repeat(auto-fit, a b) is not valid CSS,
   so this is the same intent written as two fixed tracks that stack on narrow screens.) */
.resume-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
@media (min-width: 720px) {
    .resume-block { grid-template-columns: minmax(150px, 1fr) minmax(0, 3.4fr); gap: 12px 40px; }
}

.resume-label {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin: 0;
}

.summary-list, .job-bullets { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.summary-list li { font-size: 17px; line-height: 1.55; color: var(--text-light); text-wrap: pretty; }

.experience-list { display: grid; gap: 40px; }

.job-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.job-role {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(20px, 2.4vw, 26px);
    line-height: 1.2;
    letter-spacing: -.015em;
    margin: 0;
}
.job-company { font-size: 16px; color: var(--text-light); margin-top: 4px; }
.job-dates { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--date-color); white-space: nowrap; }

.job-bullets { gap: 9px; }
.job-bullets li { font-size: 16px; line-height: 1.55; color: var(--text-light); max-width: 72ch; text-wrap: pretty; }

.education-list { display: grid; gap: 14px; }
.education-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}
.education-degree { font-size: 17px; font-weight: 600; color: var(--ink); }
.education-school { font-size: 15px; color: var(--date-color); margin-top: 3px; }
.education-year { font-family: var(--font-mono); font-size: 12px; color: var(--date-color); }

.skills-list { display: grid; gap: 18px; }
.skill-group-name {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 6px;
}
.skill-group-items { font-size: 16px; line-height: 1.55; color: var(--text-light); max-width: 74ch; text-wrap: pretty; }

/* =========================================================
   Error
   ========================================================= */
.error-section { padding: clamp(72px, 12vw, 160px) var(--gutter); min-height: 60vh; }
.error-inner { max-width: 640px; }
.error-inner h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -.025em;
    margin: 0 0 20px;
}
.error-inner p { font-size: 19px; line-height: 1.6; color: var(--muted-dark); margin: 0; }
.error-inner .error-request-id { margin-top: 16px; font-size: 14px; }
.error-inner code { font-family: var(--font-mono); }

/* =========================================================
   Legacy post content
   Posts imported from the 2010-era blog carry raw HTML: images,
   tables, SyntaxHighlighter <pre class="brush:..."> blocks.
   ========================================================= */
.prose img { max-width: 100%; height: auto; }
.prose table { border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; margin: 0 0 1.2em; }
.prose th, .prose td { border: 1px solid var(--border-light); padding: 8px 12px; text-align: left; }
.prose h1 { font-family: var(--font-display); color: var(--ink); line-height: 1.2; margin: 2em 0 .6em; }
.prose pre code.hljs { background: none; padding: 0; }
.prose pre { font-family: var(--font-mono); font-size: 14px; line-height: 1.55; tab-size: 4; }
.prose .syntaxhighlighter { background: var(--ink) !important; }

/* Lightbox (photo galleries in old posts) */
.lightbox {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 100vw;
    max-height: 100vh;
    width: 100vw;
    height: 100vh;
    color: var(--text-dark);
}
.lightbox::backdrop { background: rgba(19, 27, 38, .92); }
.lightbox figure { margin: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; padding: 56px 72px 24px; gap: 14px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox figcaption { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--muted-dark); min-height: 1.4em; text-align: center; }
.lightbox-btn {
    position: absolute;
    background: none;
    border: 1px solid var(--border-dark);
    border-radius: 999px;
    width: 44px;
    height: 44px;
    color: var(--text-dark);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}
.lightbox-btn:hover { border-color: var(--accent); color: var(--accent); }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-close { right: 16px; top: 16px; }
.lightbox-single .lightbox-prev, .lightbox-single .lightbox-next { display: none; }
@media (max-width: 600px) { .lightbox figure { padding: 64px 12px 16px; } }

/* =========================================================
   Post extras: share row, comments, more writing
   ========================================================= */
.post-share {
    display: flex;
    align-items: baseline;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--date-color);
}
.post-share a { color: var(--accent-light); }
.post-share a:hover { color: var(--accent); }

.text-link { color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--accent); }

.post-section { margin-top: 56px; }
.post-section h2 {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin: 0 0 20px;
}

.comment-list { display: grid; gap: 2px; margin-bottom: 32px; }
.comment { background: var(--panel); padding: 20px 24px; }
.comment-meta {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--date-color);
}
.comment-meta strong { color: var(--ink); font-weight: 500; }
.comment p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--text-light); white-space: pre-line; }

/* =========================================================
   Forms & admin (Login, Admin list, post editor)
   ========================================================= */
.form-section {
    background: var(--surface-light);
    color: var(--ink);
    padding: clamp(48px, 7vw, 96px) var(--gutter);
    min-height: 60vh;
}
.form-inner { max-width: 760px; margin: 0 auto; }
.form-inner.wide { max-width: 1040px; }
.form-inner h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(30px, 4.5vw, 46px);
    line-height: 1.06;
    letter-spacing: -.025em;
    margin: 12px 0 28px;
}

.form-grid { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label,
.field-check label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-light);
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="date"],
.field input[type="datetime-local"],
.field textarea {
    width: 100%;
    font: inherit;
    font-size: 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--border-light);
    padding: 12px 14px;
}
.field textarea { line-height: 1.5; resize: vertical; }
.field textarea.code { font-family: var(--font-mono); font-size: 14px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent-light); outline-offset: 0; border-color: var(--accent-light); }
.field-check { display: flex; align-items: center; gap: 12px; }
.field-check input { width: 18px; height: 18px; accent-color: var(--accent-light); }
.field-hint { font-size: 13px; color: var(--date-color); }

.field-validation-error,
.validation-summary-errors,
.validation-summary-errors ul { color: #B3261E; font-size: 14px; margin: 0; padding: 0; list-style: none; }
.input-validation-error { border-color: #B3261E !important; }
.validation-summary-valid { display: none; }
.form-status { color: #1E7B3E; font-size: 14px; margin: -8px 0 0; }

.form-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.form-actions .btn { border: 0; cursor: pointer; font-family: inherit; }
.btn-ghost { background: none; border: 1px solid var(--border-light); color: var(--ink); cursor: pointer; font-family: inherit; }
.btn-ghost:hover { border-color: var(--accent-light); color: var(--accent-light); }
.btn-danger { color: #B3261E; border-color: #B3261E; }
.btn-danger:hover { background: #B3261E; color: #fff; border-color: #B3261E; }

.inline-form { display: inline; }

/* A submit button that should read as a nav link (Log out). */
.link-button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.site-nav .link-button { color: var(--nav-link); }
.site-nav .link-button:hover { color: var(--text-dark); }
.footer-links .link-button { color: var(--mono-label); letter-spacing: inherit; text-transform: inherit; font-size: inherit; }
.footer-links .link-button:hover { color: var(--nav-link); }

.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th,
.admin-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.admin-table th {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-light);
    background: var(--panel);
}
.admin-table a { color: var(--accent-light); }
.admin-table a:hover { color: var(--accent); }
.admin-table .row-actions { display: flex; gap: 16px; align-items: center; justify-content: flex-end; white-space: nowrap; }
.admin-table .link-button { color: #B3261E; }
.admin-scroll { overflow-x: auto; }
.badge {
    display: inline-block;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 2px 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--date-color);
}
.badge-live { border-color: var(--accent-light); color: var(--accent-light); }

/* =========================================================
   Motion & print
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

/* Print: the resume prints (and is exported to /resume.pdf) as a plain document. */
@media print {
    @page { margin: 14mm 14mm; }
    html, body { background: #fff; }
    .site-header, .site-footer, .skip-link, .resume-name-row .btn { display: none !important; }
    .resume-section { background: #fff; padding: 0; }
    .resume-body { gap: 22px; }
    .resume-contact { padding-bottom: 22px; }
    .resume-block { grid-template-columns: 130px minmax(0, 1fr); gap: 0 24px; break-inside: avoid-page; }
    .experience-list { gap: 20px; }
    .job { break-inside: avoid; }
    .summary-list li, .job-bullets li, .skill-group-items { font-size: 10.5pt; line-height: 1.4; }
    .job-bullets { gap: 4px; }
    .job-role { font-size: 13pt; }
    .job-company { font-size: 10.5pt; }
    .education-degree { font-size: 10.5pt; }
    .education-school { font-size: 9.5pt; }
    .education-list { gap: 8px; }
    .education-row { padding-bottom: 6px; }
    .skills-list { gap: 8px; }
    .resume-name-row h1 { font-size: 30pt; }
    a { color: inherit !important; }
}
