:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #667085;
  --line: #d8dee8;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --pink: #d3165f;
  --green: #12805c;
  --blue: #2563eb;
  --amber: #c27a13;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(211, 22, 95, 0.05), rgba(18, 128, 92, 0.04)),
    var(--surface-soft);
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 56px;
  border-bottom: 1px solid rgba(216, 222, 232, 0.86);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.header-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--pink);
  font-size: 20px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  border-color: var(--line);
  background: #ffffff;
}

.site-nav a[aria-current="page"] {
  border-color: rgba(211, 22, 95, 0.28);
  color: var(--pink);
  background: #fff5f8;
}

.home-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  background: #ffffff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.home-button:hover {
  border-color: rgba(211, 22, 95, 0.32);
  color: var(--pink);
}

main {
  display: grid;
  gap: 34px;
  padding-bottom: 48px;
}

.home-section {
  width: min(1180px, calc(100% - 56px));
  display: grid;
  gap: 14px;
  margin-inline: auto;
  padding: 24px 0 8px;
  border-bottom: 1px solid rgba(216, 222, 232, 0.75);
}

.intro-copy {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  max-width: none;
}

.eyebrow {
  color: var(--pink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 46px;
  line-height: 0.95;
}

.intro-copy p {
  max-width: 590px;
  margin-bottom: 0;
  color: #475467;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.content-action {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.content-section {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.library-panel {
  min-width: 0;
}

.library-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 10px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 27px;
  line-height: 1.05;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.55;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.filter-toolbar[hidden] {
  display: none;
}

.filter-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #344054;
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.filter-button.is-active {
  border-color: rgba(211, 22, 95, 0.32);
  color: #ffffff;
  background: var(--pink);
}

.content-count {
  min-height: 22px;
  margin-bottom: 14px;
  color: #526070;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.content-card {
  min-height: 360px;
  display: grid;
  grid-template-rows: 164px 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.08);
}

.content-card.is-muted {
  background: #fbfcfd;
}

.content-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #e5f7ff, #eefaf2);
}

.content-card[data-accent="green"] .content-art {
  background: linear-gradient(180deg, #e4faf0, #f7fbff);
}

.content-card[data-accent="blue"] .content-art {
  background: linear-gradient(180deg, #e7f0ff, #f9fbff);
}

.content-card[data-accent="amber"] .content-art {
  background: linear-gradient(180deg, #fff6df, #f9fbff);
}

.content-art img {
  max-width: 92%;
  max-height: 150px;
  object-fit: contain;
  filter: drop-shadow(0 12px 9px rgba(23, 32, 51, 0.18));
}

.content-placeholder {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(23, 32, 51, 0.12);
  border-radius: 8px;
  color: #344054;
  background: rgba(255, 255, 255, 0.76);
  font-size: 30px;
  font-weight: 950;
}

.content-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.content-type,
.content-status {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.content-type {
  color: #0f766e;
  background: #dff8ee;
}

.content-status {
  color: #7c2d12;
  background: #fff1dc;
}

.content-status.is-live {
  color: #be185d;
  background: #ffe4ef;
}

.content-body h3 {
  margin-bottom: 0;
  font-size: 23px;
  line-height: 1.16;
}

.content-body p {
  margin-bottom: 0;
  color: #526070;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
}

.content-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-tags li {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #667085;
  background: #ffffff;
  font-size: 12px;
  font-weight: 850;
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.content-action {
  width: fit-content;
  min-width: 92px;
  color: #ffffff;
  background: #172033;
}

.qr-card-action {
  border: 1px solid var(--line);
  color: #172033;
  background: #ffffff;
}

.qr-card-action:hover {
  border-color: rgba(211, 22, 95, 0.32);
  color: var(--pink);
}

.content-action.is-disabled {
  color: #667085;
  background: #e9eef5;
}

.direction-section {
  padding-top: 8px;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.direction-grid div,
.noscript-list {
  min-height: 134px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.direction-grid strong,
.direction-grid span {
  display: block;
}

.direction-grid strong {
  margin-bottom: 8px;
  font-size: 17px;
}

.direction-grid span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.noscript-list {
  display: grid;
  gap: 10px;
}

.noscript-list a {
  font-weight: 900;
}

.site-footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 20px 36px;
  border-top: 1px solid rgba(216, 222, 232, 0.8);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  background: #ffffff;
}

.footer-links {
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.footer-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  color: #344054;
  background: #ffffff;
  text-decoration: none;
}

.footer-links a:hover {
  border-color: rgba(211, 22, 95, 0.3);
  color: var(--pink);
}

.footer-copyright {
  color: #8a95a5;
  font-size: 13px;
  font-weight: 850;
}

.qr-modal,
.class-access-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
}

.qr-modal.is-hidden,
.class-access-modal.is-hidden {
  display: none;
}

.qr-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.48);
}

.qr-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.class-access-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.qr-modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.qr-modal-head h2 {
  margin-bottom: 0;
  font-size: 24px;
  line-height: 1.15;
}

.qr-modal-image {
  width: min(260px, 100%);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.qr-modal-url {
  margin-bottom: 0;
  overflow-wrap: anywhere;
  color: #526070;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

body.qr-modal-open,
body.class-access-open {
  overflow: hidden;
}

.class-access-notice {
  margin-bottom: 0;
  color: #344054;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.7;
}

.class-access-field {
  display: grid;
  gap: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 950;
}

.class-access-field input {
  min-height: 44px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 850;
}

.class-access-field input:focus {
  border-color: rgba(211, 22, 95, 0.45);
  outline: 3px solid rgba(211, 22, 95, 0.14);
}

.class-access-status {
  min-height: 22px;
  margin-bottom: 0;
  color: #be185d;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.info-page {
  width: min(1040px, calc(100% - 56px));
  margin-inline: auto;
  padding: 32px 0 56px;
}

.info-hero {
  display: grid;
  gap: 12px;
  padding-bottom: 18px;
}

.info-hero h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: 44px;
  line-height: 1.08;
}

.info-hero p {
  max-width: 820px;
  margin-bottom: 0;
  color: #475467;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.65;
}

.info-updated {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 999px;
  color: #526070;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.info-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 18px;
}

.info-summary article {
  min-height: 128px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
}

.info-summary strong {
  color: #172033;
  font-size: 17px;
  line-height: 1.25;
}

.info-summary span {
  color: #526070;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.55;
}

.info-content {
  display: grid;
  gap: 12px;
}

.info-block {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  background: #ffffff;
}

.info-block-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.info-block-head span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--pink);
  font-size: 13px;
  font-weight: 950;
}

.info-block h2,
.info-block-head h2 {
  margin-bottom: 0;
  font-size: 22px;
  line-height: 1.2;
}

.info-block p {
  max-width: 820px;
  margin-bottom: 0;
  color: #526070;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.info-block a {
  color: var(--pink);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.info-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: minmax(110px, 150px) 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(216, 222, 232, 0.78);
}

.info-list dt {
  color: #344054;
  font-size: 14px;
  font-weight: 950;
}

.info-list dd {
  margin: 0;
  color: #526070;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.info-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 24px;
}

@media (max-width: 980px) {
  .site-header {
    padding-inline: 24px;
  }

.home-section {
    width: min(760px, calc(100% - 48px));
    gap: 14px;
    padding-top: 24px;
  }

  .intro-copy {
    display: grid;
    gap: 10px;
  }

  h1 {
    font-size: 44px;
  }

  .intro-copy p {
    font-size: 17px;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 14px 18px;
  }

  .header-left {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .home-section {
    width: calc(100% - 36px);
    gap: 13px;
    padding-top: 20px;
  }

  h1 {
    font-size: 40px;
  }

  .intro-copy p {
    font-size: 15px;
  }

  .library-top {
    display: grid;
    gap: 4px;
  }

  .content-count {
    margin-bottom: 10px;
    white-space: normal;
  }

  .filter-toolbar {
    flex-wrap: nowrap;
    gap: 7px;
    overflow-x: auto;
    padding: 9px;
    scrollbar-width: thin;
  }

  .filter-button {
    flex: 0 0 auto;
    min-height: 36px;
    padding-inline: 11px;
    font-size: 13px;
  }

  .content-grid,
  .direction-grid {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .content-card {
    min-height: 340px;
    grid-template-rows: 142px 1fr;
  }

  .site-footer {
    padding-inline: 18px;
  }

  .info-page {
    width: calc(100% - 36px);
    padding-top: 22px;
  }

  .info-summary {
    grid-template-columns: 1fr;
  }

  .info-hero h1 {
    font-size: 34px;
  }

  .info-hero p,
  .info-block p {
    font-size: 15px;
  }

  .info-block {
    padding: 18px;
  }

  .info-block-head {
    align-items: start;
  }

  .info-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
