/* Sarnia: a dark, warm studio with a person behind it. One amber accent (a nod to the
   craft-beer story), Bricolage Grotesque throughout. Used by the homepage, privacy and 404
   pages; mergable/ keeps using styles.css. */

:root {
    --bg: #0f1012;
    --surface: #17191c;
    --surface-warm: #1d1a14;
    --line: #26292d;
    --line-warm: #3a332a;
    --text: #f2efe8;
    --muted: #a8a69f;
    --accent: #ffb547;
    --accent-ink: #1a1205;
    --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --body: 'Bricolage Grotesque', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --gutter: 72px;
    --max: 1296px;
    color-scheme: dark;
    accent-color: var(--accent);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--body);
    font-size: 18px;
    line-height: 1.6;
    font-optical-sizing: auto;
    -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; }
a { color: var(--text); text-decoration-color: rgba(255, 181, 71, 0.5); text-underline-offset: 4px; }
a:hover { color: var(--text); text-decoration-color: var(--accent); }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

html { scrollbar-color: #33363b var(--bg); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 26px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 17px;
    text-decoration: none;
    transition: transform 150ms var(--ease), background-color 150ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #ffc46e; color: var(--accent-ink); }
.btn-dark { background: var(--accent-ink); color: var(--accent); }
.btn-dark:hover { background: #2a1e0a; color: var(--accent); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(15, 16, 18, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav-inner { display: flex; align-items: center; height: 80px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.wordmark:hover { color: var(--text); }
.wordmark .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.wordmark img { width: auto; height: 28px; }
.nav nav { margin-left: auto; display: flex; gap: 32px; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 16px; }
.nav nav a:hover { color: var(--text); }

/* Hero */
.hero { padding-block: 64px 96px; }
.hello { color: var(--accent); font-weight: 600; font-size: 22px; }
.hero h1 {
    margin-top: 16px;
    max-width: 13em;
    font-size: clamp(42px, 6vw, 84px);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -0.04em;
}
.lede { margin-top: 28px; max-width: 40em; color: var(--muted); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; }
.lede strong { color: var(--text); font-weight: 600; }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hero-actions span { color: var(--muted); font-size: 16px; }

/* Sections */
.section { padding-block: 40px 56px; }
.section-title { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.section-lede { margin-top: 12px; max-width: 40em; color: var(--muted); }

/* App logos: tinted into the palette at rest, real colours on hover, focus and touch */
.logo {
    filter: grayscale(1) sepia(0.85) saturate(1.5) hue-rotate(-8deg) brightness(0.98);
    opacity: 0.88;
    transition: filter 380ms var(--ease), opacity 380ms var(--ease);
}
.project:hover .logo,
.project:focus-within .logo { filter: none; opacity: 1; }
@media (hover: none) {
    .logo { filter: none; opacity: 1; }
}

/* Oznr feature */
.feature {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
}
.feature-copy { padding: 56px; display: flex; flex-direction: column; align-items: flex-start; }
.tag { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--accent); }
.oznr-logo { margin-top: 26px; width: 216px; height: auto; }
.feature-copy p { margin-top: 22px; color: var(--muted); font-size: 18px; }
.feature-links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 16px; }
.timeline { background: var(--surface-warm); padding: 48px 56px; display: flex; flex-direction: column; justify-content: center; counter-reset: beat; }
.timeline li { position: relative; padding: 18px 0 18px 46px; border-bottom: 1px dashed var(--line-warm); }
.timeline li:last-child { border-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 26px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--accent); }
.timeline li:last-child::before { background: var(--accent); }
.timeline h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.timeline p { margin-top: 4px; color: var(--muted); font-size: 16px; line-height: 1.5; }

/* Work */
.groups { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.group > h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.group > p { margin-top: 4px; color: var(--muted); font-size: 16px; }
.projects { margin-top: 16px; display: grid; gap: 12px; }
.project { position: relative; }
.projects .project {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.projects .project:hover, .projects .project:focus-within { border-color: #3a3d42; background: #1b1d21; }
.projects .logo { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; }
.lettermark {
    display: grid;
    place-items: center;
    background: var(--surface-warm);
    border: 1px solid var(--line-warm);
    color: var(--accent);
    font-family: var(--display);
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -0.02em;
}
.lettermark.logo { filter: grayscale(1); }
.project:hover .lettermark, .project:focus-within .lettermark { filter: none; }
@media (hover: none) { .lettermark.logo { filter: none; } }
.projects .project > div { min-width: 0; }
.projects .project a, .projects .project b { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; text-decoration: none; color: var(--text); }
.projects .project a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.projects .project a:focus-visible { outline: none; }
.projects .project:has(a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.projects .project > div > span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.projects .project a.sub-link { position: relative; z-index: 1; display: inline-block; margin-top: 8px; font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: underline; text-decoration-color: rgba(255, 181, 71, 0.5); }
.projects .project a.sub-link::after { content: none; }
.projects .project a.sub-link:hover { color: var(--text); }
.projects .project em { font-style: normal; font-size: 13px; color: var(--muted); padding-top: 4px; }

.earlier { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 24px; }
.earlier h3 { font-size: 16px; font-weight: 600; color: var(--muted); }
.earlier ul { display: grid; gap: 10px; }
.earlier li { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 16px; }
.earlier li span { color: var(--muted); }

/* Talk */
.talk-section { padding-block: 40px 72px; }
.talk { background: var(--accent); color: var(--accent-ink); border-radius: 28px; padding: 64px; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.talk h2 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; line-height: 0.95; letter-spacing: -0.04em; max-width: 10em; }
.talk-copy p { margin-top: 20px; max-width: 34em; font-size: 18px; color: #3d2a08; }
.topics { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.topics li { padding: 8px 14px; border: 1px solid rgba(26, 18, 5, 0.3); border-radius: 999px; font-size: 15px; font-weight: 500; }
.talk-actions { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.email { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.email span { user-select: all; }
.copy { font: inherit; font-size: 14px; font-weight: 700; color: var(--accent-ink); background: transparent; border: 1px solid rgba(26, 18, 5, 0.4); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.copy:hover { background: rgba(26, 18, 5, 0.08); }
.talk :focus-visible { outline-color: var(--accent-ink); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.footer nav { margin-left: auto; display: flex; gap: 24px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Long-form pages (privacy) */
.doc { padding-block: 56px 96px; }
.doc .wrap { max-width: calc(760px + var(--gutter) * 2); }
.doc h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.doc .updated { margin-top: 12px; color: var(--muted); }
.doc h2 { margin-top: 40px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.doc h3 { margin-top: 22px; font-size: 19px; font-weight: 700; }
.doc p, .doc li { color: var(--muted); font-size: 17px; line-height: 1.7; }
.doc p { margin-top: 12px; }
.doc ul { margin-top: 12px; padding-left: 20px; list-style: disc; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--text); }

/* Responsive */
@media (max-width: 1100px) {
    :root { --gutter: 40px; }
    .groups { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .feature { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    :root { --gutter: 16px; }
    body { font-size: 17px; }
    .nav-inner { height: 64px; }
    .nav nav { gap: 20px; }
    .hero { padding-block: 40px 64px; }
    .groups { grid-template-columns: minmax(0, 1fr); }
    .feature-copy, .timeline { padding: 32px 24px; }
    .talk { flex-direction: column; align-items: flex-start; padding: 36px 24px; }
    .talk-actions { align-items: flex-start; }
    .email { flex-wrap: wrap; }
    .earlier { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .footer nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .logo, .btn, .projects .project { transition: none; }
}
