/* --- Font Registrations --- */
@font-face {
    font-family: 'LaRene';
    src: url('fonts/LaRene-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Khal';
    src: url('fonts/Khal-Bold.ttf') format('truetype');
}
@font-face {
    font-family: 'Minerva';
    src: url('fonts/Minerva-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Gramatan';
    src: url('fonts/Graham-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'ShoreScript';
    src: url('fonts/ShoreScript-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Michael';
    src: url('fonts/Michael-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Sarai';
    src: url('fonts/Sarai.ttf') format('truetype');
}
@font-face {
    font-family: 'Isabelle';
    src: url('fonts/Isabelle-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Chancellor';
    src: url('fonts/Chancellor-Regular.ttf') format('truetype');
}

/* --- Base Layout --- */
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
}

/* --- Top Announcement Bar --- */
.announcement-bar {
    background-color: #7b94a1;
    color: white;
    text-align: center;
    padding: 6px 20px;
    font-size: 0.8rem;
}

/* --- Studio Header & Navigation --- */
.site-header {
    background: #ffffff;
    padding: 25px 20px 20px;
    border-bottom: 1px solid #eaeaea;
    text-align: center;
}

.brand-title {
    font-family: 'IBM Plex Serif', serif;
    font-size: 1.8rem;
    letter-spacing: 0.25em;
    margin: 0 0 20px 0;
    font-weight: 600;
    color: #111;
    cursor: pointer;
    display: inline-block;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 0.85rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #555;
    padding-bottom: 4px;
    transition: color 0.2s, border-color 0.2s;
}

.nav-btn:hover {
    color: #000;
    border-bottom: 1px solid #000;
}

/* --- Hero Section --- */
.hero-section {
    height: 75vh;
    background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)), url('https://images.unsplash.com/photo-1513519245088-0e12902e5a38?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-content h2 {
    font-size: 2.6rem;
    margin-bottom: 12px;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
    font-weight: 300;
}

.cta-button {
    background-color: #597d93;
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    border-radius: 2px;
    text-transform: uppercase;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: #486577;
}

/* --- Customizer Page --- */
.customizer-container {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}

.customizer-container h2 {
    text-align: center;
    font-weight: 400;
    font-size: 2rem;
    margin-bottom: 8px;
}

.customizer-container > p {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
    color: #444;
}

.input-group input, .control-box select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1.1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    outline: none;
}

.input-group input:focus {
    border-color: #111;
}

/* --- Font Preview Cards (3x3 Grid Layout) --- */
.fonts-preview-list {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.font-card {
    background: #fafafa;
    border: 1px solid #eaeaea;
    padding: 28px;
    border-radius: 6px;
    text-align: center;
}

.preview-text {
    font-size: 2.2rem;
    margin: 0 0 14px 0;
    color: #111;
    word-break: break-word;
}

.font-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #888;
}

/* --- Font Mapping Classes --- */
.font-larene { font-family: 'LaRene', sans-serif; }
.font-khal { font-family: 'Khal', sans-serif; }
.font-minerva { font-family: 'Minerva', sans-serif; }
.font-gramatan { font-family: 'Gramatan', sans-serif; }
.font-shorescript { font-family: 'ShoreScript', sans-serif; }
.font-michael { font-family: 'Michael', sans-serif; }
.font-sarai { font-family: 'Sarai', sans-serif; }
.font-isabelle { font-family: 'Isabelle', sans-serif; }
.font-chancellor { font-family: 'Chancellor', sans-serif; }

/* --- Gallery Layouts (3 in a row) --- */
.gallery-container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.gallery-container h3 {
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eaeaea;
}

.gallery-caption {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 900px) {
    .fonts-preview-list, .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .fonts-preview-list, .gallery-grid {
        grid-template-columns: 1fr;
    }
}