/* =============================================================
   TIFFANY PETRICINI — SITE DESIGN SYSTEM
   PSU Blue editorial style · updated 2025
   ============================================================= */

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --psu:        #01387F;
  --psu-dark:   #012a5e;
  --psu-mid:    #0a4fa0;
  --psu-light:  #e8eef8;
  --psu-tint:   #f0f4fb;
  --ink:        #0f1621;
  --ink-light:  #3a4557;
  --ink-faint:  #7a8599;
  --paper:      #f5f7fb;
  --paper-2:    #eaeef6;
  --rule:       #cdd4e3;
  --white:      #ffffff;
  --serif:      Georgia, 'Times New Roman', serif;
  --sans:       'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono:       'Courier New', Courier, monospace;
  --shadow-sm:  0 1px 3px rgba(1,56,127,0.08), 0 1px 2px rgba(1,56,127,0.05);
  --shadow-md:  0 4px 12px rgba(1,56,127,0.10), 0 2px 4px rgba(1,56,127,0.06);
  --radius:     8px;
  --nav-h:      56px;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }

/* ─── LINKS ──────────────────────────────────────────────── */
a { color: var(--psu); text-decoration-thickness: 1px; }
a:hover { color: var(--psu-mid); }
a:focus-visible {
  outline: 2px solid var(--psu);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ─── SKIP LINK ──────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  background: var(--psu);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  font-size: 0.88rem;
  z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ─── NAVIGATION ─────────────────────────────────────────── */
.site-nav {
  background: var(--psu);
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
}
.nav-brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.95);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-brand:hover { color: #fff; }
.nav-links {
  display: flex;
  list-style: none;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  display: block;
  height: var(--nav-h);
  line-height: var(--nav-h);
  padding: 0 0.85rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.12s, border-color 0.12s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.65);
}

/* ─── PAGE HEADER BAND ────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--psu-dark) 0%, var(--psu-mid) 100%);
  padding: 2.5rem 2rem 2rem;
}
.page-header-inner {
  max-width: 1040px;
  margin: 0 auto;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.page-header p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.62);
  margin-top: 0.4rem;
}

/* ─── TWO-COLUMN LAYOUT (sidebar + main) ─────────────────── */
.page-shell {
  display: grid;
  grid-template-columns: 210px 1fr;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
  align-items: start;
}
.sidebar {
  position: sticky;
  top: var(--nav-h);
  padding: 2.5rem 1.5rem 2rem 0;
  border-right: 1px solid var(--rule);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  scrollbar-width: thin;
}
.main-col {
  padding: 2.5rem 0 4rem 2.5rem;
  min-width: 0;
}

/* ─── SINGLE-COLUMN LAYOUT ───────────────────────────────── */
.page-single {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ─── SIDEBAR INTERNALS ──────────────────────────────────── */
.sidebar-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1rem;
}
.toc { list-style: none; }
.toc a {
  display: block;
  padding: 0.3rem 0.6rem;
  font-size: 0.82rem;
  color: var(--ink-light);
  text-decoration: none;
  border-left: 2px solid transparent;
  border-radius: 0 4px 4px 0;
  line-height: 1.4;
  transition: all 0.12s;
}
.toc a:hover, .toc a.active {
  color: var(--psu);
  border-left-color: var(--psu);
  background: var(--psu-tint);
}
.toc-count {
  font-size: 0.7rem;
  color: var(--ink-faint);
  margin-left: 0.3rem;
}
.sidebar-divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 1.2rem 0;
}
.sidebar-stat strong {
  display: block;
  font-size: 1.35rem;
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 400;
  letter-spacing: -0.02em;
}
.sidebar-stat {
  font-size: 0.78rem;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* ─── SECTION ─────────────────────────────────────────────── */
.section { margin-bottom: 3rem; scroll-margin-top: calc(var(--nav-h) + 1rem); }
.section-hed {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.section-hed h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.section-count {
  font-size: 0.72rem;
  color: var(--ink-faint);
}
.section-hed h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}

/* ─── BOOK SHOWCASE ──────────────────────────────────────── */
.books-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.book-item {
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--psu);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
}
.book-type {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--psu);
  margin-bottom: 0.5rem;
}
.book-title {
  font-family: var(--serif);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 0.4rem;
}
.book-meta {
  font-size: 0.8rem;
  color: var(--ink-light);
  line-height: 1.4;
}

/* ─── CITATION ENTRIES ────────────────────────────────────── */
.year-group { margin-bottom: 2rem; }
.year-stamp {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 400;
  color: var(--paper-2);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
  user-select: none;
  border-bottom: 2px solid var(--rule);
  padding-bottom: 0.25rem;
}
.cite-list, .entry-list { list-style: none; }
.cite-entry, .entry-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: start;
}
.cite-entry:last-child,
.entry-row:last-child { border-bottom: none; }
.cite-text {
  font-size: 0.88rem;
  color: var(--ink-light);
  line-height: 1.6;
}
.cite-text em { font-style: italic; color: var(--ink); }
.cite-journal {
  font-variant: small-caps;
  font-size: 0.85rem;
  color: var(--ink-light);
  letter-spacing: 0.02em;
}
.doi-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  color: var(--ink-faint);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--white);
  font-family: var(--mono);
  transition: all 0.12s;
  margin-top: 0.1rem;
}
.doi-link:hover {
  color: var(--psu);
  border-color: var(--psu);
  background: var(--psu-tint);
}

/* ─── INFO TABLE ─────────────────────────────────────────── */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td {
  text-align: left;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--rule);
}
.info-table th {
  background: var(--psu-tint);
  color: var(--psu);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 32%;
}
.info-table tr:last-child th,
.info-table tr:last-child td { border-bottom: none; }

/* ─── POINTS TABLE ───────────────────────────────────────── */
.points-table { width: 100%; border-collapse: collapse; }
.points-table th, .points-table td {
  text-align: left;
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--rule);
}
.points-table thead th {
  background: var(--psu);
  color: white;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.points-table .group-row td {
  background: var(--psu-tint);
  color: var(--psu);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.points-table .total-row td {
  background: var(--psu-dark);
  color: white;
  font-weight: 700;
}
.points-table td:last-child,
.points-table th:last-child { text-align: right; font-weight: 600; }

/* ─── CALLOUT BOXES ──────────────────────────────────────── */
.callout {
  border-left: 4px solid var(--psu);
  background: var(--psu-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}
.callout strong { display: block; margin-bottom: 0.2rem; color: var(--psu); }
.callout.warn {
  border-left-color: #c07a00;
  background: #fffbec;
}
.callout.warn strong { color: #8a5500; }

/* ─── PACT / TWO-COL ─────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.col-block {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--psu);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.col-block h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--psu);
  margin-bottom: 0.75rem;
}
.col-block ul {
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: var(--ink-light);
}
.col-block ul li { margin-bottom: 0.35rem; }

/* ─── RESOURCE LINKS ─────────────────────────────────────── */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.6rem;
  list-style: none;
}
.resource-grid a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--psu);
  transition: background 0.12s, border-color 0.12s;
  box-shadow: var(--shadow-sm);
}
.resource-grid a:hover {
  background: var(--psu-tint);
  border-color: var(--psu);
}

/* ─── QUICK-ACTION STRIP ─────────────────────────────────── */
.quick-strip {
  background: #fff8e6;
  border-bottom: 1px solid #e8d78a;
  padding: 0.8rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
}
.quick-strip-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7a5800;
}
.qa-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--white);
  border: 1.5px solid #e2c84a;
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  font-size: 0.83rem;
  color: #5a3e00;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.12s, border-color 0.12s;
}
.qa-btn:hover {
  background: #fffbdc;
  border-color: #c8a200;
  color: #5a3e00;
}

/* ─── MEDIA ITEMS ────────────────────────────────────────── */
.media-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.88rem;
  color: var(--ink-light);
  line-height: 1.55;
}
.media-item:last-child { border-bottom: none; }
.media-item em { color: var(--ink); font-style: italic; }
.media-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--psu-tint);
  color: var(--psu);
  padding: 0.12rem 0.45rem;
  border-radius: 3px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

/* ─── HERO (homepage) ─────────────────────────────────────── */
.home-hero {
  background: linear-gradient(135deg, var(--psu-dark) 0%, var(--psu-mid) 100%);
  padding: 3.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 100%;
}
.home-hero-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
}
.home-hero-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.home-hero-text h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  font-style: italic;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}
.home-hero-text .role {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.home-hero-text .interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.home-hero-text .interest-tag {
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.88);
}

/* ─── PULL QUOTE ─────────────────────────────────────────── */
.pull-quote {
  border-left: 4px solid var(--psu);
  padding: 0.75rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-light);
  background: var(--psu-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--serif);
}

/* ─── COLLAPSIBLE ────────────────────────────────────────── */
.collapse-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 1rem 0;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}
.collapse-btn h2 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
}
.collapse-meta {
  font-size: 0.8rem;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.collapse-icon { transition: transform 0.2s; font-size: 0.75rem; }
.collapse-icon.open { transform: rotate(180deg); }
.collapse-body { display: none; padding-top: 1.25rem; }
.collapse-body.open { display: block; }

/* ─── YEAR LABEL (inside collapsible) ───────────────────── */
.year-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--psu);
  margin: 1.25rem 0 0.5rem;
}
.year-label:first-child { margin-top: 0; }
.conf-entry {
  padding: 0.55rem 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 1.55;
}
.conf-entry:last-child { border-bottom: none; }
.conf-entry em { color: var(--ink); font-style: italic; }
.conf-venue {
  font-size: 0.78rem;
  color: var(--ink-faint);
  display: block;
  margin-top: 0.1rem;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--psu-dark);
  color: rgba(255,255,255,0.55);
  padding: 2rem;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.7;
  margin-top: 4rem;
}
.site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: #fff; }
.footer-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.4rem;
  display: block;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 0.75rem 0;
  flex-wrap: wrap;
}

/* ─── HORIZONTAL RULE ────────────────────────────────────── */
hr.page-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 1.5rem 0 2rem;
}

/* ─── PLACEHOLDER NOTICE ─────────────────────────────────── */
.placeholder-notice {
  font-size: 0.83rem;
  color: var(--ink-faint);
  font-style: italic;
  padding: 0.75rem 0.9rem;
  background: var(--paper-2);
  border: 1px dashed var(--rule);
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

/* ─── IMAGE PLACEHOLDER ──────────────────────────────────── */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--psu-tint);
  border: 1.5px dashed var(--rule);
  border-radius: var(--radius);
  color: var(--ink-faint);
  font-size: 0.82rem;
  text-align: center;
  min-height: 180px;
  padding: 1.25rem;
}
.img-placeholder--hero {
  min-height: 260px;
  font-size: 0.9rem;
}
.img-placeholder--wide {
  min-height: 220px;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 700px) {
  .page-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main-col { padding-left: 0; }
  .books-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .home-hero-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .home-hero-photo { width: 120px; height: 120px; margin: 0 auto; }
  .home-hero-text h1 { text-align: center; }
  .home-hero-text .role { text-align: center; }
  .home-hero-text .interests { justify-content: center; }
  .site-nav { padding: 0 1rem; }
  .page-header { padding: 2rem 1rem 1.5rem; }
  .quick-strip { padding: 0.8rem 1rem; }
}
