body {
    margin: 0;
    background-color: #f3eee5;
    background-image:
        radial-gradient(60rem 40rem at 10% -10%, rgba(224,190,130,0.35), transparent 60%),
        radial-gradient(50rem 40rem at 100% 10%, rgba(160,175,150,0.25), transparent 60%);
    background-attachment: fixed;
    color: #302c27;
    font-family: Arial, sans-serif;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 30px;
}

h1 {
    margin: 0 0 16px;
    font-size: clamp(2.4rem, 7vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    background: linear-gradient(120deg, #302c27 30%, #c9893b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

}

p {
    color: #756f67;
}

a:visited {
    color: #4a453e;
}

a:link {
    color: #413b34;
}

#pages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.card {
    display: block;
    padding: 25px;
    background-color: rgba(255, 250, 242, 0.72);
    border: 1px solid #e3dbce;
    border-radius: 16px;
    text-align: left;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
    animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    backdrop-filter: blur(14px) saturate(160%);
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(48,44,39,0.06), 0 4px 12px rgba(48,44,39,0.05);

}

@keyframes rise {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.12s; }
.card:nth-child(3) { animation-delay: 0.19s; }

.card:hover {
    transform: translateY(-14px);
    box-shadow: 0 24px 50px -20px rgba(48,44,39,0.35);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(22rem 14rem at 100% 0%, rgba(201,137,59,0.14), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.card::after {
    content: "→";
    position: absolute;
    right: 24px;
    bottom: 20px;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.35s, transform 0.35s;
}

.card:hover::before { opacity: 1; }
.card:hover::after  { opacity: 1; transform: translateX(0); }

.card h2 {
    margin: 0;
    font-size: 20px;
}

.card p {
    margin-bottom: 0;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.first-plan {
    position: fixed;
    z-index: 999;
}

.button{
    display: block;
    background-color: #fffaf2;
    border: 1px solid #e3dbce;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition-duration: 0s;
    width: 1.8%;
    aspect-ratio: 1/1;
    min-width: 30px;
}

.button:hover{
    rotate: 3600deg;
    transition-duration: 0.4s;
}

#home {
    position: fixed;
    top: 2%;
    left: 2%;

}

.sidebar {
    position: fixed;
    top: 12px;
    right: 12px;
    bottom: 12px;
    width: 340px;
    max-width: 90%;
    padding: 64px 24px 24px;
    box-sizing: border-box;
    overflow-y: auto;
    color: white;
    background: rgba(28, 26, 24, 0.82);
    backdrop-filter: blur(14px) saturate(160%);
    border-radius: 16px;
    z-index: 9;

    transform: translateX(calc(100% + 40px));
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 0.5s;
}

.sidebar.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

body:has(.sidebar.open) main {
    opacity: 0.5;
    filter: blur(3px);
    transform: scale(0.985);
}

main{
    transition-duration: 0.5s;
}

#sidebartoggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10;
}

.sidebar p{
    color: #979086;
}

.sidebar a:visited{
    color: #9c9b98;
}

.sidebar a:link{
    color: #8b8a88;
}

.footer {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 800;
    width: max-content;
    max-width: calc(100vw - 32px);
    padding: 10px 22px;
    background: rgba(255, 250, 242, 0.72);
    transform: translateX(-50%);
    border-radius: 999px;
    border: 1px solid #c4bcb1;
    backdrop-filter: blur(14px) saturate(160%);
    overflow-x: auto;
    white-space: nowrap;
    font-size: 14px;
}

.footer p {
    margin: 0;
    text-align: center;
}

.footer{
    font-size: 14px;
}

.footer a:link{
    color: rgb(189, 174, 117);
}

.footer a:visited{
    color: rgb(160, 151, 110);
}