:root {
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-2: #edf2eb;
  --ink: #151815;
  --muted: #667064;
  --line: #dfe6dc;
  --accent: #1f8a4c;
  --accent-dark: #0e3f25;
  --sun: #f2b84b;
  --river: #2f6f9f;
  --container: 1120px;
  --font: "Noto Sans KR", "Malgun Gothic", "Apple SD Gothic Neo", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
select,
textarea {
  font: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 10px 12px;
  background: var(--accent);
  color: #fff;
}

.skip:focus {
  left: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(15, 42, 24, 0.12);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner {
  width: min(var(--container), calc(100% - 28px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-dark);
  color: var(--sun);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-size: 15px;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.nav a:hover,
.text-link:hover {
  color: var(--accent);
}

.hero,
.profile-hero,
.work-hero,
.section,
.feedback-panel,
.contact-band,
.reader-head,
.reader-panels {
  width: min(var(--container), calc(100% - 28px));
  margin: 0 auto;
}

.hero {
  min-height: min(640px, calc(100vh - 64px));
  padding: 34px 0 32px;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
}

.hero-cover img,
.work-hero > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(20, 39, 23, 0.16);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.04;
}

.hero-content > p:not(.eyebrow),
.profile-hero p,
.work-hero p {
  max-width: 620px;
  margin: 16px 0 0;
  color: #344039;
  font-size: 18px;
}

.hero-meta,
.meta-row,
.tag-row,
.hero-actions,
.feedback-counts,
.stat-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-meta,
.tag-row,
.hero-actions {
  margin-top: 18px;
}

.hero-meta span,
.tag-row span,
.stat-strip span,
.feedback-counts span {
  border-radius: 999px;
  background: var(--surface-2);
  color: #334136;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #cbd7cb;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.button.primary {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}

.button.ghost:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.section,
.feedback-panel {
  padding: 54px 0;
}

.muted-band {
  width: 100%;
  padding-left: max(14px, calc((100% - var(--container)) / 2));
  padding-right: max(14px, calc((100% - var(--container)) / 2));
  background: #eaf1e8;
  border-block: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading.compact {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.episode-grid,
.webtoon-grid,
.author-grid {
  display: grid;
  gap: 14px;
}

.episode-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.webtoon-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.author-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.episode-list {
  display: grid;
  gap: 12px;
}

.episode-tile,
.webtoon-card,
.author-tile,
.score-card,
.feedback-form,
.contact-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.episode-tile {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  overflow: hidden;
}

.episode-grid .episode-tile {
  grid-template-columns: 1fr;
}

.episode-tile img {
  width: 100%;
  height: 100%;
  min-height: 146px;
  object-fit: cover;
}

.episode-grid .episode-tile img {
  aspect-ratio: 5 / 4;
}

.episode-tile > div,
.webtoon-card-body,
.author-tile > div {
  min-width: 0;
  padding: 15px;
}

.meta-row {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.meta-row.large {
  margin-top: 18px;
}

.episode-tile h3,
.webtoon-card h3,
.author-tile h3 {
  margin: 8px 0;
  font-size: 20px;
  line-height: 1.2;
}

.episode-tile p,
.webtoon-card p,
.author-tile p,
.score-card p,
.contact-card p {
  margin: 0 0 12px;
  color: #46524a;
}

.webtoon-card {
  overflow: hidden;
}

.webtoon-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.text-link {
  display: inline-flex;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.stat-strip {
  margin-top: 12px;
}

.author-tile {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
}

.author-avatar {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 8px;
  background: var(--accent-dark);
  color: var(--sun);
  font-size: 30px;
  font-weight: 900;
}

.author-avatar.large {
  width: 132px;
  height: 132px;
  font-size: 42px;
}

.profile-hero {
  padding: 54px 0 26px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.work-hero {
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.feedback-panel {
  border-top: 1px solid var(--line);
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 14px;
}

.score-card,
.feedback-form,
.contact-card {
  padding: 18px;
}

.score-card > span,
.feedback-form span,
.feedback-samples span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.score-card strong {
  display: block;
  margin: 5px 0 8px;
  font-size: 30px;
  line-height: 1;
}

.feedback-form {
  display: grid;
  gap: 12px;
}

.feedback-form label {
  display: grid;
  gap: 6px;
}

.feedback-form select,
.feedback-form textarea {
  width: 100%;
  border: 1px solid #cbd7cb;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.feedback-form select {
  min-height: 40px;
  padding: 0 10px;
}

.feedback-form textarea {
  min-height: 106px;
  padding: 10px;
  resize: vertical;
}

.feedback-samples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.feedback-samples blockquote {
  margin: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--accent);
  background: #f8faf7;
}

.feedback-samples p {
  margin: 4px 0 0;
  color: #344039;
  font-size: 14px;
}

.contact-band {
  padding: 54px 0 64px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-card h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.reader {
  width: 100%;
  padding: 28px 0 60px;
  background: #101511;
  color: #fff;
}

.reader-head,
.reader-panels {
  width: min(760px, calc(100% - 24px));
}

.reader-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.reader-head h1 {
  font-size: clamp(28px, 5vw, 46px);
}

.reader-head p:not(.eyebrow) {
  margin: 10px 0 0;
  color: #dce6dc;
}

.reader .button.ghost {
  border-color: #4e5a50;
  background: #18201a;
  color: #fff;
}

.reader-panels {
  display: grid;
  gap: 10px;
}

.reader-production,
.panel-frame,
.empty-state {
  border-radius: 8px;
}

.reader-production {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid #303a32;
  background: #18201a;
}

.reader-production span {
  border-radius: 999px;
  background: #253329;
  color: #f6f7f8;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
}

.panel-frame {
  margin: 0;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
}

.panel-frame img {
  width: 100%;
}

.panel-frame figcaption {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.panel-frame figcaption span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.panel-frame figcaption strong {
  color: #111;
  font-size: 16px;
  line-height: 1.35;
}

.panel-frame figcaption p {
  margin: 0;
  color: #46524a;
  font-size: 14px;
  font-weight: 800;
}

.empty-state {
  padding: 28px;
}

.empty-state.page {
  width: min(760px, calc(100% - 28px));
  margin: 64px auto;
}

.empty-state h1,
.empty-state h2 {
  margin: 0 0 10px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px max(14px, calc((100% - var(--container)) / 2));
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 4px 0 0;
}

.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 900;
}

@media (max-width: 840px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0;
  }

  .nav {
    width: 100%;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .profile-hero,
  .work-hero,
  .episode-grid,
  .webtoon-grid,
  .author-grid,
  .feedback-layout,
  .feedback-samples,
  .contact-band,
  .reader-head {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-cover img {
    max-height: 430px;
  }

  .episode-tile,
  .author-tile {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .author-avatar.large {
    width: 98px;
    height: 98px;
    font-size: 32px;
  }

  .site-footer {
    display: block;
  }

  .footer-links {
    margin-top: 10px;
  }
}

@media (max-width: 520px) {
  .episode-tile,
  .author-tile {
    grid-template-columns: 1fr;
  }

  .author-avatar {
    width: 74px;
    height: 74px;
    font-size: 24px;
  }
}
