:root {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #000000;
    font-family: "Segoe UI", Arial, sans-serif;
    color: #f5f5f5;
    text-align: center;
}

/* Nav */

.navbar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(41, 193, 229, 0.25);
}

.navbar a {
    color: #cfdbdf;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.navbar a:hover,
.navbar a.active {
    color: #29c1e5;
    border-color: #29c1e5;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.explore-card:focus-visible {
    outline: 2px solid #29c1e5;
    outline-offset: 2px;
}

/* Main content */

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.container {
    max-width: 760px;
}

.logo {
    max-width: 340px;
    width: 100%;
    height: auto;
    margin-bottom: 1.25rem;
}

.page-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.page-title span {
    color: #29c1e5;
}

.tagline {
    font-size: 1.1rem;
    color: #a9c2c9;
    margin-bottom: 2rem;
}

.coming-soon {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    border: 1px solid #29c1e5;
    border-radius: 999px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #29c1e5;
    margin-bottom: 2rem;
}

.description {
    font-size: 1rem;
    color: #cfdbdf;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.explore {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin: 0 0 2.5rem;
    text-align: left;
}

.explore-card {
    display: block;
    padding: 1.25rem;
    border: 1px solid rgba(41, 193, 229, 0.25);
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.explore-card:hover,
.explore-card:focus-visible {
    border-color: #29c1e5;
    transform: translateY(-2px);
}

.explore-card h2 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    color: #29c1e5;
}

.explore-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #cfdbdf;
    line-height: 1.5;
}

.youtube-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #0e8fac 0%, #29c1e5 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem 1.8rem;
    border-radius: 8px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 14px rgba(41, 193, 229, 0.35);
}

.youtube-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(41, 193, 229, 0.5);
}

footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #5c7a80;
    padding-bottom: 1.5rem;
}

/* Answer pages */

.answer-main {
    align-items: flex-start;
    padding-top: 32px;
}

.answer {
    text-align: left;
    width: 100%;
}

.answer h1 {
    font-size: 1.75rem;
    line-height: 1.3;
    margin: 0 0 1.25rem;
}

.short-answer {
    border: 1px solid #29c1e5;
    border-left-width: 4px;
    border-radius: 6px;
    background: rgba(41, 193, 229, 0.08);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.short-answer p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.video-embed {
    position: relative;
    aspect-ratio: 16 / 9;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
}

.video-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.video-embed__play {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.video-embed__play img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-embed__play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 1.5rem;
}

.toc {
    border: 1px solid rgba(41, 193, 229, 0.25);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.toc h2 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #29c1e5;
    margin: 0 0 0.5rem;
}

.toc ul {
    margin: 0;
    padding-left: 1.25rem;
}

.toc a {
    color: #cfdbdf;
}

.answer-body h2 {
    font-size: 1.35rem;
    margin: 2rem 0 0.75rem;
    scroll-margin-top: 1rem;
}

.answer-body h3 {
    font-size: 1.1rem;
    margin: 1.5rem 0 0.5rem;
    scroll-margin-top: 1rem;
}

.answer-body p,
.answer-body li {
    line-height: 1.65;
    color: #e6ecee;
}

.answer-body a {
    color: #29c1e5;
}

.materials,
.related {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(41, 193, 229, 0.2);
}

.materials h2,
.related h2 {
    font-size: 1.15rem;
    margin: 0 0 0.75rem;
}

.affiliate-disclosure {
    font-size: 0.8rem;
    color: #5c7a80;
}

.materials-total {
    font-weight: 600;
    color: #29c1e5;
}

@media print {
    .project-page .site-header,
    .project-page .site-footer,
    .project-page .video-embed {
        display: none;
    }
}

.answer-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(41, 193, 229, 0.2);
    font-size: 0.95rem;
}

.answer-cta a {
    color: #29c1e5;
}

/* Answers index */

.answer-index {
    text-align: left;
    width: 100%;
}

.filter-box {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 2rem;
}

.filter-box label {
    font-size: 0.85rem;
    color: #a9c2c9;
}

.filter-box input {
    font: inherit;
    color: #f5f5f5;
    background: #0a0a0a;
    border: 1px solid rgba(41, 193, 229, 0.35);
    border-radius: 6px;
    padding: 0.6rem 0.8rem;
    max-width: 320px;
}

.answer-group + .answer-group {
    margin-top: 2rem;
}

.answer-group h2 {
    font-size: 1.15rem;
    color: #29c1e5;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(41, 193, 229, 0.2);
}

.answer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.answer-entry__title {
    display: inline-block;
    font-weight: 600;
    font-size: 1.05rem;
    color: #f5f5f5;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

.answer-entry__title:hover {
    color: #29c1e5;
}

.answer-entry__preview {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #cfdbdf;
}

/* About page */

.about-photo {
    width: 160px;
    height: 160px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(41, 193, 229, 0.35);
    border-radius: 50%;
    color: #5c7a80;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-bio {
    margin-bottom: 2rem;
}

.about-bio p {
    line-height: 1.65;
    color: #e6ecee;
}

.about-social {
    margin-bottom: 1rem;
}

/* Tools page */

.tool-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tool-entry {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(41, 193, 229, 0.2);
    scroll-margin-top: 1rem;
}

.tool-entry h2 {
    font-size: 1.1rem;
    margin: 0 0 0.4rem;
    color: #29c1e5;
}

.tool-entry p {
    margin: 0;
    line-height: 1.6;
    color: #cfdbdf;
}
