/*
Theme Name: Ink & Balance
Theme URI: https://inkandbalance.kr/
Author: Ink & Balance
Description: Ink & Balance: Pen & Ink 공식 소개, 지원, 개인정보처리방침 사이트용 테마.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: ink-balance
*/

:root {
  color-scheme: light;
  --ink: #212b36;
  --paper: #f7f2e8;
  --card: #fefcf9;
  --gold: #bd7821;
  --gold-soft: #d9bd7b;
  --burgundy: #6b212b;
  --muted: #6e6b63;
  --line: rgba(71, 53, 24, 0.18);
  --shadow: 0 18px 60px rgba(42, 30, 12, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(217, 189, 123, 0.22), transparent 30rem),
    linear-gradient(180deg, #fffdf8 0%, var(--paper) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

a { color: var(--burgundy); }
a:hover { color: #541321; }

.shell {
  width: min(70rem, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}

.brand-link { display: inline-flex; align-items: center; text-decoration: none; }
.brand-link img { display: block; width: min(18rem, 48vw); height: auto; }

nav { display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: flex-end; }
nav a { color: var(--ink); font-size: 0.94rem; font-weight: 650; text-decoration: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  padding: clamp(3.5rem, 10vw, 8rem) 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--burgundy);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", "Noto Serif KR", serif;
  line-height: 1.2;
}

h1 { margin-bottom: 1.2rem; font-size: clamp(2.5rem, 7vw, 5rem); letter-spacing: -0.045em; }
h2 { margin-bottom: 0.9rem; font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { margin-bottom: 0.35rem; font-size: 1.15rem; }

.lede { max-width: 42rem; color: #45413a; font-size: clamp(1.05rem, 2vw, 1.25rem); }

.actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 2rem; }
.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--burgundy);
  border-radius: 999px;
  color: white;
  background: var(--burgundy);
  font-weight: 750;
  text-decoration: none;
}
.button.secondary { color: var(--burgundy); background: transparent; }

.app-mark {
  width: min(22rem, 80vw);
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 25%;
  box-shadow: var(--shadow);
}

.section { padding: clamp(2.5rem, 7vw, 5rem) 0; border-top: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 32px rgba(58, 41, 14, 0.06);
}
.card p { margin: 0; color: var(--muted); }

.contact-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.5rem, 5vw, 2.7rem);
  border: 1px solid rgba(184, 134, 45, 0.35);
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(242,234,219,0.76));
  box-shadow: var(--shadow);
}

.document { max-width: 52rem; padding: clamp(2.5rem, 7vw, 5rem) 0; }
.document section { margin-top: 2.6rem; }
.document p, .document li { color: #393630; }
.document .meta { color: var(--muted); }
.language-divider { margin: 4rem 0; border: 0; border-top: 1px solid var(--line); }

footer { padding: 2rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.footer-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  nav { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .app-mark { width: min(16rem, 70vw); }
  .grid { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
}

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