/* =========================================================
   Minnie Yuan — site styles
   Change the colors here and they update everywhere.
   ========================================================= */
:root {
  --burgundy: #6e1f33;      /* main color */
  --burgundy-dark: #4f1524;
  --charcoal: #2f2c2d;      /* accent: text, dark details */
  --ivory: #fbf7ef;         /* accent: background */
  --blush: #e8c7c3;         /* accent: dusty blush */
  --blush-light: #f4e3e0;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --max-width: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.6;
  font-size: 17px;
}

a { color: var(--burgundy); }
img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--burgundy);
  line-height: 1.15;
}

/* ---------- HERO (front page) ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  /* "Faint background" — swap this for a photo later, e.g.:
     background: linear-gradient(rgba(251,247,239,.75), rgba(251,247,239,.75)), url("images/hero.jpg") center/cover; */
  background:
    linear-gradient(to bottom, transparent 65%, var(--ivory) 100%),
    radial-gradient(circle at 15% 20%, var(--blush-light) 0, transparent 45%),
    radial-gradient(circle at 85% 80%, var(--blush) 0, transparent 40%),
    var(--ivory);
}

.hero-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--blush);
  border-radius: var(--radius);
  padding: 3rem 3.5rem;
  text-align: center;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 20px 50px -25px rgba(110, 31, 51, 0.35);
}

.hero-card h1 {
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  margin-bottom: 0.5rem;
}

.hero-card .role {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.hero-card .tagline {
  margin-top: 1.25rem;
  font-style: italic;
  color: #6b6466;
}

.scroll-arrow {
  margin-top: 2.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--burgundy);
  display: grid;
  place-items: center;
  color: var(--burgundy);
  text-decoration: none;
  animation: bob 2s ease-in-out infinite;
  transition: background 0.2s, color 0.2s;
}
.scroll-arrow:hover { background: var(--burgundy); color: var(--ivory); }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ---------- FOUR BOXES ---------- */
.explore {
  padding: 6rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.explore h2 {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.explore .hint {
  text-align: center;
  color: #6b6466;
  margin-bottom: 3rem;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  background: var(--burgundy);
  color: var(--ivory);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tile:nth-child(2) { background: var(--charcoal); }
.tile:nth-child(3) { background: var(--blush); color: var(--burgundy-dark); }
.tile:nth-child(4) { background: var(--burgundy-dark); }

.tile h3 {
  color: inherit;
  font-size: 1.6rem;
  transition: transform 0.35s ease;
}

.tile .detail {
  position: absolute;
  inset: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: inherit;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.tile .detail p { font-size: 0.95rem; margin-bottom: 0.75rem; }
.tile .detail span { font-weight: 600; font-size: 0.9rem; }

.tile:hover,
.tile:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -20px rgba(47, 44, 45, 0.6);
}
.tile:hover .detail,
.tile:focus-visible .detail { opacity: 1; transform: translateY(0); }
.tile:hover h3,
.tile:focus-visible h3 { opacity: 0; }

/* Phones/tablets can't hover, so show the detail under the title instead */
@media (hover: none), (max-width: 700px) {
  .tile { aspect-ratio: auto; min-height: 180px; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .tile .detail { position: static; opacity: 1; transform: none; padding: 0.5rem 0 0; background: none; }
  .tile .detail h3 { display: none; }
  .tile h3, .tile:hover h3 { opacity: 1; }
  .tile:hover { transform: none; }
}

@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .hero-card { padding: 2.25rem 1.5rem; }
}

/* ---------- INNER PAGES ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--blush);
  background: var(--ivory);
}
.site-header .logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--burgundy);
  text-decoration: none;
}
.site-header nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-header nav a {
  color: var(--charcoal);
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.site-header nav a:hover,
.site-header nav a.active { border-color: var(--burgundy); color: var(--burgundy); }

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
}
.page > h1 { font-size: clamp(2.2rem, 6vw, 3rem); margin-bottom: 1rem; }
.page .lead { font-size: 1.15rem; margin-bottom: 2.5rem; }
.page h2 { font-size: 1.6rem; margin: 3rem 0 1rem; }
.page p + p { margin-top: 1rem; }

.card {
  background: #fff;
  border: 1px solid var(--blush);
  border-left: 4px solid var(--burgundy);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}
.card h3 { font-size: 1.3rem; margin-bottom: 0.35rem; }
.meta {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b6466;
  margin-bottom: 0.75rem;
}
.tag {
  display: inline-block;
  background: var(--blush-light);
  color: var(--burgundy-dark);
  border-radius: 999px;
  padding: 0.1rem 0.7rem;
  font-size: 0.75rem;
  margin-left: 0.4rem;
  text-transform: none;
  letter-spacing: 0;
}

.interests { list-style: none; display: grid; gap: 0.75rem; }
.interests li {
  background: var(--blush-light);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}

.btn {
  display: inline-block;
  background: var(--burgundy);
  color: var(--ivory);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  margin: 0.25rem 0.5rem 0.25rem 0;
  transition: background 0.2s;
}
.btn:hover { background: var(--burgundy-dark); }
.btn.outline { background: transparent; color: var(--burgundy); border: 1.5px solid var(--burgundy); }
.btn.outline:hover { background: var(--burgundy); color: var(--ivory); }

.resume-frame {
  width: 100%;
  height: 80vh;
  border: 1px solid var(--blush);
  border-radius: var(--radius);
  margin-top: 2rem;
  background: #fff;
}

.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.85rem;
  color: #6b6466;
  border-top: 1px solid var(--blush);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-arrow { animation: none; }
  .tile, .tile .detail, .tile h3 { transition: none; }
}
