/* Warm Luxury Editorial Design System */
/* CSS Custom Properties for Color Switching */

:root {
    /* Default: Warm Amber Palette */
    --accent: rgba(220, 180, 120, 1);
    --accent-soft: rgba(220, 180, 120, 0.8);
    --accent-subtle: rgba(220, 180, 120, 0.6);
    --accent-faint: rgba(220, 180, 120, 0.3);
    --accent-ghost: rgba(220, 180, 120, 0.12);
    --accent-whisper: rgba(220, 180, 120, 0.06);
    --bg-deep: #0a0806;
    --bg-mid: #0c0a08;
    --bg-light: #0e0c0a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --text-ghost: rgba(255, 255, 255, 0.4);
    --border-subtle: rgba(200, 170, 120, 0.06);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background: var(--bg-mid);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(12, 10, 8, 0.5);
    backdrop-filter: blur(30px);
}

.nav-brand { display: flex; align-items: center; gap: .75rem; }

.nav-logo {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-ghost);
    text-decoration: none;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 300;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--accent-soft);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-faint);
}

.nav-actions { display: flex; align-items: center; gap: 1.35rem; }
.nav-mark-link { display: inline-flex; flex: 0 0 20px; align-items: center; justify-content: center; width: 20px; height: 20px; opacity: .5; transition: opacity .25s ease; }
.nav-mark-link:hover, .nav-mark-link:focus-visible { opacity: .75; }
.nav-mark { display: block; width: 16px; height: 12px; object-fit: contain; }
.nav-mark-link:focus-visible { outline: 1px solid var(--accent-soft); outline-offset: 5px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--accent-faint);
    color: var(--accent-soft);
    background: transparent;
    transition: all 0.4s ease;
    font-family: var(--font-body);
    cursor: pointer;
}

.btn:hover {
    background: rgba(var(--accent), 0.1);
    color: var(--text-primary);
    border-color: var(--accent-subtle);
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text-ghost);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

/* Film Grain Overlay */
.film-grain {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
    opacity: 0.4;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Mesh Gradient Animation */
@keyframes meshFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(-3%, 2%) scale(1.02);
    }
    50% {
        transform: translate(2%, -3%) scale(0.98);
    }
    75% {
        transform: translate(-1%, -2%) scale(1.01);
    }
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Logo design / selected identity systems */
.logo-design {
    padding: 9rem 5rem 10rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-subtle);
}

.logo-design__header,
.logo-design__grid {
    max-width: 1200px;
    margin: 0 auto;
}

.logo-design__header {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 6rem;
    align-items: end;
    margin-bottom: 4rem;
}

.logo-design__label {
    margin-bottom: 1.5rem;
    color: var(--accent-subtle);
    font-size: .6rem;
    font-weight: 300;
    letter-spacing: .35em;
    text-transform: uppercase;
}

.logo-design h2 {
    color: var(--text-primary);
    font-size: clamp(2.7rem, 5vw, 5rem);
    letter-spacing: -.045em;
    line-height: .98;
}

.logo-design h2 em {
    color: var(--accent-soft);
    font-style: italic;
}

.logo-design__intro {
    padding-bottom: .4rem;
}

.logo-design__intro p {
    max-width: 330px;
    margin-bottom: 1.8rem;
    color: var(--text-tertiary);
    font-size: .85rem;
    font-weight: 300;
    line-height: 1.8;
}

.logo-design__link {
    color: var(--accent-soft);
    font-size: .62rem;
    letter-spacing: .18em;
    text-decoration: none;
    text-transform: uppercase;
}

.logo-design__link:hover { color: var(--text-primary); }
.logo-design__link span { margin-left: .4rem; font-size: .9rem; }

.logo-design__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--border-subtle);
}

.logo-design__card {
    display: block;
    min-width: 0;
    background: var(--bg-deep);
    color: inherit;
    text-decoration: none;
}

.logo-design__visual {
    position: relative;
    display: grid;
    min-height: 300px;
    padding: 4rem 3.5rem;
    place-items: center;
    overflow: hidden;
    background: #0b0b0b;
}

.logo-design__visual::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(255,255,255,.08);
    content: '';
    pointer-events: none;
}

.logo-design__visual img {
    display: block;
    width: 100%;
    max-width: 340px;
    max-height: 170px;
    object-fit: contain;
    filter: grayscale(1) brightness(1.45);
    transition: transform .45s cubic-bezier(.2,.7,.2,1), filter .3s ease;
}

.logo-design__card--yoshimoto .logo-design__visual img {
    filter: grayscale(1) brightness(1.45);
}

.logo-design__card:hover .logo-design__visual img {
    transform: scale(1.05);
    filter: grayscale(0) brightness(1.1);
}

.logo-design__card--yoshimoto:hover .logo-design__visual img {
    filter: grayscale(0) brightness(1.1);
}

.logo-design__number,
.logo-design__arrow {
    position: absolute;
    z-index: 1;
    top: 1.5rem;
    color: var(--text-ghost);
    font-size: .55rem;
    letter-spacing: .2em;
}

.logo-design__number { left: 1.6rem; }
.logo-design__arrow { right: 1.6rem; color: var(--accent-soft); font-size: 1.1rem; letter-spacing: 0; }

.logo-design__meta {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: 1.4rem 1.6rem 1.8rem;
}

.logo-design__meta strong {
    color: var(--text-secondary);
    font-size: .85rem;
    font-weight: 400;
    letter-spacing: .02em;
}

.logo-design__meta small {
    color: var(--text-ghost);
    font-size: .55rem;
    font-weight: 300;
    letter-spacing: .17em;
    text-transform: uppercase;
}

/* Footer */
.footer {
    padding: 3rem 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-deep);
}

.footer span {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.15);
    letter-spacing: 0.15em;
}

.footer-mark { display: block; width: 25px; height: 19px; object-fit: contain; opacity: .42; }

/* Color Switcher */
.color-switcher {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 200;
}

.color-switcher-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(12, 10, 8, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--accent-ghost);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-switcher-toggle:hover {
    border-color: var(--accent-faint);
    transform: scale(1.1);
}

.color-switcher-toggle .palette-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-subtle) 100%);
    border-radius: 50%;
}

.color-switcher-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: rgba(12, 10, 8, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid var(--accent-ghost);
    border-radius: 12px;
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.color-switcher-panel.active {
    display: flex;
}

.color-swatch {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.color-swatch:hover {
    background: rgba(255, 255, 255, 0.05);
}

.color-swatch.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-ghost);
}

.swatch-preview {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.swatch-name {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 300;
    color: var(--text-tertiary);
}

.color-swatch.active .swatch-name {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.25rem;
        flex-direction: column;
        align-items: stretch;
        gap: .8rem;
    }

    .nav-brand { gap: .6rem; }
    .nav-logo { white-space: nowrap; font-size: .85rem; }

    .nav-links {
        width: auto;
        flex: 1;
        justify-content: space-between;
        gap: .5rem;
    }

    .nav-actions { width: 100%; gap: .55rem; }
    .nav-mark-link { flex-basis: 18px; width: 18px; height: 18px; }
    .nav-mark { width: 15px; height: 11px; }

    .nav-links a {
        white-space: nowrap;
        font-size: .55rem;
        letter-spacing: .12em;
    }

    .footer {
        padding: 2rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .logo-design { padding: 6rem 2rem; }
    .logo-design__header { grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 3rem; }
    .logo-design__grid { grid-template-columns: 1fr; }
    .logo-design__visual { min-height: 260px; padding-inline: 2rem; }

    .color-switcher {
        bottom: 1rem;
        right: 1rem;
    }

    .color-switcher-toggle {
        width: 44px;
        height: 44px;
    }
}
