   @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

   /* ── Tokens ─────────────────────────────────────────────── */
   :root {
     /* Palette — light warm off-white ground, deep charcoal, brass accent */
     --bg:            #faf9f7;
     --bg-2:          #f5f3ef;
     --surface:       #fcfbf9;
     --surface-raised: #ffffff;
     --text:          #1c1a17;
     --text-secondary: #5a5550;
     --text-tertiary: #8c877f;
     --accent:        #7a5c2e;        /* warm brass */
     --accent-mid:    #a07840;
     --accent-light:  #e8ddd0;
     --accent-subtle: #f2ede5;
     --nav-bg:        #1c1a17;
     --nav-text:      #f0ece4;
     --border:        #ddd8cf;
     --border-strong: #b8b0a4;
     --shadow-sm:     0 1px 3px rgba(28,26,23,.06), 0 1px 2px rgba(28,26,23,.04);
     --shadow-md:     0 4px 16px rgba(28,26,23,.08), 0 2px 6px rgba(28,26,23,.05);
     --shadow-lg:     0 12px 40px rgba(28,26,23,.12), 0 4px 12px rgba(28,26,23,.07);
   
     /* Typography */
     --font-display: 'Cormorant Garamond', 'Georgia', serif;
     --font-body:    'DM Sans', system-ui, sans-serif;
     --font-mono:    'DM Mono', ui-monospace, monospace;
   
     /* Spacing scale */
     --space-xs:  0.375rem;
     --space-sm:  0.75rem;
     --space-md:  1.25rem;
     --space-lg:  2rem;
     --space-xl:  3rem;
     --space-2xl: 5rem;
   
     /* Motion */
     --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
     --duration:   220ms;
   }
   
   /* ── Reset & Base ─────────────────────────────────────────── */
   *, *::before, *::after {
     box-sizing: border-box;
     margin: 0;
   }
   
   html {
     scroll-behavior: smooth;
     -webkit-text-size-adjust: 100%;
   }
   
   body {
     font-family: var(--font-body);
     font-size: 1rem;
     font-weight: 300;
     line-height: 1.75;
     color: var(--text);
     background-color: var(--bg);
     background-image:
       radial-gradient(ellipse 80% 50% at 50% -20%, rgba(122,92,46,.04) 0%, transparent 70%);
     min-height: 100vh;
     -webkit-font-smoothing: antialiased;
     -moz-osx-font-smoothing: grayscale;
   }
   
   /* ── Layout ──────────────────────────────────────────────── */
   .container {
     max-width: 100%;
     width: 100%;
     margin-inline: 0;
     padding-inline: clamp(1rem, 3vw, 2rem);
     padding-block: var(--space-lg) var(--space-2xl);
   }
   
   /* ── Header / Navigation ─────────────────────────────────── */
   header {
     background: var(--nav-bg);
     position: sticky;
     top: 0;
     z-index: 100;
     /* Subtle noise texture via SVG data URI */
     background-image:
       url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.03'/%3E%3C/svg%3E"),
       linear-gradient(180deg, #242019 0%, #1c1a17 100%);
     border-bottom: 1px solid rgba(255,255,255,.06);
     box-shadow: 0 1px 0 rgba(255,255,255,.04), var(--shadow-sm);
   }
   
   header .container {
     padding-block: 0;
     display: flex;
     flex-direction: column;
     gap: 0;
   }
   
   /* Site title / wordmark — large, lightweight, italic (editorial) */
   h1 {
     font-family: var(--font-display);
     font-size: clamp(1.5rem, 3.5vw, 2rem);
     font-weight: 300;
     font-style: italic;
     letter-spacing: .03em;
     color: var(--nav-text);
     line-height: 1.2;
     padding-block: var(--space-md) 0;
   }
   
   h1 em {
     font-style: italic;
     color: var(--accent-mid);
   }
   
   /* Navigation */
   nav {
     padding-block: var(--space-sm) var(--space-md);
     border-top: 1px solid rgba(255,255,255,.08);
     margin-top: var(--space-sm);
   }
   
   nav ul {
     list-style: none;
     padding: 0;
     display: flex;
     flex-wrap: wrap;
     gap: var(--space-xs) var(--space-lg);
     align-items: center;
   }
   
   nav a {
     font-family: var(--font-body);
     font-size: .8125rem;
     font-weight: 400;
     letter-spacing: .12em;
     text-transform: uppercase;
     color: rgba(240,236,228,.65);
     text-decoration: none;
     padding: var(--space-xs) 0;
     position: relative;
     transition: color var(--duration) var(--ease-out);
   }
   
   /* Animated underline */
   nav a::after {
     content: '';
     position: absolute;
     left: 0; bottom: 0;
     width: 0; height: 1px;
     background: var(--accent-mid);
     transition: width var(--duration) var(--ease-out);
   }
   
   header nav a:hover,
   header nav a:focus {
     color: var(--nav-text);
     text-decoration: none;
     outline-offset: 4px;
   }
   
   header nav a:hover::after,
   header nav a:focus::after {
     width: 100%;
   }
   
   header nav a.active {
     color: var(--nav-text);
     font-weight: 500;
   }
   
   header nav a.active::after {
     width: 100%;
     background: var(--accent-mid);
   }
   
   /* ── Page title ───────────────────────────────────────────── */
   /* Large, italic, sweeping; hairline rule + brass left-bar; generous space below */
   .page-title {
     font-family: var(--font-display);
     font-size: clamp(2rem, 6vw, 3.25rem);
     font-weight: 300;
     font-style: italic;
     letter-spacing: -.01em;
     line-height: 1.1;
     color: var(--text);
     margin-bottom: var(--space-xl);
     padding-bottom: var(--space-lg);
     border-bottom: 1px solid var(--border);
     position: relative;
   }
   
   /* Decorative rule accent */
   .page-title::after {
     content: '';
     position: absolute;
     left: 0; bottom: -1px;
     width: 3rem; height: 2px;
     background: var(--accent);
   }
   
   /* ── Section headings ─────────────────────────────────────── */
   h2 {
     font-family: var(--font-display);
     font-size: clamp(1.375rem, 3vw, 1.75rem);
     font-weight: 400;
     font-style: italic;
     letter-spacing: .01em;
     color: var(--text);
     margin-top: var(--space-xl);
     margin-bottom: var(--space-md);
     padding-bottom: var(--space-sm);
     border-bottom: 1px solid var(--border);
     position: relative;
   }
   
   h2::before {
     content: '';
     position: absolute;
     left: 0; bottom: -1px;
     width: 2rem; height: 2px;
     background: var(--accent);
   }
   
   h2.page-title {
     margin-top: 0;
   }
   
   h3 {
     font-family: var(--font-body);
     font-size: .8125rem;
     font-weight: 500;
     letter-spacing: .14em;
     text-transform: uppercase;
     color: var(--accent);
     margin-top: var(--space-lg);
     margin-bottom: var(--space-sm);
   }
   
   h4 {
     font-family: var(--font-body);
     font-size: 1rem;
     font-weight: 400;
     color: var(--text);
     margin-top: var(--space-md);
     margin-bottom: var(--space-xs);
   }
   
   /* ── Body text ────────────────────────────────────────────── */
   /* Lightweight, warm charcoal, slightly muted (readable, not aggressively black) */
   p {
     margin-bottom: var(--space-md);
     color: var(--text-secondary);
   }
   
   p:last-child { margin-bottom: 0; }
   
   /* ── Links ────────────────────────────────────────────────── */
   a {
     color: var(--accent);
     text-underline-offset: 3px;
     text-decoration-thickness: 1px;
     transition: color var(--duration) var(--ease-out),
                 text-decoration-color var(--duration) var(--ease-out);
   }
   
   a:hover, a:focus {
     color: var(--accent-mid);
   }
   
   /* ── Artifacts / Figures ─────────────────────────────────── */
   /* Crisp white cards, soft warm shadow; hover: lift 2px, deeper shadow */
   .artifact {
     margin-block: var(--space-lg);
     background: var(--surface-raised);
     border: 1px solid var(--border);
     border-radius: 6px;
     overflow: hidden;
     box-shadow: var(--shadow-md);
     transition: box-shadow var(--duration) var(--ease-out),
                 transform var(--duration) var(--ease-out);
   }
   
   .artifact:hover {
     box-shadow: var(--shadow-lg);
     transform: translateY(-2px);
   }
   
   /* Inner padding for text-only artifacts */
   .artifact > :not(img):not(.screenshot-grid) {
     padding: var(--space-md) var(--space-lg);
   }
   
   .artifact img {
     max-width: 100%;
     height: auto;
     display: block;
   }
   
   .artifact figcaption {
     padding: var(--space-sm) var(--space-md);
     font-size: .8125rem;
     font-weight: 300;
     color: var(--text-tertiary);
     letter-spacing: .01em;
     border-top: 1px solid var(--border);
     background: var(--surface);
   }
   
   .artifact figcaption strong {
     font-weight: 500;
     color: var(--text-secondary);
   }
   
   /* ── Screenshot grid ──────────────────────────────────────── */
   .screenshot-grid {
     display: grid;
     grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
     gap: var(--space-sm);
     padding: var(--space-md);
     background: var(--bg-2);
   }

   /* Larger screens so artifacts are easier to see (setup, interview, dashboard) */
   .screenshot-grid--large {
     grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
     gap: var(--space-md);
   }

   /* Full-width: one screenshot per row, uses full content width for readability */
   .artifact .screenshot-grid.screenshot-grid--fullwidth {
     display: grid;
     grid-template-columns: 1fr;
     grid-auto-flow: row;
     gap: var(--space-lg);
     padding: var(--space-md) 0;
   }
   .artifact .screenshot-grid.screenshot-grid--fullwidth figure {
     max-width: 100%;
     min-width: 0;
   }
   .artifact .screenshot-grid.screenshot-grid--fullwidth img {
     width: 100%;
     max-width: 100%;
     height: auto;
     display: block;
   }
   .screenshot-grid .screenshot-intro {
     margin: 0 0 var(--space-xs) 0;
     font-size: 0.9375rem;
     color: var(--text-secondary);
   }
   
   .screenshot-grid figure {
     margin: 0;
     border-radius: 4px;
     overflow: hidden;
     box-shadow: var(--shadow-sm);
     transition: box-shadow var(--duration) var(--ease-out),
                 transform var(--duration) var(--ease-out);
   }
   
   .screenshot-grid figure:hover {
     box-shadow: var(--shadow-md);
     transform: translateY(-2px);
   }
   
   .screenshot-grid img {
     width: 100%;
     height: auto;
     display: block;
     border-radius: 4px;
     border: 1px solid var(--border);
   }
   
   /* ── Code blocks ──────────────────────────────────────────── */
   /* Near-black warm background, cream type — not cold gray */
   .artifact pre {
     margin: 0;
     padding: var(--space-md) var(--space-lg);
     background: #16140f;
     border-top: 1px solid var(--border);
     overflow-x: auto;
     font-size: .85rem;
     line-height: 1.6;
   }
   
   .artifact code {
     font-family: var(--font-mono);
     color: #d4c9b2;
   }
   
   /* Inline code */
   :not(pre) > code {
     font-family: var(--font-mono);
     font-size: .88em;
     padding: .15em .4em;
     background: var(--accent-subtle);
     border: 1px solid var(--accent-light);
     border-radius: 3px;
     color: var(--accent);
   }
   
   /* ── Lists ────────────────────────────────────────────────── */
   ul, ol {
     padding-left: 1.4rem;
     margin-bottom: var(--space-md);
     color: var(--text-secondary);
   }
   
   li {
     margin-bottom: .3rem;
   }
   
   li::marker {
     color: var(--accent);
   }
   
   /* ── Bibliography ─────────────────────────────────────────── */
   /* Indented, brass left bar (pull-quote / sidebar feel); annotation in Cormorant */
   .bib-section {
     margin-bottom: var(--space-lg);
     padding: var(--space-md) var(--space-lg);
     background: var(--surface);
     border: 1px solid var(--border);
     border-left: 3px solid var(--accent);
     border-radius: 0 6px 6px 0;
   }
   
   .bib-annotation {
     margin-bottom: var(--space-sm);
     font-family: var(--font-display);
     font-size: 1.05rem;
     font-weight: 300;
     color: var(--text-secondary);
   }
   
   .bib-list {
     list-style: none;
     padding: 0;
     margin: 0;
   }
   
   .bib-list li {
     margin-bottom: var(--space-sm);
     padding-left: var(--space-md);
     text-indent: calc(-1 * var(--space-md));
     font-size: .9rem;
     line-height: 1.6;
     color: var(--text-secondary);
     border-bottom: 1px solid var(--border);
     padding-bottom: var(--space-sm);
   }
   
   .bib-list li:last-child {
     border-bottom: none;
     margin-bottom: 0;
     padding-bottom: 0;
   }
   
   /* Per-source: citation then annotation */
   .bib-item {
     margin-bottom: var(--space-lg);
     padding-bottom: var(--space-lg);
     border-bottom: 1px solid var(--border);
   }
   .bib-item:last-child {
     margin-bottom: 0;
     padding-bottom: 0;
     border-bottom: none;
   }
   .bib-item .bib-citation {
     font-size: .9rem;
     line-height: 1.6;
     color: var(--text);
     margin-bottom: var(--space-xs);
   }
   .bib-item .bib-annotation {
     margin-bottom: 0;
   }
   
   /* ── Back link ────────────────────────────────────────────── */
   .back-link {
     display: inline-flex;
     align-items: center;
     gap: .4rem;
     margin-top: var(--space-xl);
     font-size: .8125rem;
     font-weight: 500;
     letter-spacing: .08em;
     text-transform: uppercase;
     color: var(--text-tertiary);
     text-decoration: none;
     padding: var(--space-xs) 0;
     border-bottom: 1px solid transparent;
     transition: color var(--duration) var(--ease-out),
                 border-color var(--duration) var(--ease-out);
   }
   
   .back-link::before {
     content: '←';
     transition: transform var(--duration) var(--ease-out);
   }
   
   .back-link:hover,
   .back-link:focus {
     color: var(--accent);
     border-color: var(--accent-light);
     text-decoration: none;
   }
   
   .back-link:hover::before {
     transform: translateX(-3px);
   }
   
   /* ── Dividers ─────────────────────────────────────────────── */
   /* Thin rule with ✦ centered, floating on background — quiet decorative moment */
   hr {
     border: none;
     border-top: 1px solid var(--border);
     margin-block: var(--space-xl);
     position: relative;
   }
   
   hr::after {
     content: '✦';
     position: absolute;
     left: 50%; top: 50%;
     transform: translate(-50%, -50%);
     background: var(--bg);
     padding-inline: .5rem;
     font-size: .6rem;
     color: var(--border-strong);
     letter-spacing: .2em;
   }
   
   /* ── Selection ────────────────────────────────────────────── */
   ::selection {
     background: var(--accent-light);
     color: var(--text);
   }
   
   /* ── Scrollbar (Webkit) ───────────────────────────────────── */
   ::-webkit-scrollbar {
     width: 8px;
     height: 8px;
   }
   ::-webkit-scrollbar-track { background: var(--bg-2); }
   ::-webkit-scrollbar-thumb {
     background: var(--border-strong);
     border-radius: 4px;
   }
   ::-webkit-scrollbar-thumb:hover { background: var(--accent); }
   
   /* ── Focus styles ─────────────────────────────────────────── */
   :focus-visible {
     outline: 2px solid var(--accent);
     outline-offset: 3px;
     border-radius: 2px;
   }
   
   /* ── Responsive ───────────────────────────────────────────── */
   @media (max-width: 600px) {
     .container {
       padding-inline: 1.25rem;
     }
   
     nav ul {
       gap: var(--space-sm) var(--space-md);
     }
   
     .screenshot-grid,
     .screenshot-grid--large {
       grid-template-columns: 1fr;
     }
   
     .bib-section {
       padding: var(--space-md);
     }
   
     .artifact > :not(img):not(.screenshot-grid) {
       padding: var(--space-sm) var(--space-md);
     }
   }
   
   @media (prefers-reduced-motion: reduce) {
     *, *::before, *::after {
       animation-duration: .01ms !important;
       transition-duration: .01ms !important;
     }
   }
   
   /* Dark mode (OS preference) — warm brown-black, richer gold accent; candlelight feel */
   @media (prefers-color-scheme: dark) {
     :root {
       --bg:            #141210;
       --bg-2:          #1a1814;
       --surface:       #1e1b17;
       --surface-raised: #242018;
       --text:          #ede8de;
       --text-secondary: #a89f92;
       --text-tertiary: #6e6660;
       --accent:        #c49a52;
       --accent-mid:    #d4aa6a;
       --accent-light:  #2e2416;
       --accent-subtle: #1e1a12;
       --nav-bg:        #0d0c0a;
       --nav-text:      #ede8de;
       --border:        #2a2520;
       --border-strong: #3e3830;
       --shadow-sm:     0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
       --shadow-md:     0 4px 16px rgba(0,0,0,.4), 0 2px 6px rgba(0,0,0,.25);
       --shadow-lg:     0 12px 40px rgba(0,0,0,.5), 0 4px 12px rgba(0,0,0,.3);
     }
   
     body {
       background-image:
         radial-gradient(ellipse 80% 50% at 50% -20%, rgba(196,154,82,.05) 0%, transparent 70%);
     }
   
     .artifact pre {
       background: #0a0908;
     }
   }