/* amjasser.com — minimal personal landing */

:root {
  --bg:     #F7F5F0; /* warm paper — matches the portrait's baked-in background */
  --text:   #16130E; /* near-black ink */
  --muted:  #6B6459; /* metadata */
  --accent: #B0341D; /* oxblood — echoes the shemagh */
  --rule:   rgba(22, 19, 14, 0.20);

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--bg); }

.hero {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

/* Portrait — feathered into the paper, so no frame/shadow needed */
.portrait { display: block; }
.portrait img {
  display: block;
  width: min(84vw, 460px);
  height: auto;
  margin: 0 auto;
}

.name {
  margin: 8px 0 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(2.5rem, 7.5vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.what {
  margin: 18px auto 0;
  max-width: 40ch;
  font-size: clamp(1.05rem, 2.4vw, 1.26rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  text-wrap: balance;
}

.meta {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.links {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 26px;
  font-family: var(--mono);
  font-size: 0.86rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 120ms ease, text-decoration-color 120ms ease, text-decoration-thickness 120ms ease;
}
a:hover, a:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Tasteful staggered entrance */
@media (prefers-reduced-motion: no-preference) {
  .hero > * { animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  .portrait { animation-delay: 0ms; }
  .name     { animation-delay: 90ms; }
  .what     { animation-delay: 170ms; }
  .meta     { animation-delay: 240ms; }
  .links    { animation-delay: 310ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
