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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #EAE6DD;
    color: #544233;
    line-height: 1.6;
    font-size: 1.1em;
}

/* Typography System - Modular Scale with Vertical Rhythm */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Clash Display', sans-serif;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.3;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5em;
    letter-spacing: -0.02em;
    margin-top: 0;
}

h2 {
    font-size: 1.75em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0;
    margin-bottom: 0.75em;
}

h3 {
    font-size: 1.35em;
    text-transform: uppercase;
}

h4 {
    font-size: 1.15em;
}

p {
    margin-bottom: 1.25em;

}

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

/* Lists with proper spacing */
ul,
ol {
    margin-bottom: 1.25em;
    padding-left: 0;
}

ul {
    list-style: none;
}

ol {
    list-style: decimal;
    margin-left: 25px;
}

ul li,
ol li {
    margin-bottom: 0.5em;
    line-height: 1.6;
}

ul li {
    padding-left: 22.5px;
    position: relative;
}

ul li::before {
    content: "•";
    position: absolute;
    left: 0;
}

ol li {
    padding-left: 0;
}

ul.no-bullets li::before {
    content: "✗";
    display: inline;
    position: absolute;
    left: 0;
}

ul.no-bullets li {
    padding-left: 22.5px;
}

/* Improved spacing for consecutive elements */
h1 + p,
h2 + p,
h3 + p,
h4 + p {
    margin-top: 0;
}

ul + h2,
ol + h2 {
    margin-top: 2.5em;
}

ul + h3,
ul + h4,
ol + h3,
ol + h4 {
    margin-top: 2em;
}

.wrapper {
    max-width: 1440px;
    margin: 0 auto;
    padding: 20px 30px;
}

header {
    padding: 80px 0;
}

.header-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

.header-link:hover h1 {
    text-decoration: underline;
}

.header-left h1 {
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.header-left p,
.contact-link,
.company-meta p,
.company-meta a,
.footer p,
.muted-text {
    color: #908477;
}

.header-left p {
    letter-spacing: -0.02em;
}

.content-grid {
    display: flex;
    gap: 50px;
}

.sidebar {
    position: sticky;
    top: 0;
    max-width: 368px;
    flex-shrink: 0;
    align-self: flex-start;
    padding-right: 10px;
}

.sidebar-inner {
    border-top: 1px solid #544233;
    padding: 30px 0;
}

.about-text {
    margin-bottom: 2em;
    max-width: 420px;
}

.contact-links {
    display: flex;
    flex-direction: column;
}

.contact-link,
.offering-button {
    padding: 12px;
    color: #908477;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: background-color 0.2s;
}

.contact-link {
    padding-left: 6px;
    padding-right: 6px;
    border-top: 0.5px solid #908477;
}

.contact-link:hover,
.offering-button:hover {
    background-color: #DBD6CC;
}

.contact-link::after {
    content: " ↗";
    margin-left: 4px;
    font-size: 14px;
}

.offering-button {
    display: inline-block;
    padding-left: 24px;
    padding-right: 24px;
    margin-bottom: 1.25em;
    border: 1px solid #908477;
}

.inline-link {
    color: #544233;
    font-weight: 700;
    text-decoration: underline;
    transition: text-decoration 0.2s;
}

.inline-link:hover {
    text-decoration: none;
}

.main-content {
    flex: 1;
    border-top: 1px solid #544233;
}

.section {
    padding: 30px 0;
    border-top: 0.5px solid #908477;
}

.section:first-child {
    border-top: none;
}

.company-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.company-item {
    display: flex;
    gap: 60px;
    border-top: 0.5px solid #908477;
    padding-top: 40px;
}

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

.company-header {
    min-width: 220px;
    flex-shrink: 0;
}

.company-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.company-meta a {
    text-decoration: none;
}

.company-meta a::after {
    content: " ↗";
}

.company-meta a:hover {
    text-decoration: underline;
}

.company-meta p {
    font-size: 0.9em;
    margin-top: 0.5em;
}

.company-description {
    flex: 1;
}

.offerings-grid,
.companies-content {
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
}

.offering-column {
    flex: 1;
    min-width: 300px;
}

.companies-content {
    flex-wrap: nowrap;
}

.companies-content > div:first-child {
    flex: 1;
}

.companies-content > div:last-child {
    flex: 0 0 auto;
}

@media (max-width: 1024px) {
    .content-grid {
        flex-direction: column;
    }

    .sidebar {
        position: relative;
        max-width: 100%;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .wrapper {
        padding: 20px 12px;
    }

    header {
        padding-bottom: 80px;
    }

    .company-item,
    .offerings-grid,
    .companies-content {
        flex-direction: column;
    }

    .company-item {
        gap: 20px;
    }

    .company-header,
    .offering-column {
        min-width: auto;
    }

    .companies-content {
        gap: 30px;
    }
}

.footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid #544233;
    text-align: left;
    font-size: 0.9em;
}

.footer p {
    margin-bottom: 0;
}
