/**
 * Single-Source Publishing styles
 */

:root {
    /* SSPC colors */
    --sspc-green: #a0d568;
    --sspc-yellow: #ffce54;
    --sspc-red: #ed5564;
    --sspc-purple: #ac92eb;
    --sspc-blue: #4fc1e8;
    --sspc-light-green: #b8e08e;
    --sspc-light-yellow: #ffda7f;
    --sspc-light-red: #f2808b;
    --sspc-light-purple: #c1adf0;
    --sspc-light-blue: #7bd1ee;

    /* water.css variables */
    --max-width: 800px;
}

@font-face {
  font-family: 'Outfit';
  src:
    url("../fonts/Outfit-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Figtree';
  src:
    url("../fonts/Figtree-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}

/* Ensure footer stays at bottom */
body {
    display: flex;
    flex-direction: column;
    font-family: "Figtree", sans-serif;
    font-weight: 400;
    margin: 0 auto;
    min-height: 100vh;
    max-width: unset;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Outfit", sans-serif;
    font-weight: 600;
}

main {
    flex: 1;
    margin: 0 auto;
    max-width: var(--max-width);
}

/***********
** Navbar **
***********/
.navbar {
    background-color: var(--background-alt);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    align-items: center;
    display: flex;
    max-width: var(--max-width);
    padding: 1rem;
    margin: 0 auto;
}

.navbar .logo {
    display: flex;
    align-items: center;
    margin-right: 2rem;
    text-decoration: none;
}

.navbar .logo img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.navbar .logo img:hover {
    transform: rotate(360deg);
}

.navbar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

.navbar li {
    margin: 0;
}

.navbar a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar a:hover {
    background-color: var(--button-hover);
}

.navbar a:focus-visible {
    background-color: var(--button-hover);
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.navbar a.active {
    background-color: var(--button-hover);
}

/*******************
*** Footer Styles***
********************/
footer {
    background-color: var(--background-alt);
    padding-top: 0;
    width: 100%;
}

/* Ensure footer links are optically non-invasive */
footer a {
    color: var(--text-muted);
    max-width: var(--max-width);
}

.footer-container {
    align-items: center;
    display: flex;
    flex-direction: row;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    gap: 2rem;
    width: 100%;
}

.footer-container > div {
    align-items: center;
    color: var(--text-muted);
    display: flex;
    flex: 1;
}

.footer-container > div:last-child {
    justify-content: flex-end;
}

td > p:first-child {
    margin-top: 0;
}

p.author {
  display: inline-block;
  margin-right: 1em;
}
