:root {
    --black: #0b0b0b;
    --charcoal: #171717;
    --stone: #2a2a2a;
    --bone: #f4efe6;
    --silver: #d8d8d8;
    --gold: #b68d40;
    --red: #6f1d1b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--black);
    color: var(--bone);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--gold);
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    margin: 0.5rem 0;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
    font-size: 1.2rem;
}

p {
    font-size: 1.08rem;
}

.container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.narrow {
    width: min(760px, 92%);
}

.site-header {
    border-bottom: 1px solid rgba(182, 141, 64, 0.35);
    background: rgba(11, 11, 11, 0.95);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    color: var(--bone);
    text-decoration: none;
    font-family: Georgia, "Times New Roman", serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: bold;
}

.site-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--silver);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-nav a:hover {
    color: var(--gold);
}

.hero {
    min-height: 88vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 4rem 0;
    background:
        radial-gradient(circle at center, rgba(182, 141, 64, 0.16), transparent 42%),
        linear-gradient(180deg, #111, #050505);
}

.crest-placeholder {
    width: 120px;
    height: 120px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 2rem;
    color: var(--gold);
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: 0.1em;
}

.coat-of-arms {
    display: block;
    width: min(280px, 80vw);
    height: auto;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 0 24px rgba(182, 141, 64, 0.25));
}

.motto {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.95rem;
}

.intro {
    max-width: 720px;
    margin: 1.5rem auto;
    color: var(--silver);
    font-size: 1.25rem;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.button {
    display: inline-block;
    padding: 0.9rem 1.35rem;
    border: 1px solid var(--gold);
    color: var(--black);
    background: var(--gold);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: bold;
}

.button:hover {
    filter: brightness(1.1);
}

.button-secondary {
    background: transparent;
    color: var(--gold);
}

.section {
    padding: 5rem 0;
}

.section-dark {
    background: var(--charcoal);
}

.grid {
    display: grid;
    gap: 1.25rem;
}

.cards {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    border: 1px solid rgba(182, 141, 64, 0.35);
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
}

.page {
    min-height: 75vh;
}

.site-footer {
    border-top: 1px solid rgba(182, 141, 64, 0.35);
    padding: 2rem 0;
    color: var(--silver);
    background: #050505;
}

@media (max-width: 820px) {
    .nav-wrap {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        gap: 0.75rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 78vh;
    }
}

/* Signup form */
.signup-form {
    margin-top: 2rem;
}

.form-row {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}

.form-row label {
    color: var(--silver);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.9rem;
}

.form-row input,
.form-row textarea {
    width: 100%;
    border: 1px solid rgba(182, 141, 64, 0.45);
    background: rgba(255, 255, 255, 0.06);
    color: var(--bone);
    padding: 0.85rem;
    font: inherit;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: 2px solid rgba(182, 141, 64, 0.55);
    border-color: var(--gold);
}

.captcha-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.captcha-row input {
    max-width: 220px;
}

.form-actions {
    justify-content: flex-start;
}

.form-message {
    min-height: 1.5rem;
    color: var(--silver);
}

.form-message.success {
    color: #9fd49f;
}

.form-message.error {
    color: #ffb4a8;
}

button.button {
    cursor: pointer;
    font: inherit;
}

button.button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

@media (max-width: 620px) {
    .captcha-row {
        align-items: stretch;
        flex-direction: column;
    }

    .captcha-row input {
        max-width: none;
    }
}


/* Content refinements */
.left {
    margin-left: 0;
    margin-right: 0;
}

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.callout {
    border: 1px solid rgba(182, 141, 64, 0.42);
    background: rgba(255, 255, 255, 0.035);
    padding: 2rem;
}

.letter p {
    font-size: 1.12rem;
}

.clean-list,
.stage-list {
    padding-left: 1.35rem;
}

.clean-list li,
.stage-list li {
    margin-bottom: 0.75rem;
}

.note {
    color: var(--silver);
    border-left: 3px solid var(--gold);
    padding-left: 1rem;
}

.code-list {
    display: grid;
    gap: 2rem;
    margin-top: 2.5rem;
}

.code-item {
    border-top: 1px solid rgba(182, 141, 64, 0.35);
    padding-top: 1.5rem;
}

blockquote {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--gold);
    background: rgba(255, 255, 255, 0.04);
    color: var(--silver);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.08rem;
}

blockquote cite {
    display: block;
    color: var(--gold);
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cards-two {
    grid-template-columns: repeat(2, 1fr);
}

.cards-two .card h2 {
    font-size: 1.25rem;
}

@media (max-width: 820px) {
    .cards-two {
        grid-template-columns: 1fr;
    }
}
