/* ==========================================================================
   DESIGN TOKENS & SYSTEM VARIABLE PROPERTIES
   ========================================================================== */
:root {
    /* 60% Primary Canvas Space */
    --color-canvas: #DFD3C3;
    
    /* 30% Structural Layout, Type, Deep Contrast Anchors */
    --color-structure: #1E141D;
    --color-structure-muted: #362935;
    
    /* 10% Call To Action / Focal Points */
    --color-accent: #C87A53;
    --color-accent-hover: #B2653E;
    
    /* Typography Definitions */
    --font-headings: 'Fraunces', 'Newsreader', Georgia, serif;
    --font-body: 'Albert Sans', 'Outfit', system-ui, sans-serif;
    
    /* Global Structural Grid Rules */
    --max-width: 1140px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ==========================================================================
   CSS RESET & CORE ACCESSIBILITY ELEMENTS
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-canvas);
    color: var(--color-structure);
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--color-structure);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--color-structure);
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* ==========================================================================
   LAYOUT STRUCTURE & RESPONSIVE COMPONENT ELEMENTS
   ========================================================================== */
.site-header {
    border-bottom: 2px solid var(--color-structure);
    padding: 1.5rem 1rem;
}

.header-container, .footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo span {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 0.25rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

#main-content {
    flex: 1;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.site-footer {
    border-top: 1px solid rgba(30, 20, 29, 0.15);
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.95rem;
}

/* Component Level Buttons & Accent CTA Elements */
.btn-accent {
    display: inline-block;
    background-color: var(--color-accent);
    color: #FFF;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* ==========================================================================
   MOBILE RESPONSIVE BREAKPOINT GRID
   ========================================================================== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle .bar {
    width: 28px;
    height: 3px;
    background-color: var(--color-structure);
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        right: 0;
        background-color: var(--color-canvas);
        border-bottom: 2px solid var(--color-structure);
        padding: 2rem 1rem;
        z-index: 100;
    }

    .nav-menu.nav-open {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}

/* Hidden Trap Field Code */

.hidden-trap-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==========================================================================
   Editorial Neo-Minimalist Form Elements
   ========================================================================== */

/* The Form Container Flow */
.editorial-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    margin-top: 2rem;
}

/* Form Groups */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    position: relative;
}

/* Elegant Typographic Labels */
.form-field label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--color-structure);
    transition: var(--transition-smooth);
}

/* Premium Inputs Framework */
.editorial-form input[type="text"],
.editorial-form select,
.inline-action-form .compact-input {
    width: 100%;
    padding: 1rem 0; /* Premium asymmetrical spacing */
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--color-structure);
    background-color: transparent;
    border: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0.15); /* Clean line baseline */
    border-radius: 0;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Light/Dark mode line tint adaptation */
@media (prefers-color-scheme: dark) {
    .editorial-form input[type="text"],
    .editorial-form select {
        border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    }
}

/* Tactile Focus States */
.editorial-form input[type="text"]:focus,
.editorial-form select:focus,
.inline-action-form .compact-input:focus {
    outline: none;
    border-bottom: 2px solid var(--color-structure); /* Crisp definition accent change */
}

/* Micro-Explanatory Notes */
.form-field small {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--color-structure-muted);
    opacity: 0.8;
    margin-top: 0.2rem;
}

/* Elegant Select Customizations */
.editorial-form select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23111111' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 2rem;
}

/* Action Buttons as Design Statements */
.btn-accent {
    display: inline-block;
    text-align: center;
    background-color: var(--color-structure);
    color: var(--color-canvas);
    border: 1px solid var(--color-structure);
    padding: 1.2rem 2.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-accent:hover {
    background-color: transparent;
    color: var(--color-structure);
}