@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700;800&display=swap");
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&family=Orbitron:wght@400..900&display=swap');

:root {
  color-scheme: light;
  --card: #eee;
  --text: #444;
  --muted: #666;
  --accent: #222;
  --cmd-bg: #1f2522;
  --cmd-text: #d7d7d7;
  --cmd-text-meta: #84cd94;
  --cmd-text-route: #4557ff;
  --border: #333;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card);
  color: var(--text);
  font-family: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
  line-height: 1.7;
}

.page {
  width: min(920px, calc(100% - 32px));
  margin: 0px 42px 0px 42px;
  position: relative;
  border: 1px solid var(--border);
  transition: box-shadow 0.15s ease;
}

.page:hover {
  box-shadow: 4px 4px 0 var(--border);
}

.terminal-bar {
  background: var(--cmd-bg);
  color: var(--cmd-text);
  padding: 14px 18px;
  letter-spacing: 0.03em;
  font-size: 20px;

  line-height: 1.5;
}

.cmd-prompt {
  display: inline;
  white-space: nowrap;
}

.cmd-input {
  background: transparent;
  border: 0;
  outline: none;
  color: var(--cmd-text);
  font: inherit;
  caret-shape: block;
  caret-color: var(--cmd-text);
  display: inline;
  word-break: break-all;
  white-space: pre-wrap;
}

.cmd-meta {
  color: var(--cmd-text-meta);
}

.cmd-route {
  color: var(--cmd-text-route);
}

.cmd-input {
  background: transparent;
  border: 0;
  outline: none;
  color: var(--cmd-text);
  font: inherit;
  width: 100%;
  caret-shape: block;
  caret-color: var(--cmd-text);
}

.cmd-list {
  color: var(--accent);
}

.output {
  margin-top: 36px;
}

.help .cmd-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
}

.help p {
  margin: 4px;
}

.ls .dir-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.ls p {
  margin: 4px;
}

.dir {
  color: var(--cmd-text-route);
  font-weight: 600;
}

.card {
  background: var(--card);
  padding: 32px;
  padding-top: 0px
}

.title {
  margin: 0;
  margin-top: 6px;
  font-size: clamp(3rem, 16vw, 6rem);
  font-weight: 800;
  font-family: "Orbitron", "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  display: inline-block;
  transform: scaleY(0.78);
  transform-origin: center;
}

.ascii-title {
  font-family: "IBM Plex Mono", "Courier New", monospace;
  white-space: pre;
  line-height: 1;
  letter-spacing: 0;
  font-size: clamp(0.7rem, 1.5vw, 1.4rem);
}

.subtitle {
  color: var(--muted);
  margin-top: 0px;
}

.barcode {
  align-items: baseline;
  height: 100%;
}

header {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px solid var(--border);
}

.profile {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  margin-top: 28px;
}

section {
  margin-bottom: 36px;
}

h2 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.12em;
}

h2::before {
  content: '[ ';
  color: var(--muted);
}

h2::after {
  content: ' ]';
  color: var(--muted);
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.profile-table td {
  padding: 7px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.5);
  vertical-align: top;
}

.profile-table td:first-child {
  color: var(--muted);
  width: 34%;
}

.project {
    display: block;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 12px;
    margin-bottom: 12px;
    background: var(--card);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project:hover {
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--border);
}

.project-title {
    font-weight: bold;
    color: var(--accent);
}

.project-desc {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 4px;
}

.links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 24px;
}

.link-button {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid var(--accent);
  overflow: hidden;
  z-index: 0;
  transition: color 0.1s ease;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.link-button:hover {
  transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--border);
}

.key-desc {
  margin-left: 24px;
}

.key-desc p {
  margin: 4px 0;
  word-break: break-all;
}

.key-desc a {
  color: var(--accent);
}

code {
  background: var(--cmd-bg);
  color: var(--cmd-text);
  padding: 2px 4px;
  font-size: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);

  font-size: 0.85em;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 740px) {
  body {
    margin: 0;
    display: block;
    min-height: 100svh;
    min-height: 100dvh;
  }

  .page {
    margin: 0;
    width: 100%;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  .terminal-bar {
    border-radius: 0;
    padding: 12px 8px;
  }

  .card {
    flex: 1;
    border-radius: 0;
    padding: 22px;
    padding-top: 0px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }

  main.profile {
    grid-template-columns: 1fr;
  }

  .barcode {
    display: none;
  }
}