/* ===== Angela Kang — portfolio ===== */

:root {
  --band: #f6f6f6;        /* light gray behind the top section and footer */
  --ink: #111111;         /* main text + button */
  --ink-soft: #2b2b2b;    /* skill tags */
  --placeholder: #d9d9d9; /* shows while photos load */
  --radius: 20px;         /* project photo corners */
  --gutter: 60px;         /* page side padding */
}

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

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

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Helvetica, sans-serif;
  color: var(--ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--ink); }
a:hover { color: #444444; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.band { background: var(--band); }

/* ----- Top bar ----- */

.hero-band { padding: 28px 0 88px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.nav { display: flex; align-items: center; gap: 36px; }

.nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  text-decoration: none;
}

.nav a[aria-current="page"] {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
}

/* ----- Hero ----- */

.hero {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 440px);
  column-gap: clamp(40px, 11vw, 140px);
  align-items: center;
}

.headshot {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  background: #cfcfcf;
}

.intro { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.intro h1 {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 300;
  line-height: 1.35;
  text-wrap: pretty;
}

.intro-sub { margin: 0; font-size: 14px; line-height: 1.5; }

.button {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.button:hover { background: #333333; color: #ffffff; }

/* ----- Projects ----- */

.projects-section {
  padding: 96px 0 120px;
  overflow-x: clip; /* keeps the star from causing sideways scroll on small screens */
}

.projects-section h2 {
  margin: 0 0 48px;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.25;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  row-gap: 64px;
}

.project h3 {
  margin: 22px 0 0;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
}

.tags {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.media { position: relative; }

.media img:not(.sticker) {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--placeholder);
}

/* "currently in progress" star — stop-motion wiggle, 2 frames per second */
.sticker {
  position: absolute;
  top: -22.86%;
  left: 64.64%;
  width: 51.8%;
  height: auto;
  z-index: 3;
  pointer-events: none;
  transform-origin: 50% 50%;
  animation: sticker-wiggle 4s steps(1, end) infinite;
}

@keyframes sticker-wiggle {
  0%    { transform: rotate(-4deg) scale(1); }
  12.5% { transform: rotate(3deg)  scale(1.03); }
  25%   { transform: rotate(-1deg) scale(1.01); }
  37.5% { transform: rotate(5deg)  scale(1.02); }
  50%   { transform: rotate(-3deg) scale(1.03); }
  62.5% { transform: rotate(2deg)  scale(1); }
  75%   { transform: rotate(-5deg) scale(1.02); }
  87.5% { transform: rotate(1deg)  scale(1.01); }
  100%  { transform: rotate(-4deg) scale(1); }
}

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

/* ----- Footer ----- */

.footer { padding: 48px 0 56px; }

.footer-name { margin: 0 0 14px; font-size: 22px; line-height: 1.3; }

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }

/* ===== Tablet ===== */

@media (max-width: 860px) {
  :root { --gutter: 32px; }

  .hero {
    margin-top: 40px;
    grid-template-columns: 1fr;
    row-gap: 36px;
  }

  .headshot { width: min(100%, 360px); }

  .hero-band { padding-bottom: 64px; }
}

/* ===== Phone ===== */

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  .hero-band { padding: 16px 0 56px; }

  .wordmark { font-size: 18px; }

  .nav { gap: 18px; }
  .nav a { font-size: 14px; }

  .hero { margin-top: 28px; row-gap: 28px; }

  .headshot { width: min(100%, 300px); margin: 0 auto; }

  .intro h1 { font-size: 24px; }

  .projects-section { padding: 64px 0 80px; }
  .projects-section h2 { font-size: 26px; margin-bottom: 40px; }

  .projects { grid-template-columns: 1fr; row-gap: 48px; }

  .project h3 { margin-top: 16px; font-size: 20px; }

  .sticker { top: -14%; left: 62%; width: 38%; }

  .footer { padding: 40px 0 48px; }
}
