/* asare.dev — studio page. Dark only, neutral zinc, no brand accent. */

:root {
  --bg: #09090B;
  --bg-raised: #101012;
  --text: #F4F4F5;
  --muted: #A1A1AA;
  --hairline: rgba(255, 255, 255, 0.10);
  --hairline-strong: rgba(255, 255, 255, 0.16);
  --gutter: 24px;
  --measure: 640px;
  --ease: 160ms ease;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* Column: one centred measure; footer sinks to the bottom on short pages. */
.wrap {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 64px var(--gutter) 40px;
}
@media (min-width: 720px) {
  .wrap { padding-top: 96px; }
}

/* ---------- Masthead ---------- */
.masthead { margin-bottom: 48px; }

.wordmark {
  margin: 0;
  font-size: clamp(32px, 6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.wordmark-dot { color: var(--muted); }
.wordmark a { color: inherit; text-decoration: none; }

.tagline {
  margin: 8px 0 0;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--muted);
}

/* ---------- Project cards ---------- */
.projects {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
  grid-template-areas: "icon body chip arrow";
  align-items: center;
  column-gap: 16px;
  padding: 20px;
  background: var(--bg-raised);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  text-decoration: none;
  transition: transform var(--ease), border-color var(--ease);
}
.card:hover {
  transform: translateY(-1px);
  border-color: var(--hairline-strong);
}
.card:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.card-icon {
  grid-area: icon;
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 22.85%; /* macOS icon corner ratio; the PNG is cropped to the icon square */
}

.card-body { grid-area: body; }

.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.card-desc {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.chip {
  grid-area: chip;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

.card-arrow {
  grid-area: arrow;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  transition: color var(--ease), transform var(--ease);
}
.card:hover .card-arrow,
.card:focus-visible .card-arrow {
  color: var(--text);
  transform: translate(1px, -1px);
}

/* Phone: icon above text, chip under the text. */
@media (max-width: 479.98px) {
  .card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "icon arrow"
      "body body"
      "chip chip";
    row-gap: 12px;
  }
  .card-arrow { align-self: start; }
  .chip { justify-self: start; }
}

/* ---------- Footer ---------- */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: auto;
  padding-top: 64px;
  font-size: 14px;
  color: var(--muted);
}

.follow {
  display: flex;
  gap: 20px;
}
.follow a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--ease);
}
.follow a:hover,
.follow a:focus-visible { color: var(--text); }
.follow a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 2px;
}

.copyright { margin: 0; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .card,
  .card-arrow,
  .follow a { transition: none; }
  .card:hover { transform: none; }
  .card:hover .card-arrow,
  .card:focus-visible .card-arrow { transform: none; }
}
