/* ==========================================================================
MAIN STYLESHEET
Imports and global styles
========================================================================== */

/* Root */
@import url('../root/fonts.css');
@import url('../root/monitorframe.css');

/* Tokens & Themes */
@import url('../tokens/utilities.css');
@import url('../tokens/themes/default.css');
@import url('../tokens/themes/matrix.css');
@import url('../tokens/themes/orange.css');
@import url('../tokens/themes/dos.css');
@import url('../tokens/themes/deusex.css');

/* Sections and Components */
@import url('../components/header.css');
@import url('../components/menu-popover.css');
@import url('../components/footer.css');
@import url('../pages/hero.css');
@import url('../pages/profile.css');
@import url('../pages/journals.css');
@import url('../pages/home.css');
@import url('../pages/showcase.css');
@import url('../components/tag.css');
@import url('../components/button.css');



*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-overflow-scrolling: touch;
}

html,
body {
  height: 100%;
  font-family: var(--font-default);
  scroll-behavior: smooth;
  color:var(--color-default-fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


h1 {
  font-size:clamp(2.5rem, -0.3rem + 7vw, 6rem);
  line-height:100%;
  font-weight:bold;
  font-family: var(--font-hero-display);
}

h2 {
  font-size:4rem;
  line-height:110%;
  font-weight:bold;
  font-family: var(--font-hero-display);
}

h3 {
  font-size:2.5rem;
  line-height:100%;
  font-weight:normal;
  color:var(--color-strong-fg);
  font-family: var(--font-hero-display);
}

h4 {
  font-size:2rem;
  line-height:125%;
  font-weight:normal;
  padding-bottom:var(--space-6);
  color:var(--color-strong-fg);
  font-family: var(--font-expressive);
}

h5 {
  font-size:1.25rem;
  line-height:125%;
  font-weight:normal;
  padding-bottom:var(--space-2);
  color:var(--color-strong-fg);
  font-family: var(--font-expressive);
}



p {
  font-size: 1.25rem;
  line-height:150%;
  font-weight:light;
  padding-bottom:var(--space-6);
  color:var(--color-secondary-fg);
  font-family: var(--font-default);
}

@media (max-width: 640px) {
h1 {
  font-size:2.5rem;
  line-height:100%;
  font-weight:bold;
}

h2 {
  font-size:2.5rem;
  line-height:100%;
  font-weight:bold;
}

p {
  font-size: 1rem;
  line-height:150%;

}
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.wrapper {
  flex: 1;
  display: flex;
  padding: 0 0 16px 16px;
  min-height: 0;
  position: relative;
  gap: 16px;
  
}

.main-container {
  flex: 1;
  border: 1px solid var(--color-default-border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

main.wrapcontent {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#mainContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8rem;
  align-items: center;
  justify-content: flex-start;
  overflow-y: auto;
  min-height: 0;
  padding: 16px;
  position: relative;
  overflow-x: hidden;
  container-type: inline-size;
}

#mainContent[data-has-scrollbar="false"] {
  padding-right: 16px;
}

#mainContent[data-has-scrollbar="true"] {
  padding-right: 2px;
}

* { scrollbar-width: auto; scrollbar-color: var(--color-default-border) transparent; }
*::-webkit-scrollbar { width: 16px; height: 16px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background-color: var(--color-default-border); border-radius: 999px; border: 6px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-corner { background: transparent; }
*::-webkit-scrollbar-button { display: none; }

::selection {
  background-color: var(--color-selection-bg);
  color: var(--color-selection-fg);
}

::-moz-selection {
  background-color: var(--color-selection-bg);
  color: var(--color-selection-fg);
}

@media (max-width: 640px) {
    .wrapper {
        padding: 8px;
        gap:0;
    }

    #mainContent {
        padding: 4px;
        gap:var(--space-24);
    }
    .main-container{
        border-radius:0 0 16px 16px;
    }
}