/* --------- tokens --------- */
:root{
  --bg:rgba(0,0,0,.9);
  --text:rgba(255,255,255,.87);
  --muted:rgba(255,255,255,.7);

  --blue:#008DDA;
  --pink:#FF2DF1;
  --yellow:#FFFF00;

  --grad-start-blue:#008DDA;
  --grad-end-blue:#caecff;
  --grad-start-silver:#eaeaea;
  --grad-end-silver:#373737;

  --radius-lg:20px;
  --radius-xl:28px;
  --container:1200px;

  --shadow:6px 4px 4px 2px rgba(255,255,255,.2);
  --shadow-left:-6px 4px 4px 2px rgba(255,255,255,.2);

  --header-h: 64px;
}

/* --------- base --------- */
*,*::before,*::after{box-sizing:border-box}
html,body{height:100%}

/* ------- breakpoints ------- */
@media(max-width:450px) {
  .mb_wordmark {
    visibility: hidden;
  }
  .socials a {
    width: 32px;       
    height: 32px;       
  }
  .socials img {
    width: 32px;       
    height: auto;
  }
}

/* --------- header --------- */
.site_header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 9999;
  backdrop-filter:saturate(140%) blur(6px);
  -webkit-backdrop-filter:saturate(140%) blur(6px);
  border-bottom:1px solid rgba(255,255,255,.12);
  backdrop-filter:saturate(140%) blur(6px);
  -webkit-backdrop-filter:saturate(140%) blur(6px);
  border-bottom:1px solid rgba(255,255,255,.12);
}
.header_grid{
  justify-items: center;
  height:100%;
  display:grid; align-items:center; gap:1rem;
  grid-template-columns:1fr 1fr 1fr;
  padding: 0 1rem;
}
#mb_wordmark {
  justify-self: center;
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 340 / 36;
}
.nav{
    padding: .5rem;
    display:flex;
    gap:.5rem;
    justify-self: start;
}
.nav a{
    color: var(--blue);
    text-decoration: none;
    padding: .5rem .5rem;
    border-radius: 6px;
    position: relative;}
.nav a.is-active{
    color: var(--pink);
}
.nav a.hidden{
  display: none;
}
.nav a:hover {
  color: var(--yellow);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--pink);
  transition: width .3s ease;
}
.nav a:hover::after {
  width: 100%;
}
.socials{
    padding: 1.5rem;
    display:flex;
    gap:.5rem;
    justify-self: end;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.socials img {
  width: 24px;
  height: auto;
}
a[href*="instagram"] img:hover {
  content: url("/images/instagram_bright.svg");
}
a[href*="dribbble"] img:hover {
  content: url("/images/dribbble_bright.svg");
}
a[href*="x.com"] img:hover {
  content: url("/images/twitter_bright.svg");
}
a[href*="github"] img:hover {
  content: url("/images/github_bright.svg");
}

/* ------- body ------- */
body{
  margin:0;
  padding-top: var(--header-h);
  color:var(--text);
  background: var(--bg) url("/images/themlines.png") top left / auto repeat;
  font-family:'Nunito Sans', sans-serif;
}
h1,h2,h3,h4,h5,h6 {
  margin: 0 0 .5em;
  font-weight: 700;
  line-height: 1.2;
}
a {
  color: var(--pink);
  text-decoration: none;
}
a:hover {
  color: var(--yellow);
  text-decoration: none;
}
p {
  margin: 0 0 1em;
}
small {
  color: var(--muted);
  font-size: 0.875rem;
}

/* ------- main -------- */
#main_container {
  max-width:var(--container);margin:0 auto;padding:0 1rem;
  display: grid;
  grid-auto-rows: auto;
  /*margin-bottom: 10%;*/
}

/* ------- sections ------- */ 
.section_container {
  display: flex;
  justify-content:start;
  margin: 2%;
}
.section_left {
  justify-self: start;
  justify-content: center;
  align-items: center;    
  text-align: left; 
  z-index: 1;
  width: 80%;
  min-height: 300px;
  font-size: 1.2rem;
  padding: 2rem 12% 2rem 2rem;
  margin: 2%;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--radius-lg); 
  background: linear-gradient(
    135deg,
    var(--grad-start-blue),
    var(--grad-end-blue)
  );
  box-shadow: var(--shadow-left); 
}
.section_right {
  justify-self: end;
  justify-content: center;
  align-items: center;    
  text-align: left; 
  z-index: 1;
  width: 80%;
  min-height: 300px;
  font-size: 1.2rem;
  margin: 2%;
  padding: 2rem 2rem 2rem 12%;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--radius-lg); 
  background: linear-gradient(
    135deg,
    var(--grad-start-silver),
    var(--grad-end-silver)
  );
  box-shadow: var(--shadow); 
}
.section_box_right {
  z-index: 2;
  margin: 0 0 -10% -10%;
  width: 40%;
  height: 80%;
  justify-self: end;
}
.section_box_left {
  z-index: 2;
  margin: 0 -10% -10% 0;
  width: 40%;
  height: 80%;
  justify-self: start;
}

/* ------- footer ------- */
.footer {
  height: 32px; 
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 0.5rem;
  display: flex;              
  justify-content: center;   
  align-items: center;       
  gap: 1rem;                
  padding: .5rem;
}

/* ------- images ------- */
img { display:block; max-width:100%; height:auto; }
.logo {
  width: 100%;
  height: auto;
  object-fit: cover;
}
.section_image {
  width: 100%;
  height: auto;
  object-fit: cover;
}
