/* =========================================
   Trext — centred single-column layout
   ========================================= */

:root {
  --bg: #f5f3ee;            /* warm off-white */
  --bg-soft: #fbfaf7;
  --surface: #ffffff;
  --ink: #1c1e21;
  --ink-soft: #3a3f45;
  --ink-muted: #6b7480;
  --rule: #e3e0d8;
  --accent: #1a3a5c;        /* deep navy */
  --accent-hover: #0f2942;
  --accent-ink: #ffffff;

  --serif: 'Source Serif 4', 'Iowan Old Style', 'Georgia', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle paper texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.025 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ===== Profile container ===== */
.profile {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== Profile head ===== */
.profile-head {
  text-align: center;
  margin-bottom: 36px;
  animation: fadeUp 0.5s ease-out both;
}

.avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 52px;
  line-height: 1;
  box-shadow:
    0 0 0 4px var(--bg-soft),
    0 0 0 5px var(--rule),
    0 8px 24px rgba(26, 58, 92, 0.18);
}

.profile-name {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 12px;
}

.profile-bio {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 auto 10px;
}

.profile-affil {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ===== Links ===== */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.link-btn {
  display: block;
  width: 100%;
  padding: 16px 22px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 10px;
  transition: all 0.2s ease;
  animation: fadeUp 0.5s ease-out both;
  box-shadow: 0 1px 2px rgba(28, 30, 33, 0.03);
}

/* Staggered reveal */
.link-btn:nth-child(1) { animation-delay: 0.05s; }
.link-btn:nth-child(2) { animation-delay: 0.10s; }
.link-btn:nth-child(3) { animation-delay: 0.15s; }
.link-btn:nth-child(4) { animation-delay: 0.20s; }
.link-btn:nth-child(5) { animation-delay: 0.25s; }
.link-btn:nth-child(6) { animation-delay: 0.30s; }
.link-btn:nth-child(7) { animation-delay: 0.35s; }
.link-btn:nth-child(8) { animation-delay: 0.40s; }

.link-btn:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(26, 58, 92, 0.18);
}

.link-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(26, 58, 92, 0.15);
}

.link-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ===== Footer ===== */
.profile-foot {
  margin-top: 48px;
  text-align: center;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-muted);
  animation: fadeUp 0.5s ease-out 0.5s both;
}

/* ===== Animation ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .profile { padding: 44px 18px 32px; }
  .avatar { width: 84px; height: 84px; font-size: 46px; }
  .profile-name { font-size: 24px; }
  .profile-bio { font-size: 15px; }
  .link-btn { padding: 15px 18px; font-size: 14.5px; }
}

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

/* ===== Coming-soon / disabled link state ===== */
.link-btn.coming-soon {
  position: relative;
  background: transparent;
  border: 1px dashed var(--rule);
  color: var(--ink-muted);
  cursor: not-allowed;
  box-shadow: none;
  padding-right: 110px; /* room for the badge */
}

.link-btn.coming-soon::after {
  content: attr(data-status);
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-muted);
  border: 1px solid var(--rule);
  white-space: nowrap;
}

/* Neutralise hover and click effects */
.link-btn.coming-soon:hover {
  background: transparent;
  color: var(--ink-muted);
  border-color: var(--rule);
  transform: none;
  box-shadow: none;
}

.link-btn.coming-soon:active {
  transform: none;
  box-shadow: none;
}

/* Tighter spacing on small screens */
@media (max-width: 480px) {
  .link-btn.coming-soon {
    padding-right: 96px;
  }
  .link-btn.coming-soon::after {
    font-size: 9.5px;
    padding: 3px 7px;
  }
}