/* ========= THEME ========= */
:root{
  --bg:        #f4f6f9;   /* light gray background */
  --bg-main:   #ffffff;   /* crisp white main section */
  --ink:       #1f2937;   /* charcoal text */
  --muted:     #6b7280;   /* medium gray secondary text */
  --accent:    #2563eb;   /* strong blue */
  --accent-2:  #3b82f6;   /* lighter blue hover */
  --surface:   #e5e7eb;   /* light gray nav/overlay */
  --line:      #d1d5db;   /* subtle gray borders */
  --footer:    #f9fafb;   /* very light footer */
  --shadow:    0 6px 18px rgba(0,0,0,.1);
}

*{ box-sizing: border-box; }
html, body{
  margin:0; padding:0; height:100%;
  background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
img{ display:block; max-width:100%; height:auto; }
a{ color: var(--accent); text-decoration: none; }
a:hover{ color: var(--accent-2); }

/* ========= HEADER (banner) ========= */
.site-header .banner{
  width:100%;
  height:min(40vh, 420px);
  background-image:url('/static/main/images/banner.jpg');
  background-size:cover;
  background-position:center;
  box-shadow: var(--shadow);
}

/* ========= NAV ========= */
.site-nav{
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(180deg, rgba(10,15,31,.95), rgba(10,15,31,.85));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.site-nav .nav-inner{
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(10px, 1.6vh, 16px) clamp(14px, 2.2vw, 28px);
}

.brand .assignment-name{
  font-weight: 800; letter-spacing: .2px;
  font-size: clamp(16px, 2.2vh, 22px);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.links{
  list-style:none; display:flex; align-items:center; gap: 18px;
  margin:0; padding:0;
}
.links a{
  opacity:.9; transition: opacity .2s ease, color .2s ease;
}
.links a:hover, .links a[aria-current="page"]{
  opacity:1; text-decoration: none;
}

/* LinkedIn icon/text swap */
.linkedin-icon{ width:18px; height:18px; vertical-align:-3px; }
.linkedin-text{ display:none; margin-left:6px; }

/* Hamburger button (hidden on desktop) */
.hamburger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 38px; height: 38px;
  padding: 0;
}
.hamburger-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
/* ========= MAIN ========= */
.site-main{ background: var(--bg-main); }

/* unified row wrapper */
.row{
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px clamp(12px, 4vw, 24px);
}

/* width constraints per spec */
.row.single-col{ width: min(80vw, 100%); }

/* two-column hero */
.row.two-col{
  display:grid; grid-template-columns: 1fr 1fr; gap: 24px;
  width: min(80vw, 100%);
  min-height: 40vh;
}

.photo-col{ min-height: 320px; }
.profile-image{
  width:100%; height:100%; object-fit:cover;
  border-radius:14px; box-shadow: var(--shadow);
}

.text-col{
  overflow:auto;
  display:flex; flex-direction:column; justify-content:center;
  text-align: justify; text-align-last: center;
}
.text-col h1{
  margin: 0 0 10px;
  font-size: clamp(22px, 3vh, 28px);
}
.text-col p{
  margin:0; color: var(--muted); line-height: 1.6;
}

/* Fun fact row */
.fun-fact p{
  text-align: justify; text-align-last: center;
}

/* ========= FOOTER ========= */
.site-footer{
  background: var(--footer);
  border-top: 1px solid var(--line);
  text-align: center; padding: 20px;
}

/* ========= MOBILE (<= 650px) ========= */
@media (max-width: 650px){
  .row.two-col{ grid-template-columns: 1fr; width: 80vw; }
  .text-col{ overflow: visible; }

  /* collapse nav links into dropdown panel */
  .links{
    display:none;
    position: absolute; right: 12px; top: 56px;
    background: var(--surface);
    padding: 12px; border-radius: 12px;
    flex-direction: column; gap: 10px; min-width: 220px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .links.open{ display: flex; }

  /* show hamburger on mobile */
  .hamburger{ display: inline-flex; }

  /* icon -> text on mobile */
  .linkedin-icon{ display: none; }
  .linkedin-text{ display: inline; }
}
