@import url("https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;600&display=swap");

/* Shared interaction and reading defaults; visual identities live in each site. */
:root {
  --ui-accent: #274b42;
  --ui-ink: #202520;
  --ui-paper: #fff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  text-wrap: balance;
  word-break: keep-all;
}
p,
dd,
figcaption {
  word-break: keep-all;
}
main,
section,
article,
figure,
nav {
  min-width: 0;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
a,
button {
  touch-action: manipulation;
}
button {
  min-height: 44px;
}
:focus-visible {
  outline: 3px solid #c46b3b;
  outline-offset: 5px;
}
button,
a {
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s,
    opacity 0.2s;
}
button:hover {
  filter: brightness(0.96);
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
img {
  max-width: 100%;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 1000;
  padding: 10px 18px;
  background: white;
  color: #111;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
.kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.editorial {
  font-family: "Noto Serif KR", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.06em;
}
.hero-action {
  display: inline-flex;
  gap: 36px;
  align-items: center;
  width: fit-content;
  padding: 14px 22px;
  border: 1px solid currentColor;
  font-size: 14px;
  font-weight: 500;
}
.image-credit {
  font-size: 11px;
  letter-spacing: 0;
  opacity: 0.75;
}
.menu,
.menu-toggle {
  min-width: 44px;
  min-height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.menu-lines {
  display: block;
  width: 22px;
  height: 14px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  position: relative;
}
.menu-lines:after {
  content: "";
  position: absolute;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  top: 5px;
  right: 0;
}
[aria-expanded="true"] .menu-lines {
  transform: rotate(45deg);
  border-bottom: 0;
  height: 1px;
}
[aria-expanded="true"] .menu-lines:after {
  width: 22px;
  top: -1.5px;
  transform: rotate(90deg);
}
header.is-scrolled {
  box-shadow: 0 1px 0 #15151512;
}
.project-view {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: inherit;
  color: inherit;
  overflow: hidden;
  cursor: zoom-in;
}
.project-view img {
  transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.project-view:hover img {
  transform: scale(1.035);
}
dialog {
  width: min(480px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  border: 1px solid #ffffff4d;
  border-radius: 20px;
  padding: 38px;
  color: var(--ui-ink);
  background: var(--ui-paper);
  box-shadow: 0 30px 120px #0005;
}
dialog::backdrop {
  background: #132019a8;
  backdrop-filter: blur(6px);
}
dialog h2 {
  font-size: 27px !important;
  line-height: 1.4;
  margin: 0 0 18px;
}
dialog p {
  font-size: 15px;
  line-height: 1.8;
  color: #5a625d;
}
dialog [data-close-dialog] {
  width: 100%;
  margin-top: 20px;
  border: 0;
  padding: 12px 20px;
  border-radius: 8px;
  color: white;
  background: var(--ui-accent);
}
.image-dialog {
  width: min(1040px, calc(100vw - 32px));
  padding: 14px;
  border-radius: 12px;
}
.image-dialog img {
  width: 100%;
  height: min(64dvh, 670px);
  object-fit: contain;
  background: #eeeae3;
}
.image-dialog h2 {
  padding: 22px 14px 0;
  font-size: 22px !important;
}
.image-dialog p {
  padding: 0 14px;
  margin-bottom: 0;
}
.image-dialog [data-close-dialog] {
  width: calc(100% - 28px);
  margin: 18px 14px 12px;
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 88px;
  }
  body {
    font-size: 15px;
  }
  .menu,
  .menu-toggle {
    display: inline-flex;
  }
  header nav.open {
    z-index: 100;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
  }
  header nav.open a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  dialog {
    padding: 26px;
  }
  .image-dialog {
    padding: 10px;
  }
  .image-dialog img {
    height: 50dvh;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Final reading and interaction pass. */
header nav a[aria-current="location"] {
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}
.portfolio-return {
  grid-column: 1 / -1;
  display: block;
  width: fit-content;
  min-height: 44px;
  padding-top: 12px;
  color: inherit;
  font-size: 13px;
  text-underline-offset: 5px;
}
.dialog-detail {
  border-top: 1px solid currentColor;
  padding-top: 8px;
  margin-top: 20px;
}
.dialog-detail ol {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  counter-reset: guide;
}
.dialog-detail li {
  counter-increment: guide;
  display: flex;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #7a82752e;
  font-size: 14px;
  line-height: 1.7;
  word-break: keep-all;
}
.dialog-detail li:before {
  content: counter(guide, decimal-leading-zero);
  font-family: Georgia, serif;
  color: var(--ui-accent);
  flex: none;
}
#demo-dialog > p {
  font-size: 12px;
  line-height: 1.8;
}
#demo-dialog {
  border-radius: 4px;
}
