/* SITE CHROME for case study pages: the home page's header (the footer is in footer-reply.css).
   Load AFTER global-stylesheet.css and casestudy.css. Everything is scoped to
   .site-header / .site-footer and uses --chrome-* tokens, so the case study
   styles (and their --accent, --white, h2 fonts, footer rules) are untouched. */

:root {
    --chrome-dark: #161614;
    --chrome-on-dark: #F3F3EE;
    --chrome-on-dark-muted: #A3A39C;
    --chrome-muted: #4A4A45;
    --chrome-accent-on-dark: #A9C77E;
    --chrome-sans: 'Inter', system-ui, sans-serif;
    --chrome-mono: 'Courier Prime', ui-monospace, monospace;
    --chrome-serif: 'EB Garamond', Georgia, serif;
}

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

.chrome-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding-inline: 24px;
}

/* HEADER — same layout and type as home, white text over the case study banner */
.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 4px 24px;
    padding-block: 28px;
    font-family: var(--chrome-sans);
    -webkit-font-smoothing: antialiased;
    color: #FFFFFF;
    background: none;
}
.site-header a {
    color: #FFFFFF;
    text-decoration: underline transparent;
    text-decoration-thickness: 1px;
    text-underline-offset: .25em;
    transition: text-decoration-color .2s ease;
}
.site-header a:hover { color: #FFFFFF; text-decoration-color: #FFFFFF; }
.site-header a:focus-visible {
    outline: 2px solid #FFFFFF;
    outline-offset: 4px;
    border-radius: 2px;
}
.site-header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
}
.site-header .logo:hover { text-decoration-color: transparent; }
.site-header .flower {
    display: inline-block;
    font-size: 26px;
    line-height: 1;
}
.site-header .logo:hover .flower,
.site-header .logo:focus-visible .flower { animation: chrome-spin 2s linear infinite; }
@keyframes chrome-spin { to { transform: rotate(360deg); } }

/* reset the old global/casestudy nav rules */
.site-header .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    max-width: none;
    margin: 0;
    padding: 0;
    font-size: 15px;
}
.site-header .site-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 10px 14px;
}

/* FOOTER: the "write back" reply card lives in footer-reply.css (shared with home) */

@media (prefers-reduced-motion: reduce) {
    .site-header .logo:hover .flower,
    .site-header .logo:focus-visible .flower { animation: none; }
}
