/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

/* Light mode (default) */
body {
  background-color: #ffffff;
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  cursor: default;
  text-align: center;
  padding: 20px 0 20px 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.container {
  width: 90%;
  max-width: 450px;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 2px solid black;
}

.name {
  font-size: 28px;
  font-weight: bold;
  margin: 10px 0;
}

.description {
  font-size: 16px;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #555;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.link-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #f0f0f0;
  color: black;
  padding: 15px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  transition: background-color 0.3s, transform 0.2s;
}

.link-button:hover {
  background-color: #e0e0e0;
  transform: scale(1.05);
}

.footer {
  margin-top: 40px;
  font-size: 14px;
  color: #777;
}

.button-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-group {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.icon-button {
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  background: none;
  color: black;
}

.icon-button i {
  font-size: 24px;
}

.icon-button:hover {
  transform: scale(1.1);
  color: #666;
}

.icon-button:active {
  transform: scale(0.95);
}

.link-button-text {
  font-size: 14px;
  color: #777;
}

.copyright {
  margin-top: 15px;
  font-size: 12px;
}

/* Dark mode — auto-switches via system appearance.
   Surfaces use elevated grays (not pure #000) so cards stay distinguishable
   from the body and OLED panels don't band. Body text is #e6edf3 rather
   than pure white for less eye-strain at long reading times. */
/* Auto-switch dark via OS, unless `color_scheme: light` pinned in config.yml.
   Each rule's selector is prefixed with :root:not(.scheme-light) so the
   forced-light class neutralises the entire block. */
@media (prefers-color-scheme: dark) {
  :root:not(.scheme-light) body            { background-color: #0d1117; color: #e6edf3; }
  :root:not(.scheme-light) a               { color: #e6edf3; }
  :root:not(.scheme-light) .profile-pic    { border-color: #30363d; }
  :root:not(.scheme-light) .description    { color: #9da7b1; }
  :root:not(.scheme-light) .link-button    { background-color: #161b22; color: #e6edf3; border: 1px solid #21262d; }
  :root:not(.scheme-light) .link-button:hover { background-color: #21262d; border-color: #30363d; }
  :root:not(.scheme-light) .link-button:focus-visible { outline: 2px solid #58a6ff; outline-offset: 2px; }
  :root:not(.scheme-light) .icon-button    { color: #e6edf3; }
  :root:not(.scheme-light) .footer         { color: #7d8590; }
  :root:not(.scheme-light) .link-button-text { color: #7d8590; }
}
/* `color_scheme: dark` — force the same dark palette regardless of OS. */
:root.scheme-dark body            { background-color: #0d1117; color: #e6edf3; }
:root.scheme-dark a               { color: #e6edf3; }
:root.scheme-dark .profile-pic    { border-color: #30363d; }
:root.scheme-dark .description    { color: #9da7b1; }
:root.scheme-dark .link-button    { background-color: #161b22; color: #e6edf3; border: 1px solid #21262d; }
:root.scheme-dark .link-button:hover { background-color: #21262d; border-color: #30363d; }
:root.scheme-dark .link-button:focus-visible { outline: 2px solid #58a6ff; outline-offset: 2px; }
:root.scheme-dark .icon-button    { color: #e6edf3; }
:root.scheme-dark .footer         { color: #7d8590; }
:root.scheme-dark .link-button-text { color: #7d8590; }
/* "Latest" link variant — pinned highlight + truncated long titles */
.link-button.link-latest {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.link-latest-badge {
  position: absolute;
  top: -8px;
  left: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  background: #1f6feb;
  color: #fff;
  line-height: 1.4;
}
.link-button.link-latest {
  align-items: flex-start;
}
.link-latest .link-text {
  flex: 1 1 auto;
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
          line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-align: left;
  line-height: 1.35;
}
@media (prefers-color-scheme: dark) {
  :root:not(.scheme-light) .link-button.link-latest { border-color: rgba(255, 255, 255, 0.16); }
  :root:not(.scheme-light) .link-latest-badge { background: #58a6ff; color: #0d1117; }
}
:root.scheme-dark .link-button.link-latest { border-color: rgba(255, 255, 255, 0.16); }
:root.scheme-dark .link-latest-badge { background: #58a6ff; color: #0d1117; }
