/* 하루 20분 거북이 — 순수 CSS. 외부 CDN·추적 없음. */
:root {
  --green: #3f5a46;
  --green-deep: #3f5a46;
  --green-label: #3f5a46;
  --green-soft: #d0d7d0;
  --green-btn: #3f5a46;
  --green-btn-hover: #364c3e;
  --btn-text: #e4e0d7;
  --coral: #774840;
  --coral-label: #774840;
  --coral-soft: #d8d2ce;
  --gray: #524f4a;
  --gray-soft: #dcd6d0;
  --ink: #2b2a27;
  --ink-soft: #45423e;
  --cream: #ddd8cf;
  --cream-bg: #d9d4ca;
  --cream-top: #d9d4ca;
  --paper: #e4e0d7;
  --edge: #c5c0b6;
  --tan: #8f8274;
  --header-bg: #cdc8be;
  --shadow: 0 12px 28px rgba(43, 42, 39, 0.10), 0 2px 6px rgba(43, 42, 39, 0.05);
  --shadow-sm: 0 6px 16px rgba(43, 42, 39, 0.07);
  --shadow-book: 8px 16px 32px rgba(43, 42, 39, 0.18), 2px 4px 0 rgba(43, 42, 39, 0.04);
  --radius: 20px;
  --radius-sm: 14px;
  --content: 42rem;
  --page: 66rem;
  --font: "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Noto Sans CJK KR", "Malgun Gothic", "Nanum Gothic", sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: auto;
  background-color: var(--cream-bg);
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -8%, rgba(63, 90, 70, 0.06), transparent 60%),
    radial-gradient(ellipse 50% 28% at 100% 0%, rgba(63, 90, 70, 0.04), transparent 58%),
    radial-gradient(ellipse 40% 22% at 0% 12%, rgba(119, 72, 64, 0.04), transparent 55%);
  background-repeat: no-repeat;
  min-height: 100vh;
}

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

a {
  color: var(--green-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--green);
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.skip:focus {
  left: 0.8rem;
  top: 0.8rem;
}

/* —— 헤더 —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(205, 200, 190, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--edge);
}

.bar {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0.8rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  min-width: 0;
  line-height: 1.2;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  flex: 0 0 auto;
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.brand-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.site-nav a {
  color: var(--gray);
  text-decoration: none;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--gray-soft);
}

.site-nav a[aria-current="page"] {
  color: var(--green-label);
  background: var(--green-soft);
}

/* —— 레이아웃 —— */
.wrap {
  max-width: var(--content);
  margin: 0 auto;
  padding: 1.6rem 1.25rem 3.2rem;
}

.wrap-wide {
  max-width: var(--page);
}

/* —— 카드 —— */
.card {
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* —— 표지(히어로) —— */
.cover {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  padding: 1.7rem 1.35rem 1.55rem;
  margin: 0 0 2.1rem;
  position: relative;
  overflow: hidden;
}

.cover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green) 0 42%, var(--coral) 42% 64%, var(--tan) 64% 100%);
  opacity: 0.55;
}

.cover-copy {
  min-width: 0;
}

.kicker {
  margin: 0.15rem 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green-label);
  text-transform: none;
}

.cover h1 {
  margin: 0 0 1rem;
  font-size: 1.62rem;
  line-height: 1.4;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.lede {
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
}

.lede p {
  margin: 0 0 0.75rem;
}

.lede p:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--green-btn);
  color: var(--btn-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  padding: 0.62rem 1.15rem 0.62rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(43, 42, 39, 0.16), 0 1px 0 rgba(228, 224, 215, 0.18) inset;
}

.btn:hover {
  color: var(--btn-text);
  background: var(--green-btn-hover);
}

.btn .arrow {
  font-size: 1.05em;
  line-height: 1;
  transform: translateY(-0.02em);
}

.cover-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.2rem 0 0.1rem;
}

.cover-visual img {
  width: 46%;
  max-width: 200px;
  border-radius: 2px 7px 7px 2px;
  box-shadow: var(--shadow-book);
  background: var(--cream);
  filter: brightness(0.95);
}

.cover-credit {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--gray);
  text-align: center;
}

.rules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin: 0.15rem 0 0;
  padding: 0;
  list-style: none;
}

.rules li {
  border-radius: var(--radius-sm);
  border: 1px solid var(--edge);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow-sm);
  background: var(--paper);
  min-width: 0;
}

.rules .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.rules .body {
  display: block;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink);
}

.rules li.r-enter {
  background: var(--green-soft);
  border-color: #b7c4b8;
}

.rules li.r-enter .label { color: var(--green-label); }

.rules li.r-exit {
  background: var(--coral-soft);
  border-color: #cbb8b4;
}

.rules li.r-exit .label { color: var(--coral-label); }

.rules li.r-risk {
  background: var(--gray-soft);
  border-color: var(--edge);
}

.rules li.r-risk .label { color: var(--gray); }

/* —— 글 목록 —— */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.95rem;
}

.section-head h2 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 1.6rem;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin-top: 0.35rem;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.post-card {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  gap: 0.95rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0.85rem 1.05rem 0.85rem 0.85rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  min-width: 0;
}

.post-card:hover {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(43, 42, 39, 0.12), 0 0 0 1px rgba(43, 42, 39, 0.04);
}

.post-card .thumb {
  width: 100%;
  border-radius: 6px 10px 10px 6px;
  box-shadow: 0 8px 18px rgba(43, 42, 39, 0.14);
  background: var(--cream);
  filter: brightness(0.95);
}

.post-card .post-body {
  min-width: 0;
}

.post-card .meta {
  margin: 0 0 0.28rem;
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.post-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  line-height: 1.4;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.post-card p {
  margin: 0;
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.badge {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green-label);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.08rem 0.48rem;
  border-radius: 999px;
  margin-right: 0.35rem;
}

/* —— 본문 —— */
.article-card {
  padding: 1.6rem 1.3rem 2rem;
}

.article-card .meta,
.about-card .meta {
  margin: 0 0 0.5rem;
  font-size: 0.84rem;
  color: var(--gray);
  font-weight: 600;
}

.article-card h1,
.about-card h1 {
  margin: 0 0 1.15rem;
  font-size: 1.55rem;
  line-height: 1.38;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.article-card h2,
.about-card h2 {
  margin: 2em 0 0.65em;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 800;
  border-bottom: none;
  padding: 0;
}

.article-card h2::after,
.about-card h2::after {
  content: "";
  display: block;
  width: 2.2rem;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin-top: 0.5rem;
}

.article-card p,
.about-card p {
  margin: 0 0 1.05em;
}

.article-card p:last-child,
.about-card p:last-child {
  margin-bottom: 0;
}

blockquote {
  margin: 1.25em 0 1.5em;
  padding: 1.15rem 1.2rem;
  background: var(--cream);
  border-left: 4px solid var(--tan);
  border-top: 1px solid var(--edge);
  border-right: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
  border-radius: 0 14px 14px 0;
  box-shadow: var(--shadow-sm);
}

blockquote p {
  margin: 0 0 0.85em;
  color: var(--ink);
}

blockquote p:last-child {
  margin-bottom: 0;
}

figure {
  margin: 1.5em 0 1.7em;
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

figure img {
  width: 100%;
  margin: 0;
  background: var(--cream);
  filter: brightness(0.95);
}

figcaption {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--gray);
  padding: 0.7rem 1rem 0.9rem;
}

.warn {
  margin: 1.5em 0 0;
  padding: 1.05rem 1.15rem;
  background: var(--cream);
  border: 1px solid var(--edge);
  border-left: 4px solid var(--tan);
  border-radius: 0 14px 14px 0;
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.warn p {
  margin: 0;
}

.back {
  margin: 1.4rem 0 0;
}

.back a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--green-label);
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  box-shadow: var(--shadow-sm);
}

.back a:hover {
  background: var(--green-soft);
}

/* —— 푸터 —— */
.site-footer {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.25rem 2.6rem;
  color: var(--gray);
  font-size: 0.86rem;
  line-height: 1.7;
}

.wrap + .site-footer {
  max-width: var(--content);
}

.wrap-wide + .site-footer {
  max-width: var(--page);
}

.site-footer p {
  margin: 0 0 0.35rem;
}

.site-footer a {
  color: var(--gray);
}

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

/* —— 소개 페이지 —— */
.about-card {
  padding: 1.6rem 1.3rem 2rem;
}

.about-card ul {
  margin: 0 0 1.2em;
  padding: 0 0 0 1.15rem;
}

.about-card li {
  margin: 0 0 0.5em;
}


/* —— 댓글 —— */
.comments-card {
  padding: 1.6rem 1.3rem 1.8rem;
  margin: 1.4rem 0 0;
}

.comments-card h2 {
  margin: 0 0 0.85em;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 800;
}

.comments-card h2::after {
  content: "";
  display: block;
  width: 2.2rem;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin-top: 0.5rem;
}

.comments-card .comments-placeholder {
  margin: 0;
  color: var(--gray);
  font-size: 0.95rem;
}

.comments-card #remark42 iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

/* —— 넓은 화면 —— */
@media (min-width: 800px) {
  body {
    font-size: 18px;
  }

  .bar {
    padding: 1rem 2rem;
  }

  .brand {
    font-size: 1.12rem;
  }

  .wrap {
    padding: 2.4rem 2rem 4.2rem;
  }

  .wrap-wide {
    padding-top: 2.6rem;
  }

  .cover {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
    grid-template-areas:
      "copy visual"
      "rules rules";
    column-gap: 2.6rem;
    row-gap: 1.8rem;
    align-items: center;
    padding: 2.8rem 3rem 2.3rem;
  }

  .cover-copy { grid-area: copy; }
  .cover-visual { grid-area: visual; }
  .rules { grid-area: rules; }

  .cover h1 {
    font-size: 2.15rem;
    line-height: 1.38;
    margin-bottom: 1.15rem;
  }

  .lede {
    margin-bottom: 1.5rem;
  }

  .cover-visual img {
    width: 100%;
    max-width: 268px;
  }

  .rules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 0.2rem;
  }

  .post-card {
    grid-template-columns: 7.2rem 1fr;
    gap: 1.35rem;
    padding: 1.15rem 1.5rem 1.15rem 1.15rem;
  }

  .post-card h3 {
    font-size: 1.2rem;
  }

  .post-card p {
    font-size: 0.95rem;
  }

  .article-card,
  .about-card,
  .comments-card {
    padding: 2.4rem 2.6rem 2.6rem;
  }

  .article-card h1,
  .about-card h1 {
    font-size: 1.85rem;
  }

  .site-footer {
    padding: 0 2rem 3.2rem;
  }
}


/* —— 투자소식 —— */
.news-index h1,
.news-page h1 {
  margin: 0 0 1.15rem;
  font-size: 1.55rem;
  line-height: 1.38;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.news-index .kicker,
.news-page .kicker {
  margin-bottom: 0.35rem;
}

.news-page .meta {
  margin: 0 0 0.5rem;
  font-size: 0.84rem;
  color: var(--gray);
  font-weight: 600;
}

.news-lead {
  margin: 0 0 1.6rem;
  color: var(--ink-soft);
}

.news-day-list,
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.news-day-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.15rem 1.35rem 1.2rem;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.news-day-card:hover {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(43, 42, 39, 0.12), 0 0 0 1px rgba(43, 42, 39, 0.04);
}

.news-day-card .meta {
  margin: 0 0 0.28rem;
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 600;
}

.news-day-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  line-height: 1.4;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.news-day-card p {
  margin: 0;
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.news-item {
  padding: 1.25rem 1.3rem 1.3rem;
}

.news-item .meta {
  margin: 0 0 0.35rem;
}

.news-item h2 {
  margin: 0 0 0.7rem;
  font-size: 1.12rem;
  line-height: 1.42;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.news-item h2 a {
  color: var(--ink);
  text-decoration: none;
}

.news-item h2 a:hover {
  color: var(--green);
}

.news-item p {
  margin: 0 0 0.85em;
}

.news-item p:last-child {
  margin-bottom: 0;
}

.news-origin {
  margin-top: 0.2rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.news-note {
  margin: 1.6rem 0 0;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--gray);
}

.news-empty {
  padding: 1.15rem 1.35rem;
  color: var(--gray);
}

@media (min-width: 800px) {
  .news-index h1,
  .news-page h1 {
    font-size: 1.85rem;
  }

  .news-item,
  .news-day-card {
    padding: 1.35rem 1.6rem 1.45rem;
  }

  .news-item h2,
  .news-day-card h2 {
    font-size: 1.2rem;
  }
}


@media (max-width: 520px) {
  .bar {
    padding: 0.65rem 0.85rem;
    flex-wrap: wrap;
    row-gap: 0.25rem;
  }

  .site-nav a {
    padding: 0.35rem 0.48rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 379px) {
  .brand {
    font-size: 0.95rem;
  }

  .site-nav a {
    padding: 0.4rem 0.5rem;
  }

  .cover h1,
  .article-card h1,
  .about-card h1 {
    font-size: 1.38rem;
  }
}

/* —— 표와 입력 칸 (2편부터) —— */
.table-wrap {
  margin: 1.1em 0 1.5em;
  overflow-x: auto;
  border: 1px solid var(--edge);
  border-radius: var(--radius-sm);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  line-height: 1.5;
}

.data-table th,
.data-table td {
  padding: 0.55rem 0.5rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--edge);
}

.data-table th {
  background: var(--cream);
  color: var(--ink-soft);
  font-weight: 800;
  white-space: nowrap;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table td.num {
  font-variant-numeric: tabular-nums;
}

.todo {
  display: inline-block;
  border: 1.5px dashed var(--coral);
  color: var(--coral);
  border-radius: 8px;
  padding: 0.05rem 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
}

@media (max-width: 600px) {
  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    padding: 0.6rem 0.9rem;
    border-bottom: 1px solid var(--edge);
  }

  .data-table tr:last-child {
    border-bottom: none;
  }

  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.18rem 0;
    border: none;
    text-align: right;
  }

  .data-table td::before {
    content: attr(data-label);
    flex: none;
    color: var(--gray);
    font-weight: 700;
    text-align: left;
  }

  .data-table td:first-child {
    display: block;
    text-align: left;
    font-weight: 800;
    font-size: 0.98rem;
  }

  .data-table td:first-child::before {
    content: none;
  }
}

.data-table td .todo {
  white-space: nowrap;
}
