:root {
  color-scheme: light;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  font-size: 16px;
  color: #111;
  background: #fff;
}

.wrap {
  max-width: 820px;
  padding: 24px 18px;
  margin: 0 auto;
}

h1 {
  font-size: 28px;
  margin: 0 0 8px 0;
  font-weight: 700;
}

h3 {
  font-size: 18px;
  margin: 18px 0 8px 0;
}

h4 {
  font-size: 16px;
  margin: 14px 0 6px 0;
}

p {
  margin: 8px 0;
}

.nav{
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.nav li{
  margin: 0;
}

.nav a[aria-current="page"]{
  font-weight: 700;
  position: relative;
  text-decoration: none;
}

.nav a[aria-current="page"]::before{
  content: "[";
  color: var(--muted);
  margin-right: 4px;
}

.nav a[aria-current="page"]::after{
  content: "]";
  color: var(--muted);
  margin-left: 4px;
}

.nav li + li::before{
  content: " | ";
  color: var(--muted);
  padding: 0 8px;
}

.nav a{
  padding: 2px 0;
}

a {
  color: #0645ad;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.item {
  margin-top: 10px;
}

.footer {
  margin-top: 26px;
  padding-top: 10px;
  border-top: 1px solid #e5e5e5;
  color: #444;
}

:root{
  --page-bg: #eef4ff;   /* light blue behind everything */
  --paper: #ffffff;     /* the column background */
  --rule: #e5e7eb;

  --ucr-blue: #003DA5;
  --ucr-gold: #FFB81C;
  --text: #111;
  --muted: #444;
}

body{
  margin: 0;
  background: var(--page-bg); /* whole page */
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
}

/* the single column becomes a “paper” card */
.wrap{
  max-width: 820px;
  margin: 28px auto;          /* space so blue shows around it */
  padding: 24px 18px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px;
}

/* optional: soft depth so it feels like a sheet on a blue desk */
.wrap{
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* project cards */
.item{
  background: #fbfbfd;
  border: 1px solid var(--rule);
  border-left: 6px solid var(--ucr-gold);
  padding: 12px 14px;
  border-radius: 12px;
  margin: 12px 0;
}

/* optional: slightly nicer spacing inside cards */
.item ul{
  margin: 8px 0 0 18px;
}
.item p{
  margin: 6px 0;
}


/* keep the simple course-page colors */
h1, h3{ color: var(--ucr-blue); }
h3{
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 3px solid var(--ucr-gold);
}

a{ color: var(--ucr-blue); text-decoration: none; }
a:hover{ text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 2px; }

.post{
  background: #fbfbfd;
  border: 1px solid var(--rule);
  border-left: 6px solid var(--ucr-gold);
  padding: 12px 14px;
  border-radius: 12px;
  margin: 12px 0;
}

.post h4{
  margin: 0 0 6px 0;
}

.post p{
  margin: 6px 0;
}

.meta{
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 6px 0;
}

.post:hover{
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  transform: translateY(-1px);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.item, .post{
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.item:hover, .post:hover{
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  transform: translateY(-1px);
}

.item:hover, .post:hover{
  background: #ffffff;
}

.tagline{
  margin: 6px 0 2px 0;
  color: var(--muted);
}

.quicklinks{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.quicklinks a{ color: var(--ucr-blue); }

.chips{ margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }

.chip{
  font-size: 13px;
  padding: 3px 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
}

.group{
  margin: 18px 0 8px 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.callout{
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-left: 6px solid var(--ucr-blue);
  border-radius: 12px;
  background: #fbfbfd;
}

.muted{ color: var(--muted); }

.quicklinks{
  margin: 6px 0 14px 0;
  font-size: 15px;
}

.quicklinks .email{
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 4px;
}

.quicklinks a{
  font-size: 15px;
}

.header-grid{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.portrait{
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;         /* rounded-square fits your card style */
  border: 1px solid var(--rule);
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}

/* mobile: portrait goes above text */
@media (max-width: 640px){
  .header-grid{
    grid-template-columns: 1fr;
  }
  .portrait{
    width: 120px;
    height: 120px;
  }
}

.news{
  background: #ffffff;
  border: 1px solid var(--rule);
  border-left: 6px solid var(--ucr-gold); /* gold for announcements */
  padding: 10px 12px;
  border-radius: 12px;
  margin: 10px 0;
}
.news-top{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.news-date{
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.news-title{
  margin: 0;
}

.news-summary{
  font-size: 18px;               /* match h3 */
  font-weight: 700;
  color: var(--ucr-blue);
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  gap: 8px;

  list-style: none;              /* helps remove default marker in some browsers */
  padding-bottom: 3px;
  border-bottom: 3px solid var(--ucr-gold);

  margin: 6px 0 10px 0;          /* reduced top spacing */
}

.news-summary::-webkit-details-marker{
  display: none;
}

/* the arrow */
.news-summary::before{
  content: "▸";
  color: var(--ucr-blue);
  font-size: 14px;
  transform: translateY(1px);
  transition: transform 160ms ease;
}

/* rotate arrow when open */
details[open] > .news-summary::before{
  transform: rotate(90deg) translateY(-1px);
}

section > h3:first-child{
  margin-top: 6px;
}

/* less top space for the News summary when it's the first thing */
section > details:first-child > .news-summary{
  margin-top: 6px;
}

/* keep Overview tight */
#about > h3:first-child{
  margin-top: 6px;
}

/* give Projects a normal / larger top margin */
#projects > h3:first-child{
  margin-top: 18px;   /* try 14px or 18px */
}

.subhead{
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #444;
  margin: 14px 0 6px 0;
}

.course-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 10px;
}

.course-list{
  margin: 8px 0 0 18px;
}

@media (max-width: 640px){
  .course-grid{
    grid-template-columns: 1fr;
  }
}

.news{
  background: #ffffff;
  border: 1px solid var(--rule);
  border-left: 6px solid var(--ucr-gold);
  padding: 12px 14px;
  border-radius: 12px;
  margin: 12px 0;

  transition: transform 160ms ease, box-shadow 160ms ease;
}

.news:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
}
