/* Same surfaces as PicZero. The official site is not a separate visual system. */
:root {
  color-scheme: light;
  --bg: #f4f5f6;
  --panel: #ffffff;
  --panel-2: #fafbfb;
  --line: #e4e7e9;
  --line-strong: #d3d8db;
  --text: #17191b;
  --text-2: #5c6469;
  --text-3: #6b7278;
  --accent: #007bff;
  --accent-dark: #0063cc;
  --accent-soft: #e6f2ff;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(18, 24, 28, 0.06), 0 1px 8px rgba(18, 24, 28, 0.04);
  --menu-shadow: 0 10px 28px rgba(18, 24, 28, 0.16);
  --raised: #ffffff;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Hiragino Sans", "Noto Sans JP", "Noto Sans KR", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #141719;
    --panel: #1b1f22;
    --panel-2: #171b1e;
    --line: #2a3034;
    --line-strong: #3b4349;
    --text: #e7eaec;
    --text-2: #a4aeb6;
    --text-3: #8a949c;
    --accent-dark: color-mix(in srgb, var(--accent) 62%, #ffffff);
    --accent-soft: color-mix(in srgb, var(--accent) 22%, var(--panel));
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 1px 8px rgba(0, 0, 0, 0.24);
    --menu-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    --raised: #23282c;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.page { width: min(1080px, calc(100% - 48px)); margin: 0 auto; padding: 8px 0 64px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: 8px;
  font-weight: 680;
  font-size: 15px;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}
.nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav > a {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 550;
}
.nav > a:hover { background: var(--panel-2); color: var(--text); }
.nav > a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--raised);
  color: var(--text);
  padding: 7px 13px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
}
.btn:hover { background: var(--panel-2); border-color: var(--text-3); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.lg { padding: 10px 18px; font-size: 14px; border-radius: 7px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--panel-2); color: var(--text); }

.lang-menu { position: relative; margin-left: auto; }
.lang-menu summary {
  list-style: none;
  cursor: pointer;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary .btn::after { content: ""; }
.lang-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  width: 220px;
  max-height: 360px;
  overflow: auto;
  padding: 6px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--menu-shadow);
}
.lang-pop a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
}
.lang-pop a:hover { background: var(--panel-2); }
.lang-pop a[aria-current="true"] { color: var(--accent); background: var(--accent-soft); font-weight: 650; }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.9fr);
  gap: 56px;
  align-items: center;
  padding: 36px 0 12px;
  background: none;
  border: 0;
  box-shadow: none;
  color: var(--text);
}
.home-hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 0;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 650;
}
.home-hero h1 {
  margin: 14px 0 10px;
  font-size: 44px;
  line-height: 1.12;
  font-weight: 680;
  letter-spacing: -0.03em;
  color: var(--text);
}
.hero-lede { margin: 0; max-width: 34rem; color: var(--text-2); font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.home-hero .btn.hero-ghost {
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--text);
}
.home-hero .btn.hero-ghost:hover { border-color: var(--text-3); background: var(--panel-2); }
.hero-shot {
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 0;
  background: var(--panel);
  box-shadow: 0 24px 60px rgba(23, 25, 27, 0.12);
}
.hero-shot img { width: 100%; height: 360px; min-height: 0; object-fit: cover; }

.section { margin-top: 40px; }
.section h2 { margin: 0 0 14px; font-size: 18px; font-weight: 680; letter-spacing: -0.02em; }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card:hover { border-color: var(--line-strong); }
.card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card div { padding: 16px 18px 18px; }
.card h3 { margin: 8px 0 6px; font-size: 18px; font-weight: 680; letter-spacing: -0.02em; }
.card p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
}

.list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.row:first-child { border-top: 0; }
.row:hover { background: var(--panel-2); }
.row img { width: 112px; height: 76px; object-fit: cover; border-radius: 10px; }
.row h3 { margin: 2px 0 4px; font-size: 15px; font-weight: 650; }
.row p { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.meta { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }

.page.doc,
.page.article {
  width: min(720px, calc(100% - 40px));
}
.page-head { padding: 28px 0 0; width: 100%; }
.page-head h1 { margin: 8px 0 10px; font-size: 36px; line-height: 1.2; font-weight: 680; letter-spacing: -0.03em; }
.lede { margin: 0; color: var(--text-2); font-size: 17px; line-height: 1.65; }
.kicker { margin: 0; color: var(--accent); font-size: 12px; font-weight: 700; }
.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 12px;
  color: var(--text-3);
  font-size: 13px;
}
.crumb a { color: var(--text-2); }
.crumb [aria-current='page'] { color: var(--text-3); }
.figure { margin: 22px 0 0; width: 100%; border-radius: 16px; overflow: hidden; border: 0; box-shadow: var(--shadow); }
.figure img { width: 100%; height: auto; max-height: 320px; object-fit: cover; aspect-ratio: 16 / 9; }
.article-cta { margin: 16px 0 0; }

.panel {
  margin-top: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.panel h2 { margin: 0 0 8px; font-size: 16px; }
.prose { width: 100%; margin-top: 8px; }
.prose p { margin: 0 0 14px; font-size: 17px; line-height: 1.75; }
.prose a { color: var(--accent-dark); }
.prose h2 { margin: 32px 0 8px; font-size: 22px; letter-spacing: -0.02em; font-weight: 680; }
.prose h3 { margin: 22px 0 6px; font-size: 17px; font-weight: 650; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 1.25em; }
.prose li { margin: 6px 0; line-height: 1.65; }
.prose strong { font-weight: 650; }
.steps { margin: 0; padding-left: 1.25em; }
.steps li { margin: 8px 0; line-height: 1.6; }
.article .section { margin-top: 28px; }
.section h2 { margin: 0 0 10px; font-size: 22px; letter-spacing: -0.02em; font-weight: 680; }
.faq p { font-size: 16px; line-height: 1.7; }
.related { margin-top: 36px; }
.related h2 { margin: 0 0 8px; font-size: 18px; }
.answer {
  width: 100%;
  margin: 18px 0 0;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-radius: 12px;
}
.answer strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.answer p { margin: 0; color: var(--text-2); }

.faq {
  width: 100%;
  margin-top: 28px;
  padding: 4px 0 0;
}
.page:not(.article):not(.doc) .faq,
.page.doc .faq {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
}
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 15px; }
.faq p { margin: 8px 0 0; color: var(--text-2); }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12.5px;
}
.site-footer .header-inner { min-height: 52px; justify-content: space-between; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 800px) {
  .home-hero, .cards { grid-template-columns: 1fr; gap: 22px; }
  .home-hero { padding-top: 20px; }
  .header-inner { flex-wrap: wrap; padding: 8px 0; }
  .nav { order: 3; width: 100%; overflow-x: auto; }
  .home-hero h1, .page-head h1 { font-size: 30px; }
  .hero-shot img { height: 220px; }
  .row { grid-template-columns: 84px 1fr; }
  .row img { width: 84px; height: 60px; }
}
