/* 숏공 작업 모음 — editorial catalog, not a startup template */
@font-face {
  font-family: "Gowun Batang";
  src: url("../assets/fonts/GowunBatang-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gowun Batang";
  src: url("../assets/fonts/GowunBatang-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gothic A1";
  src: url("../assets/fonts/GothicA1-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gothic A1";
  src: url("../assets/fonts/GothicA1-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gothic A1";
  src: url("../assets/fonts/GothicA1-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3eee4;
  --bg-deep: #e8dfcf;
  --paper: #fffaf3;
  --ink: #1b1814;
  --muted: #5c554b;
  --line: #d4cbb8;
  --line-strong: #b9ad96;
  --brick: #8a3924;
  --brick-hover: #6e2c1b;
  --pine: #2a463c;
  --max: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.25rem);
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Gothic A1", "Noto Sans CJK KR", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brick); text-underline-offset: 0.18em; }
a:hover { color: var(--brick-hover); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brick);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.85rem;
  z-index: 100;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2 * var(--pad), var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, white);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}
.logo {
  font-family: "Gowun Batang", "Noto Serif CJK KR", serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--brick); }
.logo span {
  font-family: "Gothic A1", sans-serif;
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-left: 0.55rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}
.site-nav a:hover { color: var(--brick); text-decoration: underline; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1rem;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.15rem; }
  .site-nav a { display: block; padding: 0.45rem 0; }
}

/* Hero */
.hero {
  padding: 3.25rem 0 2.75rem;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: end;
}
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.hero h1 {
  font-family: "Gowun Batang", serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.lede {
  font-size: 1.05rem;
  color: var(--ink);
  max-width: 36rem;
  margin: 0 0 1.25rem;
}
.hero-note {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  max-width: 36rem;
}
.hero-figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(40, 28, 12, 0.06);
}
.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.hero-figure figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.55rem 0.8rem 0.7rem;
}

@media (max-width: 800px) {
  .hero { padding: 2rem 0 1.75rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Sections */
.section,
#contact,
#top {
  scroll-margin-top: 4.25rem;
}
.section {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: baseline;
  margin-bottom: 1.75rem;
}
.section-num {
  font-family: "Gowun Batang", serif;
  font-size: 0.9rem;
  color: var(--brick);
  letter-spacing: 0.08em;
}
.section-head h2 {
  font-family: "Gowun Batang", serif;
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin: 0;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.section-desc {
  grid-column: 2;
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}
.channel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin: 0 0 1.5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  padding: 0.28rem 0.7rem;
  font-size: 0.86rem;
}
.chip:hover { border-color: var(--brick); color: var(--brick); }

.subhead {
  font-family: "Gowun Batang", serif;
  font-size: 1.15rem;
  margin: 0 0 0.9rem;
  font-weight: 700;
}

/* Cards */
.grid {
  display: grid;
  gap: 1.15rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.card a.media {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: #ddd6c8;
}
.card .media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
.card.tall .media img { aspect-ratio: 4 / 5; object-fit: cover; }
.card .body {
  padding: 0.85rem 0.95rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}
.tag {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--pine);
}
.card h3 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}
.card h3 a {
  color: var(--ink);
  text-decoration: none;
}
.card h3 a:hover { color: var(--brick); text-decoration: underline; }
.card .desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.card .links {
  margin-top: auto;
  padding-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  font-size: 0.86rem;
}

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; gap: 0.35rem; }
  .section-desc { grid-column: 1; }
}
@media (max-width: 520px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card .body { padding: 0.7rem 0.75rem 0.85rem; }
  .card h3 { font-size: 0.92rem; }
}

/* Compact lists */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.list li {
  border-bottom: 1px solid var(--line);
}
.list a {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0.1rem;
  text-decoration: none;
  color: inherit;
}
.list a:hover h3,
.list a:hover { color: var(--brick); }
.list .when {
  color: var(--muted);
  font-size: 0.86rem;
}
.list h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 500;
}
.list-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2rem;
}
@media (max-width: 720px) {
  .list-2col { grid-template-columns: 1fr; }
  .list a { grid-template-columns: 1fr; gap: 0.15rem; padding: 0.65rem 0; }
}

.group { margin: 2rem 0 0; }
.group:first-of-type { margin-top: 0; }

.note {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 1rem 0 0;
}

/* Contact */
.contact-box {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem 1.5rem 1.35rem;
  max-width: 40rem;
}
.contact-box h2 { margin-top: 0; }
.contact-box p { margin: 0 0 0.85rem; }
.btn {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  padding: 0.55rem 1rem;
  font-size: 0.95rem;
}
.btn:hover { background: var(--brick); color: var(--paper); }

/* Footer */
.site-footer {
  padding: 1.75rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.site-footer p { margin: 0.25rem 0; }

.card.portrait .media img { aspect-ratio: 3 / 4; object-fit: cover; object-position: center; }
.card.contain .media img { object-fit: contain; background: #e8eef4; }
.grid.shorts { margin-bottom: 0.25rem; }
