:root {
    --burgundy: #3b0d1a;
    --champagne: #e8d5a8;
    --cream: #fcfcfc;
    --border-subtle: rgba(232, 213, 168, 0.3);
    
    --font-heading: system-ui, "Segoe UI", Roboto, sans-serif;
    --font-body: Georgia, 'Times New Roman', Times, serif; /* Relaxed body font */
    
    --radius-l: 20px;
    --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--burgundy);
    color: var(--cream);
    font-family: var(--font-body);
    line-height: 1.8;
    padding: 2vw; /* Wide outer margin */
    min-height: 100vh;
    font-size: 1.125rem;
    overflow-wrap: anywhere;
    hyphens: auto;
}

/* Page inside a thin inset frame line */
.page-frame {
    border: 1px solid var(--champagne);
    border-radius: var(--radius-l);
    padding: 2rem 4vw;
    min-height: calc(100vh - 4vw);
    display: flex;
    flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, .brand-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--champagne);
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 2rem;
}

h2 {
    font-size: 2.2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--champagne);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Layout */
.content-column {
    max-width: 72ch;
    margin: 0 auto;
    flex: 1;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: static;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 4rem;
}

.brand-logo {
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--champagne);
}

.desktop-nav {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--champagne);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 2rem;
}

.mobile-nav-overlay.active {
    display: flex;
}

/* Hero Section */
.hero-wrapper {
    position: relative;
    margin-bottom: 5rem;
}

.breakout {
    width: 100vw;
    max-width: calc(100% + 8vw);
    margin-left: 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-l);
    object-fit: cover;
    display: block;
    height: 60vh;
    min-height: 400px;
    border: 1px solid var(--border-subtle);
}

.floating-card {
    position: absolute;
    bottom: -2rem;
    right: 5%;
    background-color: var(--champagne);
    color: var(--burgundy);
    padding: 2rem;
    border-radius: var(--radius-l);
    min-width: 300px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.floating-card h3 {
    color: var(--burgundy);
    margin-bottom: 1.5rem;
}

.floating-card ul {
    list-style: none;
}

.floating-card li {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(59, 13, 26, 0.1);
}

.floating-card li:last-child {
    border-bottom: none;
}

/* Breakout Images in content */
.content-breakout {
    width: 100%;
    max-width: 1000px;
    margin: 3rem 50%;
    transform: translateX(-50%);
    border-radius: var(--radius-l);
    object-fit: cover;
    aspect-ratio: 16/9;
}

/* Pull Quotes */
blockquote {
    font-size: 1.6rem;
    font-style: italic;
    color: var(--champagne);
    border-left: 4px solid var(--champagne);
    padding-left: 1.5rem;
    margin: 3rem 0;
    line-height: 1.4;
}

/* List Rows */
.list-rows-container {
    margin: 3rem 0;
}

.list-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: transform 0.3s var(--ease-kinetic);
}

.list-row:hover {
    transform: translateX(10px);
}

.row-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    fill: var(--champagne);
    margin-top: 0.2rem;
}

.row-content h3 {
    margin-bottom: 0.5rem;
}

.row-content p {
    margin-bottom: 0;
    color: rgba(252, 252, 252, 0.8);
}

/* Buttons */
.btn-solid {
    display: inline-block;
    background-color: var(--champagne);
    color: var(--burgundy);
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-l);
    cursor: pointer;
    box-shadow: 4px 4px 0 rgba(232, 213, 168, 0.7);
    transition: all 0.2s ease-out;
    margin-top: 1rem;
}

.btn-solid:hover, .btn-solid:focus-visible {
    transform: translate(4px, 4px);
    box-shadow: 0px 0px 0 rgba(232, 213, 168, 0);
    opacity: 1;
}

/* Table wrapper */
.table-wrapper {
    overflow-x: auto;
    margin: 2rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

th {
    font-family: var(--font-heading);
    color: var(--champagne);
}

/* Space Estimator Tool */
.tool-container {
    background-color: rgba(232, 213, 168, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-l);
    padding: 2.5rem;
    margin: 3rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    color: var(--champagne);
    margin-bottom: 0.5rem;
}

select, textarea, input {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--cream);
    padding: 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
}

select option {
    background-color: var(--burgundy);
    color: var(--cream);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

.tool-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(252, 252, 252, 0.6);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-nav a {
    color: var(--champagne);
    font-family: var(--font-heading);
}

.footer-legal {
    margin-bottom: 1rem;
}

/* Kinetic reveals */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s var(--ease-kinetic);
}

.reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 768px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    
    h1 { font-size: 2.5rem; }
    
    .floating-card {
        position: static;
        margin-top: 1rem;
        box-shadow: none;
        border: 1px solid var(--border-subtle);
        background-color: transparent;
        color: var(--cream);
    }
    
    .floating-card h3 {
        color: var(--champagne);
    }
    
    .floating-card li {
        border-bottom-color: var(--border-subtle);
    }
    
    .list-row {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
