/* ============================================================
   RISA SLEPIKAS — v0.2 Source-Driven Design
   risa/css/style.css
   ============================================================ */

/* --- Variables: Blue-oriented palette — clean light editorial, unmistakable blue atmosphere --- */
:root {
  --bg:         #F7F9FF;
  --surface:    rgba(255, 255, 255, 0.82);
  --blue-soft:  rgba(91, 143, 249, 0.18);
  --blue-pale:  rgba(164, 198, 255, 0.15);
  --text:       #1A1814;
  --muted:      #6B7280;
  --accent:     #315FCE;
  --accent-h:   #244DAF;
  --border:     #D8D2CA;
  --gold:       #C49A3C;
  --green:      #2D7A4F;
  --max-w:      1140px;
  --pad:        20px;
  --font:       'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:       'SF Mono', 'Menlo', 'Monaco', monospace;

  /* Brand accents (local use only, on specific stories/cards) */
  --brand-lightning:  #1E6BB8;
  --brand-usf:        #2D7A4F;
  --brand-sun:        #E8A825;
  --brand-dark:       #1A1814;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: #F7F9FF;
}
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(91, 143, 249, 0.22) 0%,
      rgba(173, 151, 255, 0.14) 28%,
      rgba(164, 198, 255, 0.08) 45%,
      transparent 67%
    ),
    radial-gradient(
      circle at 8% 82%,
      rgba(173, 151, 255, 0.16) 0%,
      rgba(91, 143, 249, 0.12) 30%,
      rgba(164, 198, 255, 0.06) 48%,
      transparent 68%
    ),
    #F7F9FF;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Typography --- */
h1, h2 { font-weight: 800; letter-spacing: -0.055em; line-height: 0.92; color: var(--text); }
h1 { font-size: clamp(2.8rem, 10vw, 6.5rem); }
h2 { font-size: clamp(1.7rem, 4vw, 3rem); }
h3 { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
p  { font-size: 0.95rem; line-height: 1.65; }
.small { font-size: 0.82rem; }
.label {
  font-size: 0.65rem; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
}
.meta {
  font-size: 0.76rem; font-family: var(--mono);
  color: var(--muted); letter-spacing: 0.02em;
}
.num {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 800; letter-spacing: -0.08em; line-height: 0.85;
}

/* --- Draft --- */
.draft { color: var(--muted); opacity: 0.55; font-style: normal; font-size: 0.88rem; }
.draft-sm {
  font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase;
  display: block; margin-top: 4px;
}

/* --- Layout --- */
.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.sec  { padding: clamp(60px, 7vw, 110px) 0; }
.sec-alt {
  background: var(--blue-pale);
  backdrop-filter: blur(2px);
}
.sec-dark { background: var(--accent); color: #FFFFFF; }
.sec-dark h2 { color: #FFFFFF; }
.sec-dark .label { color: rgba(255,255,255,0.45); }
.text-center { text-align: center; }

/* --- Navigation --- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-in {
  display: flex; justify-content: space-between; align-items: center;
  height: 52px;
}
.nav-brand {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.nav-links { display: none; gap: 22px; }
.nav-links a {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; width: 0;
  height: 1.5px; background: var(--accent); transition: width 0.25s;
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { width: 100%; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--accent); }
.nav-toggle {
  display: block; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 5px 0; transition: 0.3s;
}
.nav.open .nav-links {
  display: flex; flex-direction: column; position: absolute;
  top: 52px; left: 0; right: 0; background: rgba(255,255,255,0.98);
  padding: 22px var(--pad); box-shadow: 0 20px 50px rgba(26,24,20,0.06);
  gap: 6px; border-bottom: 1px solid var(--border);
}
.nav.open .nav-links a { font-size: 1rem; padding: 12px 0; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- HERO: Split editorial layout (name left, portrait photo right) --- */
.hero {
  position: relative; min-height: 85vh; display: flex; align-items: center;
  overflow: hidden;
}
.hero-wrap {
  display: flex; width: 100%; height: 100%;
}
.hero-text {
  position: relative; z-index: 3; flex: 1;
  padding: 48px var(--pad) 48px max(var(--pad), calc((100vw - var(--max-w)) / 2 + var(--pad)));
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(135deg, #315FCE 0%, #244DAF 40%, #1E3A6E 100%);
}
.hero-text h1 {
  font-size: clamp(2.8rem, 10vw, 6.5rem);
  font-weight: 900; letter-spacing: -0.07em; line-height: 0.88;
  color: #FFFFFF; margin-bottom: 20px;
}
.hero-text h1 .accent { color: var(--gold); }
.hero-text .hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.05rem); font-weight: 400;
  color: rgba(255,255,255,0.85); margin-bottom: 28px;
  max-width: 380px; line-height: 1.6;
}
.hero-cta {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; background: #FFFFFF; color: var(--text);
  border: 2px solid #FFFFFF; transition: all 0.25s; width: fit-content;
}
.hero-cta:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; transform: translateY(-2px); }
.hero-photo {
  position: relative; z-index: 2; flex: 1; min-width: 0;
  overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
}
.hero-photo img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  filter: brightness(0.97) contrast(1.02);
}
/* Scroll hint removed — split hero doesn't need it */

/* --- Intro / Story --- */
.intro { max-width: 680px; margin: 0 auto; }
.intro h2 { margin-bottom: 24px; }
.intro p  { margin-bottom: 14px; }
.intro p { font-size: clamp(1.05rem, 1.5vw, 1.15rem); line-height: 1.75; color: var(--text); }

/* --- Section headers --- */
.sec-header { margin-bottom: 40px; }

/* --- Story blocks (editorial image + text) --- */
.story { display: grid; gap: 0; }
.story-img {
  width: 100%; height: auto; object-fit: contain;
  border-radius: 12px; display: block;
}
/* Override for portraits where cover is justified (Risa face/grad cap visible) */
.story-img.portrait {
  aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%;
}
/* Override for wide/event photos: natural aspect */
.story-img.wide {
  aspect-ratio: 16 / 10; object-fit: cover; object-position: center;
}
.story-body { padding: 32px 0; }
.story-body .label { margin-bottom: 6px; }
.story-body h3 { margin-bottom: 12px; font-size: 1.3rem; }
.story-body p  { color: var(--muted); margin-bottom: 8px; }
/* Brand accent overlays on story sections */
.story-lightning .story-img { border-bottom: 3px solid var(--brand-lightning); }
.story-lightning .label    { color: var(--brand-lightning); }
.story-usf .story-img      { border-bottom: 3px solid var(--brand-usf); }
.story-usf .label          { color: var(--brand-usf); }
.story-sun .story-img      { border-bottom: 3px solid var(--brand-sun); }
.story-sun .label          { color: var(--brand-sun); }

/* --- Stories alternating --- */
.story-alt {
  background: var(--blue-pale);
  margin: 0 calc(-1 * var(--pad));
  padding: 0 var(--pad);
}

/* --- Social campaigns --- */
.social-section { background: transparent; }
.soc-grid { display: grid; gap: 20px; }
.soc-card {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(26,24,20,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}
.soc-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(26,24,20,0.1); }
.soc-card-img {
  width: 100%; height: auto; object-fit: contain;
  display: block;
}
/* For portrait/phone screenshots: contain with background */
.social-card-img.phone-screenshot {
  background: var(--bg); padding: 8px;
}
.soc-card-body { padding: 20px 22px 24px; }
.soc-card-body .label { margin-bottom: 6px; }
.soc-card-body h3 { margin-bottom: 8px; font-size: 1.1rem; }
.soc-card-body p  { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.soc-stats { display: grid; gap: 0; }
.soc-stat { padding: 10px 0; border-top: 1px solid var(--border); }
.soc-stat .num {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.06em; line-height: 0.9;
  color: var(--accent);
}
.soc-stat .lbl { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

/* --- Music section: light blue-lavender (not dark green) --- */
.music-sec {
  background: linear-gradient(135deg, #EBF0FF 0%, #E0E7FF 50%, #EDE9FF 100%);
  border-top: 1px solid rgba(49, 95, 206, 0.1);
  border-bottom: 1px solid rgba(49, 95, 206, 0.1);
}
.music-sec .sec-header { text-align: center; }
.music-sec .sec-header h2 { color: var(--accent); margin-bottom: 20px; }
.music-sec .sec-header p { color: var(--muted); font-size: 1rem; }
.music-grid { display: grid; gap: 24px; margin-top: 36px; }
.music-item {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 28px; background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(49, 95, 206, 0.1); border-radius: 10px;
  backdrop-filter: blur(8px); transition: background 0.3s;
}
.music-item:hover { background: rgba(255, 255, 255, 0.85); }
.music-dot {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  color: #FFFFFF; font-size: 1.15rem;
}
.music-item h3 { margin-bottom: 4px; font-size: 0.95rem; color: var(--text); }
.music-item p  { font-size: 0.82rem; margin: 0; color: var(--muted); line-height: 1.6; }
.music-img {
  width: 100%; height: auto; object-fit: contain;
  border-radius: 12px; margin-top: 28px; display: block;
}

/* --- Creative gallery --- */
.cre-grid { display: grid; gap: 14px; }
.cre-item {
  aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px;
  overflow: hidden; border: 2px dashed rgba(49, 95, 206, 0.2);
  background: linear-gradient(135deg, var(--blue-soft), var(--blue-pale)), var(--bg);
  transition: border-color 0.3s, background 0.3s;
}
.cre-item:hover { border-color: rgba(49, 95, 206, 0.4); }

/* --- Education --- */
.edu-wrap { max-width: 560px; margin: 0 auto; text-align: center; }
.edu-wrap h2 { margin-bottom: 32px; }
.edu-sch  { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.edu-yrs  { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 16px; }
.edu-deg {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: 10px;
}
.edu-deg span {
  font-size: 0.88rem; color: var(--text); padding: 5px 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 2px; font-weight: 500;
}
.edu-min { font-size: 0.88rem; color: var(--muted); font-style: italic; margin-bottom: 24px; }
.honors-title {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.honor-list { display: grid; gap: 0; }
.honor-item {
  font-size: 0.92rem; padding: 10px 0;
  border-bottom: 1px solid rgba(216, 210, 202, 0.5);
}
.honor-item .yr { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); margin-right: 8px; }

/* --- Resume --- */
.res-wrap { max-width: 500px; margin: 0 auto; text-align: center; }
.res-wrap h2 { margin-bottom: 8px; }
.res-wrap p  { color: var(--muted); margin-bottom: 22px; font-size: 1rem; }
.res-btns { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  transition: all 0.25s; background: var(--surface); color: var(--text);
  border: 2px solid var(--text);
}
.btn:hover { background: var(--text); color: var(--bg); transform: translateY(-2px); }
.btn-on { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-on:hover { background: var(--accent-h); border-color: var(--accent-h); }

/* --- Footer --- */
.foot { padding: 50px 0 36px; text-align: center; border-top: 1px solid var(--border); background: var(--blue-pale); }
.foot h2 { margin-bottom: 16px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.foot-mail {
  font-size: clamp(1.5rem, 3.5vw, 2.8rem); font-weight: 750; letter-spacing: -0.04em;
  color: var(--accent); border-bottom: 2px solid var(--accent); padding-bottom: 2px;
  transition: opacity 0.2s;
}
.foot-mail:hover { opacity: 0.65; }
.foot-copy { margin-top: 30px; font-size: 0.72rem; color: var(--muted); }

/* --- Skip link --- */
.skip {
  position: absolute; top: -100%; left: 16px; background: var(--text);
  color: var(--bg); padding: 10px 20px; z-index: 200; font-size: 0.85rem;
  border-radius: 4px; font-weight: 600;
}
.skip:focus { top: 8px; }

/* --- Focus --- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .scroll-hint .bar { animation: none; }
}

/* --- Mobile first --- */
.story { grid-template-columns: 1fr; }
.soc-grid { grid-template-columns: 1fr; }
.cre-grid { grid-template-columns: 1fr 1fr; }
.music-grid { grid-template-columns: 1fr; }

@media (max-width: 767px) {
  .story-body { padding: 24px 0; }
  .soc-grid { grid-template-columns: 1fr; }
  .soc-card-body { padding: 16px 18px 20px; }
}

/* --- Hero mobile: stacked vertically --- */
@media (max-width: 767px) {
  .hero-wrap {
    flex-direction: column-reverse;
  }
  .hero-text {
    padding: 24px var(--pad) 32px;
    text-align: center; align-items: center;
  }
  .hero-text h1 { font-size: clamp(2.2rem, 12vw, 3.5rem); }
  .hero-text .hero-sub { max-width: 100%; margin-bottom: 18px; }
  .hero-photo {
    min-height: 55vh;
    align-items: center;
    justify-content: center;
  }
  .hero-photo img { object-position: center 22%; }
}

/* --- Hero tablet: side by side but balanced --- */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero-wrap { flex-direction: row; }
  .hero-text { padding: 36px var(--pad); }
  .hero-photo { min-height: 65vh; }
}

/* --- Tablet (768+) --- */
@media (min-width: 768px) {
  .story { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .story-img { aspect-ratio: auto; height: 100%; }
  .soc-grid { grid-template-columns: repeat(2, 1fr); }
  .cre-grid { grid-template-columns: repeat(3, 1fr); }
  .music-grid { grid-template-columns: repeat(2, 1fr); }
  .sec { padding: clamp(80px, 9vw, 140px) 0; }
}

/* --- Desktop (1024+) --- */
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .story { grid-template-columns: 1.1fr 1.4fr; gap: 40px; align-items: center; }
  .story-img { border-radius: 16px; box-shadow: 0 20px 50px rgba(26,24,20,0.1); }
  .soc-grid { grid-template-columns: repeat(3, 1fr); }
  .soc-card:hover { transform: translateY(-6px); }
  .soc-card:first-child { grid-column: span 2; }
  .soc-card:first-child .soc-card-body { padding: 28px 32px 32px; }
  .soc-card:first-child .soc-stat .num { font-size: clamp(2rem, 4vw, 3.2rem); }
  .soc-card:first-child .soc-stat .lbl { font-size: 0.7rem; }
  .cre-grid { grid-template-columns: repeat(3, 1fr); }
  .music-grid { grid-template-columns: 1fr 1fr; }
  .sec { padding: clamp(100px, 12vw, 180px) 0; }
  #hero { min-height: 100vh; }
  .intro { max-width: 720px; }
  .story-body { padding: 40px 0; }
  .story-alt { flex-direction: row-reverse; }
}

/* --- Large desktop --- */
@media (min-width: 1400px) {
  :root { --max-w: 1280px; }
}