/* v2 inner pages (project, leadership, ethics). Loads after style.css and v2.css and
   restyles the existing markup, so the page HTML stays the same as the live site. */
body { max-width: none; padding: 0; font-size: 16px; line-height: 1.7; color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
a, a:visited { color: var(--accent-2); }
.page { max-width: 760px; margin: 0 auto; padding: 8px 24px 40px; }

.pagehead { padding: 40px 0 8px; margin-bottom: 18px; }
.page h1 { font-size: 36px; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 10px; }
.page .meta { font-size: 15px; color: var(--ink-3); margin: 0 0 20px; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--tint); overflow: hidden; }
.facts div { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.facts div:last-child { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.facts dt { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.facts dd { margin: 0; font-size: 14.5px; color: var(--ink); }
.facts div:last-child dd { font-weight: 600; color: var(--accent); }

.page h2 { font-size: 22px; letter-spacing: -.01em; margin: 44px 0 12px; padding: 0; border: 0; }
.page h3 { font-size: 17px; margin: 26px 0 8px; }
.page p { color: #2b3544; }
.page li { color: #2b3544; }

figure.media { margin: 26px 0; }
figure.media video, figure.media img { border: 1px solid var(--line); border-radius: 10px; }
figure.media .viewer3d, figure.media model-viewer { border: 1px solid var(--line); border-radius: 10px; background: var(--tint); }
figcaption { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; }
figure.media .box { border-radius: 10px; border-color: #cfd6e0; background: var(--tint); }

table { font-size: 14.5px; border: 1px solid var(--line); border-radius: 10px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
td, th { border: 0; border-bottom: 1px solid var(--line); padding: 9px 12px; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
th { background: var(--tint); font-weight: 600; color: var(--ink); }

.note { border-radius: 0 8px 8px 0; }

@media (max-width: 640px) {
  .pagehead { padding-top: 28px; }
  .page h1 { font-size: 28px; }
  .facts { grid-template-columns: 1fr; }
  .facts div:nth-child(odd) { border-right: 0; }
}

/* neutralize the live site's nav rule (style.css) inside the v2 top bar */
.bar nav.links { display: block; border: 0; padding: 0; margin: 0; }

/* home page (9/27): same look as the inner pages; the h1 carries the name, so the bar drops it */
.bar.home .wrap { justify-content: flex-end; }
.bar.home nav.links a:first-child { margin-left: 0; }
.page .tagline { font-size: 18px; color: var(--ink-2); margin: 0 0 6px; }
.page .hint { color: var(--ink-3); }
.page ol.projects { padding-left: 0; }
.card .face { border-color: var(--line); border-radius: 10px; }
.card .front h3 a { color: var(--ink); }
.card .front p { color: var(--ink-2); font-size: 15px; }
/* home header photo (10/5, Tony's ask): L1 recovery-field photo (portrait crop) in the right margin of the name block */
.pagehead.with-photo { display: flex; align-items: center; gap: 28px; }
.pagehead.with-photo .headtext { flex: 1; min-width: 0; order: 1; }
.pagehead.with-photo .headphoto { order: 2; flex: none; width: 180px; height: 240px; object-fit: cover; object-position: 43% 50%; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 640px) {
  .pagehead.with-photo { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pagehead.with-photo .headphoto { order: 0; width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: 50% 50%; }
}
ul.skills li { border-radius: 999px; background: var(--tint); border-color: var(--line); color: var(--ink-2); padding: 3px 9px; }

/* Tony 9/28: keep the loud default links everywhere ("that's what gives the college student vibes").
   Same blue + underline as the original style.css; overrides the muted v2 link colors. */
a, .page a, .bar .links a, footer a, .card .front h3 a { color: #0645ad; text-decoration: underline; }
a:visited, .page a:visited, .bar .links a:visited, footer a:visited, .card .front h3 a:visited { color: #0b0080; }
.bar .links a { font-size: 16px; font-weight: normal; }
.bar .links a:hover { color: #0645ad; text-decoration: underline; }
.bar .brand, .bar .brand:visited { color: #111; text-decoration: none; }
.card .back, .card .back:visited { text-decoration: none; }
