* {

      font-family: var(--serif);
      box-sizing: border-box;
}



html {
    scroll-behavior: smooth;
    /* Prevents layout shift during scrollbar appearance */
    scrollbar-gutter: stable;
}

body {
    font-family: var(--serif);
    font-size: var(--text-md);
    line-height: 1.6;
    color: var(--ink);
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    
    /* 3. Performance & Layout */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility; /* Changed from optimizeSpeed for better serif rendering */
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}
/* Typography Utilities */
.serif { 
    font-family: var(--serif); 
    font-weight: 600; 
    letter-spacing: -0.01em; 
}

.mono { 
    font-family: var(--mono); 
    letter-spacing: -0.02em; 
    font-size: 0.9em; /* Monospace often feels larger than sans */
}

/* Refined Heading Hierarchy */


h1 { 
    font-size: clamp(2.5rem, calc(5vw + 1rem), var(--text-5xl)); 
    margin-bottom: var(--s-6);  
}
h2 { font-size: clamp(1.8rem, 3vw + 1rem, var(--text-4xl)); margin-bottom: var(--s-5); }
h3 { font-size: var(--text-2xl); margin-bottom: var(--s-4); }
h4 { font-size: var(--text-xl); margin-bottom: var(--s-3); }

p {
    margin-bottom: var(--s-6); 
}

/* Micro Typography */
small, .micro { 
    font-size: var(--text-xs); 
    color: var(--muted); 
    line-height: 1.4;
    margin-top: 10px;
    text-align: center;
}



.upcase { 
    text-transform: uppercase; 
    letter-spacing: 0.15em; /* Increased spacing for small caps */
    font-size: var(--text-xs); 
    font-weight: 700;
    color: var(--muted-2); 
}

.capital-case {
    text-transform: capitalize;
}

.upper-case {
    text-transform: uppercase;
}


/* Modern Eyebrow (Chip Style) */
.eyebrow {
    display: inline-flex;
    align-items: center;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber-500);
    background: color-mix(in srgb, var(--amber-500), transparent 92%);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: var(--s-4);
    border: 1px solid color-mix(in srgb, var(--amber-500), transparent 80%);
    width: fit-content;
}

/* Interactive Elements */
a.link {
    color: var(--indigo-700);
    text-decoration: none;
    background-image: linear-gradient(var(--amber-400), var(--amber-400));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    transition: var(--transition);
}

a.link:hover {
    color: var(--indigo-900);
    background-size: 100% 2px;
}

/* Accessibility Focus States */
:focus-visible {
    outline: 2px solid var(--amber-500);
    outline-offset: 4px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: var(--s-4);
    background: var(--indigo-900);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    z-index: 1000;
    font-weight: 600;
    box-shadow: var(--shadow-3);
    text-decoration: none;
}

.skip-link:focus { left: var(--s-4); }

/* Selection Aesthetic */
::selection {
    background: var(--indigo-900);
    color: var(--amber-100);
}



.dash-a{
    display: flex;
    gap: 10px;
}