@font-face {
    font-family: 'Stack Sans Notch';
    src: url('/fonts/StackSansNotch-VariableFont_wght.ttf') format('truetype-variations'),
         url('/fonts/StackSansNotch-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 700;
    font-style: normal;
    font-display: swap;
}

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

html, body {
    height: 100%;
    font-family: 'Stack Sans Notch', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.5;
    background-color: #F5F3ED;
    color: #000;
}

/* Utility Classes */
.fixed {
    position: fixed;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.right-0 {
    right: 0;
}

.z-50 {
    z-index: 50;
}

.bg-site {
    background-color: #F5F3ED;
}

.border-b {
    border-bottom-width: 1px;
}

.border-black\/10 {
    border-color: rgba(0, 0, 0, 0.1);
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-12 {
    gap: 3rem;
}

.gap-8 {
    gap: 2rem;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.-bottom-1 {
    bottom: -0.25rem;
}

.transition-transform {
    transition-property: transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.inline-block {
    display: inline-block;
}

.whitespace-nowrap {
    white-space: nowrap;
}

.overflow-x-auto {
    overflow-x: auto;
}

.pb-1 {
    padding-bottom: 0.25rem;
}

/* Navigation Styles (matching main site) */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: #F5F3ED;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

nav .max-w-screen-2xl {
    max-width: 1536px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 72px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #000;
    position: relative;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

/* Logo styles */
nav a.flex.items-center.gap-1 span {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 1rem;
    line-height: 1.5rem;
}

nav a.flex.items-center.gap-1:hover > span:first-of-type {
    transform: scale(1.1);
}

nav a.flex.items-center.gap-1:hover .text-accent {
    transform: rotate(180deg);
}

nav a.flex.items-center.gap-1:hover > span:last-of-type {
    transform: scale(1.1);
}

.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.text-accent {
    color: #9333ea;
}

.text-black\/50 {
    color: rgba(0, 0, 0, 0.5);
}

/* Navigation links container */
.flex.items-center.gap-12,
.flex.items-center.gap-8 {
    display: flex;
    align-items: center;
}

/* Navigation link hover effects are handled by .group class */

/* Group class */
.group {
    cursor: pointer;
}

.group-hover\:scale-110 {
    transition: transform 0.3s ease;
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group-hover\:rotate-180 {
    transition: transform 0.3s ease;
}

.group:hover .group-hover\:rotate-180 {
    transform: rotate(180deg);
}

.group-hover\:w-full {
    transition: width 0.3s ease;
}

.group:hover .group-hover\:w-full {
    width: 100%;
}

.w-0 {
    width: 0;
}

.w-full {
    width: 100%;
}

.h-px {
    height: 1px;
}

.bg-black {
    background-color: #000;
}

.bg-black\/50 {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Main App Container */
#app {
    min-height: 100vh;
    padding-top: 8rem;
    padding-bottom: 6rem;
    padding-left: 2rem;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #F5F3ED;
}

#header-container {
    margin: 0 0 4rem 0;
    text-align: center;
}

h1 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

h2 {
    font-size: 0.875rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 0;
}

h3 {
    font-size: 0.9em;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin: 0 0 0.5em 0;
}

/* Settings Container */
.settings-container {
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    width: 100%;
    max-width: 1536px;
    padding: 2rem;
    border-radius: 8px;
    flex-direction: row;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.setting {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.setting-item-container {
    display: flex;
    margin-top: 0.75em;
    gap: 1rem;
}

.setting-item {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(0, 0, 0, 0.3);
    font-size: 0.9em;
    letter-spacing: 0.025em;
}

.setting-item.inactive {
    color: rgba(0, 0, 0, 0.3);
}

.setting-item.active {
    color: #9333ea;
    font-weight: 500;
    background-color: rgba(147, 51, 234, 0.1);
}

.setting-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

select {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background-color: white;
    font-family: 'Stack Sans Notch', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
}

select:hover {
    border-color: #9333ea;
}

select:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* Canvas */
#canvas-container {
    width: 100%;
    max-width: 1536px;
    margin-bottom: 3rem;
}

#canvas {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Instructions */
.instructions {
    width: 100%;
    max-width: 1536px;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    text-align: center;
}

.instructions p {
    letter-spacing: 0.025em;
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.7);
}

.instructions strong {
    font-weight: 500;
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    #app {
        padding-top: 6rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .settings-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    nav .max-w-screen-2xl {
        padding: 1rem;
    }

    nav a {
        font-size: 0.75rem;
    }

    .flex.items-center.gap-12,
    .flex.items-center.gap-8 {
        gap: 1rem;
    }

    h1 {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 0.75rem;
    }

    #canvas {
        border-radius: 4px;
    }

    .instructions {
        padding: 1.5rem;
        font-size: 0.875rem;
    }
}
