/* si14.jp — Shared styles (unified dark theme) */
:root {
  color-scheme: dark;
  --bg: #070d1a;
  --panel: rgba(16, 26, 44, 0.65);
  --panel-hover: rgba(20, 34, 58, 0.9);
  --text: #f4f7fb;
  --muted: #9aa9bd;
  --line: rgba(90, 120, 160, 0.22);
  --accent: #7ec8ff;
  --accent-soft: #b8dcff;
  --accent-glow: rgba(126, 200, 255, 0.35);
  --content: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(126, 200, 255, 0.25); }
a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute; left: -9999px; top: 1rem;
  padding: .7rem 1rem; background: var(--text); color: var(--bg); z-index: 100;
}
.skip-link:focus { left: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  max-width: 100%; margin: 0 auto; padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  background: rgba(7, 13, 26, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 1.55rem; font-weight: 750; letter-spacing: -.06em;
}
.brand-dot { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: clamp(.8rem, 2.5vw, 2rem); }
.nav a {
  color: var(--muted); font-size: .82rem; font-weight: 500;
  transition: color .2s ease; position: relative;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"] { color: var(--text); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px;
  background: var(--accent); transition: width .25s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.eyebrow {
  margin: 0 0 1.2rem; color: var(--accent); font-size: .7rem;
  font-weight: 700; letter-spacing: .18em;
}
.status-dot {
  display: inline-block; width: 7px; height: 7px; margin-right: .55rem;
  border-radius: 50%; background: #7ee0b0;
  box-shadow: 0 0 10px rgba(126,224,176,.6); vertical-align: middle;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .7; transform: scale(.9); }
}

.section { max-width: var(--content); margin: 0 auto; padding: 5.5rem 2rem; }
.section-heading { max-width: 44rem; margin-bottom: 2.5rem; }
.section-heading h2 {
  margin: 0; font-size: clamp(2.1rem, 4.2vw, 3.2rem); letter-spacing: -.055em; line-height: 1.15;
}
.muted { color: var(--accent); }
.section-heading > p:last-child { margin: 1rem 0 0; color: var(--muted); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.topic-card, .branch-card {
  min-height: 260px; padding: 1.6rem;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(18,30,50,.7), rgba(10,16,30,.4));
  display: flex; flex-direction: column; align-items: flex-start;
  transition: border-color .25s ease, background .25s ease, transform .25s ease, box-shadow .25s ease;
  position: relative; overflow: hidden;
}
.topic-card:hover, .branch-card:hover {
  border-color: rgba(126,200,255,.45);
  background: var(--panel-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.card-top { display: flex; justify-content: space-between; width: 100%; color: var(--muted); }
.card-number { font-size: .68rem; letter-spacing: .14em; }
.card-symbol { color: var(--accent); font-size: 1.55rem; }
.topic-card h3, .branch-card h3 { margin: 1.4rem 0 0; font-size: 1.5rem; letter-spacing: -.04em; }
.card-ja { margin: .15rem 0 .8rem; color: var(--accent); font-size: .84rem; font-weight: 500; }
.card-copy { margin: 0 0 1.2rem; color: #b0bdd0; font-size: .92rem; flex-grow: 1; }
.coming-soon, .card-meta {
  margin-top: auto; color: #73849b; font-size: .6rem; font-weight: 700; letter-spacing: .14em;
}

.about-section {
  max-width: var(--content); margin: 0 auto; padding: 4rem 2rem 5.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  border-top: 1px solid var(--line);
}
.about-copy { max-width: 33rem; align-self: end; color: #b9c5d6; }
.about-copy p { margin: 0 0 1.1rem; }

.status-section, .log-status {
  max-width: calc(var(--content) - 4rem); margin: 0 auto 4rem; padding: 1.4rem 1.5rem;
  border: 1px solid var(--line); background: rgba(14, 22, 40, 0.4);
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.6rem;
}
.status-label { color: var(--accent); font-size: .68rem; font-weight: 750; letter-spacing: .14em; }
.status-section p, .log-status p { margin: 0; color: #c5d0df; font-size: .92rem; }
.status-meta { margin-left: auto; color: #73849b; font-size: .58rem; letter-spacing: .12em; }

.site-footer {
  max-width: var(--content); margin: 0 auto; padding: 1.8rem 2rem 2.8rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.footer-brand { font-size: 1.25rem; }
.site-footer p, .site-footer small { margin: 0; color: #73849b; font-size: .78rem; }

.text-link {
  display: inline-flex; gap: .75rem; align-items: center;
  padding: .75rem 0; border-bottom: 1px solid var(--accent); color: var(--accent-soft);
  font-weight: 650; font-size: .92rem; transition: color .2s ease, border-color .2s ease;
}
.text-link:hover { color: #fff; border-color: #fff; }
.text-link span { transition: transform .25s ease; }
.text-link:hover span { transform: translate(4px, 4px); }

@media (max-width: 760px) {
  .site-header { padding: 1rem 1.25rem; }
  .nav { gap: .5rem 1rem; }
  .nav a { font-size: .74rem; }
  .section { padding: 4rem 1.25rem; }
  .about-section { grid-template-columns: 1fr; gap: 1.2rem; padding: 3rem 1.25rem 4rem; }
  .status-section, .log-status { margin: 0 1.25rem 3rem; max-width: none; flex-direction: column; align-items: flex-start; }
  .status-meta { margin-left: 0; }
  .site-footer { padding: 1.5rem 1.25rem 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
