:root {
  --green: #263B31;
  --ivory: #F7F7F2;
  --sage: #AFC2B0;
  --window-yellow: #eac062;
  --charcoal: #252525;
  --white: #FFFFFF;
  --muted: #47544B;
  --line: #CBD3C8;
  --wash: #E8EEE6;
  --gutter: clamp(1.25rem, 6vw, 4rem);
  --section-space: clamp(3.75rem, 8vw, 7.25rem);
  font-family: "Noto Sans KR Web", "Noto Sans KR", "Noto Sans CJK KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}

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

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  font-size: 1rem;
  letter-spacing: -.015em;
}

main { flex: 1; }

main:focus { outline: none; }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  z-index: 5;
  inset: .5rem auto auto .5rem;
  padding: .65rem .95rem;
  color: var(--white);
  background: var(--green);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.shell {
  width: min(72rem, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.site-header { border-bottom: 1px solid var(--line); }

.masthead {
  display: grid;
  justify-items: center;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: .7rem;
  text-decoration: none;
}

.wordmark-logo {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  object-fit: contain;
}

.wordmark--header {
  justify-self: center;
  min-height: 4.125rem;
  padding-block: .5rem;
  color: var(--green);
}

.wordmark-type { display: grid; gap: .36rem; }

.wordmark-name {
  font-size: 1.43rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.06em;
}

.wordmark-english {
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .12em;
}

.site-nav {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.site-nav a {
  display: grid;
  min-height: 2.75rem;
  place-items: center;
  padding: .4rem .15rem;
  color: var(--green);
  font-size: .875rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.site-nav a:hover { text-decoration: underline; text-underline-offset: .26em; }

.cover { padding-block: clamp(2.5rem, 5.5vw, 5rem) clamp(3rem, 6vw, 5.5rem); }

.cover + .contact { border-top: 1px solid var(--line); }

.cover-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.cover-copy::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-bottom: 1.3rem;
  background: var(--sage);
}

.cover h1 {
  color: var(--green);
  font-size: clamp(1.85rem, 8.7vw, 3.4rem);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.055em;
}

.cover h1 span { display: block; }

.cover-copy > p {
  max-width: 24em;
  text-wrap: balance;
  margin-block: 1.3rem 1.55rem;
  color: var(--muted);
  line-height: 1.8;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  max-width: 100%;
  padding: .56rem 1.18rem;
  border: 1px solid var(--green);
  color: var(--green);
  font-size: .95rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.button--filled { color: var(--white); background: var(--green); }
.button--filled:hover { background: #3b5446; }
.button--outline:hover { background: var(--wash); }

.button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  width: min(100%, 22rem);
}

.button-row .button {
  padding-block: .4rem;
  line-height: 1.35;
}

@media (max-width: 35.999rem) {
  .button-row .button { padding-inline: clamp(.375rem, 2vw, .75rem); }
}

.editor-profile {
  display: grid;
  grid-template-columns: 4.75rem minmax(0, 1fr);
  align-items: center;
  gap: .9rem;
  min-width: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 1rem;
}

.editor-profile-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.editor-profile h2 {
  color: var(--muted);
  font-size: .94rem;
  font-weight: 400;
  line-height: 1.45;
}

.editor-profile h2 strong {
  color: var(--green);
  font-weight: 700;
}

.editor-contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--green);
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.45;
  text-underline-offset: .2em;
}

.channels, .contact, .extension { padding-block: var(--section-space); }

.section-label {
  margin-bottom: .5rem;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
}

.section-title {
  color: var(--green);
  font-size: clamp(1.75rem, 5.7vw, 2.75rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.05em;
}

.profile-frame {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--wash);
}

.profile-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 16%;
}

.profile-frame--pending {
  position: relative;
  display: grid;
  place-items: center;
  padding: .35rem;
  background: linear-gradient(145deg, #e9eee5, #dce7dc);
  color: var(--muted);
  text-align: center;
}

.profile-frame--pending::before {
  content: "";
  position: absolute;
  inset: .25rem;
  border: 1px solid #b7c9b8;
  pointer-events: none;
}

.profile-frame--pending span { font-size: .75rem; }

.channels { background: #DCE6DA; }

.channel-grid {
  display: grid;
  gap: .85rem;
  margin-top: 1.65rem;
}

.channel-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.3rem;
  border: 1px solid #c6d4c7;
  background: var(--white);
  color: var(--green);
  text-decoration: none;
}

.channel-card:hover { border-color: var(--green); }

.channel-card-head {
  display: flex;
  align-items: center;
  gap: .82rem;
}

.platform-mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  background: var(--wash);
  color: var(--green);
}

.platform-mark--naver {
  font-family: Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
}

.platform-mark--instagram i {
  position: relative;
  width: 1.17rem;
  height: 1.17rem;
  border: 1.6px solid;
  border-radius: .33rem;
}

.platform-mark--instagram i::before, .platform-mark--instagram i::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.platform-mark--instagram i::before {
  inset: 50% auto auto 50%;
  width: .52rem;
  height: .52rem;
  border: 1.4px solid;
  transform: translate(-50%, -50%);
}

.platform-mark--instagram i::after {
  inset: 2px 2px auto auto;
  width: .17rem;
  height: .17rem;
  background: currentColor;
}

.channel-card h3 {
  font-size: 1.14rem;
  line-height: 1.38;
  letter-spacing: -.035em;
}

.channel-handle {
  margin-top: .18rem;
  color: var(--muted);
  font-size: .875rem;
  letter-spacing: 0;
}

.channel-copy {
  margin-block: 1.1rem 1rem;
  color: var(--muted);
}

.channel-action {
  margin-top: auto;
  font-size: .94rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .28em;
}

.contact-grid {
  display: grid;
  align-items: start;
  gap: 1.6rem;
}

.contact-copy > p:not(.section-label, .contact-status) {
  margin-top: 1rem;
  color: var(--muted);
}

.contact-action {
  margin-top: 1.15rem;
  padding-inline: 1.416rem;
}

.contact-status {
  display: inline-block;
  margin-top: 1.15rem;
  padding: .36rem .64rem;
  border: 1px solid #bbcdbd;
  background: var(--wash);
  color: var(--green);
  font-size: .875rem;
  font-weight: 700;
}

.contact-list {
  display: grid;
  grid-auto-rows: 1fr;
  align-self: center;
  border-top: 1px solid var(--line);
  list-style: none;
}

.contact-list li {
  padding-block: .85rem;
  border-bottom: 1px solid var(--line);
}

.contact-list h3 {
  color: var(--green);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.025em;
}

.contact-list p {
  margin-top: .3rem;
  color: var(--muted);
  line-height: 1.6;
}

.extension + .extension { border-top: 1px solid var(--line); }
.extension-list { margin-top: 1.25rem; list-style: none; }

.extension-list li {
  border-top: 1px solid var(--line);
  padding-block: 1rem;
}

.extension-list h3 { color: var(--green); font-size: 1.125rem; }
.extension-list p { margin-top: .35rem; color: var(--muted); }

.site-footer {
  padding-block: 2rem;
  background: var(--green);
  color: var(--ivory);
}

.site-footer a:focus-visible { outline-color: var(--sage); }

.footer-main {
  display: grid;
  gap: .85rem;
  align-items: center;
}

.wordmark--footer { justify-self: start; }

.footer-main ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.3rem;
  align-items: center;
  list-style: none;
}

.footer-main nav a, .footer-privacy, .footer-contact-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  font-size: .875rem;
  text-underline-offset: .24em;
}

.footer-main nav a { text-decoration: none; }
.footer-main nav a:hover { text-decoration: underline; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 1rem;
}

.footer-contact-link { font-size: .8125rem; }

.footer-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 1.25rem;
  margin-top: .5rem;
  padding-top: .5rem;
  border-top: 1px solid #667970;
  color: #e4ece2;
  font-size: .875rem;
}

.footer-operator {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1rem;
  padding-block: .6rem;
}

.reading-width { max-width: 44rem; }

.subpage-heading {
  padding-block: clamp(2.2rem, 6vw, 5rem);
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-bottom: .9rem;
  color: var(--green);
  font-size: .9rem;
  font-weight: 700;
  text-underline-offset: .25em;
}

.subpage h1 {
  color: var(--green);
  font-size: clamp(2rem, 7vw, 3.7rem);
  line-height: 1.25;
  letter-spacing: -.05em;
}

.subpage-author { margin-top: .85rem; color: var(--muted); }
.subpage-author strong { margin-left: .26rem; color: var(--green); }

.article-body { padding-block: clamp(2.1rem, 5.5vw, 4.5rem) var(--section-space); }

.draft-note {
  padding: .95rem 1rem;
  border-inline-start: 3px solid var(--sage);
  background: var(--white);
  color: var(--muted);
}

.article-section + .article-section, .draft-note + .article-section { margin-top: 2.35rem; }

.article-section h2 {
  margin-bottom: .8rem;
  color: var(--green);
  font-size: clamp(1.25rem, 4vw, 1.6rem);
  line-height: 1.4;
}

.article-section p + p { margin-top: .8rem; }
.article-section p { color: var(--muted); line-height: 1.85; }

@media (min-width: 36rem) {
  .channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { display: flex; justify-content: space-between; }
}

@media (min-width: 52rem) {
  .masthead {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 1rem;
    min-height: 5.5rem;
  }

  .wordmark--header { grid-column: 2; grid-row: 1; }
  .wordmark-name { font-size: 1.6rem; }

  .site-nav {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
    width: auto;
    gap: 2rem;
    border: 0;
  }

  .site-nav a { font-size: .94rem; }

  .cover-grid {
    grid-template-columns: minmax(0, 1.24fr) minmax(0, .9fr);
    gap: clamp(2.5rem, 7vw, 6.25rem);
  }

  .cover h1 { font-size: clamp(2.4rem, 4.35vw, 3.875rem); }

  .cover-copy::before {
    width: 3.4rem;
    margin-bottom: 1.65rem;
  }

  .cover-copy > p {
    margin-block: 1.65rem 1.95rem;
    font-size: 1.12rem;
  }

  .cover-description-break { display: none; }

  .editor-profile {
    width: min(100%, 26rem);
    justify-self: end;
    grid-template-columns: minmax(0, 1fr);
    gap: .35rem;
    padding-top: 0;
    border-top: 0;
  }

  .profile-frame { aspect-ratio: 4 / 3; }
  .profile-frame--pending::before { inset: 1.1rem; }
  .profile-frame--pending span { font-size: .9rem; }

  .editor-profile-copy {
    min-height: 2.75rem;
    justify-content: center;
  }

  .editor-profile h2 { font-size: .95rem; }
  .editor-contact-link { min-height: 1.375rem; }

  .channel-grid { gap: 1.15rem; margin-top: 2.2rem; }
  .channel-card { padding: 1.9rem; }
  .channel-card h3 { font-size: 1.32rem; }
  .channel-card-head { gap: 1rem; }
  .platform-mark { width: 3rem; height: 3rem; }
  .channel-copy { margin-block: 1.25rem 1.45rem; }

  .contact-grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(3rem, 6vw, 7rem);
  }

  .contact-copy .section-title { max-width: 13em; }
  .contact-copy > p:not(.section-label, .contact-status) { max-width: 24em; }

  .site-footer { padding-block: 2.45rem 1.8rem; }
  .footer-main ul { gap: 0 1.7rem; }
  .footer-details { margin-top: 1.3rem; }
}

body {
  background: #e6ede3;
  background-image: radial-gradient(ellipse at 78% 0%, #f4f6ed 0, transparent 55rem);
}

.folder-window {
  --folder-border: #b7c2b8;
  --folder-toolbar: #e8ebe7;
  --gutter: clamp(1.125rem, 5.4vw, 4rem);
  position: relative;
  width: min(79rem, calc(100% - clamp(1rem, 6vw, 7rem)));
  margin: clamp(1rem, 4vw, 3.5rem) auto clamp(1.5rem, 4vw, 3.75rem);
  border: 1px solid var(--folder-border);
  border-radius: 1rem;
  background: #fffefa;
  box-shadow: 0 1.1rem 3rem #263b3119, 0 .25rem .8rem #263b310a;
}

.folder-window .site-header {
  border-color: var(--folder-border);
  border-radius: calc(1rem - 1px) calc(1rem - 1px) 0 0;
  background: var(--folder-toolbar);
}

.folder-window .masthead {
  display: block;
  width: 100%;
  min-height: 0;
  justify-items: normal;
}

.folder-titlebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  width: 100%;
  align-items: center;
  gap: clamp(.85rem, 2vw, 1.25rem);
  min-height: 3.25rem;
  padding-inline: var(--gutter);
  border-radius: calc(1rem - 1px) calc(1rem - 1px) 0 0;
  background: linear-gradient(180deg, #f5f6f3, var(--folder-toolbar));
}

.folder-window .wordmark--header {
  grid-column: 2;
  position: static;
  min-height: 2.75rem;
  padding-block: .4rem;
}

.folder-window .wordmark-name {
  font-size: clamp(1.1rem, 2.2vw, 1.375rem);
}

.folder-indicators {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  flex: none;
  gap: .43rem;
}

.folder-indicators span {
  width: .69rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #df746e;
  box-shadow: inset 0 0 0 1px #263b311c;
}

.folder-indicators span:nth-child(2) { background: var(--window-yellow); }
.folder-indicators span:nth-child(3) { background: #75b589; }

.folder-window .site-nav {
  gap: 0;
  padding-inline: .3rem;
  border-top: 1px solid #cfd7cf;
  background: #eef2ed;
}

.folder-window .site-nav a { font-size: .82rem; }

.folder-window .cover {
  padding-block: clamp(1.7rem, 5.3vw, 4.65rem) clamp(2.5rem, 5vw, 4.7rem);
}

.folder-window .cover-copy { container-type: inline-size; }

.folder-window .button-row {
  width: min(100%, 24rem);
}

.folder-window .button-row .button {
  padding-inline: .375rem;
  white-space: nowrap;
}

@container (max-width: 21rem) {
  .folder-window .button-row .button { font-size: .875rem; }
}

@container (max-width: 17.5rem) {
  .folder-window .button-row {
    grid-template-columns: minmax(0, 1fr);
    max-width: 18rem;
  }

  .folder-window .button-row .button { font-size: .95rem; }
}

.folder-window .cover-copy::before { margin-bottom: clamp(.8rem, 2vw, 1.65rem); }

.folder-window .profile-frame {
  border: 1px solid #c5d2c4;
  border-radius: .62rem;
}

.folder-window .channels {
  border-radius: 0 0 calc(1rem - 1px) calc(1rem - 1px);
}

@media (min-width: 52rem) {
  .folder-window .site-nav {
    justify-content: flex-end;
    width: 100%;
    gap: clamp(1rem, 3vw, 2.15rem);
    padding-inline: var(--gutter);
    border-top: 1px solid #cfd7cf;
  }

  .folder-window .site-nav a { font-size: .92rem; }
}

.story-reader {
  max-width: 35rem;
  margin-block: 1.4rem 2.5rem;
}

.story-reader-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .5rem;
  margin-bottom: .6rem;
}

.story-reader-controls[hidden] { display: none; }

.story-reader-controls button {
  min-height: 2.75rem;
  min-width: 4.5rem;
  padding-inline: .7rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--white);
  color: var(--green);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.story-reader-controls button[aria-disabled="true"] {
  color: var(--muted);
  background: var(--wash);
  opacity: .65;
  cursor: default;
}

.story-reader-controls button:focus-visible,
.story-cards:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: .18rem;
}

.story-prev { justify-self: start; }
.story-next { justify-self: end; }
.story-position { font-variant-numeric: tabular-nums; color: var(--muted); }

.story-cards {
  display: flex;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  list-style: none;
  border-radius: .6rem;
  background: var(--green);
}

.story-reader-controls:not([hidden]) + .story-cards { scrollbar-width: none; }

.story-cards li {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.story-cards img { width: 100%; height: auto; }

.story-copy { padding-top: 0; }

.story-foldout {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: .6rem;
  background: var(--white);
}

.story-foldout summary {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1rem;
  border-radius: inherit;
  background: var(--wash);
  color: var(--green);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.story-foldout summary::-webkit-details-marker { display: none; }

.story-foldout summary::after {
  content: "";
  flex: none;
  width: .5rem;
  height: .5rem;
  margin-inline-start: auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-.15rem);
}

.story-foldout[open] summary {
  border-bottom: 1px solid var(--line);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.story-foldout[open] summary::after { transform: rotate(225deg); }

.story-folder-icon {
  position: relative;
  flex: none;
  width: 1.1rem;
  height: .75rem;
  border-radius: .12rem;
  background: var(--window-yellow);
}

.story-folder-icon::before {
  content: "";
  position: absolute;
  top: -.18rem;
  left: 0;
  width: .5rem;
  height: .25rem;
  border-radius: .1rem .1rem 0 0;
  background: inherit;
}

.story-foldout-body { padding: clamp(1rem, 4vw, 1.75rem); }
