/* =======================
   font
======================= */
@font-face {
  font-family: 'Atkinson';
  src: url('presskit/AtkinsonHyperlegibleNext-ExtraLight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'Atkinson';
  src: url('presskit/AtkinsonHyperlegibleNext-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
}

.semibold {
  font-family: 'Atkinson', system-ui, sans-serif;
  font-weight: 600;
}

/* =======================
   base
======================= */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #EEECE7;
  color: #000;
  font-family: 'Atkinson', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  scrollbar-gutter: stable both-edges;
}

a { color: inherit; }
img, video { max-width: 100%; height: auto; }

#canvas {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  min-height: 100vh;
  padding-inline: 16px;
}


/* =======================
   overlay (intro screen)
======================= */
#enter-toggle { display: none; }

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
  z-index: 9999;
  cursor: pointer;
}

.overlay video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inbetween {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  backdrop-filter: blur(2px) brightness(0.99);
  -webkit-backdrop-filter: blur(2px) brightness(0.99);
  background: rgba(0, 0, 0, 0.12);
}

.overlay-ui {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: .75rem 1rem;
  border-radius: 6px;
  font-weight: 300;
  font-size: clamp(1.25rem, 1.5vw + .9rem, 1.6rem);
}

#enter-toggle:checked ~ .overlay { display: none; }
#enter-toggle:not(:checked) ~ #canvas { display: none; }


/* =======================
header
======================= */
#header_text {
    position: sticky;
    top: 0;
    z-index: 200;
    margin: 5px;
    padding: 4px 0;
    background: #EEECE7;
}
#header_text a {
    text-decoration: none;
}
#header_text .works-link {
    text-decoration: underline;
}
#header_text a.active {
    text-decoration: underline;
}

/* =======================
   grid / stacked
======================= */
.stacked {
    position: relative;
    opacity: 0.7;
    z-index: 99;
}

.row_1 {
    display: flex;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100vw / 3);
    z-index: 10;
}

.column_1_2 {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #EEECE7;
    min-height: 100vh;
    color: #000;
    font-family: 'Atkinson', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    font-size: 24px;
    line-height: 1.45;
    scrollbar-gutter: stable both-edges;
}

#mp_text {
    font: 24px;
    padding: 5px;
}


/* =======================
   works
======================= */
#works {
    position:relative;
    z-index: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100vw;
    margin-left: 5px;
    margin-top: 0;
    padding: 12px 0px 32px 0px;
}

.work-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-card {
    margin: 0;
    width: var(--width, min(360px, 100%));
    max-width: 50vw;
    overflow: hidden;
}

.work-responsive {
    position: relative;
    z-index: 0;
    width: 100%;
    max-width: calc(100vw - 10px);
    overflow: hidden;
}

.work-content {
    position: relative;
    width: 100%;
    background-color: transparent;
}

.work-image {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    max-width: 50vw;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    transition: opacity 0.25s ease;
}


/* =======================
   born under thread project view
======================= */
#born-under-thread {
    display: none;
    position: relative;
    width: 100vw;
    padding: 12px 10px 32px 10px;
    box-sizing: border-box;
  }

.media-backdrop {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    width: 100vw;
    margin-left: 5px;
    margin-right: 150px;
    margin-top: 0;
    padding: 12px 150px 32px 0px;
    align-content: flex-start;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: auto;
  }
  

.born-content {
    position: relative;
    z-index: 99;
    padding-right: 24vw;
    background: rgba(238, 236, 231, 0.78);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  
.born-main p {
    max-width: 80vw;
    font-size: 20px;
    line-height: 1.5;
    margin: 0;
  }
  
.sidebar {
    position: fixed;
    top: 56px;
    right: 0;
    width: 18vw;
    max-width: 20vw;
    padding-left: 12px;
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.35;
    z-index: 200;
    background: rgba(238, 236, 231, 0.78);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
  
@media (max-width: 900px) {
    .born-content {
      padding-right: 0;
    }
    .born-main p {
      max-width: 100%;
    }
    .born-sidebar {
      position: static;
      width: 100%;
      max-height: none;
      margin-top: 16px;
    }
  }

.work-title {
    display: block;
    width: 100%;
    margin-top: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1rem;
    font-weight: 600;
}

.work-updated {
    visibility: hidden;
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.9rem;
    color: #444;
}

.work-card:hover .work-updated {
    visibility: visible;
}

.work-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #000;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 12px;
}

.work-subtext {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

    .work-card:hover .work-overlay {
        opacity: 1;
    }

    .work-card:hover .work-image {
        opacity: 0;
    }
