:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Noto Sans SC",
    "Microsoft YaHei",
    sans-serif;
  color: #14171f;
  background: #fff;
  --ink: #14171f;
  --muted: #596373;
  --line: #e5e8ef;
  --blue: #2348f5;
  --gutter: clamp(1rem, 4.15vw, 5.25rem);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #8799ff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.skip,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip:focus {
  width: auto;
  height: auto;
  clip-path: none;
  z-index: 9;
  top: 0.6rem;
  left: 0.6rem;
  background: #fff;
  padding: 0.6rem;
}
.masthead {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 3rem);
  padding: 0 var(--gutter);
  min-height: 72px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  font-size: 1.36rem;
  white-space: nowrap;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.brand small {
  font-size: 0.71rem;
  margin-left: 0.55rem;
  color: var(--muted);
  letter-spacing: 0;
}
.masthead nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: clamp(0.65rem, 2vw, 2rem);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}
.masthead nav a,
.plain {
  display: flex;
  align-items: center;
  background: none;
  border: 0;
  color: inherit;
  padding: 0;
}
.masthead nav .active {
  box-shadow: inset 0 -3px var(--blue);
}
.account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.button {
  border: 1px solid transparent;
  border-radius: 99px;
  padding: 0.66rem 1.12rem;
  font-weight: 750;
  font-size: 0.88rem;
  white-space: nowrap;
}
.button.primary {
  background: var(--blue);
  color: white;
}
.button.primary:hover {
  background: #1937cf;
}
.button.ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.button.ghost:hover {
  background: #f4f6ff;
}
.button:disabled {
  cursor: wait;
  opacity: 0.58;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.7rem, 6.1vw, 6.25rem) var(--gutter);
  background: #f0f2ff;
  min-height: 380px;
}
.hero-copy {
  position: relative;
  width: min(43rem, 100%);
}
.eyebrow {
  margin: 0;
  color: #3446a1;
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.15em;
}
.eyebrow > span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  margin-right: 0.5rem;
}
.hero h1 {
  font-size: clamp(2.65rem, 6.1vw, 6.2rem);
  line-height: 1.4;
  letter-spacing: -0.085em;
  margin: 0.7rem 0 1rem;
  font-weight: 950;
}
.hero h1::selection,
.hero h1 span::selection {
  color: #14171f;
  background: #c9d4ff;
}
.hero h1 span {
  color: var(--blue);
}
.intro {
  color: #3d4964;
  font-size: clamp(0.9rem, 1.35vw, 1.08rem);
  margin: 0 0 1.65rem;
}
.hero-art {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 48%;
  overflow: hidden;
  z-index: -1;
  background: linear-gradient(142deg, #bfc8ff, #e2e6ff 42%, #9baeff);
}
.hero-art i {
  position: absolute;
  width: 76%;
  height: 106%;
  border-radius: 50%;
  border: 1px solid #f5f7ffb3;
  transform: rotate(-32deg);
  left: 28%;
  top: 0;
}
.hero-art i:nth-child(2) {
  left: 41%;
  top: -5%;
}
.hero-art i:nth-child(3) {
  left: 54%;
  top: -10%;
  background: linear-gradient(126deg, #e6ecff80, #5e7cff50);
}
.hero-art > span {
  position: absolute;
  bottom: 10%;
  right: 10%;
  color: #17288e;
  font-size: clamp(2.8rem, 6.4vw, 7rem);
  font-weight: 950;
  letter-spacing: -0.09em;
  line-height: 0.83;
  transform: rotate(-8deg);
  opacity: 0.83;
}
.hero-art span span {
  color: white;
}
.search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #dce2f4;
  padding: 0.43rem 0.45rem 0.43rem 0.95rem;
  border-radius: 99px;
  background: #fff;
  width: min(38rem, 100%);
  box-shadow: 0 8px 28px #2c3a9d15;
}
.search svg {
  width: 21px;
  flex: none;
  fill: none;
  stroke: #465673;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.search input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0.4rem;
  background: none;
  color: inherit;
  font-size: 0.91rem;
}
.search input:focus {
  outline: none;
}
.search:focus-within {
  outline: 2px solid #8799ff;
}
.gallery {
  padding: 2.3rem var(--gutter) 3rem;
  scroll-margin-top: 80px;
}
.toolbar {
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
}
.section-label {
  color: var(--muted);
}
h2 {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  letter-spacing: -0.06em;
  margin: 0.25rem 0 0;
}
.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filters label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.48rem 0.65rem;
  font-size: 0.8rem;
}
.filters label span {
  color: var(--muted);
  white-space: nowrap;
}
.filters select {
  background: transparent;
  border: 0;
  color: var(--ink);
  max-width: 9rem;
}
.filters select:disabled {
  opacity: 0.55;
}
.categories {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  overflow-x: auto;
  margin-top: 1.15rem;
  padding: 0.24rem 0.2rem 0.75rem;
  scrollbar-width: thin;
}
.categories button {
  flex: none;
}
.categories button[aria-pressed="true"] {
  color: #fff;
  background: #171e34;
  border-color: #171e34;
}
.status {
  color: var(--muted);
  font-size: 0.86rem;
  min-height: 1.3rem;
  margin: 0.4rem 0 0.95rem;
}
.status.error,
.form-error {
  color: #a7213d;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 242px), 1fr));
  gap: 1.65rem 1.1rem;
}
.card {
  min-width: 0;
}
.cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4/3;
  border-radius: 12px;
  background: #e5eaff;
}
.cover img,
.detail-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover img {
  transition: transform 0.22s;
}
.cover:hover img {
  transform: scale(1.035);
}
.tag {
  position: absolute;
  left: 0.65rem;
  top: 0.65rem;
  border-radius: 99px;
  background: #fff;
  color: #263043;
  padding: 0.35rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 800;
  max-width: 85%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card h3 {
  font-size: 1.04rem;
  margin: 0.65rem 0 0.24rem;
  overflow-wrap: anywhere;
}
.card h3 a:hover {
  color: var(--blue);
}
.meta {
  margin: 0.22rem 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.6;
}
.card .host {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.79rem;
}
.card .host strong {
  color: var(--ink);
  font-weight: 700;
}
.more {
  text-align: center;
  margin-top: 2rem;
}
footer {
  border-top: 1px solid var(--line);
  padding: 1.35rem var(--gutter);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
}
footer strong {
  color: var(--ink);
  margin-right: 0.35rem;
}
dialog {
  border: 0;
  border-radius: 19px;
  padding: 0;
  width: min(700px, calc(100% - 1.5rem));
  max-height: calc(100% - 2rem);
  color: var(--ink);
  box-shadow: 0 22px 80px #10193c40;
}
dialog::backdrop {
  background: #101530a0;
}
dialog .close {
  position: sticky;
  top: 0.75rem;
  float: right;
  margin: 0.75rem 0.75rem -3rem 0;
  z-index: 2;
  width: 37px;
  height: 37px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 1.4rem;
  color: #20283d;
}
.dialog-body {
  padding: clamp(1rem, 5vw, 2.2rem);
  overflow-wrap: anywhere;
}
.dialog-body h2 {
  margin: 0 2rem 0.65rem 0;
}
.detail-cover {
  aspect-ratio: 16/7;
  height: auto;
  max-height: 310px;
}
.detail-copy {
  white-space: pre-wrap;
  line-height: 1.75;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.2rem;
}
.form {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
.form label {
  display: grid;
  gap: 0.28rem;
  font-size: 0.86rem;
  font-weight: 700;
}
.form input:not([type="checkbox"]),
.form select,
.form textarea {
  width: 100%;
  min-width: 0;
  padding: 0.63rem;
  border: 1px solid #cfd6e6;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
.form textarea {
  resize: vertical;
  min-height: 6rem;
}
.form label.check {
  display: flex;
  align-items: flex-start;
  font-weight: 500;
  gap: 0.55rem;
}
.form a {
  color: var(--blue);
  text-decoration: underline;
}
.form-row,
.social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.social {
  margin: 0.95rem 0 1.2rem;
}
.social .kakao {
  background: #fee500;
  color: #261c00;
}
.text-button {
  border: 0;
  background: none;
  color: #2348cf;
  font-weight: 700;
  padding: 0.3rem 0;
}
.notice {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: #eef2ff;
  color: #263a76;
  font-size: 0.88rem;
}
.detail-list {
  padding: 0;
  list-style: none;
}
.detail-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.detail-list a {
  color: #2348cf;
}
@media (max-width: 850px) {
  .hero-art {
    width: 43%;
    opacity: 0.72;
  }
  .hero-art > span {
    font-size: clamp(2.4rem, 8vw, 4.5rem);
  }
  .brand small {
    display: none;
  }
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  }
}
@media (max-width: 580px) {
  .masthead {
    min-height: 60px;
    gap: 0.55rem;
    flex-wrap: wrap;
    padding-top: 0.6rem;
    padding-bottom: 0.55rem;
  }
  .masthead nav {
    order: 3;
    width: 100%;
    gap: 1.25rem;
    height: 32px;
  }
  .masthead nav .active {
    box-shadow: inset 0 -2px var(--blue);
  }
  .brand {
    font-size: 1.13rem;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .account .button {
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
  }
  .hero {
    min-height: 0;
    padding-block: 2.2rem;
  }
  .hero-art {
    width: 39%;
    opacity: 0.52;
  }
  .hero-art > span {
    display: none;
  }
  .hero h1 {
    font-size: clamp(2.5rem, 10vw, 3.6rem);
  }
  .intro {
    max-width: 19rem;
    line-height: 1.6;
  }
  .gallery {
    padding-top: 1.5rem;
    scroll-margin-top: 110px;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 0.65rem;
  }
  .card h3 {
    font-size: 0.9rem;
  }
  .tag {
    font-size: 0.64rem;
    left: 0.38rem;
    top: 0.38rem;
    padding: 0.24rem 0.45rem;
  }
  .card .host {
    flex-wrap: wrap;
  }
  .filters {
    gap: 0.3rem;
  }
  .filters label {
    gap: 0.2rem;
    padding: 0.43rem;
  }
  .filters select {
    max-width: 6.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 360px) {
  .cards {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Shared page rhythm, with distinct layouts for reading, editing and managing. */
:root {
  --paper: #f7f8fc;
  --accent-tint: #edf0ff;
}
#page {
  min-height: 65vh;
  background: var(--paper);
}
.masthead nav a[aria-current="page"] {
  color: var(--blue);
  box-shadow: inset 0 -3px var(--blue);
}
.page-content {
  width: min(100%, 1160px);
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 4rem) var(--gutter) clamp(2rem, 7vw, 5.5rem);
}
.page-content h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3.9rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
.page-content h2 {
  margin: 1.3rem 0 0.65rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}
.account-page,
.reading,
.profile-page {
  max-width: 650px;
}
.guide-article,
.editor-page,
.chat-page {
  max-width: 930px;
}
.guide-grid {
  margin-top: 1.8rem;
}
.guide-title {
  display: inline-block;
  font-weight: 800;
  margin-top: 0.8rem;
}
.guide-steps {
  line-height: 1.9;
  padding-left: 1.35rem;
}
.home-guides {
  background: var(--accent-tint);
}
.home-guides .button,
.guide-article .button {
  display: inline-block;
  margin-top: 0.9rem;
}
.guide-article .text-button {
  display: inline-block;
  margin-left: 0.9rem;
}
.explore-hero {
  min-height: 0;
  padding-block: clamp(1.6rem, 5vw, 3rem);
}
.explore-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.65rem);
}
.invitation {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: start;
}
.invitation-story,
.invitation-summary,
.page-content > .form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(0.85rem, 2.4vw, 1.5rem);
}
.invitation-story .detail-cover {
  border-radius: 12px;
  max-height: none;
}
.invitation-summary {
  position: sticky;
  top: 90px;
}
.page-content .detail-list li {
  padding: 0.9rem 0;
}
.page-content .detail-list .button {
  display: inline-block;
  margin-top: 0.55rem;
}
.profile-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
}
.filters label {
  background: white;
  border-radius: 99px;
  padding-inline: 0.85rem;
}
.filters select,
.form select {
  appearance: none;
  padding-right: 1.7rem;
  background-image: url("/chevron.svg");
  background-repeat: no-repeat;
  background-position: right 0.3rem center;
  background-size: 12px;
}
.form select {
  background-position: right 0.75rem center;
}
.cover .tag {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.cover .tag img {
  width: 15px;
  height: 15px;
  object-fit: contain;
}
@media (max-width: 700px) {
  .invitation {
    grid-template-columns: 1fr;
  }
  .invitation-summary {
    position: static;
  }
}
@media (max-width: 580px) {
  .masthead nav {
    overflow-x: auto;
    gap: 0.85rem;
  }
  .masthead nav a {
    flex: none;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.page-content > .button {
  display: inline-block;
  margin: 0.5rem 0.5rem 0.5rem 0;
}

.chat-page {
  max-width: 1160px;
}
.chat-layout {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 3fr);
  gap: 1.25rem;
  align-items: start;
}
.chat-sidebar,
.chat-thread {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
}
.chat-sidebar {
  display: grid;
  gap: 0.3rem;
}
.chat-sidebar a {
  padding: 0.55rem;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.chat-sidebar a[aria-current="page"] {
  background: var(--accent-tint);
}
@media (max-width: 700px) {
  .chat-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .chat-sidebar {
    display: none;
  }
}

.filters input[type="date"] {
  border: 0;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}
