/* ===== THEME: LIGHT (default) ===== */
:root {
  --bg: #f4f5f7;
  --text: #111111;
  --subtitle: #6b7280;

  --card-bg: #fafafa;
  --card-border: #e5e7eb;

  --accent: #2563eb;

  --brand-bg: #f0f0f0;
  --brand-border: #d4d4d4;
}

/* ===== THEME: DARK (auto by OS) ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05060a;
    --text: #f9fafb;
    --subtitle: #9ca3af;

    --card-bg: #0b0d13;
    --card-border: #262a35;

    --accent: #3b82f6;

    --brand-bg: #1d1f26;
    --brand-border: #2b2e36;
  }
}

/* ===== Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

/* ===== Background Layer ===== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('img/hex.svg');
  background-size: 120px;
  background-repeat: repeat;
  opacity: 0.06;
}

@media (prefers-color-scheme: dark) {
  .bg-layer {
    background-image: url('img/hex.svg');
    opacity: 0.06;
  }
}

/* ===== Layout ===== */
.shell {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 32px 20px 40px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
.header {
  margin-top: 20px;
  margin-bottom: 32px;
  text-align: center;
}

.logo {
  font-size: 32px;
  margin-bottom: 4px;
}

.title {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.subtitle {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--subtitle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    monospace;
}

/* ===== Section ===== */
.section {
  margin-bottom: 36px;
}

.section-title {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas;
  font-size: 11px;
  color: var(--subtitle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ===== Link List ===== */
.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===== Link Card ===== */
.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;

  text-decoration: none;
  color: var(--text);

  background-color: var(--card-bg);
  border: 1px solid var(--card-border);

  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);

  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.12s ease,
    box-shadow 0.18s ease;
}

@media (prefers-color-scheme: dark) {
  .link-card {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  }
}

.link-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Label / Arrow */
.link-label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas;
  font-size: 15px;
}

.link-arrow {
  margin-left: auto;
  font-size: 18px;
  color: var(--subtitle);
}

/* ===== Logo Slot ===== */
.link-brand {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background-color: var(--brand-bg);
  border: 1px solid var(--brand-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.link-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== Footer ===== */
.footer {
  margin-top: auto;
  padding-top: 32px;
  text-align: center;
}

.console-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  text-decoration: none;
}

.console-link:hover {
  text-decoration: underline;
}

/* ===== Responsive ===== */
@media (min-width: 768px) {
  .shell {
    padding: 56px 24px 48px;
  }
  .title {
    font-size: 32px;
  }
}
