/* Hanokh, Inc. 회사 사이트의 반응형 시각 스타일 */

/*
 * 색상은 RhemaOne 제품 사이트와 같은 색상환(H≈1°)에서 파생해 형제 브랜드로 읽히게 하되,
 * 텍스트용과 채움용을 분리한다. 브랜드 레드(#e94945)는 흰 배경에서 3.62:1이라
 * 본문 링크로 쓰면 WCAG AA(4.5:1)에 미달하므로, 텍스트에는 명도를 낮춘 --brand-text를 쓴다.
 */
:root {
  color-scheme: light;

  --paper: #faf9f6;
  --paper-raised: #ffffff;
  --ink: #14211d;
  --ink-soft: #3d4a45;
  --muted: #5c6660;
  --line: #e3e2db;
  --line-strong: #d2d1c8;

  --brand: #e94945;
  --brand-text: #cd1d18;
  --brand-on-dark: #f08784;
  --brand-wash: #fdeceb;

  --dark: #14211d;
  --dark-raised: #1c2c27;
  --on-dark: #eef1ee;
  --on-dark-muted: #a9b3ad;
  --line-dark: #2f403a;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;

  --gutter: clamp(20px, 5vw, 72px);
  --shell: 1180px;
  --band-y: clamp(72px, 9vw, 132px);
}

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

html {
  scroll-behavior: smooth;
  /* sticky 마스트헤드 높이만큼 여유를 둬 앵커 이동 시 제목이 가리지 않게 한다 */
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--brand-text);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  padding: 16px var(--gutter);
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1;
  padding-bottom: 2px;
}

.wordmark-suffix {
  color: var(--muted);
  font-weight: 400;
}

.masthead-nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 14px;
  font-weight: 500;
}

/* 터치 타깃을 44px 권장치에 맞춘다 */
.masthead-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}

.masthead-nav a:hover {
  color: var(--brand-text);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 116px) var(--gutter) clamp(40px, 5vw, 64px);
}

.kicker {
  margin-bottom: 28px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(46px, 7.4vw, 96px);
  line-height: 1.02;
}

.hero h1 em {
  display: block;
  color: var(--brand-text);
  font-style: italic;
}

.lede {
  max-width: 62ch;
  margin-top: 28px;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.6;
}

.lede strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: #22332d;
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--paper-raised);
}

.btn-arrow {
  transition: transform 0.15s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(3px);
}

/* ---------- Hero demo (제품 동작 요약) ---------- */

.hero-demo {
  margin: 0;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper-raised);
}

.hero-demo figcaption {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-row {
  padding: 14px 16px;
  border-radius: 10px;
  background: #f4f3ee;
}

.demo-row-out {
  background: var(--brand-wash);
}

.demo-tag {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-row-out .demo-tag {
  color: var(--brand-text);
}

.demo-row p {
  font-size: 15.5px;
  line-height: 1.45;
}

.demo-arrow {
  padding: 7px 0;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}

/* ---------- Facts strip (심사자가 찾는 정보) ---------- */

.facts {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(56px, 7vw, 88px);
}

.facts dl {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.fact {
  padding: 20px 22px;
  background: var(--paper-raised);
}

.fact dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fact dd {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.fact a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--brand-text);
  text-decoration: none;
}

.fact a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Bands ---------- */

.band {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--band-y) var(--gutter);
  border-top: 1px solid var(--line);
}

.band-head {
  margin-bottom: clamp(32px, 4vw, 52px);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.band h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.08;
}

.band-lede {
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: clamp(17px, 1.3vw, 19px);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 64px);
}

.principles h3 {
  margin-bottom: 10px;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  font-size: 21px;
}

.principles p {
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- Dark band (products) ---------- */

.band-dark {
  max-width: none;
  border-top: none;
  background: var(--dark);
  color: var(--on-dark);
}

.band-dark > * {
  max-width: var(--shell);
  margin-inline: auto;
}

.band-dark .eyebrow {
  color: var(--on-dark-muted);
}

.band-dark .band-body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.product h3 {
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1;
}

.pill {
  padding: 5px 11px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--on-dark-muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-lede {
  margin-bottom: 20px;
  color: var(--brand-on-dark);
  font-size: clamp(18px, 1.5vw, 21px);
}

.product-body {
  max-width: 58ch;
  color: var(--on-dark-muted);
  font-size: 16.5px;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.product-list li {
  padding: 11px 0 11px 20px;
  border-bottom: 1px solid var(--line-dark);
  font-size: 15.5px;
  position: relative;
}

.product-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--brand);
}

.link-out {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  margin-top: 20px;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  color: var(--brand-on-dark);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.link-out:hover {
  color: var(--on-dark);
}

.companion {
  padding: clamp(26px, 3vw, 36px);
  border-radius: 14px;
  background: var(--dark-raised);
  border: 1px solid var(--line-dark);
}

.eyebrow-accent {
  color: var(--brand-on-dark) !important;
}

.companion h3 {
  margin-bottom: 14px;
  font-size: clamp(28px, 2.8vw, 36px);
  line-height: 1.05;
}

.companion > p {
  color: var(--on-dark-muted);
  font-size: 16px;
}

.companion-facts {
  margin: 26px 0 0;
}

.companion-facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 14.5px;
}

.companion-facts dt {
  color: var(--on-dark-muted);
}

.companion-facts dd {
  margin: 0;
  font-weight: 500;
}

/* ---------- Contact ---------- */

.contact-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.contact-body p {
  max-width: 46ch;
  color: var(--ink-soft);
}

.contact-email {
  color: var(--brand-text);
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 44px);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  overflow-wrap: anywhere;
}

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

/* ---------- Footer ---------- */

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 40px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px var(--gutter) 56px;
  border-top: 1px solid var(--line);
}

.footer-name {
  font-weight: 600;
}

.footer-meta {
  color: var(--muted);
  font-size: 14.5px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  font-size: 14.5px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--brand-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .facts dl {
    grid-template-columns: repeat(2, 1fr);
  }

  .principles,
  .band-dark .band-body {
    grid-template-columns: 1fr;
  }

  .contact-body {
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .masthead {
    padding: 12px var(--gutter);
  }

  /* 모바일에서도 내비게이션 항목을 숨기지 않는다 — 회사 정보 접근 경로이므로 */
  .masthead-nav {
    gap: 16px;
    font-size: 13.5px;
  }

  .wordmark {
    font-size: 17px;
  }

  .wordmark-suffix {
    display: none;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .facts dl {
    grid-template-columns: 1fr;
  }

  .product-list {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
