:root {
    --paper:      #f4f1e8;
    --ink:        #1f1c15;
    --ink-soft:   #4a4238;
    --gilt-light: #e0c68a;
    --gilt:       #c8a45c;
    --gilt-dark:  #a07f36;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
}

.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--paper);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='0.055'/%3E%3C/svg%3E");
}

.page__edge {
    flex: none;
    height: 10px;
    background: linear-gradient(
        180deg,
        var(--gilt) 0%,
        var(--gilt-light) 35%,
        var(--gilt) 68%,
        var(--gilt-dark) 100%
    );
}

.features {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(48px, 8vh, 96px) 24px clamp(120px, 18vh, 200px);
}

.features__title {
    text-align: center;
    font-size: clamp(38px, 6vw, 56px);
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: clamp(36px, 6vh, 64px);
}

.menu {
    list-style: none;
    text-align: center;
}

.menu__item + .menu__item {
    margin-top: clamp(24px, 3.4vh, 38px);
}

.menu__link {
    display: inline-block;
    font-size: clamp(20px, 2.6vw, 27px);
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    text-decoration: none;
    transition: opacity .15s ease;
}
.menu__link:hover,
.menu__link:focus-visible {
    opacity: .62;
}

.menu__toggle {
    cursor: pointer;
    list-style: none;
}
.menu__toggle::-webkit-details-marker { display: none; }

.menu__toggle::after {
    content: '';
    display: inline-block;
    width: .38em;
    height: .38em;
    margin-left: .55em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-.22em) rotate(45deg);
    transition: transform .18s ease;
    opacity: .5;
}
.menu__group[open] > .menu__toggle::after {
    transform: translateY(.05em) rotate(-135deg);
}

.submenu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: clamp(14px, 1.8vh, 20px);
    margin-top: clamp(18px, 2.4vh, 26px);
    padding-bottom: 6px;
}

.submenu__link {
    display: inline-block;
    font-size: clamp(16px, 1.9vw, 19px);
    font-weight: 400;
    color: var(--ink-soft);
    text-decoration: none;
    transition: opacity .15s ease;
}
.submenu__link:hover,
.submenu__link:focus-visible {
    opacity: .6;
}

.parrot {
    position: absolute;
    right: clamp(-8px, 1vw, 24px);
    bottom: 0;
    width: clamp(120px, 17vw, 200px);
    aspect-ratio: 5 / 6;
    background: url('/images/features/parrot.png') no-repeat right bottom / contain;
    mix-blend-mode: multiply;
    pointer-events: none;
}

@media (max-width: 560px) {
    .parrot { display: none; }
    .features { padding-bottom: 64px; }
}
