/*
* LittleLink
* https://littlelink.io
* Free to use under the MIT license
* http://www.opensource.org/licenses/mit-license.php
*/

:root {
  font-size: 16px;
  --scale-0: 1rem;
  --scale-1: 1.25rem;
  --scale-2: 1.563rem;
  --scale-3: 1.953rem;
  --scale-4: 2.441rem;
  --scale-5: 3.052rem;

  --spacing-xs: 0.5rem;
  --spacing-s: 1rem;
  --spacing-m: 1.5rem;
  --spacing-l: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  --bg-primary: #ffffff;
  --bg-secondary: #f4f6f9;
  --bg-card: rgba(255, 255, 255, 0.7);
  --text-primary: #1a1a1a;
  --text-secondary: #5a5a5a;
  --accent: #2457F5;
  --accent-hover: #083BDA;
  --border-color: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.8);
  --gradient-start: #f5f3ff;
  --gradient-end: #eef2ff;
}

:root.theme-dark {
  color-scheme: dark;
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(18, 18, 26, 0.7);
  --text-primary: #ffffff;
  --text-secondary: #9a9aaf;
  --accent: #4899F7;
  --accent-hover: #7AB8FF;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --glass-bg: rgba(18, 18, 26, 0.5);
  --glass-border: rgba(255, 255, 255, 0.06);
  --gradient-start: #0c0a1a;
  --gradient-end: #14102a;
}

:root.theme-dark :focus-visible {
  outline: 2px solid #4899F7;
  outline-offset: 2px;
}

:root.theme-auto {
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root.theme-auto {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(18, 18, 26, 0.7);
    --text-primary: #ffffff;
    --text-secondary: #9a9aaf;
    --accent: #4899F7;
    --accent-hover: #7AB8FF;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(18, 18, 26, 0.5);
    --glass-border: rgba(255, 255, 255, 0.06);
    --gradient-start: #0c0a1a;
    --gradient-end: #14102a;
  }
  :root.theme-auto :focus-visible {
    outline: 2px solid #4899F7;
    outline-offset: 2px;
  }
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(145deg, var(--gradient-start), var(--gradient-end));
  color: var(--text-primary);
  font-family: "Open Sans", system-ui, -apple-system, sans-serif;
  font-size: var(--scale-1);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  position: relative;
  width: 100%;
  max-width: 34rem;
  text-align: center;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-m) 0;
  box-sizing: border-box;
}

.container-left {
  position: relative;
  width: 100%;
  max-width: 37.5rem;
  text-align: left;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-m);
  box-sizing: border-box;
}

.container-left p {
  margin-bottom: var(--spacing-s);
  color: var(--text-secondary);
}

.column {
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 25rem) {
  .container {
    width: 85%;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 34.375rem) {
  .container {
    width: 80%;
  }
  .column, .columns {
    margin-left: 0;
  }
  .column:first-child, .columns:first-child {
    margin-left: 0;
  }
}

h1 {
  margin: 0 0 var(--spacing-xs) 0;
  font-size: var(--scale-5);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  background: linear-gradient(135deg, var(--text-primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.container p {
  margin: 0 0 var(--spacing-l) 0;
  font-size: var(--scale-0);
  line-height: 1.6;
  color: var(--text-secondary);
}

.subtitle {
  font-size: var(--scale-0);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-l);
  line-height: 1.6;
}

.avatar {
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  background-position: center;
  margin-bottom: var(--spacing-l);
  margin-left: auto;
  margin-right: auto;
  display: block;
  box-shadow: 0 0 0 3px var(--glass-border), var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 3px var(--accent), var(--shadow-lg);
}

.avatar--rounded {
  border-radius: 50%;
}

.avatar--soft {
  border-radius: 0.5rem;
}

.button-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 20rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: normal;
  background-color: var(--button-background, var(--glass-bg));
  color: var(--button-text, var(--text-primary));
  border: var(--button-border, 1px solid var(--border-color));
  border-radius: 0.75rem;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.3;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.button:hover::before {
  opacity: 1;
}

.button:hover, button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.button:active, button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.625rem;
  flex-shrink: 0;
  filter: var(--icon-filter, none);
}

footer {
  margin: var(--spacing-xxl) 0;
  font-size: var(--scale-0);
  color: var(--text-secondary);
}

footer p {
  margin-bottom: var(--spacing-xs);
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

@media (max-width: 34.375rem) {
  h1 {
    font-size: var(--scale-4);
  }
  body {
    font-size: var(--scale-0);
  }
  .container p {
    font-size: var(--scale-0);
  }
  .avatar {
    width: 6rem;
    height: 6rem;
    margin-bottom: var(--spacing-m);
  }
  .button, button {
    max-width: 18rem;
    min-height: 3rem;
    font-size: 0.938rem;
  }
  footer {
    margin: var(--spacing-xl) 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.column {
  animation: fadeInUp 0.6s ease-out;
}

.button-stack a:nth-child(1) { animation-delay: 0.05s; }
.button-stack a:nth-child(2) { animation-delay: 0.1s; }
.button-stack a:nth-child(3) { animation-delay: 0.15s; }
.button-stack a:nth-child(4) { animation-delay: 0.2s; }
.button-stack a:nth-child(5) { animation-delay: 0.25s; }
.button-stack a:nth-child(6) { animation-delay: 0.3s; }
.button-stack a:nth-child(7) { animation-delay: 0.35s; }
.button-stack a:nth-child(8) { animation-delay: 0.4s; }
.button-stack a:nth-child(9) { animation-delay: 0.45s; }
.button-stack a:nth-child(10) { animation-delay: 0.5s; }
.button-stack a:nth-child(11) { animation-delay: 0.55s; }
.button-stack a:nth-child(12) { animation-delay: 0.6s; }
.button-stack a:nth-child(13) { animation-delay: 0.65s; }
.button-stack a:nth-child(14) { animation-delay: 0.7s; }
.button-stack a:nth-child(15) { animation-delay: 0.75s; }

.button-stack a {
  animation: fadeInUp 0.5s ease backwards;
}

nav {
  margin: var(--spacing-l) 0;
  text-align: left;
}

nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--accent-hover);
}

section {
  margin: var(--spacing-xl) 0;
  text-align: left;
}

h2 {
  font-size: var(--scale-3);
  font-weight: 700;
  margin-bottom: var(--spacing-m);
}

h3 {
  font-size: var(--scale-2);
  font-weight: 600;
  margin: var(--spacing-l) 0 var(--spacing-s) 0;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-m) 0;
}

ul li {
  margin-bottom: var(--spacing-xs);
}

@media (max-width: 34.375rem) {
  h2 {
    font-size: var(--scale-2);
  }
  h3 {
    font-size: var(--scale-1);
  }
  section {
    margin: var(--spacing-l) 0;
  }
}

@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.eot');
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.eot?#iefix') format('embedded-opentype'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2') format('woff2'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff') format('woff'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.ttf') format('truetype'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-regular.svg#OpenSans') format('svg');
}

@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.eot');
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.eot?#iefix') format('embedded-opentype'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.woff2') format('woff2'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.woff') format('woff'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.ttf') format('truetype'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-600.svg#OpenSans') format('svg');
}

@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.eot');
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.eot?#iefix') format('embedded-opentype'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.woff2') format('woff2'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.woff') format('woff'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.ttf') format('truetype'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-700.svg#OpenSans') format('svg');
}

@font-face {
  font-display: swap;
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 800;
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.eot');
  src: url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.eot?#iefix') format('embedded-opentype'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.woff2') format('woff2'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.woff') format('woff'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.ttf') format('truetype'),url('../fonts/open-sans-v34-vietnamese_latin-ext_latin_hebrew_greek-ext_greek_cyrillic-ext_cyrillic-800.svg#OpenSans') format('svg');
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
