:root {
  /* Border & Divider */
  --color-border: #C1BBB6;
  
  /* Background Colors */
  --color-bg-primary: #DDD7D0;
  --color-bg-secondary: #C1BBB6;
  
  /* Text Colors */
  --color-text-primary: #040402;
  --color-text-secondary: #928C86;
  
  
  /* Boop Colors */
  /* --color-boop-bg: #FFF5F5;
  --color-boop-theme: #FF6B6B;
   */
  /* Rings Colors */
  /* --color-rings-bg: #F3F0FF;
  --color-rings-theme: #845EF7; */
  
  /* Planana Colors */
  /* --color-planana-bg: #FFF9DB;
  --color-planana-theme: #FAB005; */

  /* Border */
  --border-width: 2px;

  /* Spacing */
  --spacing-section: 2.5rem;
  --spacing-item: 1.5rem;

  /* Scroll */
  --scroll-padding: 2rem;
  --scroll-behavior: smooth;
}



.oswald-regular {
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.oswald-medium {
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto; 
    font-weight: 500;
    font-style: normal;
}

.oswald-bold {
    font-family: "Oswald", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

/* global style */

*{
    font-family: 'Inter', sans-serif;
}

.page-wrapper{
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-primary);
}

.padding-global{
    padding: 0 100px;     
}

.padding-top-small{
    padding-top: 2rem;
}

.padding-top-medium{
    padding-top: 4rem;
}

.padding-top-large{
    padding-top: 6rem;
}

.padding-bottom-small{
    padding-bottom: 2rem;
}

.padding-bottom-medium{
    padding-bottom: 4rem;
}

.padding-bottom-large{
    padding-bottom: 6rem;
}

.container-large{
    max-width: 1200px;
    margin: 0 auto;
}

.container-medium{
    max-width: 56rem;
    margin: 0 auto;
}

.padding-section{
    padding: 0 var(--spacing-section);
}

.divider{
    height: var(--border-width);
    width: 100%;
    background-color: var(--color-border);
}

.section{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
}

.nav-logo{
    width: 100%;
    max-width: 1.5rem;
    height: 100%;
    object-fit: contain;
}

.position-sticky{
    position: sticky;
    top: 2rem;
}

/* home page hero section */

#homeHero{
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-hero-grid{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 10px;
    align-items: center;
    justify-content: center;
    display: inline-grid;
}

.grid-item{
    height: 10vh;
    width: 10vh;
    background-color: var(--color-bg-secondary);
    border-radius: 100px;
    overflow: hidden;
}

.image-wrapper{
    height: 10vh;
    width: 10vh;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.image-wrapper .headshot{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%; 
    height: auto;
    object-fit: contain;
    z-index: 3;
}

.image-wrapper .bg{
    background-color: var(--color-bg-secondary);
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
    top: 0;
    left: 0;
    border-radius: 100px;
}


.image-wrapper .app-logo{
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 100px;
    overflow: hidden;
}


/* home page header section */

#homeHeaderGrid{
    position: relative;
    padding: var(--spacing-section) 0;
    width: 100%;
}

#homeHeaderGrid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--border-width);
    background-color: var(--color-border);
}

/* .home-heading{
    font-size: 12.5vw;
    line-height: 0vw;
    color: var(--color-text-primary);
    text-wrap: nowrap;
} */

.rice-studio-heading{
    width: 100%;
    height: auto;
    object-fit: contain;
    margin: 1rem 0;
}

#studioDescriptionWrapper{
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: stretch;
}

.home-subheading{
    font-size: 1.5rem;
    line-height: 3rem;
    font-weight: 300;
    margin: 0;
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

/* home page project section */

.project-section {
    padding: var(--spacing-section) 0;
    width: 100%;
    position: relative;
}

.project-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--border-width);
    background-color: var(--color-border);
}   

.grid-3x1 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 0px;
    align-items: stretch;
    justify-content: stretch;
    height: 100%;
    width: 100%;   
}

.grid-4x1 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 0px;
    align-items: stretch;
}

.project-grid-item.large {
    grid-column: span 2;
}

.project-grid-item.small {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.project-grid-item.left {
    padding-right: var(--spacing-section);
    border-right: var(--border-width) solid var(--color-border);
}

.project-grid-item.right {
    padding-left: var(--spacing-section);
}

.logo-wrapper{
    max-width: 4rem;
    max-height: 4rem;
    margin-bottom: 6rem;
    border-radius: 0.75rem;
    overflow: hidden;
}

.logo-wrapper img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-heading{
    font-size: 4rem;
    line-height: 4rem;
    margin: 0;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.project-subheading{
    font-size: 1.25rem;
    line-height: 2rem;
    font-weight: 300;
    color: var(--color-text-secondary);
}

.project-showcase{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-image-wrapper{
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    margin:0;
    display: flex;
    align-items: center;
    justify-content: center;
}   

#projectHeading .logo-wrapper img,
#projectShowcase .project-showcase {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 3/2;
}

.project-button{
    width: 10rem;
    font-size: 1.25rem;
    line-height: 1.5rem;
    font-weight: 300;
    padding: 1rem 0.5rem;
    color: var(--color-text-secondary); 
    background-color: var(--color-bg-secondary);
    border-radius: 0.25rem;
    border: none;
    cursor: not-allowed;
}

.button-wrapper{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap:1rem 0.5rem;

}
/* Google Play Badge 样式 */
.google-play-badge {
    width: 100%;
    height: 100%;
    max-height:2.5rem;
    object-fit: contain;
}

.app-store-badge {
    width: 100%;
    height: 100%;
    max-height:2.5rem;
    object-fit: contain;
}


/* footer section */

#footerGrid{
    position: relative;
    padding: var(--spacing-section) 0;
}

#footerGrid::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--border-width);
    background-color: var(--color-border);
}

#footerGridItem1{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 1.5rem;
}

.footer-aboutus {
    max-width: 48rem;
    font-size: 1.25rem;
    line-height: 2rem;
    font-weight: 300;
    margin: 0px;
    color: var(--color-text-secondary);
}

#footerGridItem2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 2rem;  
    margin-top: 6rem;
}

.team-profile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.team-role {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 300;
    margin: 0;
    color: var(--color-text-secondary);
}

.team-name {
    font-size: 1.5rem;
    font-family: 'Oswald', sans-serif;
    line-height: 2rem;
    margin: 0;
    color: var(--color-text-primary);
}

.social-icon-wrapper{
    color: var(--color-social-icon);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    margin-top: 0.5rem;
    gap: 0.75rem;
}

.twitter-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23928C86' viewBox='0 0 512 512'%3E%3Cpath d='M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z'/%3E%3C/svg%3E");
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
}

.linkedin-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23928C86' viewBox='0 0 448 512'%3E%3Cpath d='M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z'/%3E%3C/svg%3E");
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
}

.bluesky-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23928C86' viewBox='0 0 512 512'%3E%3Cpath d='M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z'/%3E%3C/svg%3E");
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
}


#footerCopyright {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

#footerCopyright::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--border-width);
    background-color: var(--color-border);
}

#footerCopyright p{
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 300;
    color: var(--color-text-secondary);
    margin: 0;
}

#footerCopyright a{
    color: var(--color-text-secondary);
}

/* Content page */
.content-heading{
    padding-top: 12rem;
    padding-bottom: var(--spacing-section);
    font-size: 8vw;
    margin: 0;
    font-family: 'Oswald', sans-serif;
    color: var(--color-text-primary);
}

.content-wrapper{
    max-width: 60rem;
    margin: 0 auto;
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--color-text-primary);
}

.content-wrapper p{
    margin-top: 1rem;
    margin-bottom: 0;
}

.content-wrapper h2{
    margin-top: 3rem;
    margin-bottom: 0;
}

.content-wrapper h3{
    margin-top: 2rem;
    margin-bottom: 0;
}

.content-wrapper a{
    color: var(--color-text-primary);
}

.content-wrapper ul{
    margin-top: 1rem;
    margin-bottom: 0;
}

.content-wrapper ul li{
    margin-top: 1rem;
    margin-bottom: 0;
}


.landing-hero{
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding-top: var(--spacing-section);
}



@media screen and (max-width: 1102px) {
    /* 全局样式调整 */
    .padding-global {
        padding: 0 20px;
    }
    
    /* 首页标题调整 */
    .rice-studio-heading{
        width: min(100%, 32rem);
        height: auto;
        object-fit: contain;
        margin-bottom: 1rem;
    }
    
    .home-subheading {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .home-hero-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(4, 1fr);
    }

    .grid-item {
        height: min(96px, 15vw);
        width: min(96px, 15vw);
    }

    .image-wrapper {
        height: min(96px, 15vw);
        width: min(96px, 15vw);
    }

    /* 项目展示区域调整 */
    .grid-3x1 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .grid-4x1 {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .project-grid-item.large {
        grid-column: span 1;
    }

    .project-grid-item.left {
        padding-right: 0;
        border-right: none;
    }

    .project-grid-item.right {
        padding-left: 0;
        padding-top: var(--spacing-item);
    }

    #studioDescriptionWrapper {
        padding-top: 0;
    }

    /* 项目内容样式调整 */
    .logo-wrapper {
        max-width: 3rem;
        max-height: 3rem;
        margin-bottom: 2rem;
    }

    .project-heading {
        font-size: 2.5rem;
        line-height: 2.5rem;
        margin-bottom: 0.5rem;
    }

    .project-subheading {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    .project-button{
        max-width: 8rem;
        font-size: 1rem;
        line-height: 1.25rem;
        font-weight: 300;
    }

    .google-play-badge {
        max-width: 8rem; 
    }

    /* Rings项目特殊处理 */
   #ringsProject .project-grid-item.right {
        grid-row-start: 1;
        grid-row-end: 1;
        padding: 0 0 var(--spacing-item) 0;
    }

    #footerGridItem2{
        margin-top: 2rem;
    }

    #footerCopyright{
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    /* Content page */
    .content-heading{
        padding-top: 6rem;
        font-size: 4rem;
        line-height: 4rem;
        margin-bottom: 0.5rem;
    }

    .content-wrapper{
        font-size: 1rem;
    }
    
    .content-wrapper p{
        margin-top: 0.5rem;
        margin-bottom: 0;
    }

    .content-wrapper h2{
        margin-top: 2rem;   
    }

    .content-wrapper h3{
        margin-top: 1rem;
    }

    .content-wrapper ul{
        margin-top: 0.5rem;
        margin-bottom: 0;
    }

    .content-wrapper ul li{
        margin-top: 0.5rem;
        margin-bottom: 0;
    }
}


/* 添加平滑滚动 */
html {
    scroll-behavior: var(--scroll-behavior);
    scroll-padding-top: var(--scroll-padding);
}

/* 为锚点链接添加过渡效果 */
a[href^="#"] {
    transition: all 0.3s ease;
}

/* 只添加必要的重置，保持其他样式不变 */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--color-bg-primary);
}

.page-wrapper {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--color-bg-primary);
}

