/* ============================
   RESET / BASE DEFAULTS
   ============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;   /* makes width/height calculations more predictable */
}

body {
    font-family: "Lucida Console", "Courier New", monospace; /* sets default typeface for the whole site */
    color:black;                /* default text color */
    background-color:beige;     /* default page background */
    line-height:normal;          /* spacing between lines of text, affects readability */
}

p {
    text-align:left;
    margin-bottom: 20px;   /* space below each paragraph, before the next one starts */
    margin-top: 30px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color:darkslategray;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 20px;
    z-index: 100;
    transition: background-color 0.3s ease;
}

.back-to-top:hover {
    background-color: #555;
}

/* ============================
   TYPOGRAPHY
   ============================ */
h1, h2, h3 {
    font-family: "Lucida Console", "Courier New", monospace;          /* often different from body text, e.g. a display font */
    font-weight:normal;
    letter-spacing:normal;       /* spacing between letters, common for headings */
}

a {
    color:black;             /* a blue, signals "this is a link" - browser default is similar */
    text-decoration: none;      /* removes the default underline for a cleaner look */
}

a:hover {
    color: #004999;             /* a darker/different shade of the base color on hover */
    text-decoration:none; /* adds underline back on hover as a feedback cue */
}

/* ============================
   NAVIGATION (consistent across every page)
   ============================ */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 30px;
    background-color: transparent;
    position: relative;
}

nav::before,
nav::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, gray 20%, gray 80%, transparent);
}

nav::before {
    top: 0;
}

nav::after {
    bottom: 0;
}

nav a {
    font-size: 16px;
    padding: 0 30px;
    border-right: 1px solid gray;
    margin: 0;
}
nav a:last-child {
    border-right: none;
}

/* ============================
   LAYOUT CONTAINERS
   ============================ */
.container {
    max-width:1600px;             /* caps content width on large screens */
    margin: 0 auto;             /* centers the container horizontally */
    padding: 0 40px;               /* inner spacing from container edges */
}

.site-title {
    font-size:56px;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    letter-spacing: 2px;
    text-align: center;
    margin: 30px 0 20px;
}

.site-subtitle {
    font-size:30px;
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    letter-spacing: 2px;
    text-align: center;
    margin: 30px 0 20px;
}
/* ============================
   FOOTER (consistent across every page)
   ============================ */
footer {
    text-align: center;
    padding: 10px 40px;
    font-size:small;
}
footer p{
    text-align: center;
    padding: 10px 40px;
    font-size:small;
}

/* ============================
   RESPONSIVENESS (applies sitewide)
   ============================ */
@media (max-width: 768px) {
    nav {
        flex-direction: column;  /* stack nav items vertically on small screens */
    }
    /* other adjustments for mobile layout */
}