/*
 * pledgeyoon 기본 스타일 — 디자인 '벽과 캡션'(2026-10-29), 모바일 우선, 빌드 단계 없음.
 * 인터페이스 색은 벽·좌대·먹 세 톤과 회색 하나뿐이고, 색채는 작품 사진이 맡는다.
 * 글자 대비(벽 기준): 먹 13.41:1, 스톤 6.25:1 — 스톤은 14px 이상에만 쓴다.
 * CSS 안에서 url()은 쓰지 않는다(웹폰트는 base.html의 Google Fonts link).
 */
:root {
  --color-bg: #F6F3ED;          /* 벽: 페이지 배경 */
  --color-plinth: #ECE7DF;      /* 좌대: 사진 박스, footer, 안내 타일 */
  --color-field: #FFFDF9;       /* 입력칸 */
  --color-text: #2A2724;        /* 먹: 본문·제목·주 버튼 */
  --color-text-hover: #45403A;
  --color-text-active: #1F1C1A;
  --color-on-ink: #F6F3ED;
  --color-muted: #5F5951;       /* 스톤: 보조 텍스트(14px 이상) */
  --color-line: #DCD6CC;        /* 장식용 1px 선 */
  --color-line-strong: #827B71; /* 입력 테두리(비텍스트 3:1 이상) */
  --color-error: #9E3A2B;
  --font-sans: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-serif: "EB Garamond", Georgia, serif;  /* 영문 고정 문구 전용 — 한글에는 쓰지 않는다 */
  --gutter: 20px;
  --container: 1280px;
  --header-h: 56px;
}
@media (min-width: 600px) { :root { --gutter: 32px; --header-h: 64px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --header-h: 72px; } }

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

html { color-scheme: light; scroll-padding-top: calc(var(--header-h) + 16px); }
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.25em; }
:focus-visible { outline: 2px solid var(--color-text); outline-offset: 3px; }

.wordmark, .display { font-family: var(--font-serif); font-synthesis: none; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 30; }
.skip-link:focus { left: var(--gutter); top: 8px; padding: 8px 16px; background: var(--color-bg); }

/* 헤더: 모바일은 워드마크 + '메뉴', 1024px부터 메뉴를 펼친다 */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--color-bg); border-bottom: 1px solid var(--color-line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; font-weight: 500; letter-spacing: 0.14em; line-height: 1; text-decoration: none; white-space: nowrap; }
.site-nav { display: none; }
.site-nav ul { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 500; letter-spacing: 0.02em; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 8px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.header-utils { display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: inherit; font: inherit; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; }

@media (max-width: 359px) { .wordmark { font-size: 16px; letter-spacing: 0.08em; } }
@media (min-width: 1024px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; }
  .site-header .wordmark { font-size: 20px; justify-self: start; }
  .site-nav { display: block; }
  .menu-toggle { display: none; }
}
@media (min-width: 1280px) { .site-nav ul { gap: 40px; } }

/* 모바일 메뉴(site.js가 만드는 dialog) */
.menu-dialog { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--color-bg); color: var(--color-text); }
.menu-dialog::backdrop { background: var(--color-bg); }
.menu-dialog-head { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding-inline: var(--gutter); border-bottom: 1px solid var(--color-line); }
.menu-dialog ul { margin: 24px 0 0; padding: 0 var(--gutter); list-style: none; }
.menu-dialog li { border-bottom: 1px solid var(--color-line); }
.menu-dialog li a { display: flex; align-items: center; min-height: 64px; font-family: var(--font-serif); font-size: 32px; line-height: 1.2; text-decoration: none; }
.menu-dialog li a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* 본문 */
main { min-height: 60vh; padding-block: 24px 96px; }
h1 { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }
.display { font-size: 34px; font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }
.page-head { display: flex; align-items: flex-end; min-height: 56px; padding-bottom: 8px; border-bottom: 1px solid var(--color-line); }
.lead { margin: 24px 0 0; max-width: 640px; font-size: 17px; line-height: 1.8; }
.intro { padding-top: 48px; }
.intro .display { font-size: 40px; letter-spacing: 0.04em; }

@media (min-width: 1024px) {
  main { padding-block: 32px 128px; }
  h1 { font-size: 28px; }
  .display { font-size: 48px; }
  .lead { font-size: 18px; }
  .intro { padding-top: 96px; }
  .intro .display { font-size: 64px; }
}

/* footer: 좌대색 띠 */
.site-footer { padding-block: 56px 32px; background: var(--color-plinth); }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .wordmark { min-height: 0; }
.footer-heading { display: block; padding-bottom: 4px; font-size: 14px; font-weight: 500; color: var(--color-muted); }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links a { display: flex; align-items: center; min-height: 44px; font-size: 16px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.business-info { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--color-line); font-size: 14px; line-height: 1.7; color: var(--color-muted); }
.business-info p { margin: 0; }

@media (min-width: 1024px) {
  .site-footer { padding-block: 80px 40px; }
  .footer-grid { grid-template-columns: 4fr 2fr 3fr 3fr; gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-brand .wordmark { font-size: 20px; }
  .footer-links a { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
}
