:root {
  color-scheme: light;
  --article-max: 760px;
}

html {
  scroll-behavior: smooth;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 6px;
  background: #2c2416;
  color: #fffdf8;
  padding: 10px 14px;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible {
  outline: 3px solid #b78300;
  outline-offset: 3px;
}

.article-main,
.article-hub {
  width: min(100% - 40px, 1120px);
  margin: 0 auto;
}

.breadcrumbs {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 28px 0 0;
  color: #6d5d45;
  font-size: 0.92rem;
}

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

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: #a06a20;
}

.article-header {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 72px) 0 30px;
}

.article-header h1 {
  margin-top: 8px;
  font-size: clamp(2rem, 5vw, 3.7rem);
  text-wrap: balance;
}

.article-deck {
  margin: 18px 0 0;
  color: #5c4e38;
  font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 18px 0 0;
  color: #7a6b55;
  font-size: 0.9rem;
}

.longform {
  max-width: var(--article-max);
  margin: 0 auto;
  padding: 8px 0 clamp(54px, 8vw, 90px);
}

.longform p {
  margin: 0 0 1.35em;
  color: #493d2d;
  font-family: "Nanum Myeongjo", "Batang", Georgia, serif;
  font-size: clamp(1.04rem, 2vw, 1.16rem);
  line-height: 1.95;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.article-note {
  margin: 30px 0;
  border-left: 4px solid #8b6914;
  border-radius: 6px;
  background: #f5ede0;
  padding: 18px 20px;
}

.article-note strong {
  display: block;
  margin-bottom: 6px;
  color: #2c2416;
}

.article-note p {
  margin: 0;
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.7;
}

.article-note ul {
  margin: 8px 0 0;
  padding-left: 1.2rem;
  color: #493d2d;
}

.article-note li {
  margin: 0.42em 0;
  line-height: 1.75;
}

.article-note a {
  color: #6c4f08;
  font-weight: 800;
  text-underline-offset: 3px;
}

.article-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid #e8dcc8;
}

.article-footer-nav a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8c7aa;
  border-radius: 8px;
  background: #fff;
  padding: 11px 14px;
  color: #2c2416;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.hub-intro {
  max-width: 850px;
  padding: clamp(52px, 8vw, 88px) 0 34px;
}

.hub-intro h1 {
  margin-top: 8px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.hub-intro .lead {
  max-width: 760px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 10px 0 clamp(58px, 8vw, 90px);
}

.article-preview {
  display: flex;
  flex-direction: column;
  border: 1px solid #e8dcc8;
  border-left: 4px solid #8b6914;
  border-radius: 8px;
  background: #fff;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 12px 30px rgba(44, 36, 22, 0.07);
}

.article-preview h2 {
  margin-top: 7px;
  font-size: clamp(1.22rem, 2.5vw, 1.58rem);
}

.article-preview p {
  color: #6d5d45;
}

.article-preview a {
  margin-top: auto;
  color: #6c4f08;
  font-weight: 800;
  text-underline-offset: 4px;
}

@media (max-width: 760px) {
  .article-main,
  .article-hub {
    width: min(100% - 32px, 1120px);
  }

  .article-grid,
  .article-footer-nav {
    grid-template-columns: 1fr;
  }

  .article-header {
    padding-top: 34px;
  }

  .longform p {
    word-break: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
