/* 백년극장 앱 색 — NODO 디자인 토큰(nodo-tokens.css) 바로 뒤에 읽는다. 앱의 색은 이 파일 한 곳에만 적는다.
   - 강조색은 극장 커튼 붉은색(#9e2b25), 바탕은 따뜻한 종이색(#fbf8f3) 그대로다. 화면 CSS(styles.css)는 꾸러미 이름(--bg · --text · --ink · --accent …)만 쓴다.
   - 꾸러미는 light-dark() 와 @scope 로 색을 고른다. 시니어 회원의 옛 iPhone(iOS 17.5 미만)에서도 칠해지도록 여기서는 light-dark() 를 쓰지 않고,
     밝은 화면 · 어두운 화면(html[data-theme='dark'], js/theme.js 가 단다)에 같은 이름을 평범한 값으로 따로 적는다.
   - 대비(WCAG): 강조 글자 #9e2b25/바탕 7.0:1 · #f2958c/어두운 바탕 8.5:1, 주 버튼 흰 글자/#9e2b25 7.4:1 · /#b8392f 5.7:1. 표는 DESIGN.md. */

/* 밝은 화면(기본) */
:root, :root[data-theme='light'] {
  color-scheme: light;
  --color-background-body: #fbf8f3;
  --color-background-card: #ffffff;
  --color-background-muted: #f2ece3;
  --color-border: #e6ddd1;
  --color-border-emphasized: #867767;
  --color-text-primary: #1c1917;
  --color-text-secondary: #5f564d;
  --color-text-accent: #9e2b25;
  --color-icon-accent: #9e2b25;
  --color-accent: #9e2b25;
  --color-on-accent: #ffffff;
  --color-text-success: #1d7343;
  --color-success-muted: #e6f2ea;
  --color-success: #1d7343;
  --color-on-success: #ffffff;
  --color-text-warning: #8a4f00;
  --color-warning-muted: #fff4e5;
  --color-border-warning: #e8a54b;
  --color-text-error: #b3261e;
  --color-error-muted: #fde9e7;
  --color-border-error: #b3261e;
  --color-error: #b3261e;
  --color-on-error: #ffffff;
  --color-overlay: rgb(28 22 18 / .72);
  --shadow-2: 0 4px 6px rgb(28 22 18 / .08), 0 12px 28px rgb(28 22 18 / .16);
}

/* 어두운 화면: 위와 같은 이름을 모두 다시 적는다 */
:root[data-theme='dark'] {
  color-scheme: dark;
  --color-background-body: #14110f;
  --color-background-card: #1f1b18;
  --color-background-muted: #2b2622;
  --color-border: #3a332d;
  --color-border-emphasized: #8a7c6f;
  --color-text-primary: #faf7f4;
  --color-text-secondary: #c9bdb1;
  --color-text-accent: #f2958c;
  --color-icon-accent: #f2958c;
  --color-accent: #b8392f;
  --color-on-accent: #ffffff;
  --color-text-success: #3fae6c;
  --color-success-muted: #17291e;
  --color-success: #3fae6c;
  --color-on-success: #14110f;
  --color-text-warning: #e0a24a;
  --color-warning-muted: #3a2a12;
  --color-border-warning: #a8762e;
  --color-text-error: #ef7166;
  --color-error-muted: #3a1a17;
  --color-border-error: #ef7166;
  --color-error: #b3261e;
  --color-on-error: #ffffff;
  --color-overlay: rgb(0 0 0 / .72);
  --shadow-2: 0 4px 6px rgb(0 0 0 / .5), 0 12px 28px rgb(0 0 0 / .6);
}

/* 두 화면에서 같은 것: 사진 위에 얹는 글자·칩, 앱 고유 이름, 소셜 로그인 버튼(각 회사 지침 색) */
:root {
  /* 꾸러미의 --like 는 빨강(오류색)이다. 백년극장의 「마음에 들어요」는 초록이라 성공색으로 잇는다. */
  --like: var(--color-success);
  --on-like: var(--color-on-success);
  /* 사진 위(카드 · 작은 사진 · 대화 사진): 화면 모드와 상관없이 어두운 사진 위 흰 글자. color-mix() 대신 평범한 값(옛 iOS) */
  --photo-ink: #ffffff;
  --photo-chip: rgb(255 250 244 / .94);
  --photo-chip-ink: #1c1917;
  --photo-dim: rgb(255 255 255 / .45);
  --photo-shade: rgb(20 14 12 / .62);
  --photo-scrim: rgb(0 0 0 / .8);
  --photo-bg: #2a2320;
  --kakao: #fee500; --on-kakao: #191919;
  --naver: #03c75a; --on-naver: #ffffff;
  --google: #ffffff; --on-google: #1f1f1f; --google-line: #747775;
  --apple: #000000; --on-apple: #ffffff;
  --line-brand: #06c755; --on-line-brand: #ffffff;
}

/* @scope 를 모르는 옛 브라우저(iOS 17.4 미만)용 바탕값. 꾸러미의 @scope 값은 뒤 층(astryx-theme)에 있어서, 읽히는 브라우저에서는 그쪽이 이긴다. */
@layer astryx-base {
  :root {
    --font-family-body: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
    --radius-inner: 0.375rem;
    --radius-element: 0.625rem;
    --radius-container: 0.75rem;
    --radius-full: 9999px;
  }
}
