@font-face {
    font-family: 'Telegraf Ultra Bold';
    src: url('/assets/fonts/Telegraf-UltraBold-800.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
}

:root {
    --bg-color: #fff;
    --text-color: #222;
    --nav-text-color: #222;
    --nav-hover-color: #348d37;
    --card-bg-color: #fff;
    --secondary-text-color: #666;
    --dial-bg-color: #000;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
}

/* fade effect for links */
.fade {
    opacity: 0;
    transition: opacity 0.3s;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation: fade 0.3s;
}

@keyframes fade{
    from {opacity: 0;}
    to {opacity: 1;}
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-color);
    /* border-right: 1px solid #e0e0e0; */
    padding: 32px 0 0 32px;
}

.swb-logo {
    font-family: 'Big Caslon', 'EB Garamond', serif;
    font-size: 3em;
    font-weight: 400;
    font-style: italic;
    color: var(--nav-text-color);
    margin-bottom: 20px;
    cursor: pointer;
    letter-spacing: 0.1em;
    position: relative;
    background: var(--bg-color);
}

.swb-logo:hover::before,
.swb-logo:hover::after {
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-direction: alternate-reverse;
    overflow: hidden;
    position: absolute;
    top: 0;
    clip: rect(0, 900px, 0, 0);
    content: attr(data-text);
}

.swb-logo:hover::after {
    animation-name: glitch-animation;
    animation-duration: 4s;
    left: 4px;
    text-shadow: -1px 0 #ffa800;
    background: var(--bg-color);
}

.swb-logo:hover::before {
    animation-name: glitch-animation-2;
    animation-duration: 6s;
    left: -4px;
    text-shadow: 1px 0 #00d8ff;
    background: var(--bg-color);
}

@keyframes glitch-animation {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 59px, 0); }
    10% { clip: rect(48px, 9999px, 29px, 0); }
    15% { clip: rect(42px, 9999px, 73px, 0); }
    20% { clip: rect(63px, 9999px, 27px, 0); }
    25% { clip: rect(34px, 9999px, 55px, 0); }
    30% { clip: rect(86px, 9999px, 73px, 0); }
    35% { clip: rect(20px, 9999px, 20px, 0); }
    40% { clip: rect(26px, 9999px, 60px, 0); }
    45% { clip: rect(25px, 9999px, 66px, 0); }
    50% { clip: rect(57px, 9999px, 98px, 0); }
    55% { clip: rect(5px, 9999px, 46px, 0); }
    60% { clip: rect(82px, 9999px, 31px, 0); }
    65% { clip: rect(54px, 9999px, 27px, 0); }
    70% { clip: rect(28px, 9999px, 99px, 0); }
    75% { clip: rect(45px, 9999px, 69px, 0); }
    80% { clip: rect(23px, 9999px, 85px, 0); }
    85% { clip: rect(54px, 9999px, 84px, 0); }
    90% { clip: rect(45px, 9999px, 47px, 0); }
    95% { clip: rect(37px, 9999px, 20px, 0); }
    100% { clip: rect(4px, 9999px, 91px, 0); }
}

@keyframes glitch-animation-2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(52px, 9999px, 74px, 0); }
    10% { clip: rect(79px, 9999px, 85px, 0); }
    15% { clip: rect(75px, 9999px, 5px, 0); }
    20% { clip: rect(67px, 9999px, 61px, 0); }
    25% { clip: rect(14px, 9999px, 79px, 0); }
    30% { clip: rect(1px, 9999px, 66px, 0); }
    35% { clip: rect(86px, 9999px, 30px, 0); }
    40% { clip: rect(23px, 9999px, 98px, 0); }
    45% { clip: rect(85px, 9999px, 72px, 0); }
    50% { clip: rect(71px, 9999px, 75px, 0); }
    55% { clip: rect(2px, 9999px, 48px, 0); }
    60% { clip: rect(30px, 9999px, 16px, 0); }
    65% { clip: rect(59px, 9999px, 50px, 0); }
    70% { clip: rect(41px, 9999px, 62px, 0); }
    75% { clip: rect(2px, 9999px, 82px, 0); }
    80% { clip: rect(47px, 9999px, 73px, 0); }
    85% { clip: rect(3px, 9999px, 27px, 0); }
    90% { clip: rect(26px, 9999px, 55px, 0); }
    95% { clip: rect(42px, 9999px, 97px, 0); }
    100% { clip: rect(38px, 9999px, 49px, 0); }
}

.sidebar nav {
    margin-top: 70px;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li {
    margin-bottom: 8px;
}

.sidebar nav ul li a {
    text-decoration: none;
    color: var(--nav-text-color);
    font-size: 2.4em;
    font-family: 'Telegraf Ultra Bold', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 1000;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s cubic-bezier(0.4, 0, 0.2, 1), font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0;
}

.sidebar nav ul li:hover>a {
    color: var(--nav-hover-color);
}

.sidebar nav ul li.has-submenu {
    position: relative;
}

.sidebar nav ul li .submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 4px;
    margin-left: 24px;
    padding: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar nav ul li.has-submenu:hover .submenu {
    max-height: 200px;
    opacity: 1;
}

.sidebar nav ul li .submenu li a {
    font-size: 1.6em;
    font-family: 'Telegraf Ultra Bold', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    color: var(--nav-text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar nav ul li .submenu li a:hover {
    color: var(--nav-hover-color);
}

.main-content {
    flex: 1;
    padding: 40px 48px;
    background: var(--bg-color);
    font-size: 1.15em;
}

header h1 {
    margin-top: 0;
    font-size: 1.6em;
    font-weight: 900;
    color: #222;
    text-transform: none;
    letter-spacing: 0;
    font-family: 'Telegraf Ultra Bold', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.perfume-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.perfume-card {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: 320px;
}

.perfume-image {
    background: #e0e0e0;
    height: 160px;
    width: 100%;
}

.perfume-info {
    padding: 24px;
}

.perfume-info h2,
.featured-info h2 {
    margin: 0 0 12px 0;
    font-size: 1.3em;
    color: #333;
    font-weight: bold;
    text-transform: none;
    letter-spacing: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.perfume-info p {
    margin: 0;
    color: #666;
    font-size: 1.05em;
}

.featured-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 32px;
}

.featured-review {
    width: 100%;
    background: var(--card-bg-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 180px;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0 0;
    position: relative;
    text-decoration: none;
}

.featured-review:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 0;
    bottom: -31px;
    border-bottom: 0.5px solid #292929;
    opacity: 0.7;
    z-index: 1;
}

.featured-image {
    background: #e0e0e0;
    width: 180px;
    height: 140px;
    margin-right: 32px;
    flex-shrink: 0;
}

.featured-info {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 140px;
}

.featured-info h2 {
    margin: 0 0 12px 0;
    font-size: 1.3em;
    color: var(--text-color);
    font-weight: bold;
    text-transform: none;
    letter-spacing: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.featured-info p {
    margin: 0;
    color: var(--secondary-text-color);
    font-size: 1.05em;
}

.swb-section {
    margin-top: 105px;
    margin-left: 30px;
}

.spacer {
    height: 18px;
}

.spacerer {
    height: 36px;
}

.sidespace {
    width: 28px;
}

.brightness-dial {
    width: 60px;
    height: 60px;
    margin-top: 55px;
    border-radius: 50%;
    background: var(--dial-bg-color);
    border: 1px solid var(--dial-bg-color);
    position: relative;
    cursor: pointer;
}

.dial-indicator {
    width: 2px;
    height: 20px;
    background: #3ab73e;
    position: absolute;
    top: 8px;
    left: 50%;
    transform-origin: bottom center;
    transform: translateX(-50%) rotate(0deg);
}