/* 墨与线 · about intro slides — tokens mirror src/styles/global.css */
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC";
  src: url("/fonts/noto-sans-sc/noto-sans-sc-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Sans SC";
  src: url("/fonts/noto-sans-sc/noto-sans-sc-400-site.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC";
  src: url("/fonts/noto-sans-sc/noto-sans-sc-600-site.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("/fonts/noto-serif-sc/noto-serif-sc-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("/fonts/noto-serif-sc/noto-serif-sc-600-site.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --card: #fffefa;
  --ink: #141414;
  --muted: #5a5854;
  --accent: #1f4b3a;
  --accent-soft: #e7eeea;
  --border: #d6d2c8;
  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", ui-serif, serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 4px;
  --slide-pad: clamp(1.25rem, 4vw, 5rem);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1a1916;
  --card: #22211d;
  --ink: #f3f1ea;
  --muted: #b8b4a8;
  --accent: #8fcbb0;
  --accent-soft: #243830;
  --border: #3a3832;
}

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

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-width: 320px;
  -webkit-font-smoothing: antialiased;
}

.progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 40;
  transition: width 0.2s ease;
}

.chrome {
  position: fixed;
  z-index: 30;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.chrome a, .chrome button {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  border-radius: var(--radius);
  padding: 0.35rem 0.55rem;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
.chrome a:hover, .chrome button:hover,
.chrome a:focus-visible, .chrome button:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}
.chrome-top { top: 0.85rem; right: 0.85rem; }
.chrome-home {
  position: fixed;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 30;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
}
.chrome-home:hover { color: var(--accent); }

.nav-dots {
  position: fixed;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  z-index: 30;
}
.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.nav-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

.slide {
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--slide-pad);
  padding-right: calc(var(--slide-pad) + 1.5rem);
  position: relative;
}
.slide-inner {
  width: min(100%, 960px);
  margin: 0 auto;
}
.slide-foot {
  position: absolute;
  left: var(--slide-pad);
  right: calc(var(--slide-pad) + 1.25rem);
  bottom: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  opacity: 0.75;
  pointer-events: none;
}
.slide-foot .brand-name { font-family: var(--font-serif); opacity: 1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 1rem;
}
h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 6vw, 3.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 1.4rem;
}
.rule {
  width: 48px;
  height: 3px;
  background: var(--accent);
  margin: 1.25rem 0;
  border-radius: 1px;
}
.sub {
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 34em;
}
.sub a { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.sub a:hover { border-bottom-color: var(--accent); }

/* Logo slot — replace inner mark with <img> later; keep dimensions */
.logo-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(40px, 5vw, 56px);
  height: clamp(40px, 5vw, 56px);
  margin-bottom: 1.1rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 700;
  flex-shrink: 0;
}
.logo-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: var(--radius);
}
.logo-slot:has(img) {
  background: transparent;
  padding: 0;
}
:root[data-theme="dark"] .logo-slot {
  background: #1f4b3a;
  color: #f6f5f1;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
}
.pillar {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1rem, 2.2vw, 1.6rem);
  min-height: 0;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.pillar:hover, .pillar:focus-visible {
  border-color: var(--accent);
  outline: none;
}
.pillar .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 0.65rem;
}
.pillar h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.65rem;
  line-height: 1.35;
}
.pillar p {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  line-height: 1.65;
  color: var(--muted);
}

.read-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.25rem;
}
.read-list li a {
  display: grid;
  /* Fixed tag column so labels/hints share one left edge across rows */
  grid-template-columns: 3em 1fr;
  column-gap: 1rem;
  row-gap: 0.2rem;
  align-items: baseline;
  padding: 0.95rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
html[data-lang="en"] .read-list li a {
  grid-template-columns: 4.25em 1fr;
}
.read-list li a:hover, .read-list li a:focus-visible {
  border-color: var(--accent);
  outline: none;
}
.read-list .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
  width: 100%;
}
.read-list .label {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
}
.read-list .hint {
  grid-column: 2;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.judgment {
  max-width: 32em;
}
.judgment p {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.75;
  color: var(--muted);
}
.judgment p + p { margin-top: 1rem; }
.judgment strong { color: var(--ink); font-weight: 600; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.contact-grid a {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.contact-grid a:hover, .contact-grid a:focus-visible {
  border-color: var(--accent);
  outline: none;
}
.contact-grid .k {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}
.contact-grid .v {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
}

.hint-keys {
  margin-top: 1.75rem;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  opacity: 0.8;
}

@media (max-width: 720px) {
  .pillars { grid-template-columns: 1fr; }
  .nav-dots { right: 0.45rem; gap: 0.45rem; }
  .nav-dot { width: 7px; height: 7px; }
  .slide {
    padding-right: calc(var(--slide-pad) + 1rem);
    justify-content: flex-start;
    padding-top: clamp(3.5rem, 12vh, 5rem);
    padding-bottom: 3.5rem;
  }
  .slide-foot { font-size: 11px; }
  .chrome-top { top: 0.55rem; right: 0.55rem; }
  .chrome-home { top: 0.55rem; left: 0.55rem; font-size: 0.85rem; }
  .read-list li a,
  html[data-lang="en"] .read-list li a {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
  .read-list .tag { margin-bottom: 0.1rem; }
  .read-list .hint { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress { transition: none; }
}
