/* === Custom Properties === */

:root {
  --background-color: #f9f9f9;
  --text-color: #171c26;
}

/* === Reset & Base === */

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

html {
  font-size: clamp(12px, calc(12px + 5 * ((100vw - 400px) / 1000)), 17px);
  line-height: 1.2;
}

body {
  margin: 0;
  font-family: 'Noto Sans KR', system-ui, sans-serif;
  color: var(--text-color);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  font-size: inherit;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
p a, li a { text-decoration: underline; }

p { margin: 0; line-height: 1.5; }
p + p { margin-top: 0.75em; }

.Layout-content-wrapper p,
.Layout-meta p { max-width: 40rem; }

ul, ol { padding: 0; margin: 0; }
img { max-width: 100%; }
strong, b { font-weight: bold; }


/* === Layout === */

.Layout-meta {
  padding: 4vw;
}

@media (min-width: 800px) {
  .Layout-meta {
    position: fixed;
    top: 0;
    width: 22vw;
    height: 100vh;
    overflow-y: scroll;
    background-color: var(--background-color);
    color: var(--text-color);
  }

  .Layout-meta--wideSidebar {
    width: 40vw;
    background-color: transparent;
    height: 100vh;
  }

  .Layout-content { margin-left: 22vw; }
  .Layout-content--wideSidebar { margin-left: 40vw; }
}

.Layout-meta-logo { max-width: 130px; display: block; }
.Layout-meta-navigation { margin-top: 3vw; }

.Layout-content-wrapper {
  padding: 4vw 7vw;
  min-height: 100vh;
  background: #fff;
  color: var(--text-color);
}

@media (min-width: 800px) {
  .Layout-content-wrapper { padding: 4vw; }
}

/* === Navigation === */

.Navigation {
  line-height: 1.8;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9em, 1fr));
  column-gap: 1.5em;
}

@media (min-width: 800px) {
  .Navigation { display: block; }
}

.Navigation-item-link { font-weight: normal; text-decoration: underline; }
.Navigation-item-link--active { font-weight: bold; text-decoration: none; }

.Navigation-spacer { display: none; }

@media (min-width: 800px) {
  .Navigation-spacer { display: block; height: 2em; }
}

.Navigation-item-link-icon {
  display: inline;
  height: 0.7em;
  margin-left: 0.2em;
  vertical-align: middle;
}

/* === Handwritten Phrase === */

.HandwrittenPhrase {
  margin-bottom: 2.3em;
  min-height: 4em;
}

.HandwrittenPhrase-word {
  display: inline-block;
  height: 4em;
  margin-bottom: -1.3em;
}

.HandwrittenPhrase-word--a { height: 5em; }
.HandwrittenPhrase-word--b { height: 6em; }
.HandwrittenPhrase-word--c { height: 6em; }

.HandwrittenPhrase-placeholder {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* === Home Page === */

.HomePage-content {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #000820;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.HomePage-sidebarContent { margin-top: 3vw; }

.HomePage-section {
  display: flex;
  align-items: center;
  color: #fff;
  padding: 4vw 4vw 5vw;
  overflow: hidden;
  position: relative;
  flex: 1;
}

.HomePage-qlab::before,
.HomePage-goButton::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  transition: opacity 300ms;
}

.HomePage-qlab:hover::before,
.HomePage-goButton:hover::before { opacity: 1; }

.HomePage-qlab::before    { background: linear-gradient(90deg, #17103c 0%, #8a3ff4 100%); }
.HomePage-goButton::before { background: linear-gradient(90deg, #032329 0%, #009f61 100%); }
.HomePage-voxel { background: #283443; }

.HomePage-voxel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: transform 700ms;
}

.HomePage-voxel-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.HomePage-section:hover .HomePage-voxel-bg {
  transform: scale(1.25) rotate(-3deg);
}

.HomePage-section-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.HomePage-heading {
  display: flex;
  align-items: center;
  margin-bottom: 1.2em;
  position: relative;
}

.HomePage-icon {
  margin-right: 1em;
  flex-shrink: 0;
  height: 50px;
  width: auto;
}

.HomePage-sectionTitle    { font-size: 1.875rem; font-weight: bold; }
.HomePage-sectionSubtitle { font-size: 1rem;     font-weight: normal; }

.HomePage-sectionDetails {
  max-width: 40em;
  position: relative;
}

.HomePage-screenshot {
  display: none;
  margin-right: -10em;
  margin-left: 3em;
  flex-shrink: 0;
  transition: transform 200ms;
  width: 20vw;
  max-width: 300px;
}

@media (min-width: 800px) {
  .HomePage-screenshot { display: block; }
  .HomePage-section { font-size: 0.85em; }
}

.HomePage-section:hover .HomePage-screenshot { transform: translateX(-20px); }

.HomePage-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.HomePage-qlabScreenshot img {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}


/* === Secondary Heading === */

.SecondaryHeading {
  font-size: 1.375em;
  margin: 2em 0 0.75em;
  font-weight: bold;
}

/* === Not Found Page === */

.NotFoundPage-heading {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* === Team Page === */

.TeamPage-people {
  margin: 4vw 0;
  display: grid;
  gap: 4vw;
}

@media (min-width: 1000px) {
  .TeamPage-people { grid-template-columns: 1fr 1fr; }
}

.TeamPage-people-person {
  display: grid;
  grid-template-columns: 160px auto;
  column-gap: 1.5em;
  font-size: 14px;
}

.TeamPage-people-person img { object-fit: cover; }

.TeamPage-people-person-info-name {
  font-weight: bold;
  margin-bottom: 0.5em;
}

.TeamPage-jobsLink {
  display: flex;
  justify-content: center;
  padding: 5vw;
  text-align: center;
  background-color: var(--background-color);
  border-radius: 0.5em;
  margin-top: 4vw;
}

/* === Contact Page === */

.ContactPage {
  max-width: 48rem;
}

.ContactPage-email {
  display: block;
  font-size: 1.8em;
  font-weight: bold;
  text-decoration: underline;
  margin: 1em 0 1.2em;
}

.ContactPage-section {
  margin-top: 2em;
  margin-bottom: 4em;
}

.ContactPage-otherMethodsButton {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  outline: none;
  text-decoration: underline;
  margin-bottom: 2em;
  cursor: pointer;
  display: block;
  list-style: none;
}

.ContactPage-otherMethodsButton::-webkit-details-marker { display: none; }

.ContactPage-otherMethods {
  display: grid;
  grid-template-columns: 12em 12em;
}

/* === Handbook Page === */

@media (min-width: 1000px) {
  .HandbookPage {
    display: grid;
    grid-template-columns: 1fr 17em;
    column-gap: 3em;
  }
}

.HandbookPage-brainZeppelin-wrap {
  display: flex;
  justify-content: center;
}

.HandbookPage-brainZeppelin {
  width: 50%;
  height: auto;
  margin: 2rem 0;
}

.HandbookPage-navigation--stacked {
  display: block;
  margin-bottom: 3em;
  font-size: 0.9em;
}

.HandbookPage-navigation--column { display: none; font-size: 0.8em; }

@media (min-width: 1000px) {
  .HandbookPage-navigation--stacked { display: none; }
  .HandbookPage-navigation--column  { display: block; }
}

.HandbookPage-navigation-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75em;
  line-height: 1.3;
  margin: 0.5em 0;
}

.HandbookPage-navigation-item.is-current { font-weight: bold; }

.HandbookPage-navigation-column-inner { position: sticky; top: 2em; }

/* === Jobs Page === */

.JobsPage-job { margin-bottom: 5em; }

.JobsPage-job-title {
  font-size: 1.375em;
  font-weight: bold;
  margin-bottom: 1.5em;
}

.JobsPage-job-apply { margin-top: 2.5em; }
.JobsPage-job-applicationLink { font-weight: bold; text-decoration: none; }

.JobsPage-job-applicationLink-emphasis {
  border-bottom: 2px solid var(--text-color);
}

/* === Notes Index === */

.NotesPage-note {
  display: block;
  margin: 4em 0;
  max-width: 65ch;
}

.NotesPage-note h3 {
  font-size: 1.5em;
  font-weight: bold;
}

.NotesPage-note-meta {
  font-size: 0.8em;
  margin: 1em 0;
  color: rgba(23, 28, 38, 0.6);
}

/* === Note Post === */

.NotePage-backLink { font-weight: bold; border-bottom: 2px solid var(--text-color); }

.NotePage-title {
  font-size: 2.25rem;
  line-height: 1.1;
  font-weight: bold;
  margin: 5rem 0 0.5rem;
}

.NotePage-meta {
  display: flex;
  align-items: center;
  margin: 2em 0 4em;
}

.NotePage-meta-authorImage {
  margin-right: 1.6em;
  border-radius: 50%;
  object-fit: cover;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.NotePage-meta-details { font-size: 0.8em; }
.NotePage-meta-author { font-weight: bold; }

/* === Prose (styled markdown / rich-text content) === */

.prose h1 {
  font-size: 2.75em;
  line-height: 1.1;
  font-weight: bold;
  margin: 1em 0 0.3em;
}
.prose h2 { font-size: 1.5rem; line-height: 2rem; font-weight: bold; margin: 2em 0 0.75em; }
.prose h3 { font-size: 1em; font-weight: bold; text-transform: uppercase; letter-spacing: 0.05em; margin: 1.65em 0 1em; }
.prose h4 { font-weight: bold; }
.prose p { line-height: 1.65; margin-top: 0.5em; margin-bottom: 1em; }
.prose ul,
.prose ol { padding-left: 2em; line-height: 1.65; }
.prose li { margin: 0.5em 0; }
.prose a { text-decoration: underline; }
.prose blockquote { padding-left: 2em; margin: 2em 0; border-left: 1px solid #e1e1e1; font-size: 0.8em; font-style: italic; }
.prose cite { text-align: right; display: block; }
.prose hr { border-top: solid 1px #e1e1e1; border-bottom: 0; border-left: 0; border-right: 0; margin: 4em 0; }
.prose img { max-width: 100%; }
.prose table { font-size: 0.8em; border-collapse: collapse; margin: 2em 0; }
.prose thead tr { border-bottom: solid 2px #c0c0c0; }
.prose th { text-align: left; padding: 0.8em; }
.prose tbody tr { border: solid 1px #e0e0e0; }
.prose tbody tr:nth-child(odd) { background: #fff; }
.prose tbody tr:nth-child(even) { background: #f2f2f2; }
.prose td { padding: 0.6em 0.8em; }
.prose .video { margin-bottom: 2em; position: relative; padding-bottom: 56.25%; padding-top: 25px; height: 0; }
.prose .video > iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.prose .note-from-the-editor { padding: 1.5em 2em; border: 1px solid #e1e1e1; margin-top: 2em; }

@media print {
  @page { margin: 0; }
}
