:root {
    --primary-color: #DA2123;
    --surface-color: #202020;
    --background-color: #151616;
    --text-color: #ffffff;
    --muted-color: #8D8D8B;
    --font-heading: 'Tech', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
  font-family: 'Tech';
  src: url('/Fonts/digital-7.ttf') format('truetype'); /* relative, like every other asset */
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* paint fallback text immediately instead of blocking */
}

@font-face {
  font-family: 'Clock';
  src: url('/Fonts/blank4.ttf') format('truetype'); /* relative, like every other asset */
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* paint fallback text immediately instead of blocking */
}

body {
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Hack Club flag */
.flag-orpheus {
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 90;
    line-height: 0;
    transition: transform 0.2s ease;
}

.flag-orpheus img {
    width: 180px;
    height: auto;
    display: block;
}

.flag-orpheus:hover {
    transform: translateX(4px);
}

/* Landing Page */
.landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.landing-content {
    max-width: min(1400px, 90vw);
}

h1 {
    font-family: var(--font-heading);
    text-align: center;
    font-size: clamp(3.5rem, 9vw, 9rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.accent {
    color: var(--primary-color);
    text-decoration: underline;
}

.subtitle {
    text-align: center;
    font-size: clamp(1.2rem, 2vw, 2rem);
    color: var(--muted-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    text-align: center;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    font-family: var(--font-body);
    color: #141414;
    font-size: clamp(1.2rem, 1.6vw, 1.8rem);
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: opacity 0.2s;
    margin: 0 auto 1.5rem;
}

.btn:hover {
    opacity: 0.70;
}

.landing-clock {
    display: block;
    margin: 0 auto;
    max-width: 400px;
    width: 100%;
    height: auto;
}

/* FAQ Section */

.faq {
    padding: 4rem 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

.faq-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.faq-item {
    background: var(--surface-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--muted-color);
    line-height: 1.7;
}

/* What To Do steps */

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.step-number {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-color);
    color: #141414;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
}

.step-body {
    flex: 1;
}

/* Coming Soon */

.coming-soon {
    min-height: calc(100vh - 160px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    gap: 1rem;
}

.coming-soon-icons {
    font-size: 3rem;
    letter-spacing: 0.5rem;
}

.coming-soon-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--primary-color);
}

.coming-soon-text {
    font-size: 1.3rem;
    color: var(--muted-color);
}

.coming-soon-bar {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 500px;
    height: 18px;
    border-radius: 4px;
    background: repeating-linear-gradient(
        45deg,
        #e0b21a,
        #e0b21a 20px,
        #141414 20px,
        #141414 40px
    );
}

/* Topbar */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 56px;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 2px solid #e01a1a;
}

.topbar-logo {
    display: inline-block; /* Allows the link to wrap perfectly around the image */
    text-decoration: none; /* Removes any default text underlines */    
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth hover transition */
    display: block;        /* Removes unwanted whitespace at the bottom of the image */
    width: 50%;           /* Makes the image responsive to its container */
    max-width: 300px;      /* Restricts the image to a maximum width */
    height: auto;          /* Maintains the aspect ratio */
}

.topbar-nav {
    display: flex;
    gap: 0.5rem;
}

.topbar-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    border: 2px solid #e01a1a;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.topbar-link:hover {
    color: var(--text-color);
    background: var(--background-color);
}

/* Guide Layout */
.guide-layout {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.sidebar {
    width: 200px;
    background: var(--surface-color);
    padding: 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    min-height: 0;
    padding-top: 56px;
}

.sidebar-link {
    color: var(--muted-color);
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

.sidebar-link:hover {
    background: var(--background-color);
    color: var(--primary-color);
}

.sidebar-section {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    padding: 0.3rem 0rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    text-align: left;
    margin-top: 0.5rem;
    transition: color 0.15s;
}

.sidebar-section::before {
    content: '▾';
    display: inline-block;
    transition: transform 0.2s;
}

.sidebar-section.collapsed::before {
    transform: rotate(-90deg);
}

.sidebar-section:hover {
    color: var(--text-color);
}

.sidebar-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 1000px;
}

.sidebar-group.collapsed {
    max-height: 0;
}

.guide-content {
    flex: 1;
    padding: 2rem;
    padding-top: calc(0.75rem + 56px);
    max-width: 1500px;
    overflow-y: auto;
    min-height: 0;
}

/* markdown styles */

.guide-content > :first-child {
    margin-top: 0;
}

.guide-content h1,
.guide-content h2,
.guide-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.guide-content p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.guide-content ul, 
.guide-content ol {
    color: var(--muted);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.guide-content code {
    font-family: var(--font-mono);
    background: var(--surface);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

.guide-content pre {
    background: var(--surface);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

