/* ponytail: 폰트 CDN 미검증으로 폴백 사용, 실제 폰트 라이선스 확보 후 교체 */
/* pyeeop-hagwon-cheolgeo 전용 스타일시트 - 다른 페이지와 공유하지 않음 */

:root {
  --color-primary: #2F3E46;
  --color-bg: #F4F6F8;
  --color-accent: #52796F;
  --color-accent-soft: #CAD2C5;
  --color-white: #FFFFFF;
  --color-text: #24303A;
  --color-text-muted: #4A5A63;

  --font-heading: 'Pretendard', 'Noto Sans KR', sans-serif;
  --font-body: 'Pretendard', 'Noto Sans KR', sans-serif;

  /* 타입 스케일 1.250 */
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.5625rem;
  --step-3: 1.953rem;
  --step-4: 2.441rem;

  --radius: 12px;
  --section-pad: 96px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-display: swap;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-display: swap;
  color: var(--color-primary);
  line-height: 1.35;
  margin: 0 0 0.6em;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }

p { margin: 0 0 1em; color: var(--color-text-muted); }

a { color: var(--color-accent); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

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

.section-inner,
.header-inner,
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-primary);
  height: 68px;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-weight: 700;
  font-size: var(--step-1);
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 10px 20px;
  transition: background-color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

.btn-header {
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.9rem;
  padding: 8px 16px;
}

.btn-header:hover { background: #446358; }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn-primary:hover { background: #446358; }

.btn-large {
  font-size: var(--step-1);
  padding: 14px 32px;
}

/* HERO */
.hero {
  background: linear-gradient(180deg, var(--color-primary) 0%, #3C4E58 100%);
  padding: var(--section-pad) 0;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero-text h1 {
  color: var(--color-white);
}

.hero-lead {
  color: #DDE4E2;
  font-size: var(--step-1);
  max-width: 42ch;
}

.hero-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.card-label {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--color-accent-soft);
  padding-bottom: 10px;
}

.card-list li:last-child { border-bottom: none; padding-bottom: 0; }

.card-day {
  font-weight: 700;
  color: var(--color-accent);
  min-width: 44px;
}

.card-desc {
  color: var(--color-text);
  font-size: 0.95rem;
}

/* SECTIONS */
.section { padding: var(--section-pad) 0; }

.section-problem { background: var(--color-bg); }
.section-core { background: var(--color-white); }
.section-diagram { background: var(--color-bg); }
.section-table { background: var(--color-white); }
.section-photos { background: var(--color-bg); }
.section-faq { background: var(--color-white); }

.section-cta {
  background: var(--color-primary);
}

.cta-inner { text-align: center; }
.cta-inner h2 { color: var(--color-white); }
.cta-inner p { color: #DDE4E2; margin-bottom: 24px; }

/* DIAGRAM */
.diagram-figure {
  margin: 24px 0 0;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 16px;
}

.diagram-figure svg { width: 100%; height: auto; }

/* TABLE */
.table-scroll {
  overflow-x: auto;
  margin-top: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--color-accent-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--color-white);
}

caption {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-bg);
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-accent-soft);
  font-size: 0.95rem;
}

thead th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
}

tbody tr:last-child td { border-bottom: none; }

/* PHOTOS */
.photo-row {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
  align-items: center;
}

.photo-item {
  margin: 0;
  max-width: 420px;
  width: 100%;
}

.photo-item picture,
.photo-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

.photo-item figcaption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

details {
  background: var(--color-bg);
  border: 1px solid var(--color-accent-soft);
  border-radius: var(--radius);
  padding: 16px 20px;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-primary);
}

details p {
  margin-top: 12px;
  margin-bottom: 0;
}

/* FOOTER */
.site-footer {
  background: var(--color-primary);
  padding: 48px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 20px;
}

.footer-links a {
  color: #CFE0DA;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover { text-decoration: underline; }

.footer-info {
  color: #A9BAB4;
  font-size: 0.85rem;
  margin: 0;
}

/* BREAKPOINTS */
@media (min-width: 640px) {
  .photo-row { flex-direction: row; justify-content: center; }
}

@media (min-width: 1024px) {
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .hero-text { flex: 1 1 480px; }
  .hero-card { flex: 0 0 360px; }
}

@media (min-width: 1280px) {
  :root { --section-pad: 120px; }
}
