:root {
  --bg:          #FDFAF4;
  --bg-alt:      #F2E8D5;
  --text:        #1C1208;
  --text-muted:  #7A6545;
  --border:      #DDD0B5;
  --accent:      #BF5700;   /* UT burnt orange */
  --accent-dark: #9C4600;
  --accent-faint:rgba(191, 87, 0, 0.09);
  --brown-dark:  #4A2C0A;   /* poster panel-header brown */
  --radius:      10px;
  --maxw:        1080px;
  --maxw-narrow: 760px;
  --shadow-sm:   0 1px 3px rgba(74,44,10,0.08), 0 1px 2px rgba(74,44,10,0.05);
  --shadow-md:   0 4px 18px rgba(74,44,10,0.10), 0 2px 4px rgba(74,44,10,0.06);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* Top accent bar — burnt orange → warm amber */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brown-dark) 0%, var(--accent) 50%, #E8830A 100%);
  z-index: 200;
}

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: var(--maxw-narrow); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 4px;
  z-index: 50;
  background: rgba(253, 250, 244, 0.88);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.15s ease;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 55% at 50% -5%, rgba(191,87,0,0.08) 0%, transparent 65%),
    url('assets/desert-bg.svg') bottom center / 100% auto no-repeat,
    var(--bg);
}
/* Saguaro PNG on left */
.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -10px;
  width: 210px;
  height: 300px;
  background: url('assets/Saguaro.png') center bottom / contain no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
/* Saguaro PNG on right (mirrored, slightly larger) */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -10px;
  width: 250px;
  height: 360px;
  background: url('assets/Saguaro.png') center bottom / contain no-repeat;
  mix-blend-mode: multiply;
  opacity: 0.40;
  pointer-events: none;
  transform: scaleX(-1);
  z-index: 0;
}
/* Keep text above pseudo-elements */
.hero > .container {
  position: relative;
  z-index: 1;
}
.venue {
  display: inline-block;
  background: var(--accent-faint);
  color: var(--accent);
  border: 1px solid rgba(191, 87, 0, 0.22);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.title {
  margin: 0 0 32px;
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 100%;
  color: var(--text);
}
.authors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}
.author { display: inline-flex; align-items: center; gap: 7px; }
.authors sup { color: var(--text-muted); font-weight: 400; font-size: 12px; }
.icon-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  border-bottom: none;
  transition: color 0.15s ease, transform 0.12s ease;
}
.icon-link:hover { color: var(--accent); transform: translateY(-1px); }
.icon-link svg { width: 16px; height: 16px; display: block; }
.affiliations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 36px;
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(191,87,0,0.30);
}
.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(191,87,0,0.38);
}
.btn-icon { font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--border); }
.section--alt { background: var(--bg-alt); }

/* Section heading — styled like the poster's dark-brown panel header */
.section h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  display: inline-block;
  background: var(--brown-dark);
  color: #F5EDD8;
  padding: 7px 20px 8px;
  border-radius: 6px;
  line-height: 1.3;
}

/* ---------- Overview ---------- */
.overview-lead {
  font-size: 18px;
  line-height: 1.72;
  margin: 0 auto 32px;
  color: var(--text);
  text-align: center;
}
.overview-lead strong { font-weight: 800; color: var(--accent); }
.highlights {
  display: flex;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.highlight-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.18s ease;
}
.highlight-item:last-child { border-right: none; }
.highlight-item:hover { background: var(--accent-faint); }
.highlight-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.highlight-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.4;
}
.overview-body {
  font-size: 17px;
  color: #3D2B10;
  line-height: 1.75;
  margin: 0 auto;
  text-align: center;
}

/* ---------- Teaser ---------- */
.teaser { padding: 16px 0 8px; }
figure { margin: 0; }
.teaser img, .poster img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  box-shadow: var(--shadow-md);
}
figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

/* placeholder shown only if the image fails to load */
.placeholder { display: none; }
figure.is-empty img { display: none; }
figure.is-empty .placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-alt);
  border: 1px dashed #C8B898;
  border-radius: var(--radius);
  color: var(--text-muted);
  padding: 24px;
  font-size: 15px;
}
.placeholder--wide { min-height: 280px; }
.placeholder--tall { min-height: 520px; }
.placeholder code {
  background: #E0D0B8;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 13px;
}

/* ---------- Video ---------- */
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  margin: -16px auto 28px;
  max-width: 680px;
  text-align: center;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.video-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.altitude-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-faint);
  border: 1px solid rgba(191,87,0,0.22);
  border-radius: 999px;
  padding: 5px 14px;
  width: fit-content;
  align-self: center;
}
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--border);
  background: #000;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.video-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(74,44,10,0.16);
}
.video-wrap iframe,
.video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Poster ---------- */
.poster-container { margin-top: 40px; }
.poster img { max-width: 100%; margin: 0 auto; }
.poster a { display: block; transition: transform 0.2s ease; }
.poster a:hover { transform: translateY(-2px); }

/* ---------- Dataset stats ---------- */
.ds-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow-sm);
}
.ds-stat {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 12px;
  text-align: center;
  background: #fff;
  transition: background 0.18s ease;
}
.ds-stat:hover { background: var(--accent-faint); }
.ds-num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.1;
}
.ds-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.35;
}

/* ---------- Download cards ---------- */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.dataset-contact {
  margin: 28px auto 0;
}
.dl-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.dl-card:hover {
  border-color: rgba(191,87,0,0.35);
  box-shadow: var(--shadow-md);
}
.dl-icon {
  font-size: 28px;
  margin-bottom: 14px;
  line-height: 1;
}
.dl-body { flex: 1; }
.dl-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 8px;
}
.dl-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 14px;
}
.dl-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dl-meta li {
  font-size: 12px;
  font-weight: 600;
  color: var(--brown-dark);
  letter-spacing: 0.02em;
  padding-left: 14px;
  position: relative;
}
.dl-meta li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--brown-dark);
  color: #F5EDD8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  align-self: flex-start;
  transition: background 0.15s ease, transform 0.12s ease;
}
.dl-btn:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.dl-cmd {
  max-width: 760px;
  margin-top: 26px;
}
.dl-cmd code {
  display: inline-block;
  margin-top: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--brown-dark);
  overflow-wrap: anywhere;
}

/* ---------- Citation ---------- */
.cite-block {
  position: relative;
  background: var(--brown-dark);
  border-radius: var(--radius);
  padding: 24px 28px;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}
.cite-block pre { margin: 0; }
.cite-block code {
  font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.75;
  color: #F5EDD8;
  white-space: pre;
}
.copy-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(245, 237, 216, 0.10);
  color: #F5EDD8;
  border: 1px solid rgba(245, 237, 216, 0.22);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.copy-btn:hover {
  background: rgba(245, 237, 216, 0.20);
  border-color: rgba(245, 237, 216, 0.40);
}

/* ---------- Footer ---------- */
.footer {
  padding: 48px 0;
  border-top: 3px solid var(--brown-dark);
  text-align: center;
  background: var(--brown-dark);
}
.footer p { margin: 4px 0; font-size: 15px; color: #D4BE9A; }
.muted { font-size: 13px; color: #9A7E58 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 14px; }
  .hero { padding: 64px 0 40px; }
  .authors { font-size: 16px; }
  .highlights { flex-direction: column; }
  .highlight-item { border-right: none; border-bottom: 1px solid var(--border); }
  .highlight-item:last-child { border-bottom: none; }
  .video-grid { grid-template-columns: 1fr; gap: 32px; }
  .dl-grid { grid-template-columns: 1fr; }
  .ds-stats { flex-direction: column; }
  .ds-stat { border-bottom: 1px solid var(--border); }
  .ds-stat:last-child { border-bottom: none; }
}
