/* ============================================================
   하루에이스 디자인 토큰
   ink   : 안내판 잉크 네이비   teal : 수영장 물색(주요 액션)
   wood  : 체육관 마루색(태그)  paper: 배경
   ============================================================ */
:root {
  --ink: #12232b;
  --ink-soft: #3c5661;
  --teal: #0e6e7a;
  --teal-dark: #0a545e;
  --wood: #b5793a;
  --paper: #f3f6f5;
  --card: #ffffff;
  --line: #dde5e3;
  --line-strong: #c3d0cd;

  --font-body: "Pretendard Variable", Pretendard, -apple-system,
    BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic",
    sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1080px;
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.78;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

a {
  color: var(--teal-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--wood);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip:focus {
  left: 8px;
  top: 8px;
}

/* ---------------- 헤더 ---------------- */
.site-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  /* 코트 라인 모티프: 상단에 얇은 흰 선 */
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 12px;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: #fff;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.03em;
}
.wordmark:hover {
  text-decoration: none;
}
.wordmark .mark {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 2px;
  position: relative;
  transform: translateY(1px);
}
.wordmark .mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -1px;
  bottom: -1px;
  width: 2px;
  background: var(--wood);
}
.wordmark .dot {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}
.header-nav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.header-nav::-webkit-scrollbar {
  display: none;
}
.header-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.header-nav a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 500;
  padding: 11px 12px;
  border-bottom: 2px solid transparent;
}
.header-nav a:hover {
  color: #fff;
  text-decoration: none;
  border-bottom-color: var(--wood);
}

/* ---------------- 히어로 ---------------- */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 46px 0 54px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.045) 0 1px,
    transparent 1px 92px
  );
}
.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--wood);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(30px, 6.2vw, 50px);
  line-height: 1.22;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0 0 16px;
}
.hero p {
  margin: 0;
  max-width: 40em;
  color: rgba(255, 255, 255, 0.76);
  font-size: 17px;
}

/* ---------------- 시그니처: 오픈 보드 ---------------- */
.board {
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}
.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
}
.board-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 0.9fr;
  gap: 10px;
  padding: 13px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  align-items: center;
}
.board-row:first-of-type {
  border-top: 0;
}
.board a.board-name {
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.board .cell {
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}
.board .cell.accent {
  color: var(--wood);
}
.board-foot {
  padding: 10px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------------- 본문 공통 ---------------- */
main {
  display: block;
  padding-bottom: 64px;
}
.section {
  padding-top: 52px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 24px;
}
.section-head h2 {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0;
}
.section-head .more {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
a.card:hover {
  text-decoration: none;
  border-color: var(--teal);
  transform: translateY(-2px);
}
.card .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--wood);
  text-transform: uppercase;
}
.card h3 {
  margin: 8px 0 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 가이드 목록 */
.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: 96px 1fr;
  gap: 16px;
  padding: 18px 4px;
  color: inherit;
}
.list a:hover {
  text-decoration: none;
  background: rgba(14, 110, 122, 0.045);
}
.list .meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--wood);
  padding-top: 5px;
}
.list h3 {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.list p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ---------------- 글 페이지 ---------------- */
.article-head {
  padding: 34px 0 26px;
  border-bottom: 2px solid var(--ink);
}
.crumbs {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.crumbs a {
  color: var(--ink-soft);
}
.article-head .kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--wood);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.article-head h1 {
  font-size: clamp(26px, 5.2vw, 40px);
  line-height: 1.28;
  letter-spacing: -0.045em;
  font-weight: 800;
  margin: 0 0 14px;
}
.article-head .lead {
  margin: 0;
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 42em;
}
.article-head .date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 14px;
  display: block;
}

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  margin: 26px 0 0;
  overflow: hidden;
}
.strip div {
  background: var(--card);
  padding: 14px 16px;
}
.strip dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.strip dd {
  margin: 5px 0 0;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.prose {
  max-width: 42em;
  padding-top: 12px;
}
.prose h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 44px 0 14px;
  padding-left: 13px;
  border-left: 4px solid var(--teal);
  line-height: 1.4;
}
.prose h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 10px;
  letter-spacing: -0.03em;
}
.prose p {
  margin: 0 0 17px;
}
.prose ul,
.prose ol {
  margin: 0 0 20px;
  padding-left: 1.15em;
}
.prose li {
  margin-bottom: 9px;
}
.prose ul li::marker {
  color: var(--teal);
}
.prose ol li::marker {
  font-family: var(--font-mono);
  color: var(--wood);
  font-weight: 700;
}
.note {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--wood);
  border-radius: var(--radius);
  padding: 15px 17px;
  margin: 0 0 22px;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.note strong {
  color: var(--ink);
}

/* FAQ */
.faq {
  max-width: 42em;
  margin-top: 46px;
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}
.faq h2 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 13px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--teal);
  font-weight: 400;
  flex: none;
}
.faq details[open] summary::after {
  content: "−";
}
.faq details p {
  margin: 0 0 15px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.disclaimer {
  max-width: 42em;
  margin-top: 34px;
  padding: 16px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.related {
  max-width: 42em;
  margin-top: 40px;
}
.related h2 {
  font-size: 15px;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
}

/* 광고 자리 */
.ad-slot {
  margin: 30px 0;
  max-width: 42em;
  min-height: 1px;
}
.ad-slot ins {
  display: block;
}

/* 정책 문서 */
.policy {
  max-width: 46em;
  padding-top: 12px;
}
.policy h2 {
  font-size: 19px;
  font-weight: 800;
  margin: 36px 0 12px;
  letter-spacing: -0.03em;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.policy p,
.policy li {
  font-size: 16px;
}
.policy ul,
.policy ol {
  padding-left: 1.15em;
}
.policy li {
  margin-bottom: 8px;
}
.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 22px;
  font-size: 15px;
  background: #fff;
}
.policy th,
.policy td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.policy th {
  background: #eef2f1;
  font-weight: 700;
  white-space: nowrap;
}

/* CTA 버튼 */
.btn {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--radius);
  letter-spacing: -0.02em;
}
.btn:hover {
  background: var(--teal-dark);
  text-decoration: none;
}

/* ---------------- 푸터 ---------------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 44px 0 40px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.site-footer h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 12px;
  font-weight: 400;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li {
  margin-bottom: 8px;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}
.site-footer a:hover {
  color: #fff;
}
.footer-about p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  max-width: 34em;
}
.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-family: var(--font-mono);
}

@media (max-width: 720px) {
  body {
    font-size: 16.5px;
  }
  .board-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 6px;
  }
  .board a.board-name {
    grid-column: 1 / -1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .list a {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .list .meta {
    padding-top: 0;
  }
}

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

/* ---------------- v2 추가 ---------------- */
.art {
  margin: 26px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.art svg {
  display: block;
  width: 100%;
  height: auto;
}
.art figcaption {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 0 14px 12px;
}
.card-art {
  display: block;
  margin: -20px -20px 14px;
  background: var(--ink);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.card-art svg {
  display: block;
  width: 100%;
  height: auto;
}
.portal {
  max-width: 42em;
  margin-top: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.portal h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.portal p {
  margin: 0 0 14px;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.portal p:last-child {
  margin-bottom: 0;
}
.searchbox {
  margin-top: 22px;
  max-width: 32em;
}
.searchbox input {
  width: 100%;
  font: inherit;
  font-size: 17px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.searchbox input:focus {
  outline: 3px solid var(--teal);
  outline-offset: 1px;
}
.list .noresult {
  padding: 22px 4px;
  color: var(--ink-soft);
  font-size: 15.5px;
}
