/* =============================================
   Invisible Cities — original design
   Aesthetic: warm parchment, serif typography,
   ink-dark accents, literary magazine feel
============================================= */

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

/* Root variables */
:root {
    --ink:        #1c1008;
    --rust:       #8b3a1e;
    --gold:       #c9922a;
    --parchment:  #f5f0e6;
    --cream:      #faf7f1;
    --muted:      #7a6a56;
    --rule:       #d4c5a9;
    --serif:      Georgia, 'Times New Roman', serif;
    --sans:       Verdana, Geneva, sans-serif;
}

/* ── Body ── */
body {
    background-color: var(--parchment);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.85;
}

/* ── Content container ── */
#content {
    width: 66%;
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 0 5rem;
}

/* ── Site header ── */
.site-header {
    text-align: center;
    padding-bottom: 2rem;
    border-bottom: 3px double var(--rust);
    margin-bottom: 2.5rem;
}

h1 {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: normal;
    letter-spacing: 0.06em;
    color: var(--rust);
    text-transform: uppercase;
    line-height: 1.2;
}

.byline {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    color: var(--muted);
    font-family: var(--sans);
    letter-spacing: 0.04em;
}

/* ── Navigation ── */
#navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    padding: 0.7rem 1.2rem;
    background-color: var(--ink);
}

#navigation ul {
    display: flex;
    list-style: none;
    gap: 0;
}

#navigation li {
    display: inline;
}

#navigation a {
    display: inline-block;
    color: var(--parchment);
    font-family: var(--serif);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    padding: 0.25rem 0.9rem;
    border-right: 1px solid rgba(255,255,255,0.2);
    transition: color 0.2s, background 0.2s;
}

#navigation a:hover {
    color: var(--gold);
    background: rgba(255,255,255,0.07);
}

#navigation li:last-child a {
    border-right: none;
}

.nav-title {
    margin-left: auto;
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

/* ── Story articles ── */
.story {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--rule);
}

.story:last-of-type {
    border-bottom: none;
}

h2 {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.story-num {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
    background: var(--rust);
    color: white;
    font-size: 0.85rem;
    letter-spacing: 0;
    flex-shrink: 0;
}

/* ── Paragraphs ── */
p {
    text-align: justify;
    text-indent: 1.6em;
    margin-bottom: 1.1em;
    hyphens: auto;
}

p:first-of-type {
    text-indent: 0;
}

/* ── First story colour ── */
#firstStory {
    color: #2a1f5c;
}

/* ── Drop cap ── */
.firstLetter {
    float: left;
    font-size: 4.5rem;
    line-height: 0.72;
    margin-right: 0.08em;
    margin-top: 0.12em;
    color: var(--rust);
    font-family: Georgia, serif;
}

/* ── First word small-caps feel ── */
.firstWord {
    text-transform: uppercase;
    font-size: 0.82em;
    letter-spacing: 0.12em;
}

/* ── Back to top ── */
.back-top {
    display: inline-block;
    margin-top: 1.2rem;
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1px;
}

.back-top:hover {
    color: var(--rust);
    border-bottom-color: var(--rust);
}

/* ── Site footer ── */
.site-footer {
    margin-top: 4rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
    text-align: center;
    font-family: var(--sans);
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}
