/* Miniora 공개 사이트 공용 스타일. 외부 글꼴·이미지·스크립트 없이 시스템 글꼴만 쓴다 */
:root {
  color-scheme: light dark;
  --bg: #f4f1ea;
  --paper: #fffefa;
  --ink: #1f2a30;
  --muted: #55646c;
  --line: #cfd5d3;
  --accent: #0f5c68;
  --accent-ink: #ffffff;
  --focus: #0f5c68;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12191d;
    --paper: #1a2429;
    --ink: #e6edee;
    --muted: #aebdc4;
    --line: #3c4d54;
    --accent: #8fd3dc;
    --accent-ink: #0b2a30;
    --focus: #8fd3dc;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.75 var(--font);
  overflow-wrap: anywhere;
}
html[lang="ko"] body { word-break: keep-all; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; height: auto; }

.skip { position: absolute; left: -10000px; top: 0; }
.skip:focus { position: fixed; left: 12px; top: 12px; z-index: 10; padding: 10px 14px; background: var(--paper); border-radius: 8px; }

/* 머리 */
.site-header { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.bar { max-width: 1040px; margin: auto; padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; }
.brand { font-weight: 750; font-size: 1.15rem; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .92rem; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: 6px 2px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; }

/* 법적 문서 */
main.doc { max-width: 920px; margin: 28px auto 56px; padding: 32px 28px 48px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
main.doc h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.35; letter-spacing: -.03em; margin: .2em 0 .8em; }
main.doc h2 { font-size: 1.3rem; line-height: 1.45; margin-top: 2.4em; padding-top: .7em; border-top: 1px solid var(--line); }
main.doc h3 { font-size: 1.08rem; line-height: 1.5; margin-top: 2em; }
main.doc p { margin: 1em 0; }
main.doc li { margin: .5em 0; }
main.doc ul { padding-left: 1.3em; }
code { font-size: .88em; background: color-mix(in srgb, var(--line) 30%, transparent); padding: .1em .3em; border-radius: 4px; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 1.3em 0; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.65; min-width: 520px; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: color-mix(in srgb, var(--line) 28%, var(--paper)); font-weight: 650; }
tr:last-child td { border-bottom: 0; }
.note { background: color-mix(in srgb, #e0a800 22%, transparent); outline: 1px dashed #b88a00; }

/* 소개 페이지 */
.wrap { max-width: 1040px; margin: auto; padding: 0 24px; }
.hero { padding: 48px 0 40px; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 100%); color: var(--hero-ink); transition: background .6s ease; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); line-height: 1.2; letter-spacing: -.035em; margin: .1em 0 .5em; }
.hero .eyebrow { font-size: .88rem; letter-spacing: .08em; opacity: .85; margin: 0; }
.hero .lead { list-style: none; padding: 0; margin: 0 0 1.4em; font-size: 1.12rem; line-height: 1.75; }
.hero .lead li { margin: .3em 0; }
.hero .fine { font-size: .85rem; opacity: .85; margin: 1em 0 0; }
.hero a { color: inherit; }
.hero a.btn { color: var(--btn-ink); }
.btn { display: inline-block; padding: 13px 24px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); font-weight: 700; text-decoration: none; border: 2px solid var(--btn-bg); }
.btn:hover { filter: brightness(1.08); }
.btn:focus-visible { outline: 3px solid var(--hero-ink); outline-offset: 3px; }

/* 시간대 장면(CSS 변수로 하늘·해·받침을 바꿈) */
.hero { --sky-top: #cfe6ee; --sky-bottom: #f1e6cf; --hero-ink: #12303a; --btn-bg: #12303a; --btn-ink: #fff; --sun: #f6c85f; --sun-x: 300; --sun-y: 118; --plate: #d9d2c0; --plate-side: #b8b09a; --stone: #efe7d2; --stone-shade: #cfc6ad; --glow: .35; --win: #f3d98a; --win-op: 0; }
.hero:has(#t-noon:checked) { --sky-top: #7fc0e8; --sky-bottom: #e6f3fa; --hero-ink: #0c2a3a; --btn-bg: #0c2a3a; --sun: #fff3b0; --sun-x: 210; --sun-y: 44; --glow: .5; }
.hero:has(#t-sunset:checked) { --sky-top: #5a4a8a; --sky-bottom: #f0a272; --hero-ink: #fff7ee; --btn-bg: #fff7ee; --btn-ink: #3a2a55; --sun: #ffd08a; --sun-x: 84; --sun-y: 138; --plate: #8a6f66; --plate-side: #6a5350; --stone: #f1c9a0; --stone-shade: #b98a72; --glow: .7; --win-op: .5; }
.hero:has(#t-night:checked) { --sky-top: #0d1630; --sky-bottom: #2b3f6b; --hero-ink: #eaf1ff; --btn-bg: #eaf1ff; --btn-ink: #0d1630; --sun: #f4f1d0; --sun-x: 318; --sun-y: 52; --plate: #2d3b57; --plate-side: #1f2a40; --stone: #8d9bb8; --stone-shade: #5d6b88; --glow: .25; --win-op: 1; }
.scene { width: 100%; max-width: 440px; justify-self: center; }
.scene .sun, .scene .halo { fill: var(--sun); transform: translate(calc(var(--sun-x) * 1px), calc(var(--sun-y) * 1px)); transition: transform .6s ease; }
.scene .halo { opacity: var(--glow); }
.scene .plate-top { fill: var(--plate); }
.scene .plate-side { fill: var(--plate-side); }
.scene .stone { fill: var(--stone); }
.scene .shade { fill: var(--stone-shade); }
.scene .win { fill: var(--win); opacity: var(--win-op); }
.times { border: 0; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.times legend { position: absolute; left: -10000px; }
.times input { position: absolute; opacity: 0; pointer-events: none; }
.times label { padding: 7px 14px; border-radius: 999px; border: 1.5px solid currentColor; font-size: .9rem; cursor: pointer; opacity: .85; }
.times input:checked + label { background: var(--hero-ink); color: var(--sky-top); opacity: 1; font-weight: 700; }
.times input:focus-visible + label { outline: 3px solid var(--hero-ink); outline-offset: 3px; }

.features { padding: 48px 0 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; }
.card h2 { font-size: 1.12rem; margin: 0 0 .4em; line-height: 1.4; }
.card p { margin: .4em 0 0; color: var(--muted); }
.section { padding: 40px 0 8px; }
.section h2 { font-size: 1.4rem; letter-spacing: -.02em; margin: 0 0 .5em; }
.shots { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 230px)); gap: 24px; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; border-radius: 22px; border: 1px solid var(--line); }
.shot-empty { display: flex; align-items: center; justify-content: center; text-align: center; aspect-ratio: 1320 / 2868; border: 2px dashed var(--line); border-radius: 22px; padding: 16px; color: var(--muted); font-size: .9rem; background: color-mix(in srgb, var(--paper) 70%, transparent); }
.shot figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }
.contact { padding: 8px 0 8px; }

footer { max-width: 1040px; margin: 40px auto 0; padding: 24px 24px 48px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 10px; }
footer a { color: var(--muted); }
footer p { margin: .3em 0; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .bar { padding: 10px 18px; }
  .wrap { padding: 0 18px; }
  .hero { padding: 32px 0 28px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .scene { max-width: 340px; }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin-right: -18px; padding-right: 18px; padding-bottom: 6px; }
  .shots li { flex: 0 0 58%; max-width: 230px; scroll-snap-align: start; }
  main.doc { margin: 0; border-left: 0; border-right: 0; border-radius: 0; padding: 24px 18px 40px; }
  .table-scroll::before { content: attr(aria-label); display: block; padding: 8px 12px; font-size: .75rem; color: var(--muted); }
  footer { padding: 20px 18px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero, .scene .sun, .scene .halo { transition: none; }
}
@media print {
  .site-header, footer, .skip { display: none; }
  body, main.doc { background: #fff; color: #000; }
  main.doc { border: 0; padding: 0; margin: 0; max-width: none; }
  a { color: #000; }
  h2, h3 { break-after: avoid; }
  tr { break-inside: avoid; }
  .table-scroll { overflow: visible; }
  table { min-width: 0; }
}
