:root {
    --navy: #123f5b;
    --blue: #14739a;
    --blue-dark: #0c526f;
    --cream: #f8faf9;
    --paper: #fff;
    --ink: #263844;
    --muted: #60727d;
    --line: #dbe5e9;
}

html { font-size: 15px; }
body {
    background: radial-gradient(circle at 50% 0, #f8fdff 0, #eaf5f9 42%, #f7f9f8 100%);
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.62;
}

.site-header {
    position: relative;
    top: auto;
    z-index: 10;
    display: block;
    width: min(1120px, calc(100% - 32px));
    min-height: clamp(165px, 18.3vw, 205px);
    margin: 18px auto 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(16, 70, 96, .2);
    border-radius: 16px;
    background-color: #117daa;
    box-shadow: 0 14px 36px rgba(18, 63, 91, .16);
}
.site-header-original {
    background-image: url("/assets/images/header-original.jpg");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}
.site-header-sky { background: linear-gradient(120deg, #dff3f9, #147ba8); }
.header-home-link { position: absolute; inset: 0; z-index: 1; }
.header-home-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.site-header .brand-logo-link {
    position: absolute;
    z-index: 3;
    top: 8px;
    right: 28px;
    display: block;
}
.site-header .brand-logo {
    width: auto;
    height: clamp(104px, 12vw, 144px);
    object-fit: contain;
}
.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: min(1120px, calc(100% - 32px));
    justify-content: center;
    gap: 0;
    margin: -45px auto 24px;
    padding: 0 18px;
    overflow: hidden;
    border: 1px solid rgba(16, 70, 96, .2);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: linear-gradient(90deg, #073f57 0%, #0a4d69 58%, #0d5c79 100%);
    box-shadow: 0 12px 28px rgba(18, 63, 91, .14);
}
.site-nav a {
    padding: 11px 13px;
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none;
    text-shadow: none;
    transition: background-color .18s ease;
}
.site-nav a:hover,
.site-nav a:focus-visible { background: rgba(255, 255, 255, .13); }

.site-section,
.article,
.contact-page { max-width: 1100px; }
.site-main { display: flex; flex-direction: column; min-width: 0; }
.section-order-1 { order: 10; }
.section-order-2 { order: 20; }
.section-order-3 { order: 30; }
.section-order-4 { order: 40; }
.section-order-5 { order: 50; }
.section-order-6 { order: 60; }
.section-order-7 { order: 70; }
.section-order-newsletter { order: 75; }
.section-order-8 { order: 80; }
.section-order-9 { order: 90; }
.site-section { width: 100%; min-width: 0; margin-bottom: 24px; padding: 0 20px; }
.site-panel { padding: 24px 26px; }
.float-panel,
.card,
.panel,
.contact-band {
    border: 1px solid rgba(183, 205, 215, .72);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 28px rgba(18, 63, 91, .075);
}
.site-section h1,
.site-section h2,
.article h1,
.contact-page h1 {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -.018em;
}
.site-section h1 { font-size: clamp(1.85rem, 3vw, 2.55rem); line-height: 1.16; }
.site-section h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); line-height: 1.22; }
.site-section h3 { font-size: 1.08rem; line-height: 1.38; }
.article h1,
.contact-page h1 { font-size: clamp(2rem, 3.4vw, 2.65rem); line-height: 1.16; }
.eyebrow { color: var(--blue-dark); font-size: .72rem; letter-spacing: .14em; }
.lead { color: var(--muted); font-size: 1.02rem; }
.muted,
.teaser-date { color: var(--muted); font-size: .82rem; }
.content { font-size: 1.06rem; line-height: 1.78; }

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 36px;
}
.home-hero h1 { margin: 4px 0 10px; }
.home-hero-copy > div { max-width: none; color: #425865; }
.home-hero-subtitle { margin: 14px 0 0; color: var(--muted); }

.home-columns { gap: 16px; }
.home-column { padding: 22px 24px; }
.home-column h2 { font-size: 1.6rem; }
.article-teaser { padding: 13px 0; }
.article-teaser h3 { font-size: 1.05rem; }
.article-teaser p { margin-bottom: 7px; }
.section-heading { align-items: flex-start; margin-bottom: 15px; }
.section-heading > p { font-size: .95rem; }
.button {
    padding: 9px 17px;
    border-color: var(--navy);
    border-radius: 9px;
    background: var(--navy);
    font-size: .88rem;
    font-weight: 650;
}
.button-secondary { background: #fff; color: var(--navy); }
.text-link { color: var(--blue-dark); font-size: .9rem; }
.topics { padding: 12px 14px; border-left-width: 3px; border-radius: 0 8px 8px 0; }

.book-grid,
.video-grid { gap: 18px; }
.book-card,
.video-card { border-radius: 15px; }
.book-carousel { position: relative; min-width: 0; max-width: 100%; }
.book-carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 10px;
}
.book-carousel-button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--navy);
    border-radius: 50%;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}
.book-carousel-button:hover,
.book-carousel-button:focus-visible { background: var(--navy); color: #fff; }
.book-carousel-button:disabled { cursor: default; opacity: .34; }
.book-carousel-track {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 3px 16px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-color: #8fb2c1 #e7f0f3;
    scrollbar-width: thin;
}
.book-carousel-track:focus-visible { outline: 3px solid rgba(20, 115, 154, .24); outline-offset: 3px; }
.book-carousel .book-card {
    flex: 0 0 calc(33.333% - 12px);
    min-width: 0;
    max-width: 100%;
    grid-template-columns: 1fr;
    height: 100%;
    min-height: 0;
    scroll-snap-align: start;
}
.book-carousel .book-cover-wrap { min-height: 280px; }
.book-carousel .book-cover-wrap img { width: auto; max-width: 100%; height: 250px; }
.book-carousel .book-copy { padding: 20px; }
.book-carousel .book-copy h3 { font-size: 1.22rem; }
.video-card { padding: 16px; }
.video-card h2,
.video-card h3 { font-size: 1.12rem; }
.renascimento-panel { gap: 30px; padding: 26px; }
.about-panel,
.contact-panel { padding: 26px 30px; }
.subscribe-form { max-width: 620px; }

.article,
.contact-page { padding: 28px 22px 40px; }
.article.float-panel,
.contact-page.float-panel { padding: 30px 34px; }
.article-teaser h3 a,
.footer-brand { color: var(--navy); }

.site-footer {
    width: min(1100px, calc(100% - 40px));
    margin: 36px auto 0;
    padding: 34px 40px;
    border-radius: 16px 16px 0 0;
    background: #123f5b;
    font-size: .92rem;
}
.footer-brand { color: #fff; font-size: 1.2rem; }
.copyright { padding: 14px 20px; background: #0c2f45; font-size: .75rem; }

input,
textarea,
select { border-color: #aebfc8; }
input:focus,
textarea:focus,
select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(20, 115, 154, .14); outline: 0; }

@media (max-width: 760px) {
    html { font-size: 14px; }
    .site-header {
        width: 100%;
        min-height: 195px;
        margin: 0;
        border: 0;
        border-radius: 0;
        background-position: center top;
    }
    .site-header .brand-logo-link { top: 8px; right: 14px; }
    .site-header .brand-logo { width: auto; height: 104px; }
    .site-nav { width: 100%; margin: -72px 0 20px; padding: 4px 8px; border: 0; border-radius: 0; }
    .site-nav a { padding: 8px 7px; font-size: .75rem; }
    .site-section { padding: 0 14px; }
    .site-panel { padding: 20px 18px; }
    .home-hero { padding: 24px 20px; }
    .book-carousel .book-card { flex-basis: 84%; }
    .book-carousel .book-cover-wrap { min-height: 240px; }
    .book-carousel .book-cover-wrap img { height: 220px; }
    .section-heading { display: block; }
    .article.float-panel,
    .contact-page.float-panel { margin-right: 14px; margin-left: 14px; padding: 24px 20px; }
    .site-footer { width: 100%; margin-top: 26px; padding: 30px 22px; border-radius: 0; }
}

/* Editorial publication columns on the homepage. */
.home-columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.home-columns-3 .home-column { min-width: 0; padding: 22px 20px; overflow-wrap: anywhere; }
.home-columns-3 .home-column h2 { font-size: clamp(1.2rem, 1.65vw, 1.45rem); line-height: 1.3; min-height: 3.9em; }
@media (max-width: 900px) {
  .home-columns-3 { grid-template-columns: 1fr; }
  .home-columns-3 .home-column h2 { min-height: 0; }
}

.section-media-body { display: flex; align-items: center; gap: 28px; }
.section-media-copy { flex: 1; min-width: 0; }
.section-media-zone { display: flex; align-items: center; justify-content: center; gap: 20px; }
.section-media-left, .section-media-right { flex: 0 1 42%; min-width: 0; flex-direction: column; }
.section-media-both-sides .section-media-left, .section-media-both-sides .section-media-right { flex-basis: 25%; }
.section-media-top, .section-media-bottom { flex-wrap: wrap; }
.section-media-top { margin-bottom: 24px; }
.section-media-bottom { margin-top: 24px; }
.section-media-figure { margin: 0; max-width: 100%; flex-shrink: 1; }
.section-media-size-small { width: 160px; }
.section-media-size-medium { width: 260px; }
.section-media-size-large { width: 420px; }
.section-media-figure img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 16px; }
@media (max-width: 760px) {
  .section-media-body { flex-direction: column; align-items: stretch; gap: 20px; }
  .section-media-left, .section-media-right { flex: none; width: 100%; }
}
