@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lora:wght@400;500;600&display=swap");

:root {
    --page-bg: #f5f0e6;
    --page-accent: #7c3b1f;
    --page-accent-soft: #b26b3f;
    --page-border: #c4b59d;
    --text-main: #241b15;
    --text-muted: #6b5a4a;
    --link: #7b341e;
    --link-hover: #b45309;
    --broken: #9b1c1c;
}

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

html,
body {
    margin: 0;
    padding: 0;
    font-size: 115%;
}

body {
    min-height: 100vh;
    font-family: "Lora", "Georgia", serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.4), transparent 60%),
        radial-gradient(circle at bottom right, rgba(209, 158, 96, 0.25), transparent 60%),
        var(--page-bg);
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Layout */

.container {
    width: min(960px, 100% - 2rem);
    margin: 0 auto;
    padding: 1.5rem 0 2.5rem;
}

/* Typography */

h1,
h2,
h3,
h4 {
    font-family: "Cinzel", "Georgia", "Times New Roman", serif;
    letter-spacing: 0.06em;
    margin: 0.25rem 0 0.5rem;
}

h1 {
    font-size: 1.7rem;
}

h2 {
    font-size: 1.2rem;
}

h3 {
    font-size: 0.95rem;
}

p {
    line-height: 1.6;
    margin: 0.5rem 0 0.75rem;
}

/* Links */

a {
    color: var(--link);
    text-decoration: none;
    border-bottom: 1px solid rgba(123, 52, 30, 0.3);
    transition: color 0.15s ease, border-bottom-color 0.15s ease;
}

a:hover {
    color: var(--link-hover);
    border-bottom-color: var(--link-hover);
}

/* Header & footer */

.site-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background:
        linear-gradient(to right, rgba(0, 0, 0, 0.05), transparent),
        rgba(255, 252, 245, 0.92);
    backdrop-filter: blur(6px);
}

.site-header .container {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.site-branding {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.site-title {
    font-family: "Cinzel", "Georgia", serif;
    font-size: 1.5rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-bottom: none;
    color: var(--page-accent);
    font-weight: 600;
}

.site-title:hover {
    color: var(--link-hover);
}

.site-tagline {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.site-footer {
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 1.5rem;
    background: rgba(246, 239, 227, 0.9);
}

.site-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Index */

.index h1 {
    margin-bottom: 1rem;
}

.index-group {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 60%),
        linear-gradient(135deg, rgba(255, 252, 245, 0.96), rgba(243, 229, 204, 0.9));
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.08);
}

.index-list {
    list-style: none;
    padding-left: 0;
    margin: 0.25rem 0 0;
    columns: 2;
    column-gap: 2rem;
}

.index-list li {
    break-inside: avoid;
    padding: 0.1rem 0;
}

/* Entry */

.entry {
    position: relative;
}

.entry-header {
    margin-bottom: 0.75rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--page-accent-soft);
}

.entry-image {
    float: right;
    margin: 0 0 1.5rem 1.5rem;
    max-width: 30%;
    border-radius: 0.75rem;
    border: 1px solid var(--page-border);
    overflow: hidden;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.25);
}

.entry-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Meta lines */

.meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.meta .label {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
    margin-right: 0.3rem;
    font-family: "Cinzel", "Georgia", serif;
    font-size: 0.8rem;
}

.redirect {
	letter-spacing: 0.16em;
	font-weight: 600;
	margin-right: 0.3rem;
	font-family: "Cinzel", "Georgia", serif;
	font-size: 1rem;
}

/* Murray section */

.murray {
	width: 65%;
}

.murray-intro {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: bold;
    font-style: normal;
}

.murray-quote {
    margin-top: 0.75rem;
    font-size: 0.88rem;
}

/* Details & markdown */

.details p,
.details ul,
.details ol {
    font-size: 0.98rem;
}

.details ul,
.details ol {
    padding-left: 1.5rem;
}

/* Blockquotes */

blockquote {
    position: relative;
    margin: 1.25rem 0;
    padding: 1.5rem 1.75rem;
    border-left: 4px solid var(--page-accent-soft);
    background: rgba(255, 252, 245, 0.7);
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    overflow: visible; /* allows motifs to extend beyond the box */
    z-index: -10;
}

/* Oversized, decorative quote marks */
blockquote::before,
blockquote::after {
    position: absolute;
    font-family: "Cinzel", serif;
    font-size: 6rem;              /* MUCH larger */
    color: rgba(123, 52, 30, 0.12); /* very subtle so it doesn't dominate */
    pointer-events: none;
    line-height: 1;
}

/* Massive opening quote, placed outside the content box */
blockquote::before {
    content: "“";
    top: 1rem;/*-2.2rem;     /* move up so it doesn't crowd text */
    left: 0;/*-1.2rem;    /* slightly outside normal padding */
}

/* Massive closing quote, anchored outwards */
blockquote::after {
    content: "”";
    bottom: -3.4rem;  /* sits below the text but doesn't push anything */
    right: 2.5rem;   /* nudged outwards */
}



.murray-img {
    float: left;
    height: 5rem;
}

/* Broken wiki links */

.broken-link {
    color: var(--broken);
    text-decoration: underline wavy rgba(155, 28, 28, 0.9);
    cursor: help;
}

/* Back link */

.back-link {
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* 404 */

.not-found h1 {
    margin-bottom: 0.5rem;
}

/* Responsive tweaks */

@media (max-width: 720px) {
    .container {
        width: min(640px, 100% - 1.5rem);
    }

    .index-list {
        columns: 1;
    }

    .entry-image {
        float: none;
        margin: 0 auto 1.25rem;
        max-width: min(320px, 100%);
    }

    .site-header .container {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
}
