@font-face {
  font-family: Matter Mono;
  src:
    local("Matter Mono"),
    local("MatterMono-Regular"),
    local("Matter Mono Regular");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-mono: "Matter Mono", "Roboto Mono", monospace;
}
html,
body {
  margin: 0;
  padding: 0;
  background: #121212;
}
.skill-machine {
  background: #121212;
  min-height: 100vh;
  padding: 0 0 120px;
}
.copy-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  backdrop-filter: blur(16px);
  background: rgba(64, 64, 64, 0.5);
  color: rgba(250, 249, 246, 0.9);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.copy-btn:hover {
  background: rgba(41, 41, 41, 0.5);
  color: rgba(250, 249, 246, 0.9);
  border-color: transparent;
}
.copy-btn:active {
  background: rgba(88, 87, 86, 0.5);
}
.copy-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}
.copy-btn.is-copied {
  background: #faf9f6;
  border-color: rgba(250, 249, 246, 0.45);
  color: rgba(18, 18, 18, 0.9);
}
.copy-icon-check {
  display: none;
}
.copy-btn.is-copied .copy-icon-default {
  display: none;
}
.copy-btn.is-copied .copy-icon-check {
  display: block;
}
.skill-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 32px 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  color: #f0e7ee;
  word-break: break-word;
}
.skill-line {
  margin: 0;
}
.skill-line-code-fence {
  color: #5d4f5d;
}
.skill-line-code {
  color: #c8acc2;
}
.skill-line-h1,
.skill-line-h2,
.skill-line-h3 {
  font-weight: 600;
}
.skill-line-h1 {
  color: #ffffff;
  margin-top: 32px;
}
.skill-line-h2 {
  color: #f0e7ee;
  margin-top: 24px;
}
.skill-line-h3 {
  color: #f0c8d8;
  margin-top: 16px;
}
.skill-empty {
  height: 0.5em;
}
.skill-separator {
  border-top: 1px solid #2a1a29;
  margin: 24px 0;
}
.skill-inline-code {
  color: #f0c8d8;
  background: #1a1419;
  padding: 0 4px;
}
.skill-link {
  color: #f0c8d8;
  text-decoration: none;
  background: #1a1419;
  border: 1px solid #3a3139;
  padding: 0 5px;
  display: inline;
}
.skill-link-raw {
  background: #1a1419;
  padding: 0 5px;
}
.machine-toggle {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #121212f2;
  border: 1px solid #2a1a29;
  box-shadow: 0 10px 30px #00000073;
  backdrop-filter: blur(4px);
}
.machine-toggle-btn {
  font-family: 'Matter', 'DM Sans', sans-serif;
  letter-spacing: 0.08px;
  color: rgba(250, 249, 246, 0.9);
  border: 1px solid transparent;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  backdrop-filter: blur(16px);
  background: rgba(64, 64, 64, 0.5);
  cursor: pointer;
  min-height: 40px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}
.machine-toggle-btn:hover {
  background: rgba(41, 41, 41, 0.5);
  color: rgba(250, 249, 246, 0.9);
  border-color: transparent;
}
.machine-toggle-btn:active {
  background: rgba(88, 87, 86, 0.5);
}
.machine-toggle-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}
.machine-toggle-dot {
  background: rgba(18, 18, 18, 0.1);
  border-radius: 4px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.machine-toggle-btn-active {
  background: #faf9f6;
  border-color: rgba(250, 249, 246, 0.45);
  color: rgba(18, 18, 18, 0.9);
  border-radius: 4px;
  cursor: default;
}
.machine-toggle-btn-active .machine-toggle-dot {
  background: rgba(18, 18, 18, 0.12);
}
@media (max-width: 720px) {
  .copy-btn {
    top: 14px;
    right: 14px;
    min-height: 36px;
    padding: 6px 10px;
  }
  .skill-content {
    padding: 56px 20px 0;
    font-size: 12px;
    line-height: 1.8;
  }
  .machine-toggle {
    bottom: 16px;
    padding: 10px;
  }
  .machine-toggle-btn {
    padding: 10px 12px;
    font-size: 12px;
  }
  .machine-toggle-dot {
    width: 16px;
    height: 16px;
  }
}
.machine-toggle {
  padding: 8px;
  background: #121212f2;
  border: 1px solid #2a1a29;
  box-shadow: 0 10px 30px #00000073;
  backdrop-filter: blur(4px);
  border-radius: 4px;
}
.machine-toggle-btn {
  min-height: auto;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.15;
  letter-spacing: 0.12px;
  border-radius: 4px;
  gap: 8px;
}
.machine-toggle-btn-active {
  border-radius: 4px;
}
.machine-toggle-dot {
  display: none;
}
@media (max-width: 720px) {
  .machine-toggle-btn {
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.15;
    border-radius: 4px;
  }
}
