:root {
    --bg:             #f9f0d9;
    --card-bg:        #eedcb3;
    --card-bg-inner:  #f6ecd0;
    --border-subtle:  #d9bf85;
    --ink:            #2b2118;
    --ink-soft:       #4a3c2c;
    --muted:          #8a7a62;
    --accent:         #8a4f26;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body:    'Lora', Georgia, 'Times New Roman', serif;
    --radius-card: 14px;
    --radius-inner: 10px;
    --max-width: 1100px;
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: 21px;
    line-height: 1.7;
}

a {
    color: var(--accent);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--ink);
}


/* ── HEADER ───────────────────────────────────────────── */

.site-header {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 20px 0;
}

.header-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
}

.brand-monogram {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.2px;
    line-height: 1.1;
}

.brand-subtitle {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 17px;
    color: var(--muted);
}

.header-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    list-style: none;
    padding-top: 6px;
}

.header-links a {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    color: var(--muted);
    transition: color 0.15s;
}

.header-links a:hover {
    color: var(--accent);
}


/* ── HERO ─────────────────────────────────────────────── */

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-bottom: 28px;
}

.hero-media {
    width: 100%;
    height: 360px;
    border-radius: var(--radius-inner);
    object-fit: cover;
    background-color: #111;
    box-shadow: 0 4px 16px rgba(43,33,24,0.16);
    display: block;
}

.hero-placeholder {
    height: 360px;
    border-radius: var(--radius-inner);
    border: 2px dashed var(--border-subtle);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--muted);
    font-size: 15px;
    text-align: center;
}

.hero-placeholder-icon {
    font-size: 40px;
    opacity: 0.45;
}


/* ── PAGE WRAPPER ────────────────────────────────────── */

.page-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 56px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}


/* ── SECTION CARD ────────────────────────────────────── */

.section-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-card);
    padding: 40px 56px;
    box-shadow: 0 4px 20px rgba(43,33,24,0.08);
}

.section-title {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 18px;
    line-height: 1.2;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin-bottom: 24px;
}

.section-subtitle {
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
}

.section-body {
    color: var(--ink-soft);
    font-size: 20px;
}

.section-body p + p {
    margin-top: 14px;
}


/* ── MONITORING ──────────────────────────────────────── */

.grafana-frame {
    width: 100%;
    height: auto;
    border-radius: var(--radius-inner);
    border: 1px solid var(--border-subtle);
    display: block;
    margin-bottom: 20px;
}


/* ── SERVICES GRID ───────────────────────────────────── */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.service-card {
    background-color: var(--card-bg-inner);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-inner);
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.service-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}

.service-icon-fallback {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    color: var(--accent);
}

.service-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.service-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 19px;
    color: var(--ink);
    overflow-wrap: break-word;
}

.service-description {
    font-size: 16px;
    color: var(--muted);
}

.service-link {
    font-size: 15px;
    word-break: break-all;
}


/* ── GOALS ───────────────────────────────────────────── */

.goals-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.goals-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 20px;
    color: var(--ink-soft);
}

.goals-list li::before {
    content: '•';
    color: var(--accent);
    flex-shrink: 0;
    font-weight: 700;
}


/* ── MENTIONS ────────────────────────────────────────── */

.mentions-intro {
    font-size: 20px;
    color: var(--ink-soft);
    margin-bottom: 20px;
}

.mentions-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.mentions-list a {
    font-size: 20px;
    font-weight: 500;
    text-decoration: underline;
}

.back-to-top-link {
    display: inline-block;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
    color: var(--muted);
}

.back-to-top-link:hover {
    color: var(--accent);
}


/* ── FOOTER ──────────────────────────────────────────── */

.site-footer {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    padding: 24px 20px 40px;
    font-size: 17px;
    font-weight: 500;
    color: var(--muted);
}

.footer-heart {
    color: #b83c2b;
}


/* ── RESPONSIVE ───────────────────────────────────────── */

@media (min-width: 540px) {
    .hero-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 820px) {
    .section-card {
        padding: 28px 26px;
    }
}

@media (max-width: 540px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .brand-title {
        font-size: 30px;
    }

    .header-links {
        width: 100%;
        padding-top: 12px;
        border-top: 1px solid var(--border-subtle);
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .section-card {
        padding: 22px 18px;
    }

    .hero-media,
    .hero-placeholder {
        height: 250px;
    }
}
