/* layout.css — Page structure and section patterns */

/* Homepage shell — 2-column grid */
.shell {
    display: grid; grid-template-columns: 360px 1fr;
    margin-top: 64px; min-height: calc(100vh - 64px);
}

/* Inner page wrapper */
.page {
    margin-top: 64px; max-width: 1080px;
    margin-left: auto; margin-right: auto;
    padding: 0 48px;
}

/* Homepage main content area */
.main { padding: 56px 64px 120px; max-width: 960px; }

/* Section patterns */
.section { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.section:last-of-type { border-bottom: none; }

.section-label {
    font-family: var(--font-mono); font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted); display: flex; align-items: center; gap: 16px;
    margin-bottom: 32px;
}
.section-label::after {
    content: ''; flex: 1; height: 1px; background: var(--rule);
}

.main .section-label { margin-bottom: 40px; }

.section-heading {
    font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 1.75rem);
    font-weight: 400; line-height: 1.4;
    color: var(--ink); margin-bottom: 16px;
}
.section-heading em { font-style: italic; color: var(--accent); }

.section-body {
    font-size: 0.9375rem; line-height: 1.7;
    color: var(--mid); max-width: 64ch;
}

/* About section */
.about {
    margin-bottom: 88px; padding-bottom: 88px;
    border-bottom: 1px solid var(--rule);
}

.about-text {
    font-family: var(--font-display); font-size: clamp(1.375rem, 3.5vw, 1.75rem);
    line-height: 1.5; color: var(--ink); font-weight: 400;
    max-width: 58ch; margin-bottom: 48px;
}
.about-text em { font-style: italic; color: var(--accent); }

/* Pillars */
.pillars {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--rule);
    border: 1px solid var(--rule); border-radius: 12px;
    overflow: hidden;
}

.pillar {
    background: var(--white); padding: 28px 24px;
    transition: background 0.25s var(--ease);
}

@media (hover: hover) {
    .pillar:hover { background: var(--accent-soft); }
}

.pillar-idx {
    font-family: var(--font-mono); font-size: 0.6875rem;
    color: var(--muted); margin-bottom: 14px; letter-spacing: 0.06em;
}
.pillar h3 {
    font-size: 0.9375rem; font-weight: 700;
    margin-bottom: 8px; color: var(--ink); letter-spacing: -0.01em;
}
.pillar p { font-size: 0.8125rem; color: var(--mid); line-height: 1.6; }

/* Responsive */
@media (max-width: 1100px) {
    .shell { grid-template-columns: 300px 1fr; }
    .main { padding: 48px 40px 100px; }
}

@media (max-width: 900px) {
    .shell { grid-template-columns: 1fr; }
    .page { padding: 0 32px; }
    .main { padding: 40px 32px 80px; }
    .section { padding: 56px 0; }
}

@media (max-width: 560px) {
    .page { padding: 0 20px; }
    .main { padding: 32px 20px 64px; }
    .section { padding: 40px 0; }
    .about { margin-bottom: 56px; padding-bottom: 56px; }
    .pillars { grid-template-columns: 1fr; }
}
