/* =============================================
   Cocoa Corner — A Tribute to Cailler
   External Stylesheet
   Inspired by Cailler's gold & deep crimson identity
   ============================================= */

/* --- Google Fonts: Cormorant Garamond (headings) + Lato (body) --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* --- CSS Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Color Palette (Cailler-inspired)
   Primary:   #8B0000  deep crimson / burgundy
   Accent:    #C9A84C  Cailler gold
   Light gold:#F0D080
   Dark bg:   #1C0A0A  near-black with warm undertone
   Surface:   #2D1010  dark card surface
   Text:      #F5ECD7  warm ivory / cream
   Muted:     #C4A882  warm tan for secondary text
   ------------------------------------------ */

body {
    background-color: #1C0A0A;
    color: #F5ECD7;
    font-family: 'Lato', Georgia, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

/* --- Fixed-Width Container (960px–1200px) --- */
.container {
    width: 980px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   HEADER
   ============================================= */
header {
    background-color: #8B0000;
    border-bottom: 4px solid #C9A84C;
    padding: 36px 0 24px;
    text-align: center;
    position: relative;
}

header::before {
    content: "✦  ✦  ✦";
    display: block;
    color: #C9A84C;
    letter-spacing: 10px;
    font-size: 0.75em;
    margin-bottom: 10px;
    opacity: 0.7;
}

header h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 3.2em;
    font-weight: 700;
    color: #F0D080;
    letter-spacing: 3px;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.6);
    margin-bottom: 6px;
}

header p.tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: #F5ECD7;
    font-size: 1.15em;
    opacity: 0.9;
}

header p.cailler-badge {
    display: inline-block;
    margin-top: 12px;
    padding: 5px 18px;
    background-color: rgba(201, 168, 76, 0.15);
    border: 1px solid #C9A84C;
    border-radius: 20px;
    font-size: 0.85em;
    color: #C9A84C;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* =============================================
   NAVIGATION
   ============================================= */
nav {
    background-color: #2D1010;
    border-bottom: 3px solid #C9A84C;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
}

nav ul li a {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05em;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #F5ECD7;
    text-decoration: none;
    padding: 15px 34px;
    transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #C9A84C;
    color: #1C0A0A;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
main {
    padding: 44px 0 60px;
}

/* =============================================
   HEADINGS
   ============================================= */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

h2 {
    font-size: 2.1em;
    font-weight: 700;
    color: #F0D080;
    margin: 40px 0 14px;
    padding: 12px 0 12px 16px;
    border-top: 3px solid #C9A84C;
}

h3 {
    font-size: 1.45em;
    font-weight: 600;
    color: #C9A84C;
    margin: 28px 0 10px;
    padding: 8px 0 8px 12px;
    border-top: 2px solid #5a1a1a;
}

/* =============================================
   PARAGRAPHS
   ============================================= */
p {
    margin: 0 0 18px;
    color: #F0E4C8;
}

/* =============================================
   STRONG & EM
   ============================================= */
strong {
    color: #F0D080;
    font-weight: 700;
}

em {
    color: #C9A84C;
    font-style: italic;
}

/* =============================================
   IMAGES
   ============================================= */
img {
    margin: 10px;
    border: 3px solid #C9A84C;
    border-radius: 3px;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Float classes */
.float-right {
    float: right;
    margin: 0 0 20px 28px;
    max-width: 340px;
}

.float-left {
    float: left;
    margin: 0 28px 20px 0;
    max-width: 320px;
}

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Image as link */
a img {
    border: 3px solid #F0D080;
    transition: border-color 0.3s, opacity 0.3s, transform 0.2s;
}

a img:hover {
    border-color: #C9A84C;
    opacity: 0.88;
    transform: scale(1.01);
}

/* =============================================
   SECTION BLOCK (content card)
   ============================================= */
.section-block {
    background-color: #2D1010;
    border-left: 5px solid #8B0000;
    border-radius: 3px;
    padding: 26px 32px;
    margin: 26px 0;
}

/* =============================================
   CAILLER HIGHLIGHT BOX
   ============================================= */
.cailler-highlight {
    background-color: rgba(201, 168, 76, 0.08);
    border: 2px solid #C9A84C;
    border-radius: 4px;
    padding: 20px 26px;
    margin: 24px 0;
}

.cailler-highlight p {
    margin-bottom: 0;
}

.cailler-highlight::before {
    content: "✦ CAILLER SPOTLIGHT";
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.78em;
    letter-spacing: 3px;
    color: #C9A84C;
    margin-bottom: 10px;
    font-weight: 600;
}

/* =============================================
   TIMELINE
   ============================================= */
.timeline {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.timeline li {
    border-left: 3px solid #8B0000;
    margin: 0 0 18px 10px;
    padding: 6px 0 6px 18px;
    color: #F0E4C8;
}

.timeline li span.year {
    font-family: 'Cormorant Garamond', serif;
    color: #F0D080;
    font-weight: 700;
    display: block;
    font-size: 1.05em;
}

.timeline li.cailler-moment {
    border-left: 3px solid #C9A84C;
    background-color: rgba(201, 168, 76, 0.06);
    padding-left: 18px;
}

/* =============================================
   FACT CARDS
   ============================================= */
.fact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 22px 0;
}

.fact-card {
    background-color: #2D1010;
    border: 1px solid #5a1a1a;
    border-top: 3px solid #8B0000;
    border-radius: 4px;
    padding: 20px 22px;
    flex: 1 1 280px;
}

.fact-card h3 {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
    font-size: 1.1em;
}

.fact-card p {
    margin-bottom: 0;
    font-size: 0.95em;
}

.fact-card.cailler {
    border-top: 3px solid #C9A84C;
    background-color: rgba(201, 168, 76, 0.06);
}

/* =============================================
   LINKS
   ============================================= */
a {
    color: #C9A84C;
    text-decoration: underline;
}

a:hover {
    color: #F0D080;
}

/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
    display: inline-block;
    margin: 32px 0 10px;
    padding: 9px 22px;
    background-color: #8B0000;
    border: 2px solid #C9A84C;
    border-radius: 3px;
    color: #F0D080;
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1em;
    letter-spacing: 1px;
    transition: background-color 0.3s, color 0.3s;
}

.back-to-top:hover {
    background-color: #C9A84C;
    color: #1C0A0A;
}

/* =============================================
   SOURCES
   ============================================= */
.sources {
    background-color: #2D1010;
    border-top: 3px solid #5a1a1a;
    margin-top: 50px;
    padding: 22px 30px;
    font-size: 0.88em;
    color: #C4A882;
}

.sources h3 {
    font-size: 1em;
    color: #C9A84C;
    border-top: none;
    margin: 0 0 12px;
    padding: 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sources ul {
    list-style: disc;
    padding-left: 20px;
}

.sources ul li {
    margin-bottom: 5px;
}

.sources a {
    color: #C4A882;
}

.sources a:hover {
    color: #C9A84C;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background-color: #8B0000;
    border-top: 4px solid #C9A84C;
    text-align: center;
    padding: 24px 0;
    margin-top: 40px;
}

footer p {
    color: #F0D080;
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1em;
    letter-spacing: 1px;
}
