/* ============================================================
   Matthew J. Hoffman — Academic Site
   RIT Brand Palette · DM Serif Display · Magazine Academic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Lato:wght@300;400;700&display=swap');

:root {
  --rit-orange:      #F76902;
  --rit-orange-dark: #c95200;
  --rit-black:       #000000;
  --rit-white:       #ffffff;
  --rit-warm-gray-1: #D7D2CB;
  --rit-cool-gray-1: #D0D3D4;
  --rit-cool-gray-5: #7C878E;
  --rit-cyan:        #009CBD;
  --urmc-blue:       #003087;
  --body-font:    'Lato', 'Helvetica Neue', Arial, sans-serif;
  --serif-font:   Georgia, 'Times New Roman', serif;
  --display-font: 'DM Serif Display', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  background: #fafaf8;
  color: var(--rit-black);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--rit-cyan); }
a:hover { color: var(--rit-orange); }

/* ── Header ── */
.site-header {
  background: var(--rit-white);
  text-align: center;
  padding: 24px 24px 18px;
}

.site-header__name {
  font-family: var(--display-font);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 400;
  color: var(--rit-black);
  line-height: 1;
  letter-spacing: 0.01em;
}

.site-header__title {
  font-size: 11px;
  color: var(--rit-cool-gray-5);
  letter-spacing: 0.07em;
  margin-top: 7px;
}

.orange-rule { height: 3px; background: var(--rit-orange); }

/* ── Nav ── */
.site-nav {
  background: var(--rit-white);
  border-bottom: 0.5px solid var(--rit-cool-gray-1);
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.site-nav a {
  font-size: 11px;
  color: var(--rit-cool-gray-5);
  text-decoration: none;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 11px 22px;
  display: inline-block;
  border-bottom: 2px solid transparent;
  margin-bottom: -0.5px;
  transition: color 0.15s;
  font-weight: 700;
}

.site-nav a:hover { color: var(--rit-black); }
.site-nav a.active { color: var(--rit-orange); border-bottom-color: var(--rit-orange); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 20px;
  color: var(--rit-cool-gray-5);
  font-size: 22px;
}

/* ── Footer ── */
.site-footer {
  background: var(--rit-black);
  color: var(--rit-cool-gray-1);
  text-align: center;
  padding: 18px 24px;
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.9;
}

.site-footer a { color: var(--rit-cool-gray-1); text-decoration: none; }
.site-footer a:hover { color: var(--rit-orange); }

main { flex: 1; }

/* ============================================================
   HOME PAGE
   ============================================================ */

.home-hero-wrap {
  background: var(--rit-white);
  border-bottom: 0.5px solid var(--rit-cool-gray-1);
}

.home-hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 380px;
  max-width: 1200px;
  margin: 0 auto;
}

.home-hero__text {
  padding: 32px 36px;
  border-right: 0.5px solid var(--rit-cool-gray-1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rit-orange);
  margin-bottom: 14px;
  font-weight: 700;
}

.section-tag::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--rit-orange);
  flex-shrink: 0;
}

.home-hero__headline {
  font-family: var(--display-font);
  font-size: clamp(17px, 2.2vw, 21px);
  font-style: italic;
  color: var(--rit-black);
  line-height: 1.4;
  margin-bottom: 16px;
}

.home-hero__body {
  font-size: 13.5px;
  color: #444;
  line-height: 1.8;
  font-family: var(--serif-font);
  flex: 1;
}

.contact-block {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 0.5px solid var(--rit-cool-gray-1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 12.5px;
}

.contact-row .k {
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rit-cool-gray-5);
  min-width: 44px;
  font-weight: 700;
}

.contact-row .v { color: #222; }
.contact-row a { color: var(--rit-cyan); text-decoration: none; }
.contact-row a:hover { color: var(--rit-orange); }

.home-hero__photo {
  overflow: hidden;
  position: relative;
}

.home-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Bottom strip */
.home-strip-wrap {
  background: #f5f4f1;
  border-top: 0.5px solid var(--rit-cool-gray-1);
}

.home-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}

.strip-cell {
  padding: 16px 18px;
  border-right: 0.5px solid var(--rit-cool-gray-1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.strip-cell:last-child { border-right: none; }

.strip-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rit-cool-gray-5);
  font-weight: 700;
}

.strip-addr {
  font-size: 11.5px;
  color: #333;
  line-height: 1.7;
}

.strip-rit-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.strip-rit-logo img { height: 28px; width: auto; }

.logo-tile {
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  flex: 1;
  text-decoration: none;
  transition: opacity 0.15s;
  min-height: 64px;
}

.logo-tile:hover { opacity: 0.82; }
.logo-tile--dark  { background: #1a1a2e; }
.logo-tile--light { background: #eef2f0; }
.logo-tile--blue  { background: #e8edf5; }

.logo-tile img { max-height: 46px; max-width: 100%; object-fit: contain; }

.logo-wm { text-align: center; line-height: 1.5; font-family: var(--body-font); }

.logo-wm--plastics { font-size: 10px; font-weight: 700; color: #1a3a5c; letter-spacing: 0.04em; }
.logo-wm--plastics em { color: var(--rit-orange); font-style: normal; }
.logo-wm--plastics small { display: block; font-size: 8.5px; font-weight: 400; color: #777; margin-top: 3px; }

.logo-wm--lomp { font-size: 10px; font-weight: 700; color: var(--urmc-blue); letter-spacing: 0.04em; }
.logo-wm--lomp small { display: block; font-size: 8.5px; font-weight: 400; color: #555; margin-top: 3px; }

/* ============================================================
   INNER PAGES
   ============================================================ */

.page-ribbon {
  height: 4px;
  background: linear-gradient(90deg, var(--rit-orange) 0%, #ffb347 100%);
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 56px;
}

.page-title {
  font-family: var(--display-font);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 400;
  color: var(--rit-black);
  margin-bottom: 32px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--rit-orange);
  display: inline-block;
}

.section-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rit-orange);
  margin: 40px 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--rit-orange);
}

.section-heading:first-of-type { margin-top: 0; }

/* Publication list */
.pub-list {
  list-style: decimal;
  padding-left: 2rem;
}

.pub-list li {
  font-size: 13.5px;
  line-height: 1.8;
  color: #222;
  padding: 10px 8px 10px 6px;
  border-radius: 4px;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  font-family: var(--serif-font);
}

.pub-list li:hover {
  background: var(--rit-white);
  border-left-color: var(--rit-orange);
}

.pub-list li a { color: var(--rit-cyan); text-decoration: none; }
.pub-list li a:hover { color: var(--rit-orange); text-decoration: underline; }

/* Media cards */
.media-card {
  display: flex;
  background: var(--rit-white);
  border: 0.5px solid var(--rit-cool-gray-1);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}

.media-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.1); }

.media-card__thumb {
  width: 190px;
  min-width: 190px;
  background: var(--rit-warm-gray-1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-card__thumb img,
.media-card__thumb iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-card__body {
  padding: 18px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.media-card__date {
  font-size: 10px;
  color: var(--rit-cool-gray-5);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}

.media-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--rit-black);
  margin-bottom: 8px;
  line-height: 1.3;
}

.media-card__title a { color: inherit; text-decoration: none; }
.media-card__title a:hover { color: var(--rit-orange); }

.media-card__desc {
  font-size: 13px;
  color: #444;
  line-height: 1.75;
  font-family: var(--serif-font);
  flex: 1;
  margin-bottom: 14px;
}

.media-card__links { display: flex; flex-wrap: wrap; gap: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--body-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
  border: none;
}

.btn--filled  { background: var(--rit-orange); color: #fff; }
.btn--filled:hover  { background: var(--rit-orange-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--rit-orange); border: 1.5px solid var(--rit-orange); }
.btn--outline:hover { background: var(--rit-orange); color: #fff; }
.btn--ghost   { background: transparent; color: var(--rit-cool-gray-5); border: 1px solid var(--rit-cool-gray-1); }
.btn--ghost:hover   { color: var(--rit-black); border-color: var(--rit-cool-gray-5); }

/* Project cards */
.project-card {
  background: var(--rit-white);
  border: 0.5px solid var(--rit-cool-gray-1);
  border-radius: 8px;
  padding: 28px 28px 22px;
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}

.project-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.09); }

.project-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff4ed;
  color: var(--rit-orange-dark);
  border-radius: 3px;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.project-card h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--rit-black);
  margin-bottom: 12px;
  line-height: 1.35;
}

.project-card p {
  font-size: 13px;
  color: #444;
  line-height: 1.8;
  font-family: var(--serif-font);
  margin-bottom: 12px;
}

.project-card img,
.project-card iframe {
  max-width: 100%;
  border-radius: 6px;
  margin: 14px 0;
  display: block;
}

.project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 0.5px solid var(--rit-cool-gray-1);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .site-nav { flex-wrap: wrap; justify-content: space-between; padding: 0 8px; }
  .nav-toggle { display: flex; align-items: center; }
  .nav-links { display: none; width: 100%; flex-direction: column; border-top: 0.5px solid var(--rit-cool-gray-1); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; border-bottom: 0.5px solid var(--rit-cool-gray-1); border-left: none; width: 100%; }
  .home-hero { grid-template-columns: 1fr; max-width: none; }
  .home-hero__photo { height: 320px; max-height: 320px; order: -1; }
  .home-hero__text { padding: 24px 20px; }
  .home-strip { grid-template-columns: 1fr 1fr; }
  .strip-cell:nth-child(2) { border-right: none; }
  .strip-cell:nth-child(3) { border-top: 0.5px solid var(--rit-cool-gray-1); border-right: 0.5px solid var(--rit-cool-gray-1); }
  .strip-cell:nth-child(4) { border-top: 0.5px solid var(--rit-cool-gray-1); }
  .media-card { flex-direction: column; }
  .media-card__thumb { width: 100%; height: 200px; min-width: unset; }
  .page-content { padding: 24px 16px 40px; }
}

@media (max-width: 480px) {
  .home-strip { grid-template-columns: 1fr; }
  .strip-cell { border-right: none !important; border-bottom: 0.5px solid var(--rit-cool-gray-1); }
  .strip-cell:last-child { border-bottom: none; }
}
