/* shuaybmalik.com — recreated from the old Carrd page.
   Colours are at the top: change them here and they change everywhere. */

:root {
  --dark-band: #9a8a5c;              /* olive bands (top, Experience) */
  --light-band: #c3c49e;             /* sage bands (About, Contact) */
  --text: #1f1a1b;                   /* all text */
  --divider: rgba(255, 255, 255, 0.26);
  --button-border: rgba(31, 26, 27, 0.45);
  --button-hover: rgba(31, 26, 27, 0.08);
  --card-width: 37.5rem;
  --radius: 0.5rem;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  min-height: 100vh;
  padding: 2.5rem;
  background: #fff;
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

/* Garden photo fixed behind the card */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("bg.jpg") center / cover no-repeat;
}

/* ---------- the card ---------- */

.card {
  max-width: var(--card-width);
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  animation: fade-in 0.6s ease-out both;
}

.band { padding: 2.75rem; }
.dark { background: var(--dark-band); }
.light { background: var(--light-band); }

/* ---------- top: photo, name, tagline ---------- */

.intro {
  padding-top: 4rem;
  padding-bottom: 4rem;
  text-align: center;
}

.avatar {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  object-fit: cover;
}

h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.05em;
}

.tagline {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

/* ---------- two-column rows (heading | content) ---------- */

.row {
  display: flex;
  align-items: flex-start;
}

.row h2 {
  flex: 0 0 31%;
  margin: 0;
  padding-right: 2.75rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.025em;
  text-align: right;
}

.row .body {
  flex: 1;
  padding-left: 2.75rem;
  border-left: 1px solid var(--divider);
}

p { margin: 0; }
.body p + p { margin-top: 0.75rem; }

a { color: inherit; }

/* ---------- list with ">" arrows ---------- */

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  display: flex;
  gap: 0.75rem;
}

.list li + li { margin-top: 0.75rem; }

.list li::before {
  content: "";
  flex: 0 0 0.875rem;
  height: 1.53rem;
  background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M12.9,32.4L25.3,20L13,7.6c-0.2-0.2-0.2-0.5,0-0.7l1.6-1.6c0.2-0.2,0.5-0.2,0.7,0L29.8,20L15.1,34.6c-0.2,0.2-0.5,0.2-0.7,0l-1.6-1.6C12.7,32.9,12.7,32.6,12.9,32.4z' fill='%231F1A1B'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- link buttons ---------- */

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.buttons a {
  display: inline-flex;
  align-items: center;
  height: 2.5rem;
  padding: 0 1.25rem;
  border: 1px solid var(--button-border);
  border-radius: 0.375rem;
  text-decoration: none;
  line-height: 1;
  transition: background-color 0.2s ease;
}

.buttons a:hover,
.buttons a:focus-visible { background: var(--button-hover); }

.buttons svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  fill: currentColor;
}

/* ---------- phones: stack heading above content ---------- */

@media (max-width: 640px) {
  body { padding: 1rem; }
  .band { padding: 2rem 1.75rem; }
  .intro { padding-top: 3rem; padding-bottom: 3rem; }
  .row { display: block; }
  .row h2 {
    padding: 0 0 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--divider);
    text-align: left;
  }
  .row .body { padding-left: 0; border-left: 0; }
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(0.5rem); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .card { animation: none; }
}
