@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter/Inter-roman-latin.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary: #c0532f;
    --primary-tint: #faf2ee;
    --primary-hover-border: #dcb8a8;
    --surface: #ffffff;
    --surface-muted: #f5f5f6;
    --border: #e6e6e9;
    --page-bg: #ffffff;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #222;
    background-color: var(--page-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* The nav sits on the same white as the page; the subtle bottom border is all
   that separates it from the content as you scroll. */
.navbar.bg-white {
    background-color: var(--surface) !important;
    border-bottom-color: var(--border) !important;
}

body > main {
    flex: 1 0 auto;
}

a {
    color: var(--primary);
}

footer a {
    color: #666;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary);
}

.footer-link {
    white-space: nowrap;
}

.navbar-brand {
    font-size: 1.25rem;
}

.navbar-brand-logo {
    height: 44px;
    width: auto;
    display: block;
}

.navbar-nav .nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.hero-image {
    max-width: 60%;
}

.home-hero .hero-image {
    max-width: 560px;
    width: 100%;
}

.navbar-nav {
    flex-direction: row;
    gap: 0.75rem;
}

@media (max-width: 576px) {
    .navbar-nav {
        font-size: 0.85rem;
    }
}

.language-switch .lang-link {
    padding: 0;
    text-decoration: none;
    color: #777;
    font-weight: 400;
}

.language-switch .lang-link.active {
    color: var(--primary);
    font-weight: 600;
}

.lang-divider {
    display: inline-block;
    width: 1px;
    height: 0.9em;
    background-color: #ccc;
    margin: 0 0.4rem;
    align-self: center;
}

.content-container {
    max-width: 960px;
}

.home-hero {
    padding: 1rem 0 0;
}

.home-content {
    line-height: 1.7;
}

.home-content p {
    max-width: 760px;
    margin: 0.75rem auto 0;
    font-size: 1.08rem;
}

.home-section {
    margin-top: 2rem;
}

.section-box {
    padding: 2rem;
    border-radius: 8px;
    background: var(--surface-muted);
    border: 1px solid var(--border);
}

.section-heading {
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
}

.section-heading p,
.cta-prompt {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* These intro headings are left-aligned, so left-align their paragraphs too
   (instead of the centered default) to keep the text flush with the heading. */
.home-services-intro .section-heading p,
.home-members-intro .section-heading p,
.home-projects .section-heading p {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.email-box {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
}

.services-wrapper {
}

.service-box {
    padding: 1.5rem;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    height: 100%;
}

.service-box h5 {
    margin-bottom: 0.5rem;
}

.service-box p,
.why-box p {
    margin-bottom: 0;
    line-height: 1.65;
}

.project-box {
    display: flex;
    flex-direction: column;
}

.project-focus {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.project-link,
.project-status {
    margin-top: auto;
    padding-top: 1rem;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
}

.project-status {
    color: #777;
}

.service-topics {
    margin: 0.9rem 0 0;
    padding-left: 1.1rem;
    color: #444;
    line-height: 1.6;
}

.service-topics li + li {
    margin-top: 0.3rem;
}

.why-box {
    padding: 1.25rem 1.5rem;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    height: 100%;
}

.stack-list {
    list-style: none;
    padding-left: 0;
}

.stack-list li {
    margin-bottom: 0.5rem;
}

.about-hero {
    padding: 3rem 2rem;
    border-radius: 8px;
    background: var(--surface-muted);
}

.about-hero:first-of-type {
    padding: 2rem;
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    background: var(--surface-muted);
    border-radius: 6px;
}

.about-intro p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-intro p + p {
    margin-top: 0.9rem;
}

.about-cards {
    margin-top: -0.5rem;
}

.about-card {
    padding: 1.5rem;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    height: 100%;
}

.about-card h3 {
    margin-bottom: 0.9rem;
    font-size: 1.2rem;
}

.about-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

.about-card li + li {
    margin-top: 0.65rem;
}

.about-section ul,
.about-section p {
  margin-bottom: 0.5rem;
}

.cv-timeline {
  position: relative;
  margin-left: 1rem;
}

.cv-item {
  position: relative;
  padding-left: 2rem;
  margin-top: 2rem;
}

.cv-marker {
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
}

.cv-content p {
  margin-bottom: 0;
}

.member-role {
    font-size: 1.05rem;
}

.member-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.member-links a {
    text-transform: capitalize;
    text-decoration: none;
    font-weight: 600;
}

.members-grid .member-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.members-grid .member-card:hover {
    border-color: var(--primary-hover-border);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 34, 34, 0.05);
}

.member-card-photo {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.member-card-body h3 {
    margin-bottom: 0.2rem;
    font-size: 1.25rem;
}

.member-posts .blog-meta {
    margin-right: 0.5rem;
}

.home-members .member-card {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
}

.home-members .member-card-photo {
    width: 96px;
    height: 96px;
}

.blog-index {
    max-width: 760px;
    margin: 0 auto;
}

.blog-index-header {
    margin-bottom: 1.5rem;
}

.blog-list {
    display: grid;
    gap: 1rem;
}

.blog-card {
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
    border-color: var(--primary-hover-border);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(34, 34, 34, 0.05);
}

.blog-meta {
    color: #7a7a7a;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.blog-card-meta .blog-meta {
    margin-bottom: 0;
}

.blog-lang-pill {
    display: inline-block;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    background: var(--primary-tint);
    border: 1px solid var(--primary-hover-border);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.blog-card-title {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.25;
}

.blog-card-title a {
    color: #222;
    text-decoration: none;
}

.blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-muted);
}

.blog-filter {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.blog-filter-label {
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 0.74rem;
    font-weight: 600;
    color: #777;
}

.blog-filter select {
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--surface);
    color: #222;
    font-size: 0.95rem;
    min-width: 10rem;
}

.blog-filter select:focus {
    outline: 2px solid var(--primary-hover-border);
    outline-offset: 1px;
}

.blog-empty {
    color: #777;
    text-align: center;
    margin-top: 1.5rem;
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-summary {
    color: #444;
    line-height: 1.7;
}

.blog-card-summary p:last-child {
    margin-bottom: 0;
}

.blog-card-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.blog-figure {
    margin: 0;
    padding: 0.35rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 6px 16px rgba(34, 34, 34, 0.05);
}

.blog-figure img {
    display: block;
    width: 100%;
    border-radius: 6px;
}

.blog-figure-centered {
    width: min(80%, 760px);
    margin: 1.5rem auto;
}

.blog-figure figcaption {
    margin-top: 0.75rem;
    color: #666;
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 768px) {
    .hero-image {
        max-width: 80%;
    }

    .section-box,
    .about-hero {
        padding: 1.5rem;
    }

    .home-content p {
        font-size: 1rem;
    }

    .blog-card {
        padding: 1.2rem;
    }

    .blog-figure {
        padding: 0.3rem;
        border-radius: 8px;
    }

    .blog-figure-centered {
        width: 100%;
        margin: 1rem 0;
    }
}
