/* Sarah Itafa — contact page
   Same theme as the portfolio: navy surfaces, rose accent, everything in italic.
   Plus Jakarta Sans for text, Instrument Serif for the logo.
   Colors and fonts live in :root. Change them there first. */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,700;0,800;1,400;1,500;1,700;1,800&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  color-scheme: dark;

  --bg: #070a1a;
  --surface: #0f1840;
  --surface-2: #17235a;
  --line: #1c2954;
  --line-strong: #2f3f78;

  --text: #eaf0ff;
  --soft: #c8d1ef;
  --muted: #93a0cc;

  --accent: #ff7fae;           /* primary: rose */
  --accent-hi: #ffa3c4;        /* hover / highlight */
  --accent-lo: #f2649a;        /* deeper end of the gradient */
  --accent-ink: #2d0615;       /* text that sits on the rose */
  --accent-rgb: 255, 127, 174; /* same rose as r, g, b: used for glows and soft fills */
  --accent-soft: rgba(var(--accent-rgb), .12);
  --accent-line: rgba(var(--accent-rgb), .42);

  --shadow: 0 30px 60px -32px rgba(0, 0, 0, .85);

  --font-body: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.22, .8, .3, 1);

  font-family: var(--font-body);
  color: var(--soft);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-style: italic;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background: transparent;
}
/* soft glows behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px circle at 92% -6%, rgba(var(--accent-rgb), .15), transparent 62%),
    radial-gradient(520px circle at 0% 100%, rgba(80, 90, 220, .14), transparent 65%);
}
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; border-radius: 10px; }

.wrap { width: min(100% - 32px, 680px); margin: 32px auto; }

.card {
  position: relative; overflow: hidden;
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--surface) 60%);
  border: 1px solid var(--line-strong); border-radius: 30px;
  box-shadow: var(--shadow);
}

/* ---------- Profile ---------- */
.profile { padding: 24px; display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: stretch; }
.logo {
  position: relative; overflow: hidden;
  min-height: 265px; display: flex; align-items: center; justify-content: center;
  border-radius: 24px; border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 80% 8%, rgba(var(--accent-rgb), .38), transparent 62%),
    linear-gradient(150deg, #1a2a6e 0%, #0d1540 70%);
  color: #fff;
  font-family: var(--font-serif); font-size: 96px; font-weight: 400; font-style: italic; letter-spacing: -.03em; line-height: 1;
  box-shadow: inset 0 0 40px rgba(255, 255, 255, .05);
}
.logo span { color: var(--accent); }
.intro { align-self: center; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 3px 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-hi); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
h1 { margin: 0 0 8px; font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; font-style: italic; line-height: 1.08; letter-spacing: -.04em; color: #fff; text-wrap: balance; }
.role { margin: 0 0 20px; font-size: 15px; color: var(--muted); }
.social { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 20px; }
.social a {
  padding: 7px 14px; font-size: 12.5px; font-weight: 700; text-decoration: none;
  color: var(--accent-hi); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 999px;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.social a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.bio { margin: 0; font-size: 15px; line-height: 1.8; color: var(--soft); }
.language { margin: 15px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { margin-top: 18px; padding: 16px 30px; }
.email { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 12px 0 22px; border-bottom: 1px solid var(--line-strong); }
.email h2 { margin: 0 0 8px; font-size: 23px; font-weight: 800; font-style: italic; letter-spacing: -.03em; color: var(--text); }
.email p { margin: 0; font-size: 14.5px; color: var(--muted); overflow-wrap: anywhere; }

button {
  position: relative; isolation: isolate; overflow: hidden;
  cursor: pointer; padding: 11px 22px;
  font-family: var(--font-body); font-style: italic; font-size: 13.5px; font-weight: 700; color: var(--text);
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left center / 0% 100%;
  border: 1px solid var(--line-strong); border-radius: 999px;
  transition: background-size .45s var(--ease), color .3s, border-color .3s, transform .25s var(--ease);
}
button:hover { background-size: 100% 100%; color: var(--accent-ink); border-color: var(--accent); transform: translateY(-2px); }
button:active { transform: translateY(1px); }

.contact-link {
  display: flex; align-items: center; gap: 16px; min-height: 86px;
  text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line);
  font-size: 18px; font-weight: 700; letter-spacing: -.01em;
  transition: transform .3s var(--ease), color .2s;
}
.contact-link:last-child { border-bottom: 0; }
.contact-link:hover { color: #fff; transform: translateX(4px); }
.round {
  flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  font-size: 22px; font-style: normal; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent-hi) 0%, var(--accent) 55%, var(--accent-lo) 100%);
  box-shadow: 0 10px 24px -12px rgba(var(--accent-rgb), .8), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .35s var(--ease);
}
.contact-link:hover .round { transform: scale(1.08) rotate(-6deg); }
.arrow { margin-left: auto; display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--accent-hi); font-size: 16px; font-style: normal; transition: background .25s, color .25s, border-color .25s, transform .35s var(--ease); }
.contact-link:hover .arrow { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(45deg); }

footer { padding: 26px 5px; text-align: center; font-size: 13px; color: var(--muted); }
footer a { color: var(--accent-hi); }

/* ---------- Responsive ---------- */
@media (max-width: 570px) {
  .wrap { margin: 15px auto; width: min(100% - 22px, 680px); }
  .profile { grid-template-columns: 1fr; padding: 17px; gap: 20px; }
  .logo { min-height: 150px; font-size: 80px; }
  .intro { padding: 3px 4px 7px; }
  .contact { padding: 12px 18px; }
  .email { flex-wrap: wrap; }
  .contact-link { font-size: 16px; gap: 12px; min-height: 78px; }
  .round { width: 44px; height: 44px; font-size: 20px; }
  .arrow { width: 32px; height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
