/* ===== Base Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-size: 16px;
    line-height: 1.5;
}

h1, h2, h3 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.35em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p {
    font-size: 1rem;
    margin-bottom: 0.5em;
}

.psmall {
  font-size: 0.75rem;
  color: grey;
}

.pbottom {
    margin-bottom: 48px;
}

a {
    font-size: 1rem;
    color: #990ffa;
    text-decoration: underline;
}

a:hover {
    text-decoration: underline;
}

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

/* ===== Shared Layout ===== */
main {
    display: flex;
    flex-direction: column;
    gap: 70px;
    padding-top: 75px;
    background-color: white;
    align-items: center;
}

section {
    width: 100%;       
    padding: 0 200px;
}

/* ===== Shared Navbar ===== */
nav {
    display: flex;
    gap: 16px;
    width: auto;
    align-items: center;
    padding: 5px 22px;
    color: #990ffa;
    border-bottom: 2px solid black;
}

nav .spacer {
    flex: 1 1 auto;
}

.logo {
    width: 100px;
}

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 16px;
}

ul, ol {
    margin-bottom: 0.5em;
    padding-left: 1.25em;
}

ul a {
    text-decoration: none;
}

.navimg {
    max-width: 40px;
    display: block;
}

/* ===== Shared Footer ===== */
footer {
    width: 100%;
    border-top: solid 2px #ead4ff;
    text-align: center;
    padding: 16px;
}

/* ===== Shared Buttons ===== */
button {
    padding: 8px;
    background-color: #990ffa;
    border-style: none;
    border-radius: 5px;
    color: white;
}

button a {
    color: white;
}

button:hover {
    text-decoration: underline;
}

/* ===== Shared Responsive ===== */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
  }
  section {
    padding: 0 16px;
  }
}

/* ===== Shared Other ===== */
.bubbles {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.bubbles p {
    background-color: #faf5ff;
    border-radius: 12px;
    padding: 8px;
    color: #990ffa;
}