:root {
    --navy-deep: #03040c;
    --navy: #0a0d1c;
    --slate: #8b97b3;
    --text: #cfd3de;
    --gold: #c9a35e;
    --gold-bright: #f0c77a;
    --teal: #5fb3bd;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--navy-deep) url("images/background.jpg");
    background-attachment: fixed;
    color: var(--text);
    font-family: "Lora", Georgia, serif;
    font-size: 1em;
    letter-spacing: 0.3px;
    line-height: 1.85;
    margin: 0;
}

/* soft dusk glow behind the whole page */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(201,163,94,0.14), transparent 55%),
        linear-gradient(to bottom, rgba(3,6,24,0.85), rgba(3,4,12,0.95));
    pointer-events: none;
    z-index: -1;
}

::selection { background: rgba(201,163,94,0.35); color: #fff; }

.container {
    background: linear-gradient(to bottom, #1b1e2c, #050509 70%);
    border: 1px solid rgba(201,163,94,0.18);
    border-radius: 48px;
    box-shadow: 0 0 0 6px rgba(0,0,0,0.35), 0 30px 80px rgba(0,0,0,0.7), 0 0 120px rgba(201,163,94,0.06);
    color: var(--text);
    margin: 40px auto;
    max-width: 90%;
    overflow: hidden;
    width: 1400px;
}

header {
    background: url("images/header.jpg") center top / cover no-repeat;
    height: 700px;
    text-align: center;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 78%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 78%, transparent 100%);
}

header {
    align-items: flex-end;
    display: flex;
    justify-content: center;
    padding-bottom: 170px;
}

.site-title { animation: riseIn 1.2s ease both; }

.site-title h1 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    letter-spacing: 0.3em;
    margin: 0;
    padding-left: 0.3em; /* balances trailing letter-spacing */
    text-shadow: 0 2px 24px rgba(0,0,0,0.9), 0 0 40px rgba(201,163,94,0.45);
}

.site-title p {
    color: #e3dccb;
    font-family: "Cinzel", serif;
    font-size: 0.85rem;
    letter-spacing: 0.35em;
    margin: 0.2rem 0 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.95);
    text-transform: uppercase;
}

nav {
    animation: riseIn 1s 0.1s ease both;
    margin-bottom: 20px;
    margin-top: -3.5rem;
    padding: 0 30px 20px;
    position: relative;
    text-align: center;
}

/* thin gold rule with a triangle in the middle */
nav::after {
    background: linear-gradient(to right, transparent, rgba(201,163,94,0.6), transparent);
    content: "";
    display: block;
    height: 1px;
    margin: 1.4rem auto 0;
    width: min(70%, 700px);
}

nav a {
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--slate);
    display: inline-block;
    font-family: "Cinzel", serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    margin: 0.2rem 0.1rem;
    padding: 0.45rem 1rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

nav a:hover,
nav a:focus-visible {
    border-color: rgba(201,163,94,0.45);
    box-shadow: 0 4px 14px rgba(95,179,189,0.18), 0 0 14px rgba(201,163,94,0.15);
    color: var(--gold-bright);
    outline: none;
    transform: translateY(-2px);
}

main {
    background: rgba(14,16,28,0.72);
    border: 1px solid rgba(201,163,94,0.12);
    border-radius: 48px;
    margin: 0 20px 20px;
    min-height: 400px;
    padding: 50px 90px 60px 100px;
}

main > p:first-child::first-letter {
    color: var(--gold);
    float: left;
    font-family: "Cinzel", serif;
    font-size: 3.6rem;
    line-height: 0.9;
    padding: 0.35rem 0.6rem 0 0;
}

h1, h2, h3 {
    color: var(--gold-bright);
    font-family: "Cinzel", serif;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
}

h2 {
    border-bottom: 1px solid rgba(201,163,94,0.25);
    font-size: 1.4rem;
    margin-top: 2.5rem;
    padding-bottom: 0.5rem;
}

h2::before {
    color: var(--gold);
    content: "\25B2";
    font-size: 0.6em;
    margin-right: 0.8rem;
    vertical-align: 0.15em;
}

strong { color: #fff; }
em { color: #e3dccb; }

main a {
    border-bottom: 1px solid rgba(95,179,189,0.4);
    color: var(--teal);
    text-decoration: none;
    transition: color 0.25s, border-color 0.25s;
}

main a:hover {
    border-color: var(--gold-bright);
    color: var(--gold-bright);
}

blockquote {
    background: linear-gradient(to right, rgba(201,163,94,0.09), transparent 80%);
    border-left: 3px solid var(--gold);
    border-radius: 0 12px 12px 0;
    color: #e6e2d6;
    font-style: italic;
    margin: 2rem 0;
    padding: 0.6rem 1.5rem;
}

hr {
    background: linear-gradient(to right, transparent, rgba(201,163,94,0.5), transparent);
    border: 0;
    height: 1px;
    margin: 2.5rem 0;
}

table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 0.5rem 0.8rem; text-align: left; }
th { color: var(--gold); font-family: "Cinzel", serif; letter-spacing: 0.1em; }
tr:hover td { background: rgba(201,163,94,0.05); }

input, textarea, select {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(201,163,94,0.3);
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    padding: 0.45rem 0.7rem;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--gold-bright);
    box-shadow: 0 0 12px rgba(201,163,94,0.25);
    outline: none;
}

button, input[type="submit"] {
    background: linear-gradient(to bottom, #d8b36c, #a37f3e);
    border: 0;
    border-radius: 6px;
    color: #120d03;
    cursor: pointer;
    font-family: "Cinzel", serif;
    font-weight: 600;
    letter-spacing: 0.15em;
    padding: 0.5rem 1.4rem;
    text-transform: uppercase;
}

button:hover, input[type="submit"]:hover { filter: brightness(1.12); }

footer {
    border-top: 1px solid rgba(201,163,94,0.2);
    color: var(--slate);
    font-size: 0.85rem;
    margin-top: 3rem;
    padding-top: 1.2rem;
    text-align: center;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}
