/* The existing Magic UI portfolio, refined after studying cherin.hui.kr. */
@import url("/sua/fonts/do-hyeon.css");
body.midnight:not(.page-AI):not(.page-admin) {
  --sans:
    "Geist", "Do Hyeon", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-family: var(--sans);
  background: #fff;
  color: #171717;
  font-size: 15px;
  letter-spacing: -0.025em;
}
body.minimal-portfolio::before {
  top: 68px;
  height: 110px;
  background-image: radial-gradient(#8c8c8c50 0.7px, transparent 0.8px);
  background-size: 4px 4px;
  mask-image: linear-gradient(#000, transparent);
  opacity: 0.75;
}
.midnight .site-header {
  width: 100%;
  max-width: none;
  height: 68px;
  margin: 0 auto;
  padding: 0 28px;
  top: 0;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 90px;
  align-items: center;
  gap: 15px;
  border: 0;
  border-bottom: 1px solid #f5f5f5;
  border-radius: 0;
  background: #fffffff5;
  box-shadow: none;
  backdrop-filter: blur(18px);
  transition:
    width 0.25s,
    border-radius 0.25s,
    box-shadow 0.25s,
    top 0.25s;
  z-index: 100;
}
.midnight .site-header.is-scrolled {
  width: min(820px, calc(100% - 32px));
  top: 12px;
  border: 1px solid #f0f0f0;
  border-radius: 24px;
  box-shadow: 0 8px 30px #00000006;
  padding-inline: 22px;
}
.midnight .site-brand {
  min-width: 0;
  margin: 0;
  justify-self: start;
  display: flex;
}
.midnight .sua-brand-mark {
  width: 32px;
  height: 32px;
  opacity: 0.65;
}
.midnight .sua-wordmark,
.midnight .brand-caption {
  display: none;
}
.midnight .site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 5px;
  height: auto;
  align-self: center;
  font-size: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  margin: 0;
}
.midnight .site-nav > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
  min-width: 40px;
  min-height: 38px;
  padding: 8px 11px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #8b8b8b;
  line-height: 1.5;
  transition:
    color 0.18s,
    background 0.18s,
    box-shadow 0.18s;
}
.midnight .site-nav > a > svg {
  width: 18px;
  height: 18px;
  opacity: 1;
}
.midnight .site-nav > a > span {
  display: none;
}
.midnight .site-nav > a[aria-current="page"] {
  color: #171717;
  background: #f4f4f4;
  box-shadow: 0 2px 3px #00000006;
  font-weight: 600;
}
.midnight .site-nav > a[aria-current="page"] > span {
  display: inline;
}
.midnight .site-nav > a[aria-current="page"]::after {
  display: none;
}
.midnight .site-nav > a:hover {
  color: #171717;
  background: #f7f7f7;
}
.midnight .site-nav > a::before,
.midnight .nav-more > summary::before {
  content: attr(data-label);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  background: #171717;
  color: #fff;
  padding: 5px 9px;
  border-radius: 7px;
  font: 11px/1.4 var(--sans);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 10;
}
.midnight .site-nav > a:hover::before,
.midnight .site-nav > a:focus-visible::before,
.midnight .nav-more > summary:hover::before {
  opacity: 1;
  visibility: visible;
}
.midnight .site-nav > a[aria-current="page"]::before {
  display: none;
}
.midnight .nav-separator {
  margin: 0 4px;
  height: 20px;
  background: #eee;
}
.midnight .nav-more > summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 40px;
  height: 38px;
  padding: 8px 11px;
  color: #8b8b8b;
  font-size: 12px;
  border-radius: 16px;
  list-style: none;
}
.midnight .nav-more > summary::-webkit-details-marker {
  display: none;
}
.midnight .nav-more > summary > svg {
  width: 18px;
  height: 18px;
}
.midnight .nav-more > summary > span {
  display: none;
}
.midnight .nav-more > summary.is-current {
  color: #171717;
  background: #f4f4f4;
  box-shadow: 0 2px 3px #00000006;
}
.midnight .nav-more > summary.is-current > span {
  display: inline;
}
.midnight .nav-more > summary:hover {
  color: #171717;
  background: #f7f7f7;
}
.midnight .nav-dropdown {
  top: calc(100% + 10px);
  min-width: 180px;
  border: 1px solid #ededed;
  border-radius: 16px;
  padding: 7px;
  box-shadow: 0 12px 32px #0000000c;
}
.midnight .nav-dropdown a {
  padding: 10px 12px;
  font-size: 13px;
}
.midnight .nav-dropdown .back-to-orbit {
  color: #a67691;
}
.midnight .nav-oj {
  border: 0;
  background: transparent;
  font-size: 12px;
}
.midnight .motion-toggle {
  justify-self: end;
  min-width: 34px;
  width: 34px;
  min-height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: #fafafa;
  border: 1px solid #f1f1f1;
  gap: 0;
}
.midnight .motion-toggle > span:not(.motion-symbol) {
  display: none;
}
.midnight .motion-toggle .motion-symbol {
  width: 12px;
  height: 12px;
  background: #8f6c82;
  border-color: #8f6c82;
}
.midnight .motion-toggle[aria-pressed="false"] .motion-symbol {
  background: transparent;
}
.minimal-main {
  width: min(672px, calc(100% - 48px));
  margin: 76px auto 0;
  gap: 56px;
  min-height: 0;
}
.mini-hero {
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 34px;
  align-items: start;
}
.mini-hero h1 {
  font-family: "Do Hyeon", var(--sans);
  font-size: 38px;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.075em;
  white-space: normal;
}
.mini-hero h1 br {
  display: block;
}
.template-wave {
  font:
    26px/1 system-ui,
    sans-serif;
  margin-left: 7px;
  vertical-align: baseline;
}
.mini-lead {
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -0.04em;
  color: #737373;
  margin-top: 14px;
  max-width: 450px;
}
.mini-avatar {
  width: 128px;
  height: 128px;
  box-shadow:
    0 5px 16px #0000000b,
    0 0 0 4px #f8f8f8;
  border-color: #eee;
}
.mini-section > h2 {
  font-family: "Do Hyeon", var(--sans);
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.05em;
  font-weight: 400;
  margin-bottom: 16px;
}
.mini-about {
  font-size: 15px;
  line-height: 1.9;
  color: #737373;
}
.mini-inline-link {
  font-size: 12px;
  margin-top: 1px;
  padding-top: 7px;
  color: #777;
}
.mini-resume {
  gap: 19px;
}
.mini-resume summary {
  gap: 12px;
  padding: 2px 0;
}
.mini-resume-icon {
  width: 40px;
  height: 40px;
  box-shadow: 0 0 0 2px #f1f1f1;
  border-color: #e7e7e7;
  background: #fff;
  color: #737373;
  font-size: 11px;
}
.mini-resume-name strong {
  font-family: "Do Hyeon", var(--sans);
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.04em;
  font-weight: 400;
}
.mini-resume-name small {
  font-size: 12px;
  color: #858585;
  line-height: 1.4;
}
.mini-resume-meta {
  font-size: 10px;
  color: #999;
}
.mini-resume-detail {
  font-size: 13px;
  color: #737373;
}
.mini-skill-tags {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.reference-skill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #ededed;
  border-radius: 15px;
  box-shadow:
    0 2px 2px #0000000a,
    0 0 0 2px #fafafa;
  padding: 8px 10px;
  background: #fff;
  font-size: 13px;
}
.reference-skill .skill-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 17px;
  font:
    600 11px/1.2 "Geist",
    sans-serif;
  color: #737373;
}
.reference-skill > span:nth-child(2) {
  white-space: nowrap;
}
.reference-skill > small {
  font-size: 8px;
  white-space: nowrap;
  background: #f8f8f8;
  color: #a0a0a0;
  border-radius: 5px;
  padding: 2px 4px;
  margin-left: auto;
}
.mini-section-intro .mini-section-badge {
  font-size: 13px;
  border-radius: 14px;
  padding: 4px 14px;
}
.mini-section-intro h2 {
  font-family: "Do Hyeon", var(--sans);
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 1.25;
}
.mini-section-intro > p {
  font-size: 15px;
  line-height: 1.8;
}
.mini-project-body h3 {
  font-family: "Do Hyeon", var(--sans);
  font-size: 18px;
  font-weight: 400;
}
.mini-project-body > p:not(.mini-project-kind) {
  font-size: 13px;
}
.mini-project-kind {
  font-size: 11px;
}
.mini-tags span {
  font-size: 10px;
}
.mini-contact h2 {
  font-family: "Do Hyeon", var(--sans);
  font-size: 34px;
  font-weight: 400;
}
.mini-contact p {
  font-size: 15px;
}
.midnight .mini-footer {
  width: min(672px, calc(100% - 48px));
  border-color: #f0f0f0;
  margin-top: 24px;
}
.mini-footer-top > a:first-child {
  color: #737373;
}
.mini-footer-bottom {
  color: #a3a3a3;
}
.mini-footer-bottom nav {
  color: #888;
}
@media (max-width: 767px) {
  .midnight .site-header {
    width: 100%;
    grid-template-columns: 1fr auto auto;
    height: 68px;
    padding-inline: 24px;
    gap: 12px;
  }
  .midnight .site-header.is-scrolled {
    width: calc(100% - 32px);
    padding-inline: 20px;
  }
  .midnight .site-brand {
    margin-right: 0;
  }
  .midnight .motion-toggle {
    grid-column: 2;
    grid-row: 1;
  }
  .midnight .menu-toggle {
    grid-column: 3;
    grid-row: 1;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f1f1f1;
    border-radius: 50%;
    background: #fafafa;
    gap: 4px;
    padding: 8px;
    font-size: 0;
    color: #333;
  }
  .midnight .menu-toggle > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .midnight .menu-toggle i {
    width: 15px;
    height: 1px;
    background: #4b4b4b;
  }
  .midnight .site-nav {
    position: absolute;
    display: none;
    left: 16px;
    right: 16px;
    top: calc(100% + 7px);
    border: 1px solid #ededed;
    border-radius: 18px;
    background: #fffffff7;
    box-shadow: 0 10px 30px #0000000a;
    backdrop-filter: blur(20px);
    margin: 0;
    padding: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    justify-self: stretch;
  }
  .midnight .site-header.is-scrolled .site-nav {
    left: 0;
    right: 0;
  }
  .midnight .site-nav.is-open {
    display: grid;
  }
  .midnight .site-nav > a {
    justify-content: flex-start;
    min-height: 42px;
    font-size: 14px;
    padding: 10px 13px;
    border-radius: 12px;
  }
  .midnight .site-nav > a > span {
    display: inline;
  }
  .midnight .site-nav > a > svg {
    width: 18px;
    height: 18px;
  }
  .midnight .site-nav > a::before,
  .midnight .nav-more > summary::before {
    display: none;
  }
  .midnight .nav-more {
    grid-column: 1 / -1;
  }
  .midnight .nav-more > summary {
    justify-content: flex-start;
    min-height: 42px;
    width: 100%;
    font-size: 14px;
    border-radius: 12px;
    padding: 10px 13px;
  }
  .midnight .nav-more > summary > span {
    display: inline;
  }
  .midnight .nav-dropdown {
    position: static;
    box-shadow: none;
    background: #fafafa;
    margin: 5px 0;
    border: 0;
  }
  .midnight .nav-separator {
    display: none;
  }
}
@media (max-width: 767px) {
  .minimal-main {
    width: calc(100% - 48px);
    margin-top: 48px;
    gap: 48px;
  }
  .mini-hero {
    display: flex;
    flex-direction: column-reverse;
    gap: 25px;
  }
  .mini-avatar {
    width: 84px;
    height: 84px;
    margin: 0;
  }
  .mini-hero h1 {
    font-size: 32px;
    line-height: 1.1;
  }
  .template-wave {
    font-size: 23px;
  }
  .mini-lead {
    font-size: 14px;
    line-height: 1.8;
    margin-top: 14px;
  }
  .mini-section > h2 {
    font-size: 22px;
  }
  .mini-about {
    font-size: 14px;
    line-height: 1.9;
  }
  .mini-inline-link {
    font-size: 12px;
  }
  .mini-resume-icon {
    width: 34px;
    height: 34px;
  }
  .mini-resume-name strong {
    font-size: 15px;
  }
  .mini-resume-name small {
    font-size: 11px;
  }
  .mini-resume-meta {
    font-size: 8px;
    gap: 7px;
  }
  .mini-skill-tags {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .reference-skill {
    min-height: 42px;
    font-size: 13px;
    padding-inline: 10px;
  }
  .reference-skill > small {
    font-size: 8px;
  }
  .mini-section-intro h2 {
    font-size: 29px;
  }
  .mini-section-intro > p {
    font-size: 14px;
  }
  .mini-project-body > p:not(.mini-project-kind) {
    font-size: 12px;
  }
  .mini-contact h2 {
    font-size: 30px;
  }
  .midnight .mini-footer {
    width: calc(100% - 48px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .midnight .site-header {
    transition: none;
  }
}
.midnight .site-nav {
  position: static;
  max-height: none;
  overflow: visible;
}
.midnight .nav-dropdown {
  position: absolute;
}
@media (min-width: 768px) {
  .midnight .menu-toggle {
    display: none;
  }
  .midnight .site-nav {
    position: static;
    display: flex;
    left: auto;
    right: auto;
    top: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: 5px;
  }
  .midnight .nav-more > summary {
    font-size: 12px;
  }
  .midnight .nav-dropdown {
    position: absolute;
    background: #fff;
    border: 1px solid #ededed;
    box-shadow: 0 12px 32px #0000000c;
  }
  .midnight .nav-dropdown a {
    font-size: 13px;
  }
  .midnight .site-nav a {
    font-size: 12px;
  }
}
@media (max-width: 767px) {
  .midnight .site-header.is-scrolled {
    grid-template-columns: 1fr auto auto;
  }
  .midnight .menu-toggle {
    flex-direction: column;
  }
  .midnight .menu-toggle i {
    position: static;
    margin: 0;
    translate: none;
    transform: none;
  }
  .midnight .menu-toggle[aria-expanded="true"] i {
    position: static;
    transform: none;
  }
  .midnight .site-nav {
    position: absolute;
  }
  .midnight .nav-dropdown {
    position: static;
  }
}
body.midnight:not(.page-AI):not(.page-admin)::before {
  content: "";
  position: absolute;
  inset: 68px 0 auto;
  height: 110px;
  background-image: radial-gradient(#8c8c8c50 0.7px, transparent 0.8px);
  background-size: 4px 4px;
  mask-image: linear-gradient(#000, transparent);
  opacity: 0.75;
  pointer-events: none;
  z-index: 0;
}
.midnight:is(.page-project, .page-partner) #main,
.midnight.page-blog #main.cherin-blog-main {
  width: min(672px, calc(100% - 48px));
}
@media (min-width: 768px) {
  .midnight .site-brand {
    grid-column: 1;
    grid-row: 1;
  }
  .midnight .site-nav {
    grid-column: 2;
    grid-row: 1;
  }
  .midnight .motion-toggle {
    grid-column: 3;
    grid-row: 1;
  }
}
.midnight .mini-footer {
  background: none;
  border: 0;
  border-top: 1px solid #f0f0f0;
  border-radius: 0;
}
.midnight .mini-footer::before,
.midnight .mini-footer::after {
  display: none;
}
