@import url("https://fonts.googleapis.com/css2?family=Jersey+10:wght@400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Mono&display=swap");

html, body {
    min-height: 100dvh; 
    margin: 0;
    padding: 0;
    background-color: #fdfdfd;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

.app-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
    width: 100%;
}

/* Center content on home page */
body:not(.blog-post):not(.no-scroll) .app-wrapper, 
body.home .app-wrapper {
    justify-content: center !important; 
    height: 100vh;
}

/* Align blog/quote posts to the top */
body.blog-post .app-wrapper,
body.no-scroll .app-wrapper {
    justify-content: flex-start;
    min-height: 100vh;
}

.links-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.home-link {
    display: block;
    text-align: center;
    font-family: 'Jersey 10', sans-serif;
    font-size: 1.6rem;
    color: #000;
    text-decoration: none;
    margin-top: 30px;
    text-shadow: 1px 1px 0 #fff, 2px 2px 0 #ddd;
    transition: transform 0.1s ease;
}
.home-link:hover {
    transform: translateY(2px);
}

.back-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-family: 'Jersey 10', sans-serif;
    font-size: 1.4rem;
    color: #000;
    text-decoration: none;
    text-shadow: 1px 1px 0 #fff, 2px 2px 0 #ddd;
    transition: transform 0.1s ease;
}
.back-link:hover {
    transform: translateY(2px);
}

/* Quote Page Styles */
.quote-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 70ch;
    margin-top: 5rem;
    padding-bottom: 4rem;
}

.quote-box {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    color: #333;
    text-decoration: none;
    display: block;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.quote-box:hover {
    border-color: #ccc;
}

.quote-box p {
    margin: 0;
    line-height: 1.5;
}

/* Blog Page Styles */
.blog-content {
    padding: 1rem 2rem;
    margin-top: 5rem;
    font-size: 1.1rem;
    max-width: 80ch;
    width: 100%;
}

.blog-content p {
    margin-bottom: 1.3rem;
    line-height: 1.4;
}
.blog-content a {
    text-decoration: none;
    color: #417786;
}
.blog-content a:hover {
    text-decoration: underline;
}
.blog-image {
    max-width: 100%;
    height: auto;
    width: 400px;
    display: block;
    margin: 2rem auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

sup a {
    text-decoration: none;
    color: #417786;
}

.footnotes {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    font-size: 0.9em;
    color: #555;
}

.footnotes ol {
    padding-left: 30px;
}

.footnotes li {
    margin-bottom: 10px;
}

.footnotes a {
    text-decoration: none;
    color: #999;
}