/* Shared styles for the pages in /pages. The home page (../index.html) carries its own styles inline. */

body {
  margin: 0;
  background: #fbfaf7;
  color: #1a1a1a;
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 640px; margin: 0 auto; padding: 48px 20px 40px; }

h1 { font-size: 28px; font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 20px; font-weight: 600; margin: 40px 0 8px; letter-spacing: -0.005em; }
p  { margin: 12px 0; }
b  { font-weight: 600; }
ul { padding-left: 20px; margin: 12px 0; }

a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #b5401f; }
u { text-decoration: underline; text-underline-offset: 3px; }

.meta { margin: 4px 0 0; color: #555; font-size: 15px; }

/* Placeholder text: grey italic so it's easy to spot. Remove the class once the real text is in. */
.sample { color: #8a8a8a; font-style: italic; }

/* ---------- Header and navigation ---------- */
header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 48px;
}
.home { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; }
.home svg { width: 32px; height: 32px; display: block; }
.home:hover { color: #b5401f; }
.ink { fill: none; stroke: #1a1a1a; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

header nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
header nav a { color: #555; text-decoration: none; }
header nav a:hover { color: #b5401f; }
header nav a[aria-current="page"] { color: #1a1a1a; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Footer ---------- */
footer { margin-top: 64px; font-size: 15px; color: #555; }
footer a { color: inherit; }

/* ---------- Experience timeline ---------- */
.tl { list-style: none; padding: 0; margin: 28px 0 0; }
.tl li { padding: 18px 0; border-top: 1px solid #e4e1d9; }
.tl li:last-child { border-bottom: 1px solid #e4e1d9; }
.tl .when { font-size: 14px; color: #555; }
.tl b { display: block; margin-top: 2px; }
.tl .detail { margin-top: 2px; }

@media (min-width: 600px) {
  .tl li { display: grid; grid-template-columns: 180px 1fr; column-gap: 24px; }
  .tl .when { grid-column: 1; grid-row: 1 / span 2; padding-top: 2px; }
  .tl b, .tl .detail, .tl .thumbs, .tl .more { grid-column: 2; }
}

/* ---------- Photos ---------- */
.tabs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 20px; margin: 28px 0 0; }
.tabs a { color: #555; text-decoration: none; }
.tabs a[aria-current="page"] { color: #1a1a1a; text-decoration: underline; text-underline-offset: 4px; }
.tabs .meta { margin: 0; }

.grid { columns: 220px 2; column-gap: 16px; margin-top: 20px; }
.grid figure { break-inside: avoid; margin: 0 0 20px; }
figure { margin: 24px 0; }
figure img, .ph { display: block; width: 100%; height: auto; }
.ph { background: #e8e5dc; }
figcaption { font-size: 14px; color: #555; margin-top: 6px; }

/* ---------- Project page ---------- */
.video {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: #e8e5dc center / cover no-repeat;
  border-radius: 4px;
  cursor: pointer;
}
.video::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fbfaf7;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.4));
}

/* ---------- Project list ---------- */
.list { list-style: none; padding: 0; margin: 28px 0 0; }
.list li { padding: 18px 0; border-top: 1px solid #e4e1d9; }
.list li:last-child { border-bottom: 1px solid #e4e1d9; }
.list a { font-size: 22px; font-weight: 600; text-decoration: none; }
.list .meta { margin-top: 2px; }

@media (max-width: 480px) {
  main { padding-top: 32px; }
  h1 { font-size: 26px; }
}

/* ---------- Photos inside entries ---------- */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.thumbs figure { margin: 0; }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.thumbs figcaption { font-size: 13px; }

.list .blurb { margin: 6px 0 0; color: #444; font-size: 16px; }

/* ---------- Smooth jumps to in-page anchors (e.g. the education box) ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#education { scroll-margin-top: 24px; }

/* ---------- Wider experience page: education rail beside the timeline ---------- */
main.wide { max-width: 900px; }
.exp { display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: start; margin-top: 28px; }
.exp .tl { margin-top: 0; }
.edu-rail { position: sticky; top: 24px; display: grid; gap: 12px; }
.edu-rail__label { font-size: 13px; color: #555; margin: 0; }
.edu-box { display: block; border-radius: 6px; padding: 16px; text-decoration: none; transition: transform 0.18s ease; }
.edu-box:hover { color: inherit; transform: translateY(-2px); }
.edu-box__school { display: block; font-weight: 600; font-size: 17px; line-height: 1.25; }
.edu-box__when { display: block; font-size: 13px; margin-top: 6px; opacity: 0.85; }
.edu-box__tag { display: inline-block; margin-top: 10px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: 2px 8px; }
.edu-box--hc { background: #98c0e3; color: #1b1b58; }   /* Hill Country */
.edu-box--ut { background: #bf5700; color: #ffffff; }   /* UT Austin: Burnt Orange and White */
@media (max-width: 700px) {
  .exp { grid-template-columns: 1fr; }
  .edu-rail { position: static; }
}

/* ---------- Photos: hover greys the photo out and shows what it was ---------- */
.shot { margin: 0; }
.shot__frame { position: relative; display: block; overflow: hidden; border-radius: 3px; }
.shot__frame img, .shot__frame .ph { display: block; width: 100%; height: auto; transition: filter 0.3s ease; }
.shot__text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 14px; text-align: center;
  color: #fbfaf7; font-size: 14px; line-height: 1.4;
  background: rgba(26, 26, 26, 0.6);
  opacity: 0; transition: opacity 0.3s ease;
}
.shot:hover .shot__frame img,
.shot:focus .shot__frame img { filter: grayscale(1) brightness(0.7); }
.shot:hover .shot__text,
.shot:focus .shot__text { opacity: 1; }

/* ---------- Albums on the photos page ---------- */
.album { margin-top: 48px; }
.album h2 { margin-top: 0; }

/* "photos →" link from a timeline entry to its album */
.tl .more { display: inline-block; margin-top: 8px; font-size: 14px; }
