/* D3 블로그 — 로펌SOS(/docker/mso/www) 토큰·헤더·히어로 문법 */

:root {
  --forest: #142923;
  --forest2: #1d3730;
  --lime: #d5f47a;
  --paper: #fbfbf7;
  --sand: #f0f2ea;
  --ink: #192c25;
  --muted: #6c766f;
  --line: #dce1d7;
  --serif: Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  letter-spacing: -0.045em;
  line-height: 1.65;
  word-break: keep-all;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--lime);
  color: var(--forest);
}

.d3-wrap {
  width: min(1240px, calc(100% - 96px));
  margin-inline: auto;
}

.screen-reader-text,
.d3-skip {
  position: absolute;
  left: -9999px;
}

.d3-skip:focus {
  left: 16px;
  top: 12px;
  z-index: 80;
  background: var(--lime);
  color: var(--forest);
  padding: 10px 18px;
}

/* Header */

.d3-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 68px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.d3-header__in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.d3-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
}

.d3-brand__mark {
  position: relative;
  width: 38px;
  height: 42px;
  padding-left: 4px;
  border-left: 2px solid var(--forest);
  font: 38px/1 var(--serif);
}

.d3-brand__mark > span {
  position: absolute;
  top: -3px;
  right: -2px;
  font: 23px/1 var(--serif);
}

.d3-brand strong {
  display: block;
  font-size: 19px;
  letter-spacing: -0.06em;
  line-height: 1.35;
}

.d3-brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.025em;
  color: var(--muted);
}

.d3-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 600;
}

.d3-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.d3-nav__list a:hover,
.d3-nav__list .current-menu-item a {
  opacity: 0.62;
}

.d3-nav__cta {
  padding: 11px 19px;
  border: 1px solid var(--forest);
  border-radius: 3px;
}

.d3-nav__cta span {
  margin-left: 12px;
}

.d3-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: none;
}

.d3-nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--forest);
}

.d3-search {
  display: flex;
  border: 1px solid var(--line);
  background: #fff;
}

.d3-search input {
  width: 132px;
  border: 0;
  padding: 8px 10px;
  background: transparent;
}

.d3-search button {
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--forest);
  color: var(--paper);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}

/* Buttons */

.d3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 21px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

.d3-btn--lime {
  background: var(--lime);
  color: var(--forest);
}

.d3-btn--lime:hover {
  background: #e3ffa0;
}

/* Hero */

.d3-hero {
  background: #0b1813;
  color: #eef2ea;
}

.d3-hero__img {
  display: block;
  width: 100%;
  height: auto;
}

.d3-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 22px 0 28px;
}

.d3-hero__link {
  font-size: 14px;
  font-weight: 700;
  border-bottom: 1px solid #eef2ea66;
  padding-bottom: 2px;
}

.d3-hero__link:hover {
  color: var(--lime);
}

/* Stories */

.d3-stories {
  padding: 88px 0;
  background: var(--sand);
  border-block: 1px solid #e1e6d9;
}

.d3-stories--alone {
  border-block: 0;
}

.d3-stories__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 40px;
}

.d3-stories__head h1,
.d3-stories__head h2 {
  font-size: 37px;
  font-weight: 600;
  letter-spacing: -0.06em;
}

.d3-stories__head p {
  max-width: 360px;
  font-size: 14px;
  line-height: 1.8;
  color: #56645b;
}

.d3-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.d3-insight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 22px;
  border-top: 1px solid #bac6ac;
}

.d3-insight__meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #728463;
}

.d3-insight h3 {
  margin: 22px 0 28px;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.04em;
}

.d3-insight:hover h3 {
  color: #6f843f;
}

.d3-insight__go {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  color: #5a6d47;
}

.d3-empty {
  color: var(--muted);
}

.page-numbers {
  display: flex;
  gap: 10px;
  margin-top: 40px;
}

.page-numbers a,
.page-numbers span {
  color: var(--ink);
}

/* Band */

.d3-band {
  background: var(--forest);
  color: #fff;
  padding: 88px 0;
}

.d3-band__in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
}

.d3-band h2 {
  font-size: 35px;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.055em;
}

.d3-band h2 em {
  font-style: normal;
  color: var(--lime);
}

.d3-band p {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.9;
  color: #adbfae;
}

.d3-band__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
}

/* Article */

.d3-read {
  padding: 72px 0 96px;
}

.d3-read__in {
  max-width: 760px;
}

.d3-article h1 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.055em;
}

.d3-meta {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #728463;
}

.d3-article__hero {
  display: block;
  width: 100%;
  margin: 28px 0;
}

.d3-prose {
  max-width: 68ch;
  margin-top: 28px;
}

.d3-prose p,
.d3-prose li {
  font-size: 16px;
  line-height: 1.9;
}

.d3-prose p + p {
  margin-top: 1.1em;
}

.d3-prose h2 {
  margin-top: 2em;
  letter-spacing: -0.04em;
}

.d3-prose a {
  color: #4d6a32;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.d3-ad {
  margin: 20px 0;
  padding: 12px;
  border: 1px dashed #b4c0a5;
  background: var(--sand);
}

.d3-ad__label {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #728463;
}

/* Footer */

.d3-footer {
  background: #10221c;
  color: #8da18d;
  padding: 27px 0;
}

.d3-footer__in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.d3-footer strong {
  margin-right: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #c3cdc0;
}

.d3-footer__nav {
  display: flex;
  gap: 16px;
  font-size: 12px;
}

.d3-footer span {
  font-size: 11px;
}

/* Tablet */

@media (max-width: 1150px) {
  .d3-wrap {
    width: calc(100% - 64px);
  }

  .d3-nav {
    gap: 18px;
    font-size: 12px;
  }

  .d3-insights {
    gap: 24px;
  }

  .d3-band__in {
    gap: 36px;
  }
}

/* Mobile */

@media (max-width: 850px) {
  .d3-wrap {
    width: calc(100% - 48px);
  }

  .d3-header {
    height: 60px;
  }

  .d3-brand strong {
    font-size: 17px;
  }

  .d3-nav-toggle {
    display: flex;
  }

  .d3-nav {
    display: none;
    position: absolute;
    top: 59px;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 24px 25px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 15px 20px #14292312;
    font-size: 14px;
  }

  .d3-nav.is-open {
    display: flex;
  }

  .d3-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .d3-nav__list a,
  .d3-nav .d3-search,
  .d3-nav__cta {
    padding: 13px 0;
  }

  .d3-nav__cta {
    margin-top: 8px;
    text-align: center;
  }

  .d3-search input {
    width: 100%;
  }

  .d3-band__in,
  .d3-stories__head,
  .d3-insights {
    grid-template-columns: 1fr;
    display: grid;
  }

  .d3-hero__actions {
    padding: 18px 0 22px;
    gap: 16px;
  }

  .d3-stories,
  .d3-band,
  .d3-read {
    padding: 56px 0;
  }

  .d3-stories__head h1,
  .d3-stories__head h2,
  .d3-band h2 {
    font-size: 30px;
  }

  .d3-footer__in {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .d3-wrap {
    width: calc(100% - 40px);
  }

  .d3-insight h3 {
    font-size: 20px;
    margin: 16px 0 18px;
  }
}

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