/* Mr&Mrs Xu — link-in-bio page.
   No external requests: system font stacks only. The whole page is one
   render-blocking stylesheet under 6 KB so it paints on the first trip,
   which is the point — most visitors arrive from a phone, from a bio tap. */

:root {
  --paper:   #fbf7f2;
  --paper-2: #f3ece3;
  --card:    #ffffff;
  --ink:     #2a2420;
  --muted:   #7a6e63;
  --accent:  #c4553b;
  --on-accent: #fff8f4;
  --line:    #e6dcd0;
  --shadow:  0 1px 2px rgba(42, 36, 32, .05), 0 8px 24px -12px rgba(42, 36, 32, .22);

  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:   #171310;
    --paper-2: #1f1915;
    --card:    #221c17;
    --ink:     #f2ebe3;
    --muted:   #a2958a;
    --accent:  #e8795c;
    --on-accent: #231009;
    --line:    #352c25;
    --shadow:  0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* A soft warm wash behind the top of the page so the portrait is not floating
   on flat paper. Fixed so it does not move while the links scroll. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 62vh;
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  z-index: -1;
}

.wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px calc(40px + env(safe-area-inset-bottom));
}

/* ---------- header ---------- */

.head { text-align: center; }

/* Circular, like the avatar on YouTube and Instagram — same image, same shape,
   just bigger. Recognition is the job this element does. */
.portrait {
  display: block;
  width: 150px;
  margin: 0 auto 18px;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 10vw, 44px);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.1;
}

.amp { color: var(--accent); }

.bio {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: balance;
}

.meta {
  margin: 10px 0 0;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--muted);
}

/* ---------- links ---------- */

.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 30px 0 0;
}

.link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
}

.link:hover { transform: translateY(-2px); border-color: var(--accent); }
.link:active { transform: translateY(0); }

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

.link__glyph {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--paper-2);
  color: var(--ink);
}

.link__glyph svg { width: 21px; height: 21px; }

.link__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.link__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.005em;
}

.link__sub {
  font-size: 13px;
  color: var(--muted);
}

.link__arrow {
  flex: 0 0 auto;
  font-size: 17px;
  color: var(--muted);
  transition: transform .14s ease;
}

.link:hover .link__arrow { transform: translateX(3px); }

/* The one link the page is actually trying to get tapped. */
.link--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.link--primary .link__glyph {
  background: rgba(255, 255, 255, .18);
  color: var(--on-accent);
}

.link--primary .link__sub,
.link--primary .link__arrow { color: rgba(255, 255, 255, .78); }

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

@media (prefers-color-scheme: dark) {
  .link--primary .link__glyph { background: rgba(0, 0, 0, .18); }
  .link--primary .link__sub,
  .link--primary .link__arrow { color: rgba(35, 16, 9, .72); }
}

/* ---------- work with us ---------- */

.work {
  margin: 28px 0 0;
  padding: 18px 18px 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  text-align: center;
}

.work__h {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

.work__p {
  margin: 8px 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  text-wrap: balance;
}

.work__mail {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

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

/* ---------- footer ---------- */

.foot {
  margin: 26px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.foot p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
