/* davinb.com base: layout and components. Plain CSS, no build step. The Front Range look (colours, type,
   scenery, textures) is in theme.css, which loads after this file. Light only (Davin, 2026-09-28). */

:root {
    color-scheme: light;
    --bg: #ffffff;
    --bg-soft: oklch(0.975 0.006 252);
    --surface: #ffffff;
    --text: oklch(0.22 0.025 257);
    --text-muted: oklch(0.46 0.022 257);
    --border: oklch(0.91 0.012 257);
    --border-strong: oklch(0.84 0.016 257);
    --accent: oklch(0.515 0.16 252);
    --accent-hover: oklch(0.47 0.16 252);
    --accent-text: oklch(0.5 0.16 252);
    --accent-subtle: oklch(0.962 0.026 252);
    --accent-border: oklch(0.8 0.072 252);
    --on-accent: #ffffff;
    --ridge: oklch(0.84 0.04 252);
    --shadow: 0 1px 2px oklch(0.2 0.02 257 / 0.06), 0 8px 24px oklch(0.2 0.02 257 / 0.06);

    --font-sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "SF Pro Text", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "SF Pro Display", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 0.75rem;
    --radius-lg: 1.25rem;
    --gutter: clamp(1rem, 4vw, 2rem);
    --max: 72rem;
}



/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 3.6vw + 1rem, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 1.6vw + 1rem, 2.35rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--on-accent); padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.muted { color: var(--text-muted); }
.kicker { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 0.75rem; }
.lead { font-size: clamp(1.1rem, 0.5vw + 1rem, 1.3rem); color: var(--text-muted); max-width: 40rem; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: color-mix(in oklch, var(--bg) 85%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.5rem; min-height: 4rem; padding-block: 0.4rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.05rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.site-nav { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0.25rem; }
.site-nav a { color: var(--text-muted); text-decoration: none; font-weight: 550; font-size: 0.95rem; padding: 0.45rem 0.7rem; border-radius: 0.5rem; }
.site-nav a:hover { color: var(--text); background: var(--bg-soft); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--bg-soft); }
.site-nav .btn { margin-left: 0.5rem; padding: 0.5rem 0.95rem; font-size: 0.95rem; }

/* Brand: Graphics By Davin seal + name */
.brand { gap: 0.7rem; }
.brand-seal { width: 38px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1.05rem; }
.brand-sub { font-size: 0.7rem; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted); }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-seal { width: 64px; height: auto; flex: none; }

/* Hero layers */
.hero-copy { position: relative; z-index: 1; }
.facts-seal { display: flex; align-items: center; gap: 1rem; }
.facts-seal img { width: 64px; height: auto; flex: none; }
.facts-seal span { color: var(--text-muted); font-size: 0.95rem; font-weight: 600; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center;
    padding: 0.8rem 1.3rem; border-radius: 0.65rem; border: 1px solid transparent;
    font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.site-nav .btn-primary, .btn-primary { background: var(--accent); color: var(--on-accent); }
.site-nav .btn-primary:hover, .btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent-border); color: var(--text); background: var(--accent-subtle); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

/* Hero */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(2.5rem, 6vw, 5rem) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 16ch; }
.hero-photo { position: relative; justify-self: end; width: min(100%, 21rem); }
.hero-photo .hero-portrait { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin-top: 1.75rem; color: var(--text-muted); font-size: 0.95rem; list-style: none; }
.hero-facts li { display: inline-flex; align-items: center; gap: 0.5rem; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head p:last-child { margin-bottom: 0; }

/* Client strip */
.clients { padding: 2rem 0 2.25rem; border-bottom: 1px solid var(--border); }
.clients-label { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 0.75rem; }

/* Kinds of businesses served */
.client-types { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; list-style: none; }
.client-types li { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; }
.client-types svg { width: 1.3rem; height: 1.3rem; flex: none; color: var(--accent-text); }

/* Platforms (Services page) */
.platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 2rem; }
.platform-group h3 { font-size: 1rem; margin-bottom: 0.65rem; }
.platform-group .tags { margin: 0; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.6rem; display: flex; flex-direction: column;
}
.card p:last-child { margin-bottom: 0; }
a.card { color: inherit; text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
a.card:hover { border-color: var(--accent-border); box-shadow: var(--shadow); transform: translateY(-2px); }
.card .more { margin-top: auto; padding-top: 1rem; font-weight: 600; color: var(--accent-text); }
.card .more::after { content: " →"; }
.icon {
    display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.7rem;
    background: var(--accent-subtle); color: var(--accent-text); margin-bottom: 1.1rem;
}
.icon svg { width: 1.4rem; height: 1.4rem; }
.card h3 { margin-bottom: 0.4rem; }
.card-sub { font-size: 0.9rem; color: var(--text-muted); margin: 0 0 0.75rem; }
.card-kicker { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 0.4rem; }

.principle h3 { font-size: 1.05rem; }
.principle p { color: var(--text-muted); font-size: 0.98rem; margin: 0; }
.principle .num { font-family: var(--font-display); font-weight: 700; color: var(--accent-text); font-size: 0.9rem; margin-bottom: 0.4rem; display: block; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0 0 0.9rem; }
.tags li { font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--accent-subtle); color: var(--accent-text); }
.checks { list-style: none; display: grid; gap: 0.55rem; margin: 0.25rem 0 0; }
.checks li { position: relative; padding-left: 1.6rem; }
.checks li::before {
    content: ""; position: absolute; left: 0; top: 0.35em; width: 1.05rem; height: 1.05rem; border-radius: 50%;
    background: var(--accent-subtle);
}
.checks li::after {
    content: ""; position: absolute; left: 0.175rem; top: calc(0.35em + 0.175rem); width: 0.7rem; height: 0.7rem;
    background: var(--accent-text);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Service detail */
.service { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding: clamp(2.5rem, 5vw, 3.5rem) 0; border-top: 1px solid var(--border); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service .terms { margin-top: 1.25rem; font-weight: 600; }

/* Work */
.work-card .client { font-size: 1.15rem; }
.work-card .summary { color: var(--text-muted); }
.work-card .checks { font-size: 0.97rem; }

/* About teaser */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.facts { list-style: none; display: grid; gap: 0.9rem; }
.facts li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; }
.facts strong { display: block; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.01em; }
.facts span { color: var(--text-muted); font-size: 0.95rem; }

/* CTA band */
.cta { background: var(--accent-subtle); border: 1px solid var(--accent-border); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.25rem); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 1.5rem 2rem; align-items: center; }
.cta h2 { margin-bottom: 0.35rem; }
.cta p { margin: 0; color: var(--text-muted); }
.cta .btn-row { margin-top: 0; }

/* Page header (inner pages) */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.1rem, 3vw + 1rem, 3.1rem); max-width: 22ch; }

/* Résumé */
.resume { display: grid; grid-template-columns: minmax(0, 1fr) 19.5rem; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.resume-summary { font-size: 1.1rem; }
.resume-h2 { margin: 2.5rem 0 1.5rem; }
.career { list-style: none; margin: 0; padding: 0; }
.job { position: relative; padding: 0 0 2.5rem 4.25rem; }
.job:last-child { padding-bottom: 0; }
.job-marker { position: absolute; left: 0; top: -0.3rem; display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%; }
.job-org { font-size: 1.3rem; margin: 0; }
.job-place { color: var(--text-muted); font-size: 0.95rem; margin: 0 0 0.5rem; }
.role { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 1rem; margin: 0.3rem 0 0; font-weight: 600; }
.role .dates { color: var(--text-muted); font-weight: 500; font-size: 0.93rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.job-points { margin: 0.8rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.earlier { list-style: none; display: grid; gap: 0.85rem; margin-top: 0.7rem; }
.earlier .role { font-weight: 400; margin: 0; }
.earlier-note { display: block; margin: 0.1rem 0 0; color: var(--text-muted); font-size: 0.95rem; }
.resume-aside { display: grid; gap: 1.25rem; }
.resume-aside h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 0.6rem; }
.resume-contact { list-style: none; display: grid; gap: 0.3rem; font-size: 0.97rem; }
.resume-contact li { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.resume-contact svg { width: 1rem; flex: none; color: var(--accent-text); }
.resume-contact a { overflow-wrap: anywhere; }
.skills { display: grid; gap: 0.8rem; margin: 0; }
.skills dt { font-weight: 650; font-size: 0.95rem; }
.skills dd { margin: 0; color: var(--text-muted); font-size: 0.93rem; }
.resume-certs { list-style: none; display: grid; gap: 0.7rem; }
.resume-certs li { display: grid; }
.resume-certs li > span:first-child { font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.resume-certs .dates { color: var(--text-muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.contact-card { display: flex; gap: 1rem; align-items: flex-start; }
.contact-card .icon { margin-bottom: 0; flex: none; }
.contact-card h3 { margin-bottom: 0.2rem; }
.contact-card a { font-weight: 600; font-size: 1.1rem; }
.area { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin-top: 0.75rem; }
.area li { border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.75rem; font-size: 0.92rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0 3rem; margin-top: clamp(3rem, 6vw, 5rem); color: var(--text-muted); font-size: 0.95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer a:hover { color: var(--accent-hover); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; list-style: none; }

/* Responsive */
@media (max-width: 960px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: minmax(0, 1fr); }
    .resume { grid-template-columns: minmax(0, 1fr); }
    .resume-aside { position: static; }
}
@media (max-width: 820px) {
    .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-grid, .about, .service, .cta { grid-template-columns: minmax(0, 1fr); }
    .hero-photo { justify-self: start; width: min(100%, 19rem); margin-left: 0.25rem; }
    .grid-2, .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .site-header .container { flex-wrap: wrap; gap: 0.25rem 1rem; padding-block: 0.6rem; }
    .site-nav { margin-left: 0; width: 100%; justify-content: space-between; }
    .site-nav a { padding: 0.4rem 0.5rem; }
    .site-nav .btn { display: none; }
    .grid-4 { grid-template-columns: minmax(0, 1fr); }
    .platforms { grid-template-columns: minmax(0, 1fr); }
    .client-types { gap: 0.7rem 1.4rem; }
    }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
    a.card:hover { transform: none; }
}

/* Print styles are at the end of theme.css, so they win over the theme's colours */
.print-only { display: none; }
