/* Arcadian Advisory - Design System 2026 */

:root {
    /* Colors */
    --ink: #0f1a22;
    --bg: #fbfaf7;
    --surface: #ffffff;
    --tint: #f4f3ef; /* Subtle tint for Approach section */
    --border: rgba(15, 26, 34, 0.12);
    --muted: rgba(15, 26, 34, 0.65);
    --muted-2: rgba(15, 26, 34, 0.45);
    --accent: rgba(15, 26, 34, 0.08);

    /* Spacing Scale */
    --space-1: 8px;
    --space-2: 12px;
    --space-3: 16px;
    --space-4: 24px;
    --space-5: 32px;
    --space-6: 56px; /* Adjusted for mobile section padding target */
    --space-7: 72px;
    --space-8: 96px;
    --space-9: 128px;
    
    /* Layout */
    --max: 1140px;
    --gutter: 2rem;
    --section-padding-desktop: var(--space-8);
    --section-padding-tablet: var(--space-7);
    --section-padding-mobile: var(--space-6);
    
    /* Typography */
    --font-serif: "Source Serif 4", Charter, Georgia, serif;
    --font-ui: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--font-serif);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(15, 26, 34, 0.12);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--ink);
}

a:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ---------------------------
   Global Typography & Utilities
--------------------------- */

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* H1: Hero Headline */
h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
    margin-bottom: var(--space-3);
    font-weight: 400;
}

/* H2: Section Headings - Standardized across all sections */
h2 {
    font-size: clamp(2rem, 3.5vw, 2.4rem);
    margin-bottom: var(--space-6);
    font-weight: 300;
}

/* H3: Subheads inside sections (Engagement titles, Principles) */
h3 {
    font-size: 1.4rem; /* Increased slightly for authority */
    margin-bottom: var(--space-1);
    font-weight: 400;
}

p {
    margin: 0 0 1rem 0;
    max-width: 65ch;
}

/* Meta Style - The "Global" Token */
.meta {
    font-family: var(--font-serif);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted-2);
    font-weight: 500;
}

.muted {
    color: var(--muted);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ---------------------------
   Layout Utilities
--------------------------- */

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* Consistent Section Wrapper */
.section {
    padding-top: var(--section-padding-mobile);
    padding-bottom: var(--section-padding-mobile);
}

@media (min-width: 768px) {
    .section {
        padding-top: var(--section-padding-tablet);
        padding-bottom: var(--section-padding-tablet);
    }
}

@media (min-width: 1024px) {
    .section {
        padding-top: var(--section-padding-desktop);
        padding-bottom: var(--section-padding-desktop);
    }
}

/* Divider Policy: Only used sparingly */
.divider-top {
    border-top: 1px solid var(--border);
}

/* ---------------------------
   Header
--------------------------- */

.site-header {
    position: sticky;
    top: 0;
    background: rgba(251, 250, 247, 0.95);
    backdrop-filter: blur(8px);
    z-index: 100;
    padding: 1.5rem 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-wordmark {
    height: 72px; /* Increased from 32px for taller stacked logo */
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    gap: var(--space-4);
}

.site-nav a {
    font-size: 0.95rem;
    color: var(--muted);
    position: relative;
    padding-bottom: 2px;
    display: none; 
}

@media (min-width: 600px) {
    .site-nav a {
        display: inline-block;
    }
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--ink);
}

/* ---------------------------
   Hero Section
--------------------------- */

.hero {
    position: relative;
    padding-top: var(--space-9); /* Taller top padding for hero */
    padding-bottom: var(--space-6); /* Reduced bottom padding for tighter transition */
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 1; /* Increased from 0.6 to allow lines to be more visible */
}

.topo-line {
    fill: none;
    stroke: var(--muted); /* Use muted ink so max opacity (0.5) = ~32% visual */
    stroke-width: 1.5px;
    /* Removed CSS opacity override so inline SVG opacity attributes work (gradient) */
}

.hero-content {
    max-width: 800px;
}

.kicker {
    /* Meta Style Application */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted-2);
    font-weight: 500;
    
    margin-bottom: var(--space-3);
    display: block;
}

.subline {
    font-size: 1.35rem;
    color: var(--muted);
    margin-bottom: var(--space-5);
    max-width: 38ch;
    line-height: 1.5;
}

.link-cta {
    display: inline-flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
}

.link-cta:hover {
    border-bottom-color: var(--ink);
}

/* ---------------------------
   The Standard (Grid)
--------------------------- */

/* Standard has a divider before it */
.section-standard {
    border-top: 1px solid var(--border);
}

.grid-2x2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding-top: var(--space-2);
}

@media (min-width: 768px) {
    .grid-2x2 {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-7) var(--space-5); /* Row gap increased (+12-20px) */
    }
}

.grid-item h3 {
    font-size: 1.5rem; /* Increased size for statement feel */
    font-weight: 400;
    margin-bottom: var(--space-2);
}

.grid-item p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 34ch; /* Tighten line length */
}

/* ---------------------------
   Engagements
--------------------------- */

.section-engagements {
    /* No divider here, relying on whitespace */
}

.engagement-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.engagement-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
    padding-top: var(--space-4);
    padding-bottom: var(--space-4);
    border-top: 1px solid var(--border); /* Internal item dividers */
}

.engagement-item:first-child {
    border-top: none;
    padding-top: 0;
}

@media (min-width: 900px) {
    .engagement-item {
        grid-template-columns: 350px 1fr;
        gap: var(--space-6);
        align-items: flex-start;
    }
}

.engagement-title {
    font-size: 1.5rem; /* Consistent H3 sizing */
    font-weight: 500;
}

.engagement-details {
    max-width: 42ch; /* Limit width */
}

.engagement-details p {
    margin-bottom: var(--space-2); /* Title -> description gap */
    color: var(--muted);
}

.engagement-cadence {
    /* Meta Style Application */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted-2) !important;
    font-weight: 500;
    
    margin-top: var(--space-2); /* Description -> cadence gap */
    display: block;
}


/* ---------------------------
   Approach (Numbered)
--------------------------- */

.section-approach {
    background-color: var(--tint); /* Subtle tinted background */
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

@media (min-width: 600px) {
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .steps-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-4);
    }
}

.step-num {
    font-size: 3.5rem; /* Increased visibility */
    color: rgba(15, 26, 34, 0.25); /* Increased opacity/contrast */
    font-weight: 300;
    line-height: 1;
    margin-bottom: var(--space-3);
    font-variant-numeric: tabular-nums;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-1);
}

.step-content p {
    font-size: 0.95rem;
    color: var(--muted);
}

/* ---------------------------
   About Section
--------------------------- */

.about-section {
    /* Clean background to match rest (or keep white if body is tinted? Body is --bg #fbfaf7) */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    align-items: start;
}

@media (min-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr 280px;
        gap: var(--space-7); /* 72px */
    }
    
    .about-content {
        margin-top: 0; 
    }
}

.about-photo {
    order: 2;
    width: 100%;
    max-width: 70%;
}

@media (min-width: 900px) {
    .about-photo {
        margin-top: var(--space-6); /* Asymmetry: Push photo down */
        max-width: 100%;
        justify-self: end;
    }
}

.about-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: 60% 20%;
    border-radius: 4px;
    filter: grayscale(100%) contrast(1.2);
    display: block;
}

/* Exception: Reduce gap between Name and Role to group them */
.about-content h2 {
    margin-bottom: var(--space-2);
}

.role-title {
    /* Meta Style Application */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted-2);
    font-weight: 500;
    
    margin-bottom: var(--space-5);
}

.about-subhead {
    /* "Pull-line Dominance" */
    font-size: clamp(2rem, 3.5vw, 2.5rem); 
    line-height: 1.15;
    margin-top: var(--space-6); 
    margin-bottom: var(--space-4);
    font-weight: 400;
    color: var(--ink);
    max-width: 38ch;
}

.about-list {
    margin-top: var(--space-3);
    padding-left: 0;
    list-style: none;
}

.about-list-label {
    /* Meta Style Application */
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted-2);
    font-weight: 500;

    margin-top: var(--space-6);
    margin-bottom: var(--space-3);
    display: block;
}

.about-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: var(--space-2);
    color: var(--muted-2);
    font-size: 1.05rem;
    line-height: 1.5;
}

.about-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--border);
}

.bio-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 58ch;
    margin-bottom: var(--space-3);
}

/* ---------------------------
   Contact & Footer
--------------------------- */

.section-contact {
    /* Slightly compact */
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
    border-top: 1px solid var(--border);
}

.contact-simple p {
    margin-bottom: var(--space-1);
    font-size: 1.25rem;
}

.contact-email {
    text-decoration: underline;
    text-decoration-color: var(--border);
    text-underline-offset: 4px;
}

.contact-email:hover {
    text-decoration-color: var(--ink);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-4);
    margin-top: var(--space-6);
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--muted-2);
}

.footer-links a {
    color: var(--muted);
    margin-right: var(--space-3);
}

.footer-links a:hover {
    color: var(--ink);
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 1rem;
    background: var(--surface);
    padding: 1rem;
    z-index: 1000;
}
.skip-link:focus {
    left: 1rem;
}
