/* Mesa Point - Executive Slate Design System */

/* 1. Color System */
:root {
    --slate-bg: #1E293B;
    --slate-line: #334155;
    --slate-muted: #94A3B8;
    --slate-text: #F8FAFC;
    --slate-hover-tint: rgba(248, 250, 252, 0.06);
    --slate-focus: rgba(248, 250, 252, 0.18);
}

/* 2. Global Background and Text */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background: var(--slate-bg);
    color: var(--slate-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

/* 3. Content Column */
.container {
    max-width: 1040px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    position: relative;
}

@media (min-width: 768px) {
    .container {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (min-width: 1024px) {
    .container {
        padding-left: 48px;
        padding-right: 48px;
    }
}

/* 4. Ledger System */
.page-ledger {
    position: relative;
}

.page-ledger::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 24px;
    width: 1px;
    background: var(--slate-line);
    pointer-events: none;
}

@media (min-width: 768px) {
    .page-ledger::before {
        left: 32px;
    }
}

@media (min-width: 1024px) {
    .page-ledger::before {
        left: 48px;
    }
}

/* Section Dividers */
.section {
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
}

.section::before {
    content: "";
    display: block;
    height: 1px;
    background: var(--slate-line);
    width: 100%;
    margin-bottom: 32px;
}

.section:first-of-type::before {
    display: none;
}

@media (max-width: 767px) {
    .section {
        padding-top: 64px;
        padding-bottom: 64px;
    }
}

/* 5. Typography */
h1, h2, h3, h4 {
    color: var(--slate-text);
    font-weight: 600;
    line-height: 1.15;
}

h1 {
    font-size: 56px;
    margin-bottom: 24px;
}

h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

p {
    line-height: 1.55;
    max-width: 72ch;
    margin-bottom: 16px;
    font-size: 19px;
}

p:last-child {
    margin-bottom: 0;
}

/* Metadata and Labels */
.meta,
.section-number,
.label {
    color: var(--slate-muted);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    display: block;
}

/* Lists */
ul, ol {
    max-width: 72ch;
    margin-bottom: 24px;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

ul li:before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--slate-muted);
}

ol {
    padding-left: 24px;
}

ol li {
    margin-bottom: 20px;
}

strong {
    color: var(--slate-text);
    font-weight: 600;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
}

/* 6. Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--slate-bg);
    border-bottom: 1px solid var(--slate-line);
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .header-content {
        padding: 0 32px;
    }
}

@media (min-width: 1024px) {
    .header-content {
        padding: 0 48px;
    }
}

.logo {
    display: block;
    height: 28px;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--slate-muted);
    font-size: 15px;
    font-weight: 500;
    transition: color 120ms ease;
}

.nav-link:hover {
    color: var(--slate-text);
}

.nav-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--slate-focus);
    border-radius: 4px;
}

main {
    padding-top: 72px;
}

/* 7. Buttons / CTAs */
.btn-ghost {
    display: inline-block;
    padding: 12px 16px;
    border: 1px solid var(--slate-text);
    color: var(--slate-text);
    background: transparent;
    font-weight: 600;
    font-size: 16px;
    border-radius: 10px;
    transition: background 120ms ease;
    cursor: pointer;
}

.btn-ghost:hover {
    background: var(--slate-hover-tint);
}

.btn-ghost:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--slate-focus);
}

/* Hero Section */
.hero {
    padding-top: 120px;
    padding-bottom: 96px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.1;
    max-width: 720px;
    margin-bottom: 32px;
}

.hero p {
    font-size: 21px;
    max-width: 640px;
    margin-bottom: 24px;
    line-height: 1.55;
}

/* Statement Blocks */
.statement-block {
    padding: 32px 0;
    border-top: 1px solid var(--slate-line);
    border-bottom: 1px solid var(--slate-line);
    margin: 32px 0;
    max-width: 72ch;
}

.statement-block p {
    margin-bottom: 12px;
}

.statement-block p:last-child {
    margin-bottom: 0;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--slate-line);
    padding: 64px 0 48px;
    margin-top: 96px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .footer-content {
        padding: 0 32px;
    }
}

@media (min-width: 1024px) {
    .footer-content {
        padding: 0 48px;
    }
}

.footer-brand img {
    display: block;
    height: 28px;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 14px;
    color: var(--slate-muted);
    max-width: 320px;
}

.footer-nav {
    display: flex;
    gap: 32px;
}

.footer-nav a {
    font-size: 14px;
    color: var(--slate-muted);
}

.footer-nav a:hover {
    color: var(--slate-text);
}

.footer-bottom {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--slate-line);
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

@media (min-width: 768px) {
    .footer-bottom {
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (min-width: 1024px) {
    .footer-bottom {
        padding-left: 48px;
        padding-right: 48px;
    }
}

.footer-bottom p {
    font-size: 13px;
    color: var(--slate-muted);
}

/* Form Styles */
form {
    max-width: 600px;
}

form label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--slate-muted);
    margin-bottom: 8px;
    font-weight: 500;
}

form input,
form textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 16px;
    color: var(--slate-text);
    background: var(--slate-bg);
    border: 1px solid var(--slate-line);
    margin-bottom: 24px;
    border-radius: 4px;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--slate-text);
    box-shadow: 0 0 0 3px var(--slate-focus);
}

form textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.55;
}

form button {
    font-family: inherit;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    h1 {
        font-size: 38px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .hero h1 {
        font-size: 38px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    p {
        font-size: 17px;
    }
    
    .main-nav {
        gap: 20px;
    }
    
    .nav-link {
        font-size: 13px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 12px;
    }
}

/* 9. Print Behavior */
@media print {
    html, body {
        background: #ffffff !important;
        color: #0f172a !important;
    }
    
    .page-ledger::before,
    .section::before,
    .site-header,
    .btn-ghost {
        display: none !important;
    }
}
