:root {
  color-scheme: light;
  --ink: #1d1825;
  --quiet: #564d60;
  --accent: #5330a4;
  --line: #e4ddeb;
  --paper: #fbf9fd;
  font-family: "Noto Sans KR", "Noto Sans CJK KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.shell { width: min(960px, calc(100% - 64px)); margin-inline: auto; }
.masthead { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner, .foot, .section-heading, .dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.header-inner { min-height: 68px; }
.wordmark { font: 850 2rem/1 Arial, sans-serif; letter-spacing: -.075em; white-space: nowrap; }
.wordmark span, .period { color: #6c37cf; }
.wordmark small { font-size: .95rem; letter-spacing: -.035em; }
nav { display: flex; gap: clamp(14px, 4vw, 34px); font-size: .94rem; font-weight: 700; }
nav a, .foot > a:last-child { padding-block: 12px; }
nav a:hover, .foot > a:last-child:hover { color: var(--accent); }
.profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 6vw, 82px);
  align-items: center;
  padding-block: 56px 48px;
}
.portrait {
  display: grid;
  place-items: center;
  width: clamp(108px, 19vw, 184px);
  aspect-ratio: 1;
  border: 5px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #ab88f2;
  background: #e8d9ff;
}
.portrait img { width: 76%; height: auto; }
.handle { margin: 0; color: var(--accent); font: 750 1rem/1.2 Arial, sans-serif; }
h1, h2, p { margin: 0; }
h1 { margin-top: 9px; font-size: clamp(29px, 4.8vw, 52px); line-height: 1.2; letter-spacing: -.08em; }
.intro, .section p, .dialog-body p { margin-top: 12px; color: var(--quiet); line-height: 1.7; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 19px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 17px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: .94rem;
  font-weight: 700;
  cursor: pointer;
}
.button:hover { background: #40217f; }
.button.secondary { border-color: #d4c8e5; background: white; color: var(--accent); }
.button.secondary:hover { background: #eee4ff; }
.feed, .section { border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.feed { padding-block: 24px 42px; }
.section-heading { margin-bottom: 17px; }
h2 { font-size: clamp(23px, 3.5vw, 34px); line-height: 1.25; letter-spacing: -.065em; }
.section-heading span { color: var(--quiet); font-size: .875rem; }
.feed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 1.5vw, 15px); }
.post {
  display: block;
  align-self: start;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: inherit;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.tile {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 13px;
  container-type: inline-size;
  transition: filter .18s ease;
}
.post:hover .tile { filter: brightness(.91); }
.post .caption {
  display: block;
  padding: 10px 2px 0;
  color: var(--ink);
  font-size: .875rem;
  line-height: 1.4;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.cover { background: radial-gradient(circle at 48% 40%, #efdfff, #cdb1fd); }
.cover img { width: 83%; height: auto; }
.projects { background: #ded0fb; color: #271a42; place-items: center start; }
.projects > span { padding-inline: 14%; font-size: 15cqi; font-weight: 850; line-height: 1.08; letter-spacing: -.09em; }
.message { background: #dbf384; color: #20290d; }
.speech {
  position: relative;
  display: block;
  padding: .32em .42em;
  border: .055em solid currentColor;
  border-radius: .34em;
  font-size: 20cqi;
  font-weight: 850;
  letter-spacing: -.09em;
  line-height: 1;
  transform: rotate(-8deg);
}
.speech::after {
  position: absolute;
  inset: 100% auto auto 21%;
  width: .19em;
  aspect-ratio: 1;
  border-right: .055em solid;
  border-bottom: .055em solid;
  background: #dbf384;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}
.section { display: grid; grid-template-columns: 1fr 1.65fr; gap: 22px; padding-block: 35px; }
.section .lead { margin-top: 0; color: var(--ink); font-weight: 700; }
.contact { padding: 34px; border: 1px solid var(--line); border-radius: 16px; background: #f0eafa; }
#contact-form { display: grid; gap: 9px; }
#contact-form label { font-size: .875rem; font-weight: 700; }
input, textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #b8abc8;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
textarea { resize: vertical; }
#contact-form .note, #contact-status { margin: 0; font-size: .875rem; }
#contact-status:empty { margin: 0; height: 0; }
#contact-form .button { justify-self: start; margin-top: 4px; }
dialog {
  width: min(440px, calc(100% - 36px));
  max-height: calc(100% - 40px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 12px 55px #1d18254d;
}
dialog::backdrop { background: #21163499; }
.dialog-head { padding: 11px 20px; border-bottom: 1px solid var(--line); }
.close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #eee4ff;
  color: var(--ink);
  font: inherit;
  font-size: 1.45rem;
  cursor: pointer;
}
.dialog-body { padding: 24px 20px 26px; }
.dialog-body .button { margin-top: 16px; }
.foot { margin-top: 27px; padding-block: 18px 24px; border-top: 1px solid var(--line); }
.foot .wordmark { font-size: 1.4rem; }
.foot > a:last-child { color: var(--quiet); font-size: .875rem; }
@media (max-width: 630px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 60px; }
  .header-inner .wordmark { font-size: 1.55rem; }
  .profile { grid-template-columns: 1fr; gap: 20px; padding-block: 30px; }
  .intro { margin-top: 8px; }
  .profile-actions { margin-top: 13px; }
  .feed { padding-block: 18px 25px; }
  .section { grid-template-columns: 1fr; gap: 12px; padding-block: 25px; }
  .contact { padding: 20px 15px; }
  .tile { border-radius: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile { transition: none; }
}
