/* ============================================================
   Project: SnowClaw abstract page (snowclaw.calidalab.ai)
   Created: 2026-07-05
   Last Modified: 2026-07-05
   Author: Kennt Kim · Calida Lab
   ------------------------------------------------------------
   Shared stylesheet for the academic abstract page (EN `/`, KO
   `/ko/`, JA `/ja/`). Dark scholarly theme. Latin body = Source
   Serif 4; CJK falls back to a system serif (Myeongjo / Mincho)
   to keep the academic serif feel in Korean and Japanese.
   ============================================================ */

:root {
  --paper:    #0e0e0f;   /* dark page background */
  --ink:      #e8e6e0;
  --ink-soft: #c6c3bb;
  --muted:    #918d84;
  --faint:    #706c63;
  --rule:     #2a2a2c;
  --accent:   #f5b301;   /* Calida Lab amber */
  --maxw:     720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: "Source Serif 4", "AppleMyungjo", "Hiragino Mincho ProN", "Yu Mincho", "Nanum Myeongjo", "Noto Serif KR", "Noto Serif JP", Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 26px;
}

/* ---- Masthead ---- */
.masthead {
  text-align: center;
  padding: 46px 26px 0;
}
.masthead__lab {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.masthead__lang {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 12px; font-weight: 500;
  margin-top: 13px;
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.masthead__lang a { color: var(--muted); text-decoration: none; transition: color .15s; }
.masthead__lang a:hover { color: var(--ink); }
.masthead__lang a.is-active { color: var(--accent); font-weight: 600; }

/* ---- Title block ---- */
.head {
  text-align: center;
  padding: 30px 0 6px;
}
.head__kind {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.head__title {
  font-size: clamp(27px, 4.6vw, 40px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.005em;
  max-width: 16em;
  margin: 0 auto 22px;
}
.head__authors {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.head__affil {
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 10px;
}
.head__corr {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 13px;
  color: var(--faint);
}
.head__corr a { color: var(--accent); text-decoration: none; }
.head__corr a:hover { text-decoration: underline; }

/* ---- Full-paper button ---- */
.head__paper { margin-top: 18px; }
.paper-btn {
  display: inline-block;
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  color: #0e0e0f; background: var(--accent);
  padding: 10px 20px; border-radius: 8px; text-decoration: none;
  transition: opacity .15s, transform .1s;
}
.paper-btn:hover { opacity: .9; }
.paper-btn:active { transform: translateY(1px); }

/* ---- Rule ---- */
.rule {
  border: 0;
  height: 1px;
  background: var(--rule);
  max-width: var(--maxw);
  margin: 34px auto;
}
.rule--tight { margin: 24px auto; }

/* ---- Abstract ---- */
.abstract__label {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
  margin-bottom: 20px;
}
.abstract p {
  font-size: 17.5px;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  margin-bottom: 17px;
}
.abstract p:last-child { margin-bottom: 0; }
.abstract .lead { font-weight: 600; }
.abstract em { font-style: italic; }

/* ---- Keywords ---- */
.keywords {
  font-size: 16px;
  color: var(--ink-soft);
  margin-top: 6px;
}
.keywords .k-label {
  font-style: italic;
  color: var(--muted);
  margin-right: 6px;
}

/* ---- Footer ---- */
.foot {
  text-align: center;
  padding: 8px 26px 60px;
  color: var(--faint);
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.7;
}
.foot a { color: var(--accent); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* ---- Figure (architecture) ---- */
.figure { max-width: var(--maxw); margin: 0 auto; padding: 4px 26px 0; }
.figure__label {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent);
  text-align: center; margin-bottom: 22px;
}
.figure__frame {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #161619;
  padding: 22px 16px 12px;
  overflow-x: auto;
}
.figure svg { display: block; width: 100%; min-width: 520px; max-width: 600px; height: auto; margin: 0 auto; }
.figcap {
  font-size: 14.5px; font-style: italic; color: var(--muted);
  line-height: 1.55; margin: 18px auto 0; max-width: 36em; text-align: center;
}
.figcap b { font-style: normal; font-weight: 600; color: var(--ink-soft); }

/* diagram elements (dark) — CJK labels fall back to system sans */
.dg-user    { fill: #24242a; stroke: #454550; stroke-width: 1; }
.dg-local   { fill: #16251c; stroke: #4f9e69; stroke-width: 1.2; }
.dg-cloud   { fill: #17202f; stroke: #5a80c8; stroke-width: 1.2; }
.dg-t       { font-family: "Inter", "Apple SD Gothic Neo", "Hiragino Sans", sans-serif; font-weight: 600; font-size: 14.5px; fill: var(--ink); }
.dg-local-t { fill: #83dc9c; }
.dg-cloud-t { fill: #9bbcf0; }
.dg-sub     { font-family: "Inter", "Apple SD Gothic Neo", "Hiragino Sans", sans-serif; font-weight: 400; font-size: 10.5px; fill: #9a978f; }
.dg-local-s { fill: #6fae85; }
.dg-cloud-s { fill: #7f9bcf; }
.dg-lbl     { font-family: "Inter", "Apple SD Gothic Neo", "Hiragino Sans", sans-serif; font-weight: 600; font-size: 11px; fill: #8a877f; letter-spacing: .02em; }
.dg-line    { stroke: #7d7b73; stroke-width: 1.4; fill: none; }
.dg-leg     { font-family: "Inter", "Apple SD Gothic Neo", "Hiragino Sans", sans-serif; font-weight: 500; font-size: 11.5px; fill: #9a978f; }

@media (max-width: 560px) {
  .abstract p { text-align: left; }
  .masthead { padding-top: 34px; }
  .figure__frame { padding-left: 10px; padding-right: 10px; }
}
