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

/* ─── Design Tokens ─────────────────────────────────── */
:root {
  font-size: 16px;

  /* Dark-first palette */
  --bg:             #080808;
  --surface:        #131313;
  --surface-2:      #1e1e1e;
  --text-primary:   #edeae3;
  --text-muted:     #5c5c5c;
  --accent:         #c8a96e;
  --accent-glow:    rgba(200, 169, 110, 0.1);
  --border:         rgba(255, 255, 255, 0.07);
  --border-accent:  rgba(200, 169, 110, 0.28);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', 'Open Sans', system-ui, sans-serif;

  /* Modular scale */
  --scale-0: 1rem;
  --scale-1: 1.125rem;
  --scale-2: 1.4rem;
  --scale-3: 1.953rem;
  --scale-4: 2.441rem;
  --scale-5: 3.052rem;

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

/* Light mode overrides */
:root.theme-light {
  --bg:            #f7f5f0;
  --surface:       #eeebe3;
  --surface-2:     #e3e0d8;
  --text-primary:  #1a1916;
  --text-muted:    #8a8880;
  --border:        rgba(0, 0, 0, 0.08);
  --border-accent: rgba(140, 100, 30, 0.3);
}

@media (prefers-color-scheme: light) {
  :root.theme-auto {
    --bg:            #f7f5f0;
    --surface:       #eeebe3;
    --surface-2:     #e3e0d8;
    --text-primary:  #1a1916;
    --text-muted:    #8a8880;
    --border:        rgba(0, 0, 0, 0.08);
    --border-accent: rgba(140, 100, 30, 0.3);
  }
}

/* ─── Base ──────────────────────────────────────────── */
html {
  background-color: var(--bg);
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--scale-1);
  font-weight: 400;
  line-height: 1.6;
  position: relative;
}

/* Subtle grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 0;
}

/* ─── Grid ──────────────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 34rem;
  text-align: center;
  margin: 0 auto;
  padding: var(--spacing-xxl) var(--spacing-m) 0;
  box-sizing: border-box;
}

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

.container-left p {
  margin-bottom: 1rem;
}

.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; }
}

/* ─── Avatar ────────────────────────────────────────── */
.avatar {
  width: 7rem;
  height: 7rem;
  object-fit: cover;
  background-position: center;
  margin: 0 auto var(--spacing-l);
  display: block;
  animation: fadeUp 0.7s ease both;
}

.avatar--rounded {
  border-radius: 50%;
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 3px var(--border-accent),
    0 12px 40px rgba(0, 0, 0, 0.5);
}

.avatar--soft {
  border-radius: 0.75rem;
  box-shadow:
    0 0 0 1px var(--border-accent),
    0 12px 40px rgba(0, 0, 0, 0.5);
}

.avatar--none {
  border-radius: 0;
}

/* ─── Typography ────────────────────────────────────── */
h1 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem 0;
  font-size: clamp(2.8rem, 10vw, 4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: 0.01em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: var(--text-primary);
  animation: fadeUp 0.7s 0.1s ease both;
}

/* Decorative gold rule below name */
h1::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  margin: 0.65rem auto 0;
}

.container p {
  margin: 0 0 var(--spacing-l) 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  animation: fadeUp 0.7s 0.2s ease both;
}

/* ─── Links ─────────────────────────────────────────── */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--text-primary);
}

/* ─── Button Stack ──────────────────────────────────── */
.button-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

/* ─── Buttons ───────────────────────────────────────── */
.button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17rem;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: normal;
  background-color: var(--button-background, var(--surface));
  color: var(--button-text, var(--text-primary));
  border: var(--button-border, 1px solid var(--border));
  border-radius: 2px;
  cursor: pointer;
  box-sizing: border-box;
  margin-bottom: 0;
  text-align: center;
  line-height: 1.3;
  hyphens: auto;
  position: relative;
  overflow: hidden;
}

/* Staggered entrance per button */
.button-stack .button:nth-child(1) { animation: fadeUp 0.6s 0.32s ease both; }
.button-stack .button:nth-child(2) { animation: fadeUp 0.6s 0.44s ease both; }
.button-stack .button:nth-child(3) { animation: fadeUp 0.6s 0.56s ease both; }
.button-stack .button:nth-child(4) { animation: fadeUp 0.6s 0.68s ease both; }
.button-stack .button:nth-child(5) { animation: fadeUp 0.6s 0.80s ease both; }
.button-stack .button:nth-child(6) { animation: fadeUp 0.6s 0.88s ease both; }
.button-stack .button:nth-child(7) { animation: fadeUp 0.6s 0.96s ease both; }
.button-stack .button:nth-child(n+8) { animation: fadeUp 0.6s 1.04s ease both; }

/* ─── Section Label ─────────────────────────────────── */
.button-section-label {
  width: 17rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding-top: var(--spacing-s);
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}

.button-section-label:nth-child(4) { animation: fadeUp 0.6s 0.64s ease both; }
.button-section-label:nth-child(6) { animation: fadeUp 0.6s 0.86s ease both; }

@media (max-width: 34.375rem) {
  .button-section-label { width: 15rem; }
}

/* ─── Icons ─────────────────────────────────────────── */
.icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.6rem;
  flex-shrink: 0;
}

/* ─── Footer ────────────────────────────────────────── */
footer {
  margin: var(--spacing-xxl) 0;
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  animation: fadeUp 0.7s 0.9s ease both;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ─── Focus ─────────────────────────────────────────── */
:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

/* ─── Animations ────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── Responsive ────────────────────────────────────── */
@media (max-width: 34.375rem) {
  h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  .button { width: 15rem; }
  .container p { font-size: 0.7rem; }
  footer { margin: var(--spacing-xl) 0; }
}

/* ─── Privacy Page ──────────────────────────────────── */
nav {
  margin: var(--spacing-l) 0;
  text-align: left;
}

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

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

h3 {
  font-size: var(--scale-2);
  font-weight: 500;
  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 Faces (Open Sans local fallback) ─────────── */
@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');
}
