/* ============================================================
   aislinnyang.org — styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@1,200;1,300&family=Outfit:wght@300;400&display=swap');

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

:root {
  --cream: #FAF8F5;
  --charcoal: #1C1C1C;
  --coral: #E8613A;
  --muted: #9B9B9B;
  --line: #E8E4DF;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  cursor: none;
  overflow-x: hidden;
}

/* ── Cursor ───────────────────────────────────────────────── */

#cursor-dot {
  position: fixed; width: 8px; height: 8px;
  background: var(--coral); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
}
#cursor-ring {
  position: fixed; width: 28px; height: 28px;
  border: 1.5px solid var(--coral); border-radius: 50%;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease;
  opacity: 0.6;
}
#cursor-ring.big { width: 44px; height: 44px; }

/* ── Loading Wrapper ─────────────────────────────────────── */

#loading-wrapper {
  position: fixed; inset: 0;
  background: var(--cream);
  z-index: 100;
  overflow: hidden;
  transition: opacity 0.8s ease;
}

/* Onboarding */
#ob {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: var(--cream);
  transition: opacity 0.4s ease;
}
.ob-dots { display: flex; gap: 8px; margin-bottom: 2.5rem; }
.ob-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
  transition: background 0.3s;
}
.ob-dot.active { background: var(--coral); }
#qtxt {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 200;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--charcoal);
  text-align: center;
  max-width: 420px;
  margin-bottom: 2rem;
  line-height: 1.35;
  padding: 0 1.5rem;
}
#opts {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  justify-content: center;
  max-width: 520px; padding: 0 2rem;
}
.qbtn {
  font-family: 'Outfit', sans-serif; font-weight: 300;
  font-size: 0.85rem;
  border: 1px solid var(--line);
  background: none; color: var(--charcoal);
  padding: 0.65rem 1.2rem;
  cursor: none;
  transition: border-color 0.2s, color 0.2s;
}
.qbtn:hover { border-color: var(--coral); color: var(--coral); }

/* Canvas */
#cv {
  display: none;
  width: 100%; height: 100%;
  position: absolute; inset: 0;
}

/* Choice screen */
#ch {
  display: none; position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center;
  background: var(--cream); text-align: center; padding: 2rem;
}
.ch-label {
  font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--coral);
  margin-bottom: 1rem;
}
.ch-title {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 200;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--charcoal); margin-bottom: 0.5rem;
}
.ch-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 3rem; }
.ch-btns { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }

/* Too-early toast */
#te {
  display: none; position: absolute;
  top: 44%; left: 50%; transform: translate(-50%, -50%);
  background: var(--cream); border: 1px solid var(--line);
  padding: 1.2rem 2rem; z-index: 30;
  text-align: center; pointer-events: none;
  max-width: 300px;
}
#te p { font-size: 0.9rem; color: var(--charcoal); line-height: 1.7; white-space: pre-line; }

/* Gold miner popup */
#pop {
  display: none; position: absolute; inset: 0;
  background: rgba(28, 28, 28, 0.52);
  align-items: center; justify-content: center;
  z-index: 25;
}
.pop-card {
  background: var(--cream);
  padding: 2rem 2.5rem;
  max-width: 360px; width: 90%;
  position: relative;
}
.pop-close {
  position: absolute; top: 0.8rem; right: 1rem;
  background: none; border: none;
  font-size: 1.1rem; color: var(--muted); cursor: none;
}
.pop-em { font-size: 2.2rem; margin-bottom: 0.8rem; }
.pop-cat {
  font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--coral);
  margin-bottom: 0.3rem;
  font-family: 'Outfit', sans-serif; font-weight: 300;
}
.pop-title {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 200;
  font-size: 1.55rem; color: var(--charcoal);
  margin-bottom: 0.7rem; line-height: 1.2;
}
.pop-desc {
  font-size: 0.87rem; line-height: 1.75;
  color: var(--charcoal);
  font-family: 'Outfit', sans-serif; font-weight: 300;
  margin-bottom: 1.4rem; white-space: pre-line;
}

/* Unlock screen */
#unlk {
  display: none; position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center;
  background: var(--cream); z-index: 30; text-align: center;
}
.unlk-sun { font-size: 3.5rem; margin-bottom: 1.2rem; }
.unlk-label {
  font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--coral);
  margin-bottom: 0.8rem;
}
.unlk-title {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 200;
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: var(--charcoal); margin-bottom: 0.5rem;
}
.unlk-sub { font-size: 0.9rem; color: var(--muted); margin-bottom: 2.5rem; }

/* ── Buttons (shared) ────────────────────────────────────── */

.btn {
  font-family: 'Outfit', sans-serif; font-weight: 300;
  font-size: 0.85rem; padding: 0.75rem 1.8rem;
  cursor: none; letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: none;
}
.btn-primary { background: var(--charcoal); color: var(--cream); }
.btn-primary:hover { background: var(--coral); }
.btn-ghost { background: none; color: var(--muted); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--muted); }
.btn-outline { background: none; color: var(--charcoal); border: 1px solid var(--line); }
.btn-outline:hover { border-color: var(--coral); color: var(--coral); }

/* ── Main Site ───────────────────────────────────────────── */

#main-site {
  opacity: 0; pointer-events: none;
  transition: opacity 0.8s ease;
}
#main-site.visible { opacity: 1; pointer-events: all; }

/* Fade-in on scroll */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Nav */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1.5rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  background: var(--cream);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-color: var(--line); }
.nav-logo {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 200;
  font-size: 1.1rem; color: var(--charcoal);
  text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  text-decoration: none; cursor: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--coral); }

/* Hero */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 8rem 4rem 4rem;
  gap: 4rem;
}
.hero-text { flex: 1; }
.hero-tag {
  font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 1.5rem;
}
.hero-name {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 200;
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 1.0; margin-bottom: 0.3rem;
}
.hero-name span { color: var(--coral); }
.hero-handle {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 200;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--muted); margin-bottom: 2rem;
}
.hero-tagline {
  font-size: 1rem; line-height: 1.7;
  max-width: 480px; margin-bottom: 2rem;
}
.hero-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 2.5rem; }
.hero-meta span { color: var(--coral); }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-photo {
  width: 280px; height: 340px; flex-shrink: 0;
  background: var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo-placeholder {
  font-family: 'Fraunces', serif; font-style: italic;
  font-size: 4rem; color: var(--muted); opacity: 0.3;
}
.hero-photo::after {
  content: '🌻';
  position: absolute; bottom: 1.2rem; right: 1.2rem; font-size: 1.4rem;
}

/* Sections base */
section { padding: 6rem 4rem; }
.section-label {
  font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 2.5rem;
}
.section-heading {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 200;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 2rem;
}

/* About */
#about { border-top: 1px solid var(--line); }
.about-inner { max-width: 720px; }
.about-intro {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 200;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.4; margin-bottom: 1.5rem;
}
.about-body { font-size: 0.95rem; line-height: 1.9; margin-bottom: 1.5rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.tag {
  font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--line); color: var(--muted);
}

/* Work */
#work { border-top: 1px solid var(--line); }
.work-list { border-top: 1px solid var(--line); }
.work-item {
  border-bottom: 1px solid var(--line);
  padding: 1.3rem 4rem;
  margin: 0 -4rem;
  display: flex; align-items: center; justify-content: space-between;
  cursor: none;
  transition: background 0.2s;
}
.work-item:hover { background: rgba(232, 97, 58, 0.04); }
.work-item:hover .work-arrow { opacity: 1; transform: translateX(0); }
.work-left { display: flex; flex-direction: column; gap: 0.3rem; }
.work-name { font-size: 1rem; font-weight: 400; }
.work-tags-row { font-size: 0.72rem; color: var(--muted); }
.work-right { display: flex; align-items: center; gap: 1rem; }
.work-year { font-size: 0.72rem; color: var(--muted); }
.work-arrow {
  color: var(--coral); font-size: 0.9rem;
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.2s;
}

/* Writing */
#writing { border-top: 1px solid var(--line); }
.writing-inner {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 4rem;
}
.writing-sub { font-size: 0.9rem; color: var(--muted); line-height: 1.7; margin-bottom: 2rem; }
.writing-stat {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 200;
  font-size: 1.1rem;
}

/* Now */
#now { border-top: 1px solid var(--line); }
#now ul { list-style: none; }
#now ul li {
  font-size: 0.95rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
#now ul li::before { content: '→ '; color: var(--coral); }
.now-updated { font-size: 0.7rem; color: var(--muted); margin-top: 1.5rem; letter-spacing: 0.06em; }

/* Contact */
#contact { border-top: 1px solid var(--line); text-align: center; }
.contact-heading {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 200;
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 1rem;
}
.contact-sub {
  font-size: 0.95rem; color: var(--muted);
  max-width: 480px; margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.contact-email {
  font-size: 1rem; color: var(--charcoal);
  text-decoration: none; display: block; margin-bottom: 2rem;
  cursor: none; transition: color 0.2s;
}
.contact-email:hover { color: var(--coral); }
.social-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2.5rem; }
.social-links a {
  font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
  text-decoration: none; cursor: none;
  transition: color 0.2s;
}
.social-links a:hover { color: var(--coral); }
.resume-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* Footer */
footer {
  padding: 1.5rem 4rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between;
}
footer p { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.06em; }

/* ── Work Modal ──────────────────────────────────────────── */

#work-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(28, 28, 28, 0.6);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
#work-modal.open { display: flex; }
.wm-inner {
  background: var(--cream);
  max-width: 540px; width: 90%;
  padding: 2.5rem; position: relative;
  max-height: 80vh; overflow-y: auto;
}
.wm-close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  background: none; border: none;
  font-size: 1.2rem; color: var(--muted); cursor: none;
}
.wm-cat {
  font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--coral);
  margin-bottom: 0.8rem;
}
.wm-title {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 200;
  font-size: 1.8rem; margin-bottom: 1rem;
}
.wm-one { font-size: 0.95rem; font-weight: 400; margin-bottom: 1.5rem; line-height: 1.6; }
.wm-did-label {
  font-size: 0.65rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 0.6rem;
}
.wm-did { font-size: 0.9rem; line-height: 1.8; }
.wm-link {
  display: inline-block; margin-top: 1.5rem;
  font-size: 0.8rem; color: var(--coral);
  text-decoration: none; letter-spacing: 0.04em;
}
.wm-link:hover { text-decoration: underline; }

/* ── Resume Modal ────────────────────────────────────────── */

#resume-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(28, 28, 28, 0.6);
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
#resume-modal.open { display: flex; }
.rm-inner {
  background: var(--cream);
  width: min(700px, 95vw);
  padding: 2rem; position: relative;
}
.rm-header {
  display: flex; align-items: center; gap: 1rem;
  margin-bottom: 1.2rem; flex-wrap: wrap;
}
.rm-header h3 {
  font-family: 'Fraunces', serif;
  font-style: italic; font-weight: 200;
  font-size: 1.4rem; flex: 1;
}
.rm-tabs { display: flex; gap: 0.4rem; }
.rm-tab {
  font-family: 'Outfit', sans-serif; font-weight: 300;
  font-size: 0.78rem; padding: 0.35rem 0.9rem;
  border: 1px solid var(--line); background: none;
  color: var(--muted); cursor: none; transition: all 0.2s;
}
.rm-tab.active { border-color: var(--coral); color: var(--coral); }
.rm-close {
  background: none; border: none;
  font-size: 1.1rem; color: var(--muted); cursor: none;
  margin-left: auto;
}
#res-iframe {
  width: 100%; height: min(560px, 60vh);
  border: 1px solid var(--line);
  display: block;
}
.rm-footer { display: flex; justify-content: flex-end; gap: 0.8rem; margin-top: 1rem; }

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 768px) {
  nav { padding: 1.2rem 1.5rem; }
  .nav-links { gap: 1.2rem; }
  section { padding: 4rem 1.5rem; }
  #hero { padding: 7rem 1.5rem 3rem; flex-direction: column-reverse; gap: 2rem; }
  .hero-photo { width: 100%; height: 260px; }
  .work-item { margin: 0 -1.5rem; padding-left: 1.5rem; padding-right: 1.5rem; }
  .writing-inner { flex-direction: column; gap: 2rem; }
  footer { padding: 1.2rem 1.5rem; flex-direction: column; gap: 0.5rem; }
}
