/* link/styles.css — link-in-bio page. Palette and buttons follow the marketing page. */

:root {
  --link-bg: var(--ha-paper);
  --link-surface: #FFFFFF;
  --link-text: var(--ha-text);
  --link-muted: var(--ha-text-muted);
  --link-border: var(--ha-border);
  --link-accent: var(--ha-gold-deep);
  --link-outline: var(--ha-ink);
}

[data-theme="dark"] {
  --link-bg: var(--ha-ink);
  --link-surface: var(--ha-ink-2);
  --link-text: var(--ha-ivory);
  --link-muted: var(--ha-muted-light);
  --link-border: var(--ha-line-dark);
  --link-accent: var(--ha-gold);
  --link-outline: rgba(243, 236, 225, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ha-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--link-text);
  background-color: var(--link-bg);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 88px 20px 56px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 200ms ease, color 200ms ease;
}

:focus-visible { outline: 2px solid var(--ha-gold); outline-offset: 3px; }

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--link-border);
  background: transparent;
  color: var(--link-muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 200ms ease, border-color 200ms ease;
}

.theme-toggle:hover { color: var(--link-accent); border-color: var(--link-accent); }

#themeIconMoon { display: block; }
#themeIconSun { display: none; }
[data-theme="dark"] #themeIconMoon { display: none; }
[data-theme="dark"] #themeIconSun { display: block; }

.card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.lang-select-wrapper {
  position: absolute;
  top: -48px;
  left: 0;
}

.lang-select {
  font-family: var(--ha-font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--link-muted);
  background: transparent;
  border: 1px solid var(--link-border);
  border-radius: 0;
  padding: 7px 10px;
  cursor: pointer;
  outline: none;
}

.lang-select option { color: var(--ha-text); background: #FFFFFF; text-transform: none; }

.lang-select:focus { border-color: var(--link-accent); }

.name { width: 100%; display: flex; justify-content: center; }

.lockup { width: min(320px, 100%); height: auto; display: block; }
.lockup--dark { display: none; }
[data-theme="dark"] .lockup--light { display: none; }
[data-theme="dark"] .lockup--dark { display: block; }

.tagline {
  margin-top: 20px;
  font-family: var(--ha-font-display);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--link-muted);
  text-align: center;
  max-width: 360px;
}

.links {
  margin-top: 36px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Marketing .btn: square, uppercase Jost with tracking. Booking is the gold one;
   the rest are the outline variant (ink on paper, ivory on ink). */
.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 20px;
  background: transparent;
  border: 1px solid var(--link-outline);
  border-radius: 0;
  color: var(--link-text);
  text-decoration: none;
  transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease;
}

.link-item:hover { border-color: var(--link-accent); }

.link-item i {
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  font-size: 1.05rem;
  color: var(--link-accent);
}

.link-item .label {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.link-item .hint {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--link-muted);
  text-align: right;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-item--primary {
  background: var(--ha-gold);
  border-color: var(--ha-gold);
  color: var(--ha-ink);
}
.link-item--primary:hover { background: var(--ha-gold-hover); border-color: var(--ha-gold-hover); }
.link-item--primary i,
.link-item--primary .hint { color: var(--ha-ink); }
.link-item--primary .hint { opacity: 0.75; }

.footer {
  margin-top: 44px;
  font-size: 0.85rem;
  color: var(--link-muted);
  text-align: center;
}

.footer a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.footer a:hover { color: var(--link-accent); }
