body {
    margin: 0;
    min-height: 100vh;

    display: grid;
    place-items: center;

    background-color: #faf6ed;
    color: #243746;

    font-family: Georgia, "Times New Roman", serif;
}

.hero {
    max-width: 760px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

.eyebrow {
    margin: 0 0 1rem;
    color: #aa4b36;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.h1 {
    margin: 0;
    font-size: 4rem;
    font-weight: 600;

}

.tagline {
    margin: 1rem 0 0;
    color: #5f6f67;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
    font-style: italic;
}
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #d8d2c5;
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    color: #243746;
    text-decoration: none;
}

.brand-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: 700;
}

.brand-description {
    color: #aa4b36;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    color: #243746;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 4rem;
    line-height: 1;
}

.assessment-options {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.assessment-card {
    padding: 2rem;
    background-color: #fffdf8;
    border: 1px solid #d8d2c5;
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1.5rem rgba(36, 55, 70, 0.08);
}

.assessment-options > .section-eyebrow {
    margin: 0 0 0.75rem;
    color: #aa4b36;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-align: center;
    text-transform: uppercase;
}

.assessment-options > h2 {
    margin: 0 0 2rem;
    color: #243746;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    text-align: center;
}

.assessment-card p {
    color: #5f6f67;
    line-height: 1.6;
}

.card-part {
    margin: 0 0 0.5rem;
    color: #aa4b36;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.assessment-card h3 {
    margin: 0 0 0.75rem;
    color: #243746;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
}

.button-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    color: #ffffff;
    background-color: #aa4b36;
    border-radius: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.2s,
        transform 0.2s;
}

.button-link:hover {
    background-color: #8f3e2d;
    transform: translateY(-2px);
}

.information-options {
  max-width: 1100px;
  margin: 0 auto 6rem;
  padding: 3rem 2rem;
  background-color: #eee9e7;
  border: 1px solid #d5d8cb;
  border-radius: 1rem;
}

.information-options > h2 {
  margin: 0 0 2rem;
  color: #243746;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  text-align: center;
}

.information-card {
  padding: 1.75rem;
  background-color: rgba(255, 255, 255, 0.55);
  border: 1px solid #cbd8cd;
  border-radius: 0.75rem;
}

.information-card h3 {
  margin: 0 0 0.75rem;
  color: #243746;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.information-card p {
  color: #6f6e5f;
  line-height: 1.6;
}

.information-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: #a94e3a;
  font-weight: 700;
  text-decoration: none;
}

.information-link:hover {
  color: #8b3f30;
  text-decoration: underline;
}

.brand-logo {
    width: 22rem;
    max-width: 100%;
    height: auto;
}

.quiz-icon {
    width: 6rem;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

.large-image {
    width: 44rem;
    max-width: 100%;
    height: auto; 
}

/* Informational pages use a comfortable reading width and the shared site header. */
.article-page {
    max-width: 52rem;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
    font-size: 1.125rem;
    line-height: 1.75;
}

.article-page h1 {
    margin: 0 0 2rem;
    font-size: clamp(2.25rem, 6vw, 3.25rem);
    line-height: 1.15;
    text-wrap: balance;
}

.article-page h2 {
    margin: 3rem 0 1rem;
    color: #aa4b36;
    font-size: 1.75rem;
    line-height: 1.3;
}

.article-page h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.4rem;
    line-height: 1.4;
}

.article-page p {
    margin: 0 0 1.25rem;
}

.article-page li {
    margin-bottom: 0.75rem;
}

.article-page a {
    color: #aa4b36;
    text-underline-offset: 0.2em;
}

.article-page a:hover {
    color: #8f3e2d;
}

.article-page .article-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #d8d2c5;
}

/* Live-site adjustments: keep the header and cards usable on phones and tablets. */
* {
    box-sizing: border-box;
}

body {
    display: block;
}

.site-header {
    max-width: 1240px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.brand {
    flex: 0 1 22rem;
    min-width: 0;
}

.nav-links {
    flex-wrap: wrap;
    gap: 0.75rem;
}

.nav-links .button-link {
    margin-top: 0;
}

.card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.information-options {
    width: calc(100% - 4rem);
}

.construction-image {
    max-width: 48rem;
    margin: 0 auto 4rem;
    padding: 0 2rem;
    text-align: center;
}

.image-credit {
    color: #5f6f67;
    font-size: 0.875rem;
    line-height: 1.6;
}

a:focus-visible {
    outline: 3px solid #243746;
    outline-offset: 4px;
}

@media (max-width: 760px) {
    .site-header {
        gap: 1.5rem;
    }

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

    .hero {
        padding: 4rem 1.5rem;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 10vw, 4rem);
        overflow-wrap: anywhere;
    }

    .assessment-options {
        padding: 0 1.25rem 4rem;
    }

    .information-options {
        width: calc(100% - 2.5rem);
        padding: 2rem 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .button-link {
        transition: none;
    }

    .button-link:hover {
        transform: none;
    }
}
