* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --content-width: 620px;
    --wide-width: 1280px;
    --root-padding: min(6.5rem, 8vw);
}
body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    color: #111;
    background: #f9f9f9;
    line-height: 1.55;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--wide-width);
    margin: 0 auto;
    padding: 1.5rem var(--root-padding);
    gap: 1rem;
}
header a { text-decoration: none; }
.logo { display: flex; align-items: center; gap: 0.75rem; font-weight: 500; white-space: nowrap; }
.logo img { flex-shrink: 0; }
nav { display: flex; gap: 1.5rem; }
nav a { color: #111; text-decoration: none; white-space: nowrap; }
nav a:hover { color: #555; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.hamburger svg { width: 24px; height: 24px; }
.mobile-nav { display: none; }
.nav-dropdown { position: relative; }
.nav-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    padding: 0.5rem 0;
    min-width: 150px;
    z-index: 100;
}
.nav-dropdown:focus-within .nav-dropdown-content { display: block; }
.nav-dropdown-content a { display: block; padding: 0.5rem 1rem; }
.nav-dropdown-content a:hover { background: #f5f5f5; }
main {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}
h1 {
    font-family: Cardo, Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
}
h2 {
    font-family: Cardo, Georgia, serif;
    font-weight: 400;
    font-size: clamp(1.4rem, 4vw, 1.75rem);
    margin: 2rem 0 1rem;
}
ul { list-style: none; }
li { margin-bottom: 1rem; }
a { color: #111; }
a:hover { color: #555; }
p { margin-bottom: 1rem; }
.team-section { max-width: 1000px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 2rem 0 3rem;
}
.team-member { text-align: center; }
.team-member img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
}
.team-member h3 { font-size: 0.95rem; font-weight: 500; margin-bottom: 0.25rem; text-decoration: underline; }
.team-member p { font-size: 0.85rem; color: #555; margin: 0; line-height: 1.4; }
.blog-list { border-top: 1px solid #ddd; }
.blog-item { padding: 1rem 0; border-bottom: 1px solid #ddd; }
.blog-item h3 { font-family: Cardo, Georgia, serif; font-size: 1.25rem; font-weight: 400; margin-bottom: 0.25rem; }
.blog-item .meta { font-size: 0.85rem; color: #666; }
.blog-content h1 { text-align: left; }
.blog-content h2 { font-size: 1.25rem; font-weight: 600; margin: 1.5rem 0 0.75rem; font-family: Inter, sans-serif; }
.blog-content h3 { font-size: 1.1rem; font-weight: 600; margin: 1.25rem 0 0.5rem; font-family: Inter, sans-serif; }
.blog-content img { max-width: 100%; height: auto; margin: 1rem auto; display: block; }
.blog-content p > img + em { display: block; text-align: center; font-style: normal; font-weight: 600; margin: 0.5rem 0 1.5rem; }
.blog-content figcaption { font-size: 0.85rem; color: #666; text-align: center; margin-top: 0.5rem; }
.blog-meta { font-size: 0.9rem; color: #666; margin-bottom: 2rem; }
.blog-post h1 { text-align: left; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.2; }
.post-nav { display: flex; justify-content: space-between; gap: 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #ddd; }
.post-nav a { max-width: 45%; text-decoration: none; }
.post-nav .next { margin-left: auto; text-align: right; }
.post-nav .label { display: block; margin-bottom: 0.25rem; }
.post-nav .prev .label::before { content: "← "; }
.post-nav .next .label::after { content: " →"; }
.post-nav .title { font-family: Cardo, Georgia, serif; display: block; text-decoration: underline; }

/* Home page main - allows full-width hero */
main.home-main {
    max-width: none;
    padding: 0;
}

/* Hero section - matches WP cover block with alignwide */
.hero {
    position: relative;
    background: url('/static/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 430px;
    max-width: var(--wide-width);
    margin: 6rem auto 3rem;
    padding: 1em;
    text-align: center;
    color: white;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; padding: 0 1rem; }
.hero h1 {
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: clamp(1.85rem, 1.85rem + 0.767vw, 2.5rem);
    color: white;
    margin-bottom: 1rem;
}
.hero p { color: white; font-size: 1.05rem; line-height: 1.55; margin-bottom: 1.5rem; }
.hero-btn {
    display: inline-block;
    background: #111;
    color: #f9f9f9;
    padding: 0.6rem 1rem;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 0.33rem;
}
.hero-btn:hover { background: #333; color: white; }

/* Home page sections */
.home-section { max-width: 900px; margin: 0 auto; padding: 0 var(--root-padding) 3rem; }
.home-section h2 { font-family: Cardo, Georgia, serif; font-size: clamp(1.4rem, 4vw, 1.75rem); font-weight: 400; margin-bottom: 1.5rem; }
.post-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    gap: 1rem;
    flex-wrap: wrap;
}
.post-row:first-child { border-top: 1px solid #ddd; }
.post-title { font-family: Cardo, Georgia, serif; font-size: 1.1rem; }
.post-meta { font-size: 0.85rem; color: #666; white-space: nowrap; }
.cta-section {
    background: #f0f0f0;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 2rem;
}
.cta-section h2 { font-family: Cardo, Georgia, serif; font-size: 1.5rem; font-weight: 400; margin-bottom: 1rem; }
.cta-btn {
    display: inline-block;
    background: #111;
    color: white;
    padding: 0.6rem 1rem;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 0.33rem;
}
.cta-btn:hover { background: #333; color: white; }

/* Tablet breakpoint - matches WP 782px */
@media (max-width: 782px) {
    header { padding: 1rem; flex-wrap: wrap; }
    nav { gap: 1rem; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .hero { min-height: 350px; margin-top: 3rem; }
    main { padding: 1.5rem 1rem 3rem; }
}

/* Mobile breakpoint - matches WP 600px */
@media (max-width: 600px) {
    .desktop-nav { display: none; }
    .mobile-nav { display: block; }
    .hamburger { display: block; }
    .team-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .team-member img { max-width: 200px; margin: 0 auto 0.75rem; }
    .hero { min-height: 280px; margin-top: 2rem; margin-bottom: 2rem; }
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 0.95rem; }
    .post-row { flex-direction: column; gap: 0.25rem; }
    .post-meta { margin-left: 0; }
    .home-section { padding: 0 1rem 2rem; }
    .cta-section { padding: 2rem 1rem; }
}
