/* ============================================================
   Aray Bereket — contact card
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #111111;
  --value: #1b1b1b;
  --dot: #c9c9c9;

  --sans: "Helvetica Neue", "Inter", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

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

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

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: clamp(28px, 7vw, 96px);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* barely-there paper grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  opacity: 0.018;
  mix-blend-mode: multiply;
  background-image: var(--noise);
}

::selection {
  background: var(--ink);
  color: #ffffff;
}

:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 4px;
}

/* ---------- layout ---------- */

.card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2.5rem, 4.5vw, 4.5rem);
  width: min(100%, 1120px);
}

/* ---------- name ---------- */

.identity {
  flex: 0 0 auto;
  min-width: 0;
}

.name {
  margin: 0;
  font-size: clamp(3.6rem, 7.2vw, 7rem);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: var(--ink);
}

/* ---------- vertical rule ---------- */

.rule {
  flex: 0 0 1px;
  width: 1px;
  height: clamp(120px, 16vw, 190px);
  background: var(--ink);
}

/* ---------- contact list ---------- */

.details {
  flex: 0 1 380px;
  width: 100%;
  max-width: 380px;
  margin-left: auto;
}

.list {
  margin: 0;
}

.item {
  padding: clamp(1.1rem, 1.8vw, 1.55rem) 0;
  border-bottom: 1px dotted var(--dot);
}

.item:first-child {
  padding-top: 0;
}

.item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.item dt {
  margin: 0 0 0.4rem;
  font-size: clamp(0.75rem, 1.05vw, 0.875rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.item dd {
  margin: 0;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--value);
}

.item a {
  color: inherit;
  text-decoration: none;
}

.item a:hover,
.item a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

/* ---------- entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .identity,
  .rule,
  .details {
    animation: reveal 1s var(--ease) both;
  }

  .identity {
    animation-delay: 0.05s;
  }

  .rule {
    animation-delay: 0.16s;
  }

  .details {
    animation-delay: 0.24s;
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* ---------- mobile ---------- */

@media (max-width: 900px) {
  body {
    padding: clamp(30px, 8vw, 64px) clamp(24px, 6vw, 48px);
  }

  .card {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(100%, 560px);
  }

  .name {
    font-size: clamp(4rem, 12vw, 5.5rem);
  }

  .rule {
    flex: 0 0 1px;
    width: 100%;
    height: 1px;
    margin: clamp(2rem, 6vw, 3rem) 0;
  }

  .details {
    flex: 0 0 auto;
    max-width: none;
    margin-left: 0;
  }

  .item {
    padding: 1.15rem 0;
  }

  .item:first-child {
    padding-top: 0;
  }

  .item:last-child {
    padding-bottom: 0;
  }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .identity,
  .rule,
  .details {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ---------- print ---------- */

@media print {
  body {
    padding: 0;
  }

  body::after {
    display: none;
  }

  .card {
    width: 100%;
  }

  .identity,
  .rule,
  .details {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
